4bf61e56bb038b7336138cfc7500ea2dee2def78
[gnulib.git] / ChangeLog
1 2012-04-12  Bruno Haible  <bruno@clisp.org>
2
3         New module 'getrusage'.
4         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5         warn-on-use.h.
6         (getrusage): New declaration.
7         * lib/getrusage.c: New file.
8         * m4/getrusage.m4: New file.
9         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
10         is declared.
11         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
12         HAVE_GETRUSAGE.
13         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
14         snippet/c++defs, snippet/warn-on-use.
15         (Makefile.am): Update generation of sys/resource.h. Substitute
16         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
17         * modules/getrusage: New file.
18         * doc/posix-functions/getrusage.texi: Mention the new module.
19
20 2012-04-12  Bruno Haible  <bruno@clisp.org>
21
22         Tests for module 'sys_resource'.
23         * modules/sys_resource-tests: New file.
24         * tests/test-sys_resource.c: New file.
25
26         New module 'sys_resource'.
27         * lib/sys_resource.in.h: New file.
28         * m4/sys_resource_h.m4: New file.
29         * modules/sys_resource: New file.
30         * doc/posix-headers/sys_resource.texi: Mention the new module.
31
32 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
33
34         ioctl: Fix compilation error on mingw.
35         * lib/ioctl.c: Include <windows.h>.
36         Also reported by Ray Satiro <raysatiro@yahoo.com>.
37
38 2012-04-04  Jim Meyering  <meyering@redhat.com>
39
40         regex: correct #pragma guard expression
41         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
42         not 4.3.  Correct its cpp guard expression.
43
44 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45
46         regex: remove unnecessary type punning
47         Problem reported by Vladimir Serbinenko in
48         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
49         * lib/regex.h (struct re_pattern_buffer): Change the type of
50         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
51         Fix comment to match code.
52         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
53         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
54         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
56         (set_regs):
57         Omit no-longer-necessary casts.
58
59 2012-04-03  Bruno Haible  <bruno@clisp.org>
60
61         Tests for module 'ilogbl'.
62         * modules/ilogbl-tests: New file.
63         * tests/test-ilogbl.c: New file.
64
65         New module 'ilogbl'.
66         * lib/math.in.h (ilogbl): New declaration.
67         * lib/ilogbl.c: New file.
68         * m4/ilogbl.m4: New file.
69         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
70         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
71         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
72         Split sed invocation, to avoid the limit of 100 substitutions of
73         HP-UX 'sed'.
74         * modules/ilogbl: New file.
75         * tests/test-math-c++.cc: Check the declaration of ilogbl.
76         * doc/posix-functions/ilogbl.texi: Mention the new module.
77
78 2012-04-03  Bruno Haible  <bruno@clisp.org>
79
80         Tests for module 'ilogbf'.
81         * modules/ilogbf-tests: New file.
82         * tests/test-ilogbf.c: New file.
83
84         New module 'ilogbf'.
85         * lib/math.in.h (ilogbf): New declaration.
86         * lib/ilogbf.c: New file.
87         * m4/ilogbf.m4: New file.
88         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
89         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
90         REPLACE_ILOGBF.
91         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
92         REPLACE_ILOGBF.
93         * modules/ilogbf: New file.
94         * tests/test-math-c++.cc: Check the declaration of ilogbf.
95         * doc/posix-functions/ilogbf.texi: Mention the new module.
96
97 2012-04-03  Bruno Haible  <bruno@clisp.org>
98
99         Tests for module 'ilogb'.
100         * modules/ilogb-tests: New file.
101         * tests/test-ilogb.c: New file.
102         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
103         tests/test-logb-ieee.h.
104
105         New module 'ilogb'.
106         * lib/math.in.h (ilogb): New declaration.
107         * lib/ilogb.c: New file.
108         * m4/ilogb.m4: New file.
109         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
111         REPLACE_ILOGB.
112         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
113         REPLACE_ILOGB.
114         * modules/ilogb: New file.
115         * tests/test-math-c++.cc: Check the declaration of ilogb.
116         * doc/posix-functions/ilogb.texi: Mention the new module.
117
118 2012-04-03  Bruno Haible  <bruno@clisp.org>
119
120         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
121         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
122         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
123         (main): Check their values.
124         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
125         problem.
126
127 2012-04-03  Bruno Haible  <bruno@clisp.org>
128
129         Tests for module 'logbl-ieee'.
130         * modules/logbl-ieee-tests: New file.
131         * tests/test-logbl-ieee.c: New file.
132
133         New module 'logbl-ieee'.
134         * modules/logbl-ieee: New file.
135
136         Tests for module 'logb-ieee'.
137         * modules/logb-ieee-tests: New file.
138         * tests/test-logb-ieee.c: New file.
139
140         New module 'logb-ieee'.
141         * modules/logb-ieee: New file.
142
143         Tests for module 'logbf-ieee'.
144         * modules/logbf-ieee-tests: New file.
145         * tests/test-logbf-ieee.c: New file.
146         * tests/test-logb-ieee.h: New file.
147
148         New module 'logbf-ieee'.
149         * modules/logbf-ieee: New file.
150
151 2012-04-03  Bruno Haible  <bruno@clisp.org>
152
153         Tests for module 'logbl'.
154         * modules/logbl-tests: New file.
155         * tests/test-logbl.c: New file.
156
157         New module 'logbl'.
158         * lib/math.in.h (logbl): New declaration.
159         * lib/logbl.c: New file.
160         * m4/logbl.m4: New file.
161         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
163         REPLACE_LOGBL.
164         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
165         REPLACE_LOGBL.
166         * modules/logbl: New file.
167         * tests/test-math-c++.cc: Check the declaration of logbl.
168         * doc/posix-functions/logbl.texi: Mention the new module.
169
170 2012-04-02  Bruno Haible  <bruno@clisp.org>
171
172         Tests for module 'logbf'.
173         * modules/logbf-tests: New file.
174         * tests/test-logbf.c: New file.
175
176         New module 'logbf'.
177         * lib/math.in.h (logbf): New declaration.
178         * lib/logbf.c: New file.
179         * m4/logbf.m4: New file.
180         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
182         REPLACE_LOGBF.
183         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
184         REPLACE_LOGBF.
185         * modules/logbf: New file.
186         * tests/test-math-c++.cc: Check the declaration of logbf.
187         * doc/posix-functions/logbf.texi: Mention the new module.
188
189 2012-04-02  Bruno Haible  <bruno@clisp.org>
190
191         logb tests: More tests.
192         * tests/test-logb.h: New file, based on tests/test-logb.c and
193         tests/test-frexp.h.
194         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
195         (main): Just invoke test_function.
196         * modules/logb-tests (Files): Add tests/test-logb.h,
197         tests/minus-zero.h, tests/randomd.c.
198         (Makefile.am): Add randomd.c to test_logb_SOURCES.
199
200         logb: Provide replacement and workarounds.
201         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
202         is 1.
203         * lib/logb.c: New file.
204         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
205         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
207         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
208         * modules/logb (Files): Add lib/logb.c.
209         (Depends-on): Add isfinite, frexp, isnand.
210         (configure.ac): Compile the replacement code logb.c if needed.
211         * tests/test-math-c++.cc: Check the declaration of logb.
212         * doc/posix-functions/logb.texi: Mention the replacement and the bug
213         with subnormal numbers.
214
215 2012-04-02  Bruno Haible  <bruno@clisp.org>
216
217         log10* tests: Speed up.
218         * tests/test-log10.h (test_function): Reduce amount of random numbers
219         to test.
220
221 2012-04-01  Bruno Haible  <bruno@clisp.org>
222
223         logf-ieee: Fix test whether logf works.
224         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
225
226 2012-04-01  Bruno Haible  <bruno@clisp.org>
227
228         log10l: Work around log10l-ieee test failure on IRIX 6.5.
229         * lib/log10l.c: Include <float.h>
230         (log10l): On IRIX, normalize the +Infinity value.
231         * modules/log10l (Depends-on): Add 'float'.
232         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
233         +Infinity.
234
235         log10f-ieee: Work around test failure on NetBSD 5.1.
236         * m4/log10f-ieee.m4: New file.
237         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
238         test whether log10f works with a negative argument. Replace it if not.
239         * lib/log10f.c (log10f): For negative arguments, return NaN.
240         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
241         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
242         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
243
244         log10f-ieee: Work around test failure on Solaris 9.
245         * modules/log10f-ieee (Depends-on): Add log10-ieee.
246         (configure.ac): Require gl_FUNC_LOG10F.
247
248         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
249         * m4/log10-ieee.m4: New file.
250         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
251         whether log10 works with a negative argument. Replace it if not.
252         * lib/log10.c (log10): For negative arguments, return NaN.
253         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
254         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
255         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
256
257         Tests for module 'log10l-ieee'.
258         * modules/log10l-ieee-tests: New file.
259         * tests/test-log10l-ieee.c: New file.
260
261         New module 'log10l-ieee'.
262         * modules/log10l-ieee: New file.
263
264         Tests for module 'log10-ieee'.
265         * modules/log10-ieee-tests: New file.
266         * tests/test-log10-ieee.c: New file.
267
268         New module 'log10-ieee'.
269         * modules/log10-ieee: New file.
270
271         Tests for module 'log10f-ieee'.
272         * modules/log10f-ieee-tests: New file.
273         * tests/test-log10f-ieee.c: New file.
274         * tests/test-log10-ieee.h: New file.
275
276         New module 'log10f-ieee'.
277         * modules/log10f-ieee: New file.
278
279 2012-04-01  Bruno Haible  <bruno@clisp.org>
280
281         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
282         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
283         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
284         workaround.
285         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
286         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
288         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
289         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
290         (Depends-on): Update conditions.
291         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
292         IRIX 6.5, OSF/1 5.1 problems.
293
294 2012-04-01  Bruno Haible  <bruno@clisp.org>
295
296         log10f: Work around OSF/1 5.1 bug.
297         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
298         * lib/log10f.c (log10f): If logf exists, use it and provide just the
299         workaround.
300         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
301         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
303         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
304         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
305         (Depends-on): Update conditions.
306         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
307
308 2012-04-01  Bruno Haible  <bruno@clisp.org>
309
310         log10: Work around OSF/1 5.1 bug.
311         * lib/math.in.h (log10): New declaration.
312         * lib/log10.c: New file.
313         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
314         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
315         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
317         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
318         * modules/log10 (Files): Add lib/log10.c.
319         (Depends-on): Add math.
320         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
321         * tests/test-math-c++.cc: Check the declaration of log10.
322         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
323
324 2012-03-31  Bruno Haible  <bruno@clisp.org>
325
326         log10l tests: More tests.
327         * modules/log10l-tests (Files): Add tests/test-log10l.h,
328         tests/minus-zero.h, tests/randoml.c.
329         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
330         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
331         (main): Invoke test_function.
332
333         log10f tests: More tests.
334         * modules/log10f-tests (Files): Add tests/test-log10.h,
335         tests/minus-zero.h, tests/randomf.c.
336         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
337         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
338         (main): Invoke test_function.
339
340         log10 tests: More tests.
341         * tests/test-log10.h: New file.
342         * modules/log10-tests (Files): Add tests/test-log10.h,
343         tests/minus-zero.h, tests/randomd.c.
344         (Makefile.am): Add randomd.c to test_log10_SOURCES.
345         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
346         (main): Invoke test_function.
347
348 2012-03-31  Simon Josefsson  <simon@josefsson.org>
349
350         fflush: Fix syntax error.
351         * lib/fflush.c: Include unused-parameter.h, needed for
352         _GL_UNUSED_PARAMETER.
353         * modules/fflush (Depends-on): Add snippet/unused-parameter.
354
355 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
356
357         regex: pacify GCC when compiling GRUB
358         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
359         a diagnostic.  Reported by Vladimir Serbinenko in
360         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
361
362 2012-03-29  Eric Blake  <eblake@redhat.com>
363
364         stdio: don't assume gets any more
365         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
366         support.
367         * modules/stdio (Makefile.am): Likewise.
368         * lib/stdio-read.c (gets): Likewise.
369         * tests/test-stdio-c++.cc: Likewise.
370         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
371         * lib/stdio.in.h (gets): Make warning occur in more places.
372         * doc/posix-functions/gets.texi (gets): Update documentation.
373         Reported by Christer Solskogen.
374
375         maint.mk: fix syntax checks without exclusions
376         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
377         Reported by Daniel P. Berrange.
378
379         strerror_r: avoid compiler warning
380         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
381         level.
382
383         fflush: avoid compiler warning
384         * lib/fflush.c (update_fpos_cache): Mark variables that are
385         potentially unused.
386
387 2012-03-25  Bruno Haible  <bruno@clisp.org>
388
389         Tests for module 'localeconv'.
390         * modules/localeconv-tests: New file.
391         * tests/test-localeconv.c: New file.
392
393         New module 'localeconv'.
394         * lib/locale.in.h (localeconv): New declaration.
395         * lib/localeconv.c: New file.
396         * m4/localeconv.m4: New file.
397         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
398         REPLACE_LOCALECONV.
399         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
400         REPLACE_LOCALECONV.
401         * modules/localeconv: New file.
402         * modules/nl_langinfo (Depends-on): Add localeconv.
403         * modules/human (Depends-on): Likewise.
404         * doc/posix-functions/localeconv.texi: Mention the new module.
405
406 2012-03-25  Bruno Haible  <bruno@clisp.org>
407
408         locale: Provide a complete 'struct lconv'.
409         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
410         'struct lconv' does not contain int_p_cs_precedes.
411         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
412         * doc/posix-headers/locale.texi: Update.
413
414         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
415         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
416         * doc/posix-headers/locale.texi: Update.
417
418         locale: Provide a working 'struct lconv'.
419         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
420         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
421         'struct lconv' does not even contain decimal_point.
422         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
423         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
424         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
425         * doc/posix-headers/locale.texi: Mention the problems with
426         'struct lconv'.
427         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
428
429 2012-03-24  Bruno Haible  <bruno@clisp.org>
430
431         Enable common subexpression optimization in GCC.
432         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
433         macros.
434         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
435         GCC attribute 'const'.
436         (uc_locale_language): Declare with GCC attribute 'pure'.
437         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
438         with GCC attribute 'const'.
439         * lib/unictype.in.h (uc_is_general_category_withtable,
440         uc_combining_class, uc_combining_class_name,
441         uc_combining_class_long_name, uc_bidi_class_name,
442         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
443         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
444         uc_decimal_value, uc_digit_value, uc_numeric_value,
445         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
446         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
447         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
448         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
449         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
450         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
451         Declare with GCC attribute 'const'.
452         (uc_general_category_name, uc_general_category_long_name,
453         uc_general_category_byname, uc_general_category,
454         uc_is_general_category, uc_combining_class_byname,
455         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
456         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
457         Declare with GCC attribute 'pure'.
458         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
459         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
460         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
461         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
462         with GCC attribute 'pure'.
463         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
464         'const'.
465         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
466         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
467         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
468         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
469         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
470         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
471         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
472         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
473         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
474         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
475         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
476         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
477         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
478         GCC attribute 'pure'.
479         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
480         'const'.
481         * lib/uniwidth.in.h (uc_width): Simplify declaration.
482         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
483         u32_strwidth): Declare with GCC attribute 'pure'.
484
485         Enable common subexpression optimization in GCC.
486         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
487         (alphasort): Declare with GCC attribute 'pure'.
488         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
489         (atoll): Declare with GCC attribute 'pure'.
490         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
491         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
492         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
493         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
494         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
495         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
496         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
497
498 2012-03-24  Bruno Haible  <bruno@clisp.org>
499
500         gnulib-tool: Avoid unintended error output from 'cmp'.
501         * gnulib-tool (func_add_file, func_update_file, func_import): Use
502         "cmp -s", not "cmp > /dev/null".
503
504 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
505
506         gnulib-tool: fix imprecise comments w.r.t. an automake bug
507
508         It's not just Automake versions < 1.9b that creates an empty
509         pkgdatadir at installation time if pkgdata_DATA is specified
510         to empty; modern automake versions do this as well, at least
511         until automake 1.11.4 (not yet released at the moment of writing,
512         but soon to appear).  That behaviour was generally considered a
513         feature rather than a bug, at least until this discussion:
514         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
515
516         See also automake bugs #10997 and #11030.
517
518         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
519         reference to relevant automake bug numbers.
520         (func_emit_tests_Makefile_am): Likewise.
521
522 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
523
524         announce-gen: use Digest::SHA when possible
525         * build-aux/announce-gen: Use Digest::SHA when possible, falling
526         back to Digest::SHA1 if necessary.
527
528 2012-03-20  Jim Meyering  <meyering@redhat.com>
529
530         tests: avoid gcc warnings about argv vs. const initializers
531         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
532         warnings about discarding 'const' qualifier from pointer target type.
533         * tests/test-posix_spawn2.c (main): Likewise.
534
535 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
536
537         README-release: simplify slightly
538         * top/README-release: Run "git checkout master" only once.
539
540 2012-03-15  Mark Wielaard  <mark@klomp.org>
541
542         git-merge-changelog: add specific example on how to use with hg.
543         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
544
545 2012-03-18  Mark Wielaard  <mark@klomp.org>
546
547         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
548
549 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
550
551         git-version-gen: don't let "prefix" envvar cause trouble
552         * build-aux/git-version-gen (prefix): Initialize properly,
553         so as not to use a value specified via the environment.
554         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
555
556 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
557
558         regex: diagnose too-large repeat counts in EREs
559         Previously, the code did not diagnose the too-large repeat count
560         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
561         as if it were 'b\{1000000000}', which is unexpected.
562         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
563         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
564         is a reasonable one for this problem.  Another option would be to
565         create a new REG_OVERFLOW error for repeat counts that are too large.
566         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
567         count is too large, so that the caller can distinguish the two cases.
568         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
569         "Too large" return code, and that repeat counts are one example of this.
570
571 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
572
573         doc: some glibc x32 integer width issues
574         * doc/posix-headers/sys_types.texi (sys/types.h):
575         * doc/posix-headers/time.texi (time.h):
576         Mention that glibc x32 does not conform to POSIX in a couple of
577         areas related to integer widths.
578
579 2012-03-15  Bruno Haible  <bruno@clisp.org>
580
581         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
582         * lib/fma.c (VOLATILE): New macro.
583         (FUNC): Use it to work around a GCC compiler bug.
584
585 2012-03-13  Bruno Haible  <bruno@clisp.org>
586
587         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
588         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
589         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
590         REPLACE_HYPOTL to 1.
591         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
592
593 2012-03-13  Bruno Haible  <bruno@clisp.org>
594
595         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
596         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
597         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
598         REPLACE_REMAINDERL to 1.
599         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
600         bug.
601
602 2012-03-13  Bruno Haible  <bruno@clisp.org>
603
604         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
605         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
606         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
607         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
608         too big rounding errors.
609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
610         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
611         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
612         (Depends-on): Update conditions.
613         * tests/test-sqrtl.c (my_ldexpl): New function.
614         (main): Add test of a particular value.
615         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
616
617 2012-03-13  Pádraig Brady  <P@draigBrady.com>
618
619         doc: Update timer_* platform portability notes.
620         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
621         that always return ENOSYS.
622         * doc/posix-functions/timer_delete.texi: Likewise.
623         * doc/posix-functions/timer_gettime.texi: Likewise.
624         * doc/posix-functions/timer_settime.texi: Likewise.
625
626 2012-03-13  Bruno Haible  <bruno@clisp.org>
627
628         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
629         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
630         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
631         REPLACE_CBRTL to 1.
632         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
633
634 2012-03-13  Bruno Haible  <bruno@clisp.org>
635
636         remainderl: Avoid compilation error on AIX >= 5.2.
637         * lib/math.in.h (remainderl): Undefine macro from the system header.
638
639 2012-03-13  Bruno Haible  <bruno@clisp.org>
640
641         Avoid compilation errors with MSVC option -fp:strict.
642         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
643         * lib/cbrtf.c: Likewise.
644         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
645
646 2012-03-12  Bruno Haible  <bruno@clisp.org>
647
648         uninorm: Don't crash in out-of-memory conditions.
649         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
650         gracefully.
651         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
652         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
653
654 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
655
656         quote: fix syntax-check
657         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
658         also exports quote_quoting_options.
659
660 2012-03-12  Simon Josefsson  <simon@josefsson.org>
661
662         Collapse list of copyright years to ranges.  See
663         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
664         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
665         build-aux/csharpexec.sh.in, build-aux/gnupload,
666         build-aux/install-reloc, build-aux/javacomp.sh.in,
667         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
668         build-aux/move-if-change, build-aux/reloc-ldflags,
669         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
670
671 2012-03-11  Bruno Haible  <bruno@clisp.org>
672
673         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
674         * m4/log2f-ieee.m4: New file.
675         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
676         whether log2f works with a minus zero argument. Replace it if not.
677         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
678         (Depends-on): Add log2-ieee.
679         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
680         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
681
682         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
683         * m4/log2-ieee.m4: New file.
684         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
685         whether log2 works with a minus zero argument. Replace it if not.
686         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
687         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
688         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
689
690         Tests for module 'log2l-ieee'.
691         * modules/log2l-ieee-tests: New file.
692         * tests/test-log2l-ieee.c: New file.
693
694         New module 'log2l-ieee'.
695         * modules/log2l-ieee: New file.
696
697         Tests for module 'log2-ieee'.
698         * modules/log2-ieee-tests: New file.
699         * tests/test-log2-ieee.c: New file.
700
701         New module 'log2-ieee'.
702         * modules/log2-ieee: New file.
703
704         Tests for module 'log2f-ieee'.
705         * modules/log2f-ieee-tests: New file.
706         * tests/test-log2f-ieee.c: New file.
707         * tests/test-log2-ieee.h: New file.
708
709         New module 'log2f-ieee'.
710         * modules/log2f-ieee: New file.
711
712 2012-03-11  Bruno Haible  <bruno@clisp.org>
713
714         Tests for module 'log2l'.
715         * modules/log2l-tests: New file.
716         * tests/test-log2l.c: New file.
717
718         New module 'log2l'.
719         * lib/math.in.h (log2l): New declaration.
720         * lib/log2l.c: New file.
721         * m4/log2l.m4: New file.
722         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
724         REPLACE_LOG2L.
725         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
726         REPLACE_LOG2L.
727         * modules/log2l: New file.
728         * tests/test-math-c++.cc: Check the declaration of log2l.
729         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
730         and OSF/1 problems.
731
732 2012-03-11  Bruno Haible  <bruno@clisp.org>
733
734         Tests for module 'log2f'.
735         * modules/log2f-tests: New file.
736         * tests/test-log2f.c: New file.
737
738         New module 'log2f'.
739         * lib/math.in.h (log2f): New declaration.
740         * lib/log2f.c: New file.
741         * m4/log2f.m4: New file.
742         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
744         REPLACE_LOG2F.
745         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
746         REPLACE_LOG2F.
747         * modules/log2f: New file.
748         * tests/test-math-c++.cc: Check the declaration of log2f.
749         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
750         and OSF/1 and Cygwin problems.
751
752 2012-03-11  Bruno Haible  <bruno@clisp.org>
753
754         Tests for module 'log2'.
755         * modules/log2-tests: New file.
756         * tests/test-log2.c: New file.
757         * tests/test-log2.h: New file.
758
759         New module 'log2'.
760         * lib/math.in.h (log2): New declaration.
761         * lib/log2.c: New file.
762         * m4/log2.m4: New file.
763         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
765         REPLACE_LOG2.
766         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
767         REPLACE_LOG2.
768         * modules/log2: New file.
769         * tests/test-math-c++.cc: Check the declaration of log2.
770         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
771         and OSF/1 and Cygwin problems.
772
773 2012-03-11  Bruno Haible  <bruno@clisp.org>
774
775         exp2* tests: More tests.
776         * tests/test-exp2.h (test_function): Test all integral arguments that
777         don't need to overflow or denormalized numbers.
778         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
779         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
780         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
781
782 2012-03-10  Bruno Haible  <bruno@clisp.org>
783
784         log1pl-ieee: Work around test failure on AIX 7.1.
785         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
786
787         log1pl-ieee: Work around test failure on IRIX 6.5.
788         * m4/log1pl-ieee.m4: New file.
789         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
790         test whether log1pl works with a minus zero argument. Replace it if
791         not.
792         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
794         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
795         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
796         (Depends-on): Update conditions.
797         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
798         m4/signbit.m4.
799         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
800         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
801
802         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
803         * m4/log1pf-ieee.m4: New file.
804         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
805         test whether log1pf works with a minus zero argument. Replace it if
806         not.
807         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
808         m4/signbit.m4.
809         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
810         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
811
812         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
813         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
814         (configure.ac): Require gl_FUNC_LOG1PF.
815
816         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
817         * m4/log1p-ieee.m4: New file.
818         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
819         whether log1p works with a minus zero argument. Replace it if not.
820         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
822         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
823         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
824         (Depends-on): Update conditions.
825         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
826         m4/signbit.m4.
827         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
828         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
829
830         Tests for module 'log1pl-ieee'.
831         * modules/log1pl-ieee-tests: New file.
832         * tests/test-log1pl-ieee.c: New file.
833
834         New module 'log1pl-ieee'.
835         * modules/log1pl-ieee: New file.
836
837         Tests for module 'log1p-ieee'.
838         * modules/log1p-ieee-tests: New file.
839         * tests/test-log1p-ieee.c: New file.
840
841         New module 'log1p-ieee'.
842         * modules/log1p-ieee: New file.
843
844         Tests for module 'log1pf-ieee'.
845         * modules/log1pf-ieee-tests: New file.
846         * tests/test-log1pf-ieee.c: New file.
847         * tests/test-log1p-ieee.h: New file.
848
849         New module 'log1pf-ieee'.
850         * modules/log1pf-ieee: New file.
851
852 2012-03-10  Bruno Haible  <bruno@clisp.org>
853
854         Tests for module 'log1pl'.
855         * modules/log1pl-tests: New file.
856         * tests/test-log1pl.c: New file.
857
858         New module 'log1pl'.
859         * lib/math.in.h (log1pl): New declaration.
860         * lib/log1pl.c: New file.
861         * m4/log1pl.m4: New file.
862         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
864         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
865         * modules/log1pl: New file.
866         * tests/test-math-c++.cc: Check the declaration of log1pl.
867         * doc/posix-functions/log1pl.texi: Mention the new module.
868
869 2012-03-10  Bruno Haible  <bruno@clisp.org>
870
871         Tests for module 'log1pf'.
872         * modules/log1pf-tests: New file.
873         * tests/test-log1pf.c: New file.
874
875         New module 'log1pf'.
876         * lib/math.in.h (log1pf): New declaration.
877         * lib/log1pf.c: New file.
878         * m4/log1pf.m4: New file.
879         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
881         REPLACE_LOG1PF.
882         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
883         REPLACE_LOG1PF.
884         * modules/log1pf: New file.
885         * tests/test-math-c++.cc: Check the declaration of log1pf.
886         * doc/posix-functions/log1pf.texi: Mention the new module.
887
888 2012-03-10  Bruno Haible  <bruno@clisp.org>
889
890         log1p tests: More tests.
891         * tests/test-log1p.h: New file.
892         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
893         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
894         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
895         (main): Invoke test_function.
896
897         log1p: Provide replacement for Minix and MSVC.
898         * lib/math.in.h (log1p): New declaration.
899         * lib/log1p.c: New file.
900         * m4/log1p.m4: New file.
901         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
903         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
904         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
905         (Depends-on): Add math, isnand, log, round.
906         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
907         HAVE_LOG1P is 0.
908         * tests/test-math-c++.cc: Check the declaration of log1p.
909         * doc/posix-functions/log1p.texi: Mention the replacement.
910
911 2012-03-10  Bruno Haible  <bruno@clisp.org>
912
913         math tests: Small simplification.
914         * tests/test-exp.h (test_function): Use the same err_bound for
915         'double' on platforms with sizeof (long double) == sizeof (double)
916         than on platforms with sizeof (long double) > sizeof (double).
917         * tests/test-exp2.h (test_function): Likewise.
918         * tests/test-expm1.h (test_function): Likewise.
919         * tests/test-log.h (test_function): Likewise.
920
921 2012-03-10  Bruno Haible  <bruno@clisp.org>
922
923         Fix some comments.
924         * lib/expl.c: Fix an ambiguous comment.
925         * lib/expm1.c: Likewise.
926         * lib/expm1l.c: Likewise.
927         * lib/exp2.c: Likewise.
928         * lib/exp2l.c: Likewise.
929
930 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
931
932         regex: allow inclusion of <regex.h> before <limits.h>
933         Without this patch, portable programs had to include <limits.h> before
934         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
935         I ran into this problem with a test version of GNU grep on Solaris 8.
936         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
937         This is done conditionally so that this change can be merged
938         back to glibc.
939         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
940         using the included regex.
941
942         fts: depend on fdopendir
943         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
944         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
945         problem was introduced when fdopendir was split out.
946
947 2012-03-10  Bruno Haible  <bruno@clisp.org>
948
949         Remove unused variables.
950         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
951         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
952
953 2012-03-10  Bruno Haible  <bruno@clisp.org>
954
955         isnanf-nolibm: Fix last commit.
956         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
957
958         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
959         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
960
961 2012-03-10  Bruno Haible  <bruno@clisp.org>
962
963         logf-ieee: Work around test failure on NetBSD 5.1.
964         * m4/logf-ieee.m4: New file.
965         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
966         whether logf works with a negative argument. Replace it if not.
967         * lib/logf.c (logf): For negative arguments, return NaN.
968         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
969         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
970         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
971
972         logf-ieee: Work around test failure on Solaris 9.
973         * modules/logf-ieee (Depends-on): Add log-ieee.
974         (configure.ac): Require gl_FUNC_LOGF.
975
976         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
977         * m4/log-ieee.m4: New file.
978         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
979         log works with a negative argument. Replace it if not.
980         * lib/log.c (log): For negative arguments, return NaN.
981         * modules/log-ieee (Files): Add m4/log-ieee.m4.
982         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
983         * doc/posix-functions/log.texi: Mention the log-ieee module.
984
985         Tests for module 'logl-ieee'.
986         * modules/logl-ieee-tests: New file.
987         * tests/test-logl-ieee.c: New file.
988
989         New module 'logl-ieee'.
990         * modules/logl-ieee: New file.
991
992         Tests for module 'log-ieee'.
993         * modules/log-ieee-tests: New file.
994         * tests/test-log-ieee.c: New file.
995
996         New module 'log-ieee'.
997         * modules/log-ieee: New file.
998
999         Tests for module 'logf-ieee'.
1000         * modules/logf-ieee-tests: New file.
1001         * tests/test-logf-ieee.c: New file.
1002         * tests/test-log-ieee.h: New file.
1003
1004         New module 'logf-ieee'.
1005         * modules/logf-ieee: New file.
1006
1007 2012-03-10  Bruno Haible  <bruno@clisp.org>
1008
1009         log: Fix bug introduced on 2012-03-09.
1010         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1011
1012 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1013
1014         timer-time: link explicitly with pthreads on glibc
1015         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1016         to support static linking, when newer glibc is
1017         detected, as that contains pthread emulation of
1018         POSIX timer functions where required.
1019         * modules/timer-time: Depend on threadlib to
1020         pull in the appropriate library to link.
1021
1022 2012-03-10  Bruno Haible  <bruno@clisp.org>
1023
1024         log* tests: More tests.
1025         * tests/test-log.h: New file.
1026         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1027         (main): Invoke test_function.
1028         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1029         (main): Invoke test_function.
1030         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1031         (main): Invoke test_function.
1032         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1033         tests/randomd.c.
1034         (Makefile.am): Add randomd.c to test_log_SOURCES.
1035         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1036         tests/randomf.c.
1037         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1038         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1039         tests/randoml.c.
1040         (Depends-on): Add 'float'.
1041         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1042
1043 2012-03-09  Bruno Haible  <bruno@clisp.org>
1044
1045         logl: Work around OSF/1 5.1 bug.
1046         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1047         * lib/logl.c (logl): If logl exists, use it and provide just the
1048         workaround.
1049         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1050         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1052         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1053         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1054         (Depends-on): Update conditions.
1055         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1056
1057 2012-03-09  Bruno Haible  <bruno@clisp.org>
1058
1059         logf: Work around OSF/1 5.1 bug.
1060         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1061         * lib/logf.c (logf): If logf exists, use it and provide just the
1062         workaround.
1063         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1064         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1066         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1067         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1068         (Depends-on): Update conditions.
1069         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1070
1071 2012-03-09  Bruno Haible  <bruno@clisp.org>
1072
1073         log: Work around OSF/1 5.1 bug.
1074         * lib/math.in.h (log): New declaration.
1075         * lib/log.c: New file.
1076         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1077         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1078         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1080         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1081         * modules/log (Files): Add lib/log.c.
1082         (Depends-on): Add math.
1083         (configure.ac): If REPLACE_LOG is 1, compile an override.
1084         * tests/test-math-c++.cc: Check the declaration of log.
1085         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1086
1087 2012-03-09  Jim Meyering  <meyering@redhat.com>
1088
1089         readtokens.c: adjust wording in a comment
1090         * lib/readtokens.c: Insert omitted "that" in a comment.
1091
1092 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1093
1094         modechange: add notations +40, 00440, etc.
1095         * lib/modechange.c (mode_compile): Support new notations
1096         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1097
1098 2012-03-08  Bruno Haible  <bruno@clisp.org>
1099
1100         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1101         * m4/exp2l-ieee.m4: New file.
1102         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1103         test whether exp2l works with a NaN argument and with a negative
1104         infinity argument. Replace it if not.
1105         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1107         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1108         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1109         (Depends-on): Update conditions.
1110         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1111         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1112         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1113
1114         Tests for module 'exp2l-ieee'.
1115         * modules/exp2l-ieee-tests: New file.
1116         * tests/test-exp2l-ieee.c: New file.
1117
1118         New module 'exp2l-ieee'.
1119         * modules/exp2l-ieee: New file.
1120
1121         Tests for module 'exp2-ieee'.
1122         * modules/exp2-ieee-tests: New file.
1123         * tests/test-exp2-ieee.c: New file.
1124
1125         New module 'exp2-ieee'.
1126         * modules/exp2-ieee: New file.
1127
1128         Tests for module 'exp2f-ieee'.
1129         * modules/exp2f-ieee-tests: New file.
1130         * tests/test-exp2f-ieee.c: New file.
1131         * tests/test-exp2-ieee.h: New file.
1132
1133         New module 'exp2f-ieee'.
1134         * modules/exp2f-ieee: New file.
1135
1136 2012-03-08  Bruno Haible  <bruno@clisp.org>
1137
1138         Tests for module 'exp2l'.
1139         * modules/exp2l-tests: New file.
1140         * tests/test-exp2l.c: New file.
1141
1142         New module 'exp2l'.
1143         * lib/math.in.h (exp2l): New declaration.
1144         * lib/exp2l.c: New file.
1145         * lib/expl-table.c: New file, extracted from lib/expl.c.
1146         * lib/expl.c (gl_expl_table): New declaration.
1147         (expl): Remove expl_table. Update reference.
1148         * m4/exp2l.m4: New file.
1149         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1151         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1152         * modules/exp2l: New file.
1153         * modules/expl (Files): Add lib/expl-table.c.
1154         (configure.ac): Compile also expl-table.c.
1155         * tests/test-math-c++.cc: Check the declaration of exp2l.
1156         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1157         problem.
1158
1159 2012-03-08  Bruno Haible  <bruno@clisp.org>
1160
1161         Tests for module 'exp2f'.
1162         * modules/exp2f-tests: New file.
1163         * tests/test-exp2f.c: New file.
1164
1165         New module 'exp2f'.
1166         * lib/math.in.h (exp2f): New declaration.
1167         * lib/exp2f.c: New file.
1168         * m4/exp2f.m4: New file.
1169         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1171         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1172         * modules/exp2f: New file.
1173         * tests/test-math-c++.cc: Check the declaration of exp2f.
1174         * doc/posix-functions/exp2f.texi: Mention the new module and the
1175         IRIX problem.
1176
1177 2012-03-08  Bruno Haible  <bruno@clisp.org>
1178
1179         Tests for module 'exp2'.
1180         * modules/exp2-tests: New file.
1181         * tests/test-exp2.c: New file.
1182         * tests/test-exp2.h: New file.
1183
1184         New module 'exp2'.
1185         * lib/math.in.h (exp2): New declaration.
1186         * lib/exp2.c: New file.
1187         * m4/exp2.m4: New file.
1188         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1190         REPLACE_EXP2.
1191         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1192         REPLACE_EXP2.
1193         * modules/exp2: New file.
1194         * tests/test-math-c++.cc: Check the declaration of exp2.
1195         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1196         and OpenBSD problems.
1197
1198 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1199
1200         savedir: fix comment typo
1201         * lib/savedir.c (savedirstream): Fix typo in comment.
1202
1203 2012-03-08  Bruno Haible  <bruno@clisp.org>
1204
1205         test-readtokens.c: use const; remove unwarranted cast
1206         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1207
1208 2012-03-08  Bruno Haible  <bruno@clisp.org>
1209
1210         fmal: Avoid compilation error on AIX.
1211         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1212         AIX 5.2..7.1.
1213
1214 2012-03-08  Bruno Haible  <bruno@clisp.org>
1215
1216         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1217         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1218         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1219         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1220         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1221         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1222         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1223
1224 2012-03-08  Bruno Haible  <bruno@clisp.org>
1225
1226         remainderf: Override buggy system function on IRIX 6.5.
1227         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1228         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1229         when it exists.
1230         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1231
1232 2012-03-08  Jim Meyering  <meyering@redhat.com>
1233
1234         test-readtokens.c: avoid const-related compilation warnings
1235         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1236
1237 2012-03-07  Jim Meyering  <meyering@redhat.com>
1238             Bruno Haible  <bruno@clisp.org>
1239
1240         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1241         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1242         tests/randomd.c.
1243         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1244         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1245         tests/randoml.c.
1246         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1247
1248 2012-03-07  Bruno Haible  <bruno@clisp.org>
1249
1250         expm1l: Avoid compilation error on AIX.
1251         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1252         AIX 5.2..7.1.
1253
1254 2012-03-07  Bruno Haible  <bruno@clisp.org>
1255
1256         expm1l: Don't override undeclared system function on IRIX 6.5.
1257         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1258         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1259         it exists. Set HAVE_DECL_EXPM1L.
1260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1261         HAVE_EXPM1L.
1262         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1263         HAVE_EXPM1L.
1264         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1265
1266 2012-03-07  Bruno Haible  <bruno@clisp.org>
1267
1268         remainderl: Don't override undeclared system function on IRIX 6.5.
1269         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1270         HAVE_REMAINDERL.
1271         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1272         declared when it exists. Set HAVE_DECL_REMAINDERL.
1273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1274         not HAVE_REMAINDERL.
1275         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1276         HAVE_REMAINDERL.
1277         * doc/posix-functions/remainderl.texi: Mention missing declaration
1278         problem.
1279
1280 2012-03-07  Bruno Haible  <bruno@clisp.org>
1281
1282         rintf: Don't override undeclared system function on IRIX 6.5.
1283         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1284         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1285         exists. Set HAVE_DECL_RINTF.
1286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1287         HAVE_RINTF.
1288         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1289         HAVE_RINTF.
1290         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1291
1292 2012-03-07  Bruno Haible  <bruno@clisp.org>
1293
1294         roundl: Avoid compilation error on AIX.
1295         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1296         AIX 5.2..7.1.
1297
1298 2012-03-07  Bruno Haible  <bruno@clisp.org>
1299
1300         roundl: Don't override undeclared system function on IRIX 6.5.
1301         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1302         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1303         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1304         * modules/roundl (configure.ac): For replacement code, test
1305         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1306         (Depends-on): Update conditions.
1307         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1308
1309 2012-03-07  Bruno Haible  <bruno@clisp.org>
1310
1311         roundf: Don't override undeclared system function on IRIX 6.5.
1312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1313         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1314         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1315         * modules/roundf (configure.ac): For replacement code, test
1316         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1317         (Depends-on): Update conditions.
1318         * modules/roundf-ieee (Depends-on): Update conditions.
1319         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1320
1321 2012-03-07  Bruno Haible  <bruno@clisp.org>
1322
1323         round: Don't override undeclared system function on IRIX 6.5.
1324         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1325         argument.
1326         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1327         also when it is not declared. Set HAVE_ROUND. For replacement code,
1328         test HAVE_ROUND, not HAVE_DECL_ROUND.
1329         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1330         not HAVE_DECL_ROUND.
1331         (Depends-on): Update conditions.
1332         * modules/round-ieee (Depends-on): Update conditions.
1333         * doc/posix-functions/round.texi: Mention the IRIX problem.
1334
1335 2012-03-07  Bruno Haible  <bruno@clisp.org>
1336
1337         copysignf: Don't override undeclared system function on IRIX 6.5.
1338         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1339         HAVE_COPYSIGNF.
1340         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1341         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1343         not HAVE_COPYSIGNF.
1344         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1345         HAVE_COPYSIGNF.
1346         * doc/posix-functions/copysignf.texi: Mention missing declaration
1347         problem.
1348
1349 2012-03-07  Jim Meyering  <meyering@redhat.com>
1350
1351         readtokens: add tests
1352         * modules/readtokens-tests: New file.
1353         * tests/test-readtokens.c: New file.
1354
1355 2012-03-07  Jim Meyering  <meyering@redhat.com>
1356
1357         quotearg: the module must now include quote.h
1358         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1359         So must the module.
1360         * modules/quotearg (Files): Add quote.h.
1361
1362 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         readtokens: avoid core dumps with unusual calling patterns
1365         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1366         * lib/readtokens.c: Include limits.h.
1367         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1368         (readtoken): Don't cache the delimiters; the cache code was buggy
1369         if !delim && saved_delim, or if the new n_delim differs from the old.
1370         Also, it wasn't thread-safe.
1371
1372 2012-03-07  Bruno Haible  <bruno@clisp.org>
1373
1374         quote: Adhere to common module description layout.
1375         * modules/quote (Makefile.am): Add back empty section.
1376
1377 2012-03-06  Akim Demaille  <demaille@gostai.com>
1378
1379         quote: fuse into quotearg
1380         This patch is made for the benefit of Bison.
1381         quote does not leave the choice of the quoting style to the user.
1382         quoting_style provides poor customizability, yet quoting_options,
1383         which is very rich, is hidden inside quotearg.c.  So in order to
1384         allow quote customization, move its implementation to quotearg.c.
1385         * lib/quote.c: Remove.
1386         * modules/quote: Adjust.
1387         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1388         warning: provide all the members of literal structs.
1389         (quote_quoting_options): New.
1390         (quote, quote_n): Import implementation from quote.c.
1391         * lib/quote.h: Import the comments from quote.c.
1392         (quote_quoting_options): New.
1393
1394 2012-03-06  Bruno Haible  <bruno@clisp.org>
1395
1396         Tests for module 'expm1l-ieee'.
1397         * modules/expm1l-ieee-tests: New file.
1398         * tests/test-expm1l-ieee.c: New file.
1399
1400         New module 'expm1l-ieee'.
1401         * modules/expm1l-ieee: New file.
1402
1403         Tests for module 'expm1f-ieee'.
1404         * modules/expm1f-ieee-tests: New file.
1405         * tests/test-expm1f-ieee.c: New file.
1406
1407         New module 'expm1f-ieee'.
1408         * modules/expm1f-ieee: New file.
1409
1410         Tests for module 'expm1-ieee'.
1411         * modules/expm1-ieee-tests: New file.
1412         * tests/test-expm1-ieee.c: New file.
1413         * tests/test-expm1-ieee.h: New file.
1414
1415         New module 'expm1-ieee'.
1416         * modules/expm1-ieee: New file.
1417         * m4/expm1-ieee.m4: New file.
1418         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1419         whether expm1 works with a minus zero argument. Replace it if not.
1420         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1422         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1423         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1424         (Depends-on): Update conditions.
1425         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1426         AIX problem.
1427
1428 2012-03-06  Bruno Haible  <bruno@clisp.org>
1429
1430         Work around expm1f bug on IRIX 6.5.
1431         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1432         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1433         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1434         not work.
1435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1436         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1437         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1438         (Depends-on): Update conditions.
1439         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1440
1441 2012-03-06  Bruno Haible  <bruno@clisp.org>
1442
1443         Tests for module 'expm1l'.
1444         * modules/expm1l-tests: New file.
1445         * tests/test-expm1l.c: New file.
1446
1447         New module 'expm1l'.
1448         * lib/math.in.h (expm1l): New declaration.
1449         * lib/expm1l.c: New file.
1450         * m4/expm1l.m4: New file.
1451         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1453         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1454         * modules/expm1l: New file.
1455         * tests/test-math-c++.cc: Check the declaration of expm1l.
1456         * doc/posix-functions/expm1l.texi: Mention the new module.
1457
1458 2012-03-06  Bruno Haible  <bruno@clisp.org>
1459
1460         Tests for module 'expm1f'.
1461         * modules/expm1f-tests: New file.
1462         * tests/test-expm1f.c: New file.
1463
1464         New module 'expm1f'.
1465         * lib/math.in.h (expm1f): New declaration.
1466         * lib/expm1f.c: New file.
1467         * m4/expm1f.m4: New file.
1468         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1470         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1471         * modules/expm1f: New file.
1472         * tests/test-math-c++.cc: Check the declaration of expm1f.
1473         * doc/posix-functions/expm1f.texi: Mention the new module.
1474
1475 2012-03-06  Bruno Haible  <bruno@clisp.org>
1476
1477         Tests for module 'expm1'.
1478         * modules/expm1-tests: New file.
1479         * tests/test-expm1.c: New file.
1480         * tests/test-expm1.h: New file.
1481
1482         New module 'expm1'.
1483         * lib/math.in.h (expm1): New declaration.
1484         * lib/expm1.c: New file.
1485         * m4/expm1.m4: New file.
1486         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1488         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1489         * modules/expm1: New file.
1490         * tests/test-math-c++.cc: Check the declaration of expm1.
1491         * doc/posix-functions/expm1.texi: Mention the new module.
1492
1493 2012-03-06  Bruno Haible  <bruno@clisp.org>
1494
1495         math: Ensure declarations of math functions.
1496         * modules/acosf (Depends-on): Add 'extensions'.
1497         * modules/asinf (Depends-on): Likewise.
1498         * modules/atan2f (Depends-on): Likewise.
1499         * modules/atanf (Depends-on): Likewise.
1500         * modules/cbrt (Depends-on): Likewise.
1501         * modules/cbrtf (Depends-on): Likewise.
1502         * modules/cbrtl (Depends-on): Likewise.
1503         * modules/copysignf (Depends-on): Likewise.
1504         * modules/copysignl (Depends-on): Likewise.
1505         * modules/cosf (Depends-on): Likewise.
1506         * modules/coshf (Depends-on): Likewise.
1507         * modules/expf (Depends-on): Likewise.
1508         * modules/fabsf (Depends-on): Likewise.
1509         * modules/fabsl (Depends-on): Likewise.
1510         * modules/fmaf (Depends-on): Likewise.
1511         * modules/fmal (Depends-on): Likewise.
1512         * modules/fmodf (Depends-on): Likewise.
1513         * modules/fmodl (Depends-on): Likewise.
1514         * modules/frexpf (Depends-on): Likewise.
1515         * modules/frexpl (Depends-on): Likewise.
1516         * modules/hypot (Depends-on): Likewise.
1517         * modules/hypotf (Depends-on): Likewise.
1518         * modules/hypotl (Depends-on): Likewise.
1519         * modules/ldexpf (Depends-on): Likewise.
1520         * modules/ldexpl (Depends-on): Likewise.
1521         * modules/log10f (Depends-on): Likewise.
1522         * modules/log10l (Depends-on): Likewise.
1523         * modules/log1p (Depends-on): Likewise.
1524         * modules/logb (Depends-on): Likewise.
1525         * modules/logf (Depends-on): Likewise.
1526         * modules/modff (Depends-on): Likewise.
1527         * modules/modfl (Depends-on): Likewise.
1528         * modules/powf (Depends-on): Likewise.
1529         * modules/remainderf (Depends-on): Likewise.
1530         * modules/remainderl (Depends-on): Likewise.
1531         * modules/rintf (Depends-on): Likewise.
1532         * modules/rintl (Depends-on): Likewise.
1533         * modules/sinf (Depends-on): Likewise.
1534         * modules/sinhf (Depends-on): Likewise.
1535         * modules/sqrtf (Depends-on): Likewise.
1536         * modules/tanf (Depends-on): Likewise.
1537         * modules/tanhf (Depends-on): Likewise.
1538         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1539         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1540         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1541         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1542         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1543         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1544         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1545         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1546         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1547         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1548         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1549         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1550         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1551         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1552         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1553         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1554         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1555         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1556         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1557         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1558         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1559         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1560         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1561         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1563         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1564         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1565         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1566         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1567         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1568         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1569         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1570         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1571         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1572         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1573         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1574         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1575         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1576         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1577         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1578         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1579
1580 2012-03-06  Bruno Haible  <bruno@clisp.org>
1581
1582         math: Update module names in warnings.
1583         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1584         tanl): Use specific module name in warn-on-use warning.
1585
1586 2012-03-06  Bruno Haible  <bruno@clisp.org>
1587
1588         expl: Simplify computation.
1589         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1590
1591 2012-03-05  Bruno Haible  <bruno@clisp.org>
1592
1593         exp* tests: More tests.
1594         * tests/test-exp.h: New file.
1595         * tests/test-exp.c: Include <float.h> and test-exp.h.
1596         (main): Invoke test_function.
1597         * tests/test-expf.c: Include <float.h> and test-exp.h.
1598         (main): Invoke test_function.
1599         * tests/test-expl.c: Include <float.h> and test-exp.h.
1600         (main): Invoke test_function.
1601         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1602         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1603         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1604         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1605         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1606         (Depends-on): Add 'float'.
1607         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1608
1609         expl: Fix precision of computed result.
1610         * lib/expl.c: Completely rewritten.
1611         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1612         (Maintainer): Add me.
1613         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1614
1615 2012-03-05  Bruno Haible  <bruno@clisp.org>
1616
1617         cbrt* tests: More tests.
1618         * tests/test-cbrt.h: New file.
1619         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1620         (main): Invoke test_function.
1621         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1622         (main): Invoke test_function.
1623         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1624         (main): Invoke test_function.
1625         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1626         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1627         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1628         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1629         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1630         (Depends-on): Add 'float'.
1631         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1632
1633 2012-03-05  Bruno Haible  <bruno@clisp.org>
1634
1635         hypot* tests: More tests.
1636         * tests/test-hypot.h: New file, partially extracted from
1637         tests/test-hypotl.c.
1638         * tests/test-hypot.c: Include test-hypot.h.
1639         (main): Invoke test_function.
1640         * tests/test-hypotf.c: Include test-hypot.h.
1641         (main): Invoke test_function.
1642         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1643         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1644         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1645         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1646         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1647         tests/randomf.c.
1648         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1649         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1650         tests/randoml.c.
1651         (Depends-on): Add 'fpucw', 'float'.
1652         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1653
1654 2012-03-05  Bruno Haible  <bruno@clisp.org>
1655
1656         fpucw: Doc about FreeBSD.
1657         * lib/fpucw.h: Mention FreeBSD in comments.
1658
1659 2012-03-04  Bruno Haible  <bruno@clisp.org>
1660
1661         sqrt* tests: More tests.
1662         * tests/test-sqrt.h: New file.
1663         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1664         (main): Invoke test_function.
1665         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1666         (main): Invoke test_function.
1667         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1668         (main): Invoke test_function.
1669         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1670         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1671         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1672         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1673         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1674         (Depends-on): Add 'float'.
1675         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1676
1677 2012-03-04  Bruno Haible  <bruno@clisp.org>
1678
1679         remainder* tests: More tests.
1680         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1681         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1682         (main): Invoke test_function.
1683         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1684         (main): Invoke test_function.
1685         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1686         (main): Invoke test_function.
1687         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1688         tests/randomd.c.
1689         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1690         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1691         tests/randomf.c.
1692         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1693         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1694         tests/randoml.c.
1695         (Depends-on): Add 'float'.
1696         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1697
1698 2012-03-04  Bruno Haible  <bruno@clisp.org>
1699
1700         remainder, remainderf, remainderl: Fix computation for large quotients.
1701         * lib/remainder.c: Completely rewritten.
1702         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1703         USE_FLOAT.
1704         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1705         USE_LONG_DOUBLE.
1706         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1707         isnand, isinf. Remove round, fma.
1708         * modules/remainderf (Files): Add lib/remainder.c.
1709         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1710         Remove roundf, fmaf.
1711         * modules/remainderl (Files): Add lib/remainder.c.
1712         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1713         isinf. Remove roundl, fmal.
1714         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1715         REMAINDER_LIBM.
1716         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1717         REMAINDERF_LIBM.
1718         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1719         REMAINDERL_LIBM.
1720
1721 2012-03-04  Bruno Haible  <bruno@clisp.org>
1722
1723         fmod* tests: More tests.
1724         * tests/test-fmod.h (my_ldexp): New function.
1725         (test_function): Reduce amount of random numbers to test. Add tests
1726         of very large quotients x / y.
1727         * tests/test-fmod.c (MAX_EXP): New macro.
1728         * tests/test-fmodf.c (MAX_EXP): Likewise.
1729         * tests/test-fmodl.c (MAX_EXP): Likewise.
1730
1731 2012-03-04  Bruno Haible  <bruno@clisp.org>
1732
1733         fmod, fmodl: Fix computation for large quotients x / y.
1734         * lib/fmod.c: Completely rewritten.
1735         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1736         USE_LONG_DOUBLE.
1737         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1738         isnand. Remove fma.
1739         * modules/fmodl (Files): Add lib/fmod.c.
1740         (Depends-on): Add float, isfinite, signbit, fabsl,
1741         frexpl, ldexpl, isnanl. Remove fma.
1742         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1743         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1744
1745 2012-03-03  Bruno Haible  <bruno@clisp.org>
1746
1747         fmod* tests: More tests.
1748         * tests/test-fmod.h: New file.
1749         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1750         (main): Invoke test_function.
1751         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1752         (main): Invoke test_function.
1753         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1754         (main): Invoke test_function.
1755         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1756         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1757         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1758         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1759         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1760         (Depends-on): Add 'float'.
1761         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1762
1763 2012-03-03  Bruno Haible  <bruno@clisp.org>
1764
1765         rint* tests: More tests.
1766         * tests/test-rint.h: New file, partially extracted from
1767         tests/test-rintl.c.
1768         * tests/test-rint.c: Include test-rint.h.
1769         (main): Invoke test_function.
1770         * tests/test-rintf.c: Include test-rint.h.
1771         (main): Invoke test_function.
1772         * tests/test-rintl.c: Include test-rint.h.
1773         (main): Invoke test_function.
1774         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1775         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1776         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1777         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1778         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1779         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1780
1781 2012-03-03  Bruno Haible  <bruno@clisp.org>
1782
1783         modf* tests: More tests.
1784         * tests/test-modf.h: New file.
1785         * tests/test-modf.c: Include <float.h> and test-modf.h.
1786         (main): Invoke test_function.
1787         * tests/test-modff.c: Include <float.h> and test-modf.h.
1788         (main): Invoke test_function.
1789         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1790         (main): Invoke test_function.
1791         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1792         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1793         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1794         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1795         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1796         (Depends-on): Add 'float'.
1797         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1798
1799 2012-03-03  Bruno Haible  <bruno@clisp.org>
1800
1801         fabs* tests: More tests.
1802         * tests/test-fabs.h: New file, partially extracted from
1803         tests/test-fabsl.c.
1804         * tests/test-fabs.c (RANDOM): New macro.
1805         * tests/test-fabsf.c (RANDOM): New macro.
1806         * tests/test-fabsl.c (RANDOM): New macro.
1807         * modules/fabs-tests (Files): Add tests/randomd.c.
1808         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1809         * modules/fabsf-tests (Files): Add tests/randomf.c.
1810         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1811         * modules/fabsl-tests (Files): Add tests/randoml.c.
1812         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1813
1814 2012-03-03  Bruno Haible  <bruno@clisp.org>
1815
1816         ldexp* tests: More tests.
1817         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1818         * tests/test-ldexp.c (RANDOM): New macro.
1819         * tests/test-ldexpf.c (RANDOM): New macro.
1820         * tests/test-ldexpl.c (RANDOM): New macro.
1821         * modules/ldexp-tests (Files): Add tests/randomd.c.
1822         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1823         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1824         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1825         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1826         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1827
1828 2012-03-03  Bruno Haible  <bruno@clisp.org>
1829
1830         frexp* tests: More tests.
1831         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1832         * tests/test-frexp.c (RANDOM): New macro.
1833         * tests/test-frexpf.c (RANDOM): New macro.
1834         * tests/test-frexpl.c (RANDOM): New macro.
1835         * modules/frexp-tests (Files): Add tests/randomd.c.
1836         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1837         * modules/frexpf-tests (Files): Add tests/randomf.c.
1838         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1839         * modules/frexpl-tests (Files): Add tests/randoml.c.
1840         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1841
1842 2012-03-03  Bruno Haible  <bruno@clisp.org>
1843
1844         Support for pseudo-random numbers in tests.
1845         * tests/randomf.c: New file.
1846         * tests/randomd.c: New file.
1847         * tests/randoml.c: New file.
1848         * tests/macros.h (randomf, randomd, randoml): New declarations.
1849
1850 2012-03-03  Bruno Haible  <bruno@clisp.org>
1851
1852         frexp* tests: Refactor.
1853         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1854         * tests/test-frexp.c: Include and use it.
1855         * tests/test-frexpf.c: Likewise.
1856         * tests/test-frexpl.c: Likewise.
1857         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1858         * modules/frexpf-tests (Files): Likewise.
1859         * modules/frexpl-tests (Files): Likewise.
1860
1861 2012-03-02  Jim Meyering  <meyering@redhat.com>
1862
1863         maint: don't specify XZ_OPT=-9ev in dist-related rule
1864         Using xz's -9 option is warranted only if you have a very large
1865         tarball (see xz's documentation for the sizes vs. presets), and
1866         requires 64MiB of memory at decompression time.
1867         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1868         Automake's default of just "-e" is fine.  Override on a
1869         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1870
1871 2012-03-01  Eric Blake  <eblake@redhat.com>
1872
1873         maint.mk: allow announcement for non-gnulib project
1874         * maint.mk (announcement): Skip gnulib version if not used.
1875
1876 2012-03-01  Jim Meyering  <meyering@redhat.com>
1877
1878         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1879         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1880         envvar settings cannot interfere.  Otherwise, setting envvars like
1881         prohibit=foo require=bar, etc. would cause spurious test failures.
1882
1883 2012-03-01  Eric Blake  <eblake@redhat.com>
1884
1885         maint.mk: add per-line exclusions to prohibitions
1886         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1887         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1888         (sc_const_long_option): Use it.
1889
1890 2012-03-01  Bruno Haible  <bruno@clisp.org>
1891
1892         Tests for module 'expl-ieee'.
1893         * modules/expl-ieee-tests: New file.
1894         * tests/test-expl-ieee.c: New file.
1895
1896         New module 'expl-ieee'.
1897         * modules/expl-ieee: New file.
1898
1899         Tests for module 'exp-ieee'.
1900         * modules/exp-ieee-tests: New file.
1901         * tests/test-exp-ieee.c: New file.
1902
1903         New module 'exp-ieee'.
1904         * modules/exp-ieee: New file.
1905
1906         Tests for module 'expf-ieee'.
1907         * modules/expf-ieee-tests: New file.
1908         * tests/test-expf-ieee.c: New file.
1909         * tests/test-exp-ieee.h: New file.
1910
1911         New module 'expf-ieee'.
1912         * modules/expf-ieee: New file.
1913
1914 2012-02-29  Bruno Haible  <bruno@clisp.org>
1915
1916         cbrtl-ieee: Work around test failure on IRIX 6.5.
1917         * m4/cbrtl-ieee.m4: New file.
1918         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1919         test whether cbrtl works with a minus zero argument. Replace it if not.
1920         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1922         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1923         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1924         (Depends-on): Update conditions.
1925         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1926         m4/signbit.m4.
1927         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1928         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1929         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1930
1931         Tests for module 'cbrtl-ieee'.
1932         * modules/cbrtl-ieee-tests: New file.
1933         * tests/test-cbrtl-ieee.c: New file.
1934
1935         New module 'cbrtl-ieee'.
1936         * modules/cbrtl-ieee: New file.
1937
1938         Tests for module 'cbrt-ieee'.
1939         * modules/cbrt-ieee-tests: New file.
1940         * tests/test-cbrt-ieee.c: New file.
1941
1942         New module 'cbrt-ieee'.
1943         * modules/cbrt-ieee: New file.
1944
1945         Tests for module 'cbrtf-ieee'.
1946         * modules/cbrtf-ieee-tests: New file.
1947         * tests/test-cbrtf-ieee.c: New file.
1948         * tests/test-cbrt-ieee.h: New file.
1949
1950         New module 'cbrtf-ieee'.
1951         * modules/cbrtf-ieee: New file.
1952
1953 2012-02-29  Bruno Haible  <bruno@clisp.org>
1954
1955         cbrtf: Work around bug in IRIX 6.5 system function.
1956         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1957         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1958         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1959         work.
1960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1961         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1962         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1963         (Depends-on): Update conditions.
1964         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1965
1966 2012-02-29  Bruno Haible  <bruno@clisp.org>
1967
1968         Tests for module 'cbrtl'.
1969         * modules/cbrtl-tests: New file.
1970         * tests/test-cbrtl.c: New file.
1971
1972         New module 'cbrtl'.
1973         * lib/math.in.h (cbrtl): New declaration.
1974         * lib/cbrtl.c: New file.
1975         * m4/cbrtl.m4: New file.
1976         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1978         HAVE_DECL_CBRTL.
1979         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1980         HAVE_DECL_CBRTL.
1981         * modules/cbrtl: New file.
1982         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1983         * doc/posix-functions/cbrtl.texi: Mention the new module.
1984
1985 2012-02-29  Bruno Haible  <bruno@clisp.org>
1986
1987         Tests for module 'cbrtf'.
1988         * modules/cbrtf-tests: New file.
1989         * tests/test-cbrtf.c: New file.
1990
1991         New module 'cbrtf'.
1992         * lib/math.in.h (cbrtf): New declaration.
1993         * lib/cbrtf.c: New file.
1994         * m4/cbrtf.m4: New file.
1995         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1997         HAVE_DECL_CBRTF.
1998         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1999         HAVE_DECL_CBRTF.
2000         * modules/cbrtf: New file.
2001         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2002         * doc/posix-functions/cbrtf.texi: Mention the new module.
2003
2004 2012-02-29  Bruno Haible  <bruno@clisp.org>
2005
2006         cbrt: Provide replacement on MSVC and Minix.
2007         * lib/math.in.h (cbrt): New declaration.
2008         * lib/cbrt.c: New file.
2009         * m4/cbrt.m4: New file.
2010         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2012         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2013         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2014         (Depends-on): Add dependencies.
2015         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2016         * tests/test-math-c++.cc: Check the declaration of cbrt.
2017         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2018         replacement.
2019
2020 2012-02-29  Bruno Haible  <bruno@clisp.org>
2021
2022         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2023         * m4/hypotl-ieee.m4: New file.
2024         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2025         test whether hypotl works with mixed NaN and Infinity arguments.
2026         Replace it if not.
2027         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2029         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2030         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2031         (Depends-on): Update conditions.
2032         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2033         (Depends-on): Add hypot-ieee.
2034         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2035         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2036
2037         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2038         * m4/hypotf-ieee.m4: New file.
2039         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2040         test whether hypotf works with mixed NaN and Infinity arguments.
2041         Replace it if not.
2042         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2043         (Depends-on): Add hypot-ieee.
2044         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2045         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2046
2047         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2048         * lib/math.in.h (hypot): New declaration.
2049         * lib/hypot.c: New file.
2050         * m4/hypot-ieee.m4: New file.
2051         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2052         whether hypot works with mixed NaN and Infinity arguments. Replace it
2053         if not.
2054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2055         REPLACE_HYPOT.
2056         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2057         * modules/hypot (Files): Add lib/hypot.c.
2058         (Depends-on): Add dependencies.
2059         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2060         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2061         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2062         * tests/test-math-c++.cc: Check the declaration of hypot.
2063         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2064
2065         Tests for module 'hypotl-ieee'.
2066         * modules/hypotl-ieee-tests: New file.
2067         * tests/test-hypotl-ieee.c: New file.
2068
2069         New module 'hypotl-ieee'.
2070         * modules/hypotl-ieee: New file.
2071
2072         Tests for module 'hypot-ieee'.
2073         * modules/hypot-ieee-tests: New file.
2074         * tests/test-hypot-ieee.c: New file.
2075
2076         New module 'hypot-ieee'.
2077         * modules/hypot-ieee: New file.
2078
2079         Tests for module 'hypotf-ieee'.
2080         * modules/hypotf-ieee-tests: New file.
2081         * tests/test-hypotf-ieee.c: New file.
2082         * tests/test-hypot-ieee.h: New file.
2083
2084         New module 'hypotf-ieee'.
2085         * modules/hypotf-ieee: New file.
2086
2087 2012-02-29  Bruno Haible  <bruno@clisp.org>
2088
2089         Remove unused variables.
2090         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2091         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2092         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2093         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2094
2095 2012-02-29  Eric Blake  <eblake@redhat.com>
2096
2097         termios: fix pid_t always, not just for tcgetsid
2098         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2099         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2100         just when building tcgetsid.
2101
2102 2012-02-29  Bruno Haible  <bruno@clisp.org>
2103
2104         Tests for module 'hypotl'.
2105         * modules/hypotl-tests: New file.
2106         * tests/test-hypotl.c: New file.
2107
2108         New module 'hypotl'.
2109         * lib/math.in.h (hypotl): New declaration.
2110         * lib/hypotl.c: New file.
2111         * m4/hypotl.m4: New file.
2112         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2114         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2115         * modules/hypotl: New file.
2116         * tests/test-math-c++.cc: Check the hypotl declaration.
2117         * doc/posix-functions/hypotl.texi: Mention the new module.
2118
2119 2012-02-29  Eric Blake  <eblake@redhat.com>
2120
2121         tcgetsid: fix cygwin header bug
2122         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2123
2124         docs: update cygwin progress
2125         * doc/posix-functions/llround.texi (llround): Added in cygwin
2126         1.7.8.
2127         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2128         * doc/glibc-functions/program_invocation_name.texi
2129         (program_invocation_name): Likewise.
2130         * doc/glibc-functions/program_invocation_short_name.texi
2131         (program_invocation_short_name): Likewise.
2132         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2133         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2134         Likewise.
2135         * doc/posix-functions/pthread_spin_destroy.texi
2136         (pthread_spin_destroy): Added in cygwin 1.7.10.
2137         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2138         Likewise.
2139         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2140         Likewise.
2141         * doc/posix-functions/pthread_spin_trylock.texi
2142         (pthread_spin_trylock): Likewise.
2143         * doc/posix-functions/pthread_spin_unlock.texi
2144         (pthread_spin_unlock): Likewise.
2145         * doc/posix-functions/pthread_setschedprio.texi
2146         (pthread_setschedprio): Likewise.
2147         * doc/posix-functions/pthread_attr_getstack.texi
2148         (pthread_attr_getstack): Likewise.
2149         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2150         (pthread_attr_getstackaddr): Likewise.
2151         * doc/glibc-functions/pthread_getattr_np.texi
2152         (pthread_getattr_np): Likewise.
2153         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2154         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2155         * doc/posix-functions/clock_settime.texi (clock_settime):
2156         Likewise.
2157         * doc/posix-functions/pthread_attr_getguardsize.texi
2158         (pthread_attr_getguardsize): Likewise.
2159         * doc/posix-functions/pthread_attr_setguardsize.texi
2160         (pthread_attr_setguardsize): Likewise.
2161         * doc/posix-functions/pthread_attr_setstack.texi
2162         (pthread_attr_setstack): Likewise.
2163         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2164         (pthread_attr_setstackaddr): Likewise.
2165         * doc/posix-functions/clock_getcpuclockid.texi
2166         (clock_getcpuclockid): Likewise.
2167         * doc/posix-functions/pthread_getcpuclockid.texi
2168         (pthread_getcpuclockid): Likewise.
2169         * doc/glibc-functions/error.texi (error): Likewise.
2170         * doc/glibc-functions/error_at_line.texi (error_at_line):
2171         Likewise.
2172         * doc/glibc-functions/error_message_count.texi
2173         (error_message_count): Likewise.
2174         * doc/glibc-functions/error_one_per_line.texi
2175         (error_one_per_line): Likewise.
2176         * doc/glibc-functions/error_print_progname.texi
2177         (error_print_progname): Likewise.
2178         * doc/posix-functions/pthread_condattr_getclock.texi
2179         (pthread_condattr_getclock): Likewise.
2180         * doc/posix-functions/pthread_condattr_setclock.texi
2181         (pthread_condattr_setclock): Likewise.
2182         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2183         Likewise.
2184         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2185         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2186         * doc/glibc-functions/get_current_dir_name.texi
2187         (get_current_dir_name): Likewise.
2188         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2189         Likewise.
2190         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2191         wrong return type.
2192         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2193         1.7.11.
2194
2195 2012-02-29  Bruno Haible  <bruno@clisp.org>
2196
2197         Tests for module 'hypotf'.
2198         * modules/hypotf-tests: New file.
2199         * tests/test-hypotf.c: New file.
2200
2201         New module 'hypotf'.
2202         * lib/math.in.h (hypotf): New declaration.
2203         * lib/hypotf.c: New file.
2204         * m4/hypotf.m4: New file.
2205         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2207         REPLACE_HYPOTF.
2208         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2209         REPLACE_HYPOTF.
2210         * modules/hypotf: New file.
2211         * tests/test-math-c++.cc: Check the hypotf declaration.
2212         * doc/posix-functions/hypotf.texi: Mention the new module.
2213
2214         hypot: Prepare for hypotf module.
2215         * m4/hypot.m4: New file.
2216         * modules/hypot (Files): Add m4/hypot.m4.
2217         (configure.ac): Invoke gl_FUNC_HYPOT.
2218
2219 2012-02-29  Bruno Haible  <bruno@clisp.org>
2220
2221         hypot tests: More tests.
2222         * tests/test-hypot.c: Include <float.h>.
2223         (main): Add tests about overflow and underflow.
2224
2225 2012-02-29  Bruno Haible  <bruno@clisp.org>
2226
2227         math code: Add comments.
2228         * lib/acosl.c: Add comment about related glibc source files.
2229         * lib/asinl.c: Likewise.
2230         * lib/atanl.c: Likewise.
2231         * lib/expl.c: Likewise.
2232         * lib/logl.c: Likewise.
2233         * lib/sincosl.c: Likewise.
2234         * lib/sinl.c: Likewise.
2235         * lib/tanl.c: Likewise.
2236         * lib/trigl.c: Likewise.
2237         * lib/cosl.c: Likewise. Fix comments.
2238
2239 2012-02-28  Bruno Haible  <bruno@clisp.org>
2240
2241         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2242         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2243         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2244         HUGE_VALL are defined.
2245         (numeric_equald): Renamed from numeric_equal.
2246         (numeric_equalf, numeric_equall): New functions.
2247         (main): Check also HUGE_VALF, HUGE_VALL.
2248         * modules/math-tests (Files): Add tests/macros.h.
2249         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2250         HUGE_VALL.
2251
2252 2012-02-28  Bruno Haible  <bruno@clisp.org>
2253
2254         doc: Move ISO C11 feature notes into POSIX chapters.
2255         * doc/posix-functions/aligned_alloc.texi: Renamed from
2256         doc/glibc-functions/aligned_alloc.texi.
2257         * doc/posix-functions/quick_exit.texi: Renamed from
2258         doc/glibc-functions/quick_exit.texi.
2259         * doc/posix-headers/uchar.texi: Renamed from
2260         doc/glibc-headers/uchar.texi.
2261         * doc/posix-functions/c16rtomb.texi: Renamed from
2262         doc/glibc-functions/c16rtomb.texi.
2263         * doc/posix-functions/c32rtomb.texi: Renamed from
2264         doc/glibc-functions/c32rtomb.texi.
2265         * doc/posix-functions/mbrtoc16.texi: Renamed from
2266         doc/glibc-functions/mbrtoc16.texi.
2267         * doc/posix-functions/mbrtoc32.texi: Renamed from
2268         doc/glibc-functions/mbrtoc32.texi.
2269         * doc/gnulib.texi: Update.
2270         (Glibc uchar.h): Remove section.
2271         Suggested by Eric Blake.
2272
2273 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2274
2275         stdnoreturn: port to MSVC better
2276         MSVC standard headers use __declspec(noreturn), so #define noreturn
2277         to empty on that platform.  Reported by Bruno Haible in
2278         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2279         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2280         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2281
2282 2012-02-28  Bruno Haible  <bruno@clisp.org>
2283
2284         doc: Mention new glibc headers and functions.
2285         * doc/glibc-headers/uchar.texi: New file.
2286         * doc/glibc-functions/aligned_alloc.texi: New file.
2287         * doc/glibc-functions/c16rtomb.texi: New file.
2288         * doc/glibc-functions/c32rtomb.texi: New file.
2289         * doc/glibc-functions/clock_adjtime.texi: New file.
2290         * doc/glibc-functions/fanotify_init.texi: New file.
2291         * doc/glibc-functions/fanotify_mark.texi: New file.
2292         * doc/glibc-functions/inet6_opt_append.texi: New file.
2293         * doc/glibc-functions/inet6_opt_find.texi: New file.
2294         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2295         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2296         * doc/glibc-functions/inet6_opt_init.texi: New file.
2297         * doc/glibc-functions/inet6_opt_next.texi: New file.
2298         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2299         * doc/glibc-functions/inet6_rth_add.texi: New file.
2300         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2301         * doc/glibc-functions/inet6_rth_init.texi: New file.
2302         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2303         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2304         * doc/glibc-functions/inet6_rth_space.texi: New file.
2305         * doc/glibc-functions/login.texi: New file.
2306         * doc/glibc-functions/mbrtoc16.texi: New file.
2307         * doc/glibc-functions/mbrtoc32.texi: New file.
2308         * doc/glibc-functions/name_to_handle_at.texi: New file.
2309         * doc/glibc-functions/ntp_gettimex.texi: New file.
2310         * doc/glibc-functions/open_by_handle_at.texi: New file.
2311         * doc/glibc-functions/prlimit.texi: New file.
2312         * doc/glibc-functions/process_vm_readv.texi: New file.
2313         * doc/glibc-functions/process_vm_writev.texi: New file.
2314         * doc/glibc-functions/recvmmsg.texi: New file.
2315         * doc/glibc-functions/scandirat.texi: New file.
2316         * doc/glibc-functions/sendmmsg.texi: New file.
2317         * doc/glibc-functions/setns.texi: New file.
2318         * doc/glibc-functions/timespec_get.texi: New file.
2319         * doc/gnulib.texi: Include them.
2320         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2321         sections.
2322         Reported by Eric Blake.
2323
2324 2012-02-28  Bruno Haible  <bruno@clisp.org>
2325
2326         Avoid compilation errors with MSVC option -fp:strict.
2327         * lib/floor.c: Use MSVC specific pragma fenv_access.
2328         * lib/ceil.c: Likewise.
2329         * lib/trunc.c: Likewise.
2330         * lib/round.c: Likewise.
2331         * lib/rint.c: Likewise.
2332         * lib/fma.c: Likewise.
2333         * lib/integer_length.c: Likewise.
2334         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2336         * tests/test-floor2.c: Likewise.
2337         * tests/test-floorf2.c: Likewise.
2338         * tests/test-ceil2.c: Likewise.
2339         * tests/test-ceilf2.c: Likewise.
2340         * tests/test-trunc2.c: Likewise.
2341         * tests/test-truncf2.c: Likewise.
2342         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2343
2344 2012-02-27  Bruno Haible  <bruno@clisp.org>
2345
2346         Tests for module 'sqrtl-ieee'.
2347         * modules/sqrtl-ieee-tests: New file.
2348         * tests/test-sqrtl-ieee.c: New file.
2349
2350         New module 'sqrtl-ieee'.
2351         * modules/sqrtl-ieee: New file.
2352
2353         Tests for module 'sqrt-ieee'.
2354         * modules/sqrt-ieee-tests: New file.
2355         * tests/test-sqrt-ieee.c: New file.
2356
2357         New module 'sqrt-ieee'.
2358         * modules/sqrt-ieee: New file.
2359
2360         Tests for module 'sqrtf-ieee'.
2361         * modules/sqrtf-ieee-tests: New file.
2362         * tests/test-sqrtf-ieee.c: New file.
2363         * tests/test-sqrt-ieee.h: New file.
2364
2365         New module 'sqrtf-ieee'.
2366         * modules/sqrtf-ieee: New file.
2367
2368 2012-02-27  Bruno Haible  <bruno@clisp.org>
2369
2370         remainderl-ieee: Work around test failure on OSF/1.
2371         * m4/remainderl-ieee.m4: New file.
2372         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2373         present, test whether remainderl works with a zero second argument.
2374         Replace it if not.
2375         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2377         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2378         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2379         (Depends-on): Update conditions.
2380         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2381         (Depends-on): Add remainder-ieee.
2382         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2383         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2384         module.
2385
2386         remainderf-ieee: Work around test failure on OSF/1.
2387         * m4/remainderf-ieee.m4: New file.
2388         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2389         present, test whether remainderf works with a zero second argument.
2390         Replace it if not.
2391         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2393         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2394         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2395         (Depends-on): Update conditions.
2396         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2397         (Depends-on): Add remainder-ieee.
2398         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2399         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2400         module.
2401
2402         remainder-ieee: Work around test failure on OSF/1.
2403         * m4/remainder-ieee.m4: New file.
2404         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2405         present, test whether remainder works with a zero second argument.
2406         Replace it if not.
2407         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2409         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2410         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2411         (Depends-on): Update dependencies.
2412         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2413         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2414         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2415
2416         Tests for module 'remainderl-ieee'.
2417         * modules/remainderl-ieee-tests: New file.
2418         * tests/test-remainderl-ieee.c: New file.
2419
2420         New module 'remainderl-ieee'.
2421         * modules/remainderl-ieee: New file.
2422
2423         Tests for module 'remainder-ieee'.
2424         * modules/remainder-ieee-tests: New file.
2425         * tests/test-remainder-ieee.c: New file.
2426
2427         New module 'remainder-ieee'.
2428         * modules/remainder-ieee: New file.
2429
2430         Tests for module 'remainderf-ieee'.
2431         * modules/remainderf-ieee-tests: New file.
2432         * tests/test-remainderf-ieee.c: New file.
2433         * tests/test-remainder-ieee.h: New file.
2434
2435         New module 'remainderf-ieee'.
2436         * modules/remainderf-ieee: New file.
2437
2438 2012-02-27  Bruno Haible  <bruno@clisp.org>
2439
2440         modff, modfl: Fix configure syntax error.
2441         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2442         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2443
2444 2012-02-27  Bruno Haible  <bruno@clisp.org>
2445
2446         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2447         * m4/fmodl-ieee.m4: New file.
2448         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2449         whether fmodl works with zero arguments. Replace it if not.
2450         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2451         (Depends-on): Add fmod-ieee.
2452         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2453         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2454
2455         fmodf-ieee: Work around test failure on OSF/1.
2456         * m4/fmodf-ieee.m4: New file.
2457         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2458         whether fmodf works with zero arguments. Replace it if not.
2459         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2461         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2462         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2463         (Depends-on): Update dependencies.
2464         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2465         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2466         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2467
2468         fmodf-ieee: Work around test failure on MSVC 9.
2469         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2470         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2471
2472         fmod-ieee: Work around test failures on OSF/1, mingw.
2473         * m4/fmod-ieee.m4: New file.
2474         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2475         whether fmod works with zero arguments. Replace it if not.
2476         * lib/math.in.h (fmod): New declaration.
2477         * lib/fmod.c: New file.
2478         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2480         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2481         * modules/fmod (Files): Add lib/fmod.c.
2482         (Depends-on): Add math, isinf, trunc, fma.
2483         (configure.ac): Arrange to compile lib/fmod.c if needed.
2484         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2485         m4/signbit.m4.
2486         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2487         * tests/test-math-c++.cc: Check the declaration of fmod.
2488         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2489
2490         fmodl-ieee: Fix test failures.
2491         * lib/fmodl.c (fmodl): Treat Inf specially.
2492         * modules/fmodl (Depends-on): Add isinf.
2493
2494         Tests for module 'fmodl-ieee'.
2495         * modules/fmodl-ieee-tests: New file.
2496         * tests/test-fmodl-ieee.c: New file.
2497
2498         New module 'fmodl-ieee'.
2499         * modules/fmodl-ieee: New file.
2500
2501         Tests for module 'fmod-ieee'.
2502         * modules/fmod-ieee-tests: New file.
2503         * tests/test-fmod-ieee.c: New file.
2504
2505         New module 'fmod-ieee'.
2506         * modules/fmod-ieee: New file.
2507
2508         Tests for module 'fmodf-ieee'.
2509         * modules/fmodf-ieee-tests: New file.
2510         * tests/test-fmodf-ieee.c: New file.
2511         * tests/test-fmod-ieee.h: New file.
2512
2513         New module 'fmodf-ieee'.
2514         * modules/fmodf-ieee: New file.
2515
2516 2012-02-27  Bruno Haible  <bruno@clisp.org>
2517
2518         Tests for module 'rintl-ieee'.
2519         * modules/rintl-ieee-tests: New file.
2520         * tests/test-rintl-ieee.c: New file.
2521
2522         New module 'rintl-ieee'.
2523         * modules/rintl-ieee: New file.
2524
2525         Tests for module 'rint-ieee'.
2526         * modules/rint-ieee-tests: New file.
2527         * tests/test-rint-ieee.c: New file.
2528
2529         New module 'rint-ieee'.
2530         * modules/rint-ieee: New file.
2531
2532         Tests for module 'rintf-ieee'.
2533         * modules/rintf-ieee-tests: New file.
2534         * tests/test-rintf-ieee.c: New file.
2535         * tests/test-rint-ieee.h: New file.
2536
2537         New module 'rintf-ieee'.
2538         * modules/rintf-ieee: New file.
2539
2540 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2541
2542         regex: re_search etc. should return -2 when memory exhausted
2543         This bug was uncovered when testing 'grep'.  Without the fix,
2544         re_search and friends return -1 when memory is exhausted, but -1
2545         means no match, and this causes grep to falsely report no-match
2546         instead of memory-exhaustion.  See
2547         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2548         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2549         trouble; this can occur if re_search_internal ran out of memory.
2550
2551 2012-02-26  Bruno Haible  <bruno@clisp.org>
2552
2553         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2554         * m4/modfl-ieee.m4: New file.
2555         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2556         whether modfl works with Inf. Replace it if not.
2557         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2559         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2560         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2561         (Depends-on): Update dependencies.
2562         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2563         m4/signbit.m4.
2564         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2565         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2566
2567         modfl-ieee: Fix dependencies.
2568         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2569
2570         modfl-ieee: Fix test failures.
2571         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2572         * modules/modfl (Depends-on): Add isfinite, isinf.
2573
2574         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2575         * m4/modff-ieee.m4: New file.
2576         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2577         whether modff works with NaN and Inf. Replace it if not.
2578         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2580         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2581         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2582         (Depends-on): Update dependencies.
2583         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2584         m4/signbit.m4.
2585         (Depends-on): Add modf-ieee.
2586         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2587         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2588
2589         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2590         * m4/modf-ieee.m4: New file.
2591         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2592         whether modf works with NaN and Inf. Replace it if not.
2593         * lib/math.in.h (modf): New declaration.
2594         * lib/modf.c: New file.
2595         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2597         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2598         * modules/modf (Files): Add lib/modf.c.
2599         (Depends-on): Add math, isfinite, trunc, isinf.
2600         (configure.ac): Addrange to compile lib/modf.c if needed.
2601         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2602         m4/signbit.m4.
2603         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2604         * tests/test-math-c++.cc: Check the declaration of modf.
2605         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2606
2607         Tests for module 'modfl-ieee'.
2608         * modules/modfl-ieee-tests: New file.
2609         * tests/test-modfl-ieee.c: New file.
2610
2611         New module 'modfl-ieee'.
2612         * modules/modfl-ieee: New file.
2613
2614         Tests for module 'modf-ieee'.
2615         * modules/modf-ieee-tests: New file.
2616         * tests/test-modf-ieee.c: New file.
2617
2618         New module 'modf-ieee'.
2619         * modules/modf-ieee: New file.
2620
2621         Tests for module 'modff-ieee'.
2622         * modules/modff-ieee-tests: New file.
2623         * tests/test-modff-ieee.c: New file.
2624         * tests/test-modf-ieee.h: New file.
2625
2626         New module 'modff-ieee'.
2627         * modules/modff-ieee: New file.
2628
2629 2012-02-26  Bruno Haible  <bruno@clisp.org>
2630
2631         Tests for module 'fabsl-ieee'.
2632         * modules/fabsl-ieee-tests: New file.
2633         * tests/test-fabsl-ieee.c: New file.
2634
2635         New module 'fabsl-ieee'.
2636         * modules/fabsl-ieee: New file.
2637
2638         Tests for module 'fabs-ieee'.
2639         * modules/fabs-ieee-tests: New file.
2640         * tests/test-fabs-ieee.c: New file.
2641
2642         New module 'fabs-ieee'.
2643         * modules/fabs-ieee: New file.
2644
2645         Tests for module 'fabsf-ieee'.
2646         * modules/fabsf-ieee-tests: New file.
2647         * tests/test-fabsf-ieee.c: New file.
2648         * tests/test-fabs-ieee.h: New file.
2649
2650         New module 'fabsf-ieee'.
2651         * modules/fabsf-ieee: New file.
2652
2653 2012-02-26  Bruno Haible  <bruno@clisp.org>
2654
2655         Tests for module 'fmal-ieee'.
2656         * modules/fmal-ieee-tests: New file.
2657         * tests/test-fmal-ieee.c: New file.
2658
2659         New module 'fmal-ieee'.
2660         * modules/fmal-ieee: New file.
2661
2662         Tests for module 'fma-ieee'.
2663         * modules/fma-ieee-tests: New file.
2664         * tests/test-fma-ieee.c: New file.
2665
2666         New module 'fma-ieee'.
2667         * modules/fma-ieee: New file.
2668
2669         Tests for module 'fmaf-ieee'.
2670         * modules/fmaf-ieee-tests: New file.
2671         * tests/test-fmaf-ieee.c: New file.
2672         * tests/test-fma-ieee.h: New file.
2673
2674         New module 'fmaf-ieee'.
2675         * modules/fmaf-ieee: New file.
2676
2677 2012-02-26  Bruno Haible  <bruno@clisp.org>
2678
2679         Tests for module 'ldexpl-ieee'.
2680         * modules/ldexpl-ieee-tests: New file.
2681         * tests/test-ldexpl-ieee.c: New file.
2682
2683         New module 'ldexpl-ieee'.
2684         * modules/ldexpl-ieee: New file.
2685
2686         Tests for module 'ldexp-ieee'.
2687         * modules/ldexp-ieee-tests: New file.
2688         * tests/test-ldexp-ieee.c: New file.
2689
2690         New module 'ldexp-ieee'.
2691         * modules/ldexp-ieee: New file.
2692
2693         Tests for module 'ldexpf-ieee'.
2694         * modules/ldexpf-ieee-tests: New file.
2695         * tests/test-ldexpf-ieee.c: New file.
2696         * tests/test-ldexp-ieee.h: New file.
2697
2698         New module 'ldexpf-ieee'.
2699         * modules/ldexpf-ieee: New file.
2700
2701 2012-02-26  Bruno Haible  <bruno@clisp.org>
2702
2703         Refactor frexp*-ieee tests.
2704         * tests/test-frexp-ieee.h: New file.
2705         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2706         (main): Just call test_function.
2707         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2708         (main): Just call test_function.
2709         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2710         (main): Just call test_function.
2711         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2712         * modules/frexp-ieee-tests (Files): Likewise.
2713         * modules/frexpl-ieee-tests (Files): Likewise.
2714
2715         Tests for module 'frexpl-ieee'.
2716         * modules/frexpl-ieee-tests: New file.
2717         * tests/test-frexpl-ieee.c: New file.
2718
2719         New module 'frexpl-ieee'.
2720         * modules/frexpl-ieee: New file.
2721
2722         Tests for module 'frexp-ieee'.
2723         * modules/frexp-ieee-tests: New file.
2724         * tests/test-frexp-ieee.c: New file.
2725
2726         New module 'frexp-ieee'.
2727         * modules/frexp-ieee: New file.
2728
2729         Tests for module 'frexpf-ieee'.
2730         * modules/frexpf-ieee-tests: New file.
2731         * tests/test-frexpf-ieee.c: New file.
2732
2733         New module 'frexpf-ieee'.
2734         * modules/frexpf-ieee: New file.
2735
2736 2012-02-26  Bruno Haible  <bruno@clisp.org>
2737
2738         roundl-ieee tests: More tests.
2739         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2740         (main): Add tests for [MX] shaded specification in POSIX.
2741         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2742         (Depends-on): Add isnanl-nolibm.
2743
2744         round-ieee tests: More tests.
2745         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2746         (main): Add tests for [MX] shaded specification in POSIX.
2747         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2748         (Depends-on): Add isnand-nolibm.
2749
2750         roundf-ieee tests: More tests.
2751         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2752         (main): Add tests for [MX] shaded specification in POSIX.
2753         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2754         (Depends-on): Add isnanf-nolibm.
2755
2756         truncl-ieee tests: More tests.
2757         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2758         (main): Add tests for [MX] shaded specification in POSIX.
2759         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2760         (Depends-on): Add isnanl-nolibm.
2761
2762         trunc-ieee tests: More tests.
2763         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2764         (main): Add tests for [MX] shaded specification in POSIX.
2765         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2766         (Depends-on): Add isnand-nolibm.
2767
2768         truncf-ieee tests: More tests.
2769         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2770         (main): Add tests for [MX] shaded specification in POSIX.
2771         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2772         (Depends-on): Add isnanf-nolibm.
2773
2774         ceill-ieee tests: More tests.
2775         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2776         (main): Add tests for [MX] shaded specification in POSIX.
2777         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2778         (Depends-on): Add isnanl-nolibm.
2779
2780         ceil-ieee tests: More tests.
2781         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2782         (main): Add tests for [MX] shaded specification in POSIX.
2783         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2784         (Depends-on): Add isnand-nolibm.
2785
2786         ceilf-ieee tests: More tests.
2787         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2788         (main): Add tests for [MX] shaded specification in POSIX.
2789         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2790         (Depends-on): Add isnanf-nolibm.
2791
2792         floorl-ieee tests: More tests.
2793         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2794         (main): Add tests for [MX] shaded specification in POSIX.
2795         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2796         (Depends-on): Add isnanl-nolibm.
2797
2798         floor-ieee tests: More tests.
2799         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2800         (main): Add tests for [MX] shaded specification in POSIX.
2801         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2802         (Depends-on): Add isnand-nolibm.
2803
2804         floorf-ieee tests: More tests.
2805         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2806         (main): Add tests for [MX] shaded specification in POSIX.
2807         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2808         (Depends-on): Add isnanf-nolibm.
2809
2810 2012-02-26  Bruno Haible  <bruno@clisp.org>
2811
2812         fpieee: More comments.
2813         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2814
2815 2012-02-25  Bruno Haible  <bruno@clisp.org>
2816
2817         Tests for module 'log10l'.
2818         * modules/log10l-tests: New file.
2819         * tests/test-log10l.c: New file.
2820         * tests/test-math-c++.cc: Check the declaration of log10l.
2821
2822         New module 'log10l'.
2823         * lib/math.in.h (log10l): New declaration.
2824         * lib/log10l.c: New file.
2825         * m4/log10l.m4: New file.
2826         * modules/log10l: New file.
2827         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2829         HAVE_DECL_LOG10L.
2830         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2831         HAVE_DECL_LOG10L.
2832         * doc/posix-functions/log10l.texi: Mention the new module.
2833
2834 2012-02-25  Bruno Haible  <bruno@clisp.org>
2835
2836         fmodl, remainder*: Avoid wrong results due to rounding errors.
2837         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2838         expected bounds.
2839         * lib/remainderf.c (remainderf): Likewise.
2840         * lib/remainder.c (remainder): Likewise.
2841         * lib/remainderl.c (remainderl): Likewise.
2842
2843 2012-02-25  Bruno Haible  <bruno@clisp.org>
2844
2845         Tests for module 'remainderl'.
2846         * modules/remainderl-tests: New file.
2847         * tests/test-remainderl.c: New file.
2848         * tests/test-math-c++.cc: Check the declaration of remainderl.
2849
2850         New module 'remainderl'.
2851         * lib/math.in.h (remainderl): New declaration.
2852         * lib/remainderl.c: New file.
2853         * m4/remainderl.m4: New file.
2854         * modules/remainderl: New file.
2855         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2857         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2858         HAVE_REMAINDERL.
2859         * doc/posix-functions/remainderl.texi: Mention the new module.
2860
2861 2012-02-25  Bruno Haible  <bruno@clisp.org>
2862
2863         Tests for module 'remainderf'.
2864         * modules/remainderf-tests: New file.
2865         * tests/test-remainderf.c: New file.
2866         * tests/test-math-c++.cc: Check the declaration of remainderf.
2867
2868         New module 'remainderf'.
2869         * lib/math.in.h (remainderf): New declaration.
2870         * lib/remainderf.c: New file.
2871         * m4/remainderf.m4: New file.
2872         * modules/remainderf: New file.
2873         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2875         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2876         HAVE_REMAINDERF.
2877         * doc/posix-functions/remainderf.texi: Mention the new module.
2878
2879 2012-02-25  Bruno Haible  <bruno@clisp.org>
2880
2881         remainder: Support for MSVC.
2882         * lib/math.in.h (remainder): New declaration.
2883         * lib/remainder.c: New file.
2884         * m4/remainder.m4: New file.
2885         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2886         (Depends-on): Add math, round, fma.
2887         (configure.ac): Use results of gl_FUNC_REMAINDER.
2888         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2890         HAVE_DECL_REMAINDER.
2891         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2892         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2893         * tests/test-math-c++.cc: Check the declaration of remainder.
2894         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2895         problems are fixed.
2896
2897 2012-02-25  Bruno Haible  <bruno@clisp.org>
2898
2899         Tests for module 'fmodl'.
2900         * modules/fmodl-tests: New file.
2901         * tests/test-fmodl.c: New file.
2902         * tests/test-math-c++.cc: Check the declaration of fmodl.
2903
2904         New module 'fmodl'.
2905         * lib/math.in.h (fmodl): New declaration.
2906         * lib/fmodl.c: New file.
2907         * m4/fmodl.m4: New file.
2908         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2910         REPLACE_FMODL.
2911         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2912         REPLACE_FMODL.
2913         * modules/fmodl: New file.
2914         * doc/posix-functions/fmodl.texi: Mention the new module.
2915
2916 2012-02-25  Bruno Haible  <bruno@clisp.org>
2917
2918         Tests for module 'modfl'.
2919         * modules/modfl-tests: New file.
2920         * tests/test-modfl.c: New file.
2921         * tests/test-math-c++.cc: Check the declaration of modfl.
2922
2923         New module 'modfl'.
2924         * lib/math.in.h (modfl): New declaration.
2925         * lib/modfl.c: New file.
2926         * m4/modfl.m4: New file.
2927         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2929         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2930         * modules/modfl: New file.
2931         * doc/posix-functions/modfl.texi: Mention the new module.
2932
2933 2012-02-25  Bruno Haible  <bruno@clisp.org>
2934
2935         Tests for module 'fabsl'.
2936         * modules/fabsl-tests: New file.
2937         * tests/test-fabsl.c: New file.
2938         * tests/test-math-c++.cc: Check the declaration of fabsl.
2939
2940         New module 'fabsl'.
2941         * lib/math.in.h (fabsl): New declaration.
2942         * lib/fabsl.c: New file.
2943         * m4/fabsl.m4: New file.
2944         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2946         REPLACE_FABSL.
2947         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2948         REPLACE_FABSL.
2949         * modules/fabsl: New file.
2950         * doc/posix-functions/fabsl.texi: Mention the new module.
2951
2952 2012-02-25  Bruno Haible  <bruno@clisp.org>
2953
2954         fabs tests: More tests.
2955         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2956         (zero): New variable.
2957         (main): Add tests for signed zero.
2958         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2959
2960         fabsf tests: More tests.
2961         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2962         (zero): New variable.
2963         (main): Add tests for signed zero.
2964         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2965
2966 2012-02-24  Bruno Haible  <bruno@clisp.org>
2967
2968         atanl: Provide function definition on MSVC.
2969         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2970         function pointer.
2971         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2972
2973 2012-02-24  Bruno Haible  <bruno@clisp.org>
2974
2975         acosl: Provide function definition on MSVC.
2976         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2977         function pointer.
2978         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2979
2980 2012-02-24  Bruno Haible  <bruno@clisp.org>
2981
2982         asinl: Provide function definition on MSVC.
2983         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2984         function pointer.
2985         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2986
2987 2012-02-24  Bruno Haible  <bruno@clisp.org>
2988
2989         tanl: Provide function definition on MSVC.
2990         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2991         function pointer.
2992         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2993
2994 2012-02-24  Bruno Haible  <bruno@clisp.org>
2995
2996         cosl: Provide function definition on MSVC.
2997         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2998         function pointer.
2999         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3000
3001 2012-02-24  Bruno Haible  <bruno@clisp.org>
3002
3003         sinl: Provide function definition on MSVC.
3004         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3005         function pointer.
3006         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3007
3008 2012-02-24  Bruno Haible  <bruno@clisp.org>
3009
3010         logl: Provide function definition on MSVC.
3011         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3012         function pointer.
3013         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3014
3015 2012-02-24  Bruno Haible  <bruno@clisp.org>
3016
3017         expl: Provide function definition on MSVC.
3018         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3019         function pointer.
3020         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3021
3022 2012-02-24  Bruno Haible  <bruno@clisp.org>
3023
3024         sqrtl: Provide function definition on MSVC.
3025         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3026         a function pointer.
3027         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3028
3029 2012-02-24  Bruno Haible  <bruno@clisp.org>
3030
3031         ceill: Provide function definition on MSVC.
3032         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3033         used as a function pointer.
3034         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3035
3036 2012-02-24  Bruno Haible  <bruno@clisp.org>
3037
3038         floorl: Provide function definition on MSVC.
3039         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3040         used as a function pointer.
3041         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3042
3043 2012-02-24  Bruno Haible  <bruno@clisp.org>
3044
3045         ceilf: Provide function definition on MSVC.
3046         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3047         used as a function pointer.
3048         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3049
3050 2012-02-24  Bruno Haible  <bruno@clisp.org>
3051
3052         floorf: Provide function definition on MSVC.
3053         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3054         used as a function pointer.
3055         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3056
3057 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3058
3059         stdnoreturn: new module
3060         This implements a replacement for C11's <stdnoreturn.h>.
3061         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3062         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3063         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3064         * tests/test-stdnoreturn.c: New files.
3065
3066 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3067
3068         regex: fix false multibyte matches in some regular expressions
3069         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3070         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3071         * lib/regex_internal.c (re_string_skip_chars):
3072         Fix miscomputation of remain_len that may cause incomplete
3073         multi-byte character and false match.
3074
3075 2012-02-24  Jim Meyering  <meyering@redhat.com>
3076
3077         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3078         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3079         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3080         Remove now-unnecessary str''cmp obfuscation.
3081         Suggested by Akim Demaille.
3082
3083 2012-02-24  Bruno Haible  <bruno@clisp.org>
3084
3085         streq: Rename macro.
3086         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3087         * NEWS: Mention the change.
3088         * lib/mbrtowc.c (mbrtowc): Update.
3089         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3090         * lib/wcwidth.c (wcwidth): Update.
3091         Suggested by Akim Demaille and Jim Meyering.
3092
3093 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3094
3095         regex: fix typo in definition of MIN
3096         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3097         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3098
3099 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3100             Bruno Haible  <bruno@clisp.org>
3101
3102         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3103         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3104         entries into a stack-allocated buffer directly.
3105         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3106
3107 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3108             Bruno Haible  <bruno@clisp.org>
3109
3110         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3111
3112          - There were several instances of this pattern:
3113
3114              for (;;) {
3115                n = acl (f, GETACLCNT, 0, NULL);
3116                [ allocate an array A of size N ]
3117                if (acl (f, GETACL, n, a) == n)
3118                  break;
3119              }
3120
3121            This loop might never terminate if some other process is constantly
3122            manipulating the file's ACL.  The loop should be rewritten to
3123            terminate.
3124
3125          - The acl (... GETACLNT ...) call is merely an optimization; its value
3126            is merely a hint as to how big to make the array.  A better
3127            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3128            and just guess a reasonably-big size, growing the size and trying
3129            again if it's not large enough.  This guarantees termination, and
3130            saves a system call.
3131
3132         * lib/acl-internal.h: Include <limits.h>.
3133         (MIN, SIZE_MAX): New macros.
3134         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3135         a stack-allocated buffer, and use malloc if it does not fit. Don't
3136         use GETACLCNT.
3137         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3138
3139 2012-02-19  Bruno Haible  <bruno@clisp.org>
3140
3141         acl: Fix endless loop on Solaris with vxfs.
3142         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3143         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3144         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3145         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3146         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3147         Reported by Bill Jones in
3148         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3149
3150 2012-02-19  Bruno Haible  <bruno@clisp.org>
3151
3152         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3153         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3154         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3155         that this function returns 0 in some more cases.
3156
3157 2012-02-19  Bruno Haible  <bruno@clisp.org>
3158
3159         acl: Update doc references.
3160         * doc/acl-resources.txt: Update links to Solaris documentation.
3161
3162 2012-02-19  Bruno Haible  <bruno@clisp.org>
3163
3164         Fix test failure in many locales on Solaris 11.
3165         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3166         'tr' arguments.
3167         * tests/test-pipe-filter-ii1.c (main): Likewise.
3168         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3169         expressions in the C locale.
3170         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3171         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3172
3173 2012-02-19  Bruno Haible  <bruno@clisp.org>
3174
3175         gnulib-tool: Improve usage message.
3176         * gnulib-tool (func_usage): Move doc of --help and --version to the
3177         section "Operation modes".
3178
3179 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3180
3181         README-release: make it easier to execute commands
3182         * top/README-release: break commands out on to separate lines.
3183
3184 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3185
3186         GNUmakefile: simplify detection of unconfigured trees
3187         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3188         whether the tree make is being run from is already configured or
3189         not.  Related simplifications.
3190
3191 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3192
3193         * gnulib-tool (func_usage): Document --help and --version.
3194
3195 2012-02-11  Jim Meyering  <meyering@redhat.com>
3196
3197         bootstrap: don't exit 0 upon gnulib-tool failure
3198         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3199         its exit status, not 0.
3200
3201 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3202
3203         README-release: various improvements
3204         * top/README-release: Give a command to push changes for the
3205         release.  Add "distcheck" to list of other pre-release checks.
3206         Fix instance of "make stable" which should be "make TYPE".
3207
3208 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3209
3210         maint: replace FSF snail-mail addresses with URLs
3211         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3212         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3213         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3214         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3215         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3216         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3217         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3218         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3219         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3220         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3221         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3222         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3223         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3224         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3225         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3226         * lib/glthread/thread.c, lib/glthread/thread.h:
3227         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3228         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3229         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3230         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3231         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3232         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3233         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3234         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3235         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3236         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3237         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3238         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3239         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3240         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3241         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3242         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3243         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3244         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3245         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3246         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3247         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3248         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3249         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3250         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3251         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3252         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3253         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3254         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3255         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3256         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3257         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3258         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3259         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3260         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3261         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3262         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3263         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3264         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3265         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3266         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3267         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3268         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3269         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3270         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3271         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3272         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3273         * tests/test-poll.c, tests/test-quotearg-simple.c:
3274         * tests/test-quotearg.c, tests/test-quotearg.h:
3275         * tests/test-round-ieee.c, tests/test-round1.c:
3276         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3277         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3278         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3279         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3280         * tests/test-strerror.c, tests/test-strerror_r.c:
3281         * tests/test-strsignal.c, tests/test-strverscmp.c:
3282         * tests/test-xmemdup0.c:
3283         Replace FSF snail mail addresses with URLs, as per GNU coding
3284         standards.  See glibc bug
3285         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3286
3287 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3288
3289         README-release: capitalize a word and split a line
3290         * top/README-release: Fix punctuation and spacing.
3291
3292 2012-02-08  Akim Demaille  <demaille@gostai.com>
3293
3294         fatal-signal: use C prototypes (with explicit void).
3295         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3296         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3297
3298 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3299
3300         regex: spelling fix
3301         * lib/regexec.c: spelling fix
3302
3303         regex: rely on stdint.h for SIZE_MAX
3304         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3305
3306 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3307
3308         regex: merge glibc changes
3309
3310         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3311         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3312         (init_word_char): Work even if bitset words are not exactly 32 or
3313         64 bits wide.  Don't assume there are no padding bits.
3314         * lib/regex.c [_LIBC]: Do not include <config.h>.
3315         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3316         and -Wtype-limits.
3317         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3318         needless disagreement with glibc.  All uses changed.  Define it to
3319         1 only if _GNU_SOURCE, to match glibc.
3320         (_REG_RM_NAME): Remove; no longer needed, since the names in
3321         question are now all protected by __USE_GNU.
3322         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3323         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3324         * lib/regex_internal.h (MIN): New macro.
3325
3326         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3327         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3328
3329         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3330         * lib/regex_internal.c (re_string_fetch_byte_case):
3331         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3332         is miscompiled, and it turns out it is because of an incorrect
3333         attribute on re_string_fetch_byte_case.  Unlike
3334         re_string_peek_byte_case, this one is really not pure, it modifies
3335         memory (increments pstr->cur_idx), and with the pure attribute GCC
3336         assumed it doesn't and it cached the presumed value of
3337         regexp->cur_idx in a variable across the
3338          for (;; ++i)
3339            {
3340              if (i >= BRACKET_NAME_BUF_SIZE)
3341                return REG_EBRACK;
3342              if (token->type == OP_OPEN_CHAR_CLASS)
3343                ch = re_string_fetch_byte_case (regexp);
3344              else
3345                ch = re_string_fetch_byte (regexp);
3346              if (re_string_eoi(regexp))
3347                return REG_EBRACK;
3348              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3349                break;
3350              elem->opr.name[i] = ch;
3351            }
3352
3353         2011-11-29 Andreas Schwab <schwab@redhat.com>
3354         * lib/regcomp.c (build_equiv_class):
3355         Fix access after end of search string in regex matcher.
3356
3357         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3358         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3359
3360         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3361         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3362
3363         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3364         * lib/regcomp.c (parse_branch, parse_sub_exp):
3365         More regex memory leak fixes and tests.
3366         (parse_sub_exp, parse_bracket_exp):
3367         Fix memory leak for some invalid regular expressions.
3368
3369         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3370         * lib/regex_internal.c, lib/regexec.c:
3371         Fix unnecessary overallocation due to incomplete character.  When
3372         incomplete characters are found at the end of a string the code
3373         ran amok and allocated lots of memory.  Stricter limits are now in
3374         place.
3375
3376         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3377         * lib/regex.h: Update documentation.
3378
3379         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3380         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3381
3382         2010-05-05 Andreas Schwab <schwab@redhat.com>
3383         * lib/regexec.c (find_collation_sequence_value):
3384         Fix lookup of collation sequence value during regexp matching.
3385
3386         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3387         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3388
3389         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3390         * lib/regex.h: Cleanup namespace.
3391
3392         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3393         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3394
3395         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3396         * lib/regex_internal.h: Prevent some declarations and definitions
3397         to be seen when used in tests.
3398
3399         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3400         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3401         __libc_lock_* macros if not _LIBC.
3402         (struct re_dfa_t): Add lock.
3403
3404 2012-02-07  Eric Blake  <eblake@redhat.com>
3405
3406         maint.mk: also prohibit lower-case @var@
3407         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3408         lower case, like @top_srcdir@.
3409
3410 2012-02-04  Eric Blake  <eblake@redhat.com>
3411
3412         canonicalize: avoid uninitialized memory use
3413         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3414         random '/' left in dest.
3415         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3416
3417 2012-02-04  Bruno Haible  <bruno@clisp.org>
3418
3419         isatty: Fix test failure of ptsname_r on native Windows.
3420         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3421         and don't set errno.
3422         (isatty): Test first whether fd is valid. Set errno when returning 0.
3423
3424 2012-02-04  Bruno Haible  <bruno@clisp.org>
3425
3426         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3427         * tests/test-spawn-pipe-main.c: Include progname.h.
3428         (main): Invoke set_program_name.
3429         * modules/spawn-pipe-tests (Depends-on): Add progname.
3430
3431         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3432         * tests/test-nonblocking-socket-main.c: Include progname.h.
3433         (main): Invoke set_program_name.
3434         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3435
3436         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3437         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3438         (main): Invoke set_program_name.
3439         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3440
3441 2012-02-04  Eric Blake  <eblake@redhat.com>
3442
3443         canonicalize-lgpl: fix // handling
3444         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3445
3446         canonicalize: fix // handling
3447         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3448         /// to //, since only // is special.
3449
3450 2012-02-04  Bruno Haible  <bruno@clisp.org>
3451
3452         ioctl: Fix test failure on native Windows.
3453         * lib/ioctl.c: Include msvc-nothrow.h.
3454         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3455
3456 2012-02-04  Bruno Haible  <bruno@clisp.org>
3457
3458         fsync: Avoid test failure on native Windows.
3459         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3460         read-only.
3461
3462 2012-02-04  Bruno Haible  <bruno@clisp.org>
3463
3464         sys_select: Avoid syntax error on OpenBSD 5.0.
3465         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3466         currently being included, just include the system's <sys/select.h>.
3467
3468 2012-02-04  Bruno Haible  <bruno@clisp.org>
3469
3470         sys_select: Avoid syntax error on OpenBSD 5.0.
3471         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3472         <sys/select.h>, not before.
3473         Reported by Jiri B <jirib@devio.us>.
3474
3475 2012-02-04  Bruno Haible  <bruno@clisp.org>
3476
3477         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3478         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3479         global variables.
3480         * tests/test-get-rusage-data.c (main): Likewise.
3481         Reported by Jim Meyering.
3482
3483 2012-02-04  Bruno Haible  <bruno@clisp.org>
3484
3485         stdioext: Fix last commit.
3486         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3487
3488 2012-02-03  Bruno Haible  <bruno@clisp.org>
3489
3490         stdioext: Add tentative support for Plan9.
3491         * lib/stdio-impl.h: Include <errno.h>.
3492         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3493         * lib/freadable.c (freadable): Likewise.
3494         * lib/fwritable.c (fwritable): Likewise.
3495         * lib/fbufmode.c (fbufmode): Likewise.
3496         * lib/freading.c (freading): Likewise.
3497         * lib/fwriting.c (fwriting): Likewise.
3498         * lib/freadptr.c (freadptr): Likewise.
3499         * lib/freadseek.c (freadptrinc): Likewise.
3500         * lib/freadahead.c (freadahead): Likewise.
3501         * lib/fpurge.c (fpurge): Likewise.
3502         * lib/fseeko.c (rpl_fseeko): Likewise.
3503         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3504         Reported by Jens Staal <staal1978@gmail.com>.
3505
3506 2012-02-02  Jim Meyering  <meyering@redhat.com>
3507
3508         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3509         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3510         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3511         not even to try to add the attribute.  Instead, add a pragma to suppress
3512         the suggestion/warning.
3513
3514 2012-01-31  Karl Berry  <karl@gnu.org>
3515
3516         setstate doc: typo.
3517         * doc/posix-functions/setstate.texi (setstate): { not (.
3518
3519 2012-01-31  Bruno Haible  <bruno@clisp.org>
3520
3521         popen: Make more robust on Windows.
3522         * lib/popen.c: On native Windows, use the _popen based code even if
3523         HAVE_POPEN is set.
3524         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3525         environment variable on native Windows.
3526
3527 2012-01-30  Bruno Haible  <bruno@clisp.org>
3528
3529         pclose: Fix typo.
3530         * lib/stdio.in.h (pclose): Fix typo in warning message.
3531
3532 2012-01-30  Bruno Haible  <bruno@clisp.org>
3533
3534         doc about getlogin_r, setstate.
3535         * doc/posix-functions/getlogin_r.texi: List the incompatible
3536         declaration problem under "not fixed by gnulib".
3537         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3538         problem on Solaris 11 and other platforms.
3539
3540 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3541             Bruno Haible  <bruno@clisp.org>
3542
3543         poll tests: Make test more robust.
3544         * tests/test-poll.c: Include macros.h.
3545         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3546         return value of various I/O operations.
3547         * modules/poll-tests (Files): Add tests/macros.h.
3548
3549 2012-01-30  Bruno Haible  <bruno@clisp.org>
3550
3551         sys_stat: Fix support for mingw64 and MSVC.
3552         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3553         header files already do it.
3554         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3555         stat itself.
3556         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3557
3558 2012-01-30  Bruno Haible  <bruno@clisp.org>
3559
3560         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3562         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3563
3564 2012-01-29  Bruno Haible  <bruno@clisp.org>
3565
3566         quotearg: Fix test failure on MacOS X 10.5.
3567         * tests/test-quotearg-simple.c: Include localcharset.h.
3568         (main): If the locale encoding is not ASCII, bypass the tests of
3569         locale_quoting_style and clocale_quoting_style.
3570         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3571
3572 2012-01-29  Jim Meyering  <meyering@redhat.com>
3573
3574         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3575         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3576         detect uses of canonicalize_file_name.
3577
3578 2012-01-28  Bruno Haible  <bruno@clisp.org>
3579
3580         test-framework-sh: Fix test failure with AIX 7.1 diff.
3581         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3582         in column 1, like 'diff -c' does.
3583         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3584         whether 'diff -u' is used. Instead, test whether the output contains
3585         some '@' character.
3586
3587 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3588
3589         strtoimax: eliminate need for stdint.h, inttypes.h checks
3590         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3591         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3592         the prerequisites for a recently-introduced strtoimax test.
3593         I guess this might cause strtoimax to be replaced when not
3594         strictly necessary on older hosts, but this shouldn't introduce
3595         any bugs and it should make Emacs 'configure' faster on typical
3596         modern hosts.  Problem discovered when importing the latest gnulib
3597         to an Emacs test version.
3598         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3599
3600 2012-01-28  Bruno Haible  <bruno@clisp.org>
3601
3602         sys_time: Override 'struct timeval' on some native Windows platforms.
3603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3604         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3605         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3606         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3607         needs to be overridden.
3608         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3609         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3610         * tests/test-sys_select.c: Check that the tv_sec member has the same
3611         size as a 'time_t'.
3612         * tests/test-sys_time.c: Likewise.
3613         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3614         is set, set also REPLACE_GETTIMEOFDAY.
3615         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3616         convert the resulting 'struct timeval' before returning.
3617         * lib/select.c: Include <sys/time.h>.
3618         (select, timeval): Undefine at the right place.
3619         * modules/select (Depends-on): Add sys_time.
3620         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3621         some Windows platforms.
3622         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3623
3624 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3625
3626         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3627         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3628         an integer.
3629         * lib/fcntl.c (dupfd): Likewise.
3630         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3631
3632 2012-01-28  Bruno Haible  <bruno@clisp.org>
3633
3634         fcntl: Avoid compilation error on native Windows.
3635         * modules/fcntl (Depends-on): Add 'close'.
3636
3637 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3638
3639         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3640         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3641         pointer to an integer.
3642         * lib/poll.c (IsConsoleHandle): Likewise.
3643         * lib/isatty.c (IsConsoleHandle): Likewise.
3644
3645 2012-01-28  Jim Meyering  <meyering@redhat.com>
3646
3647         doc: clarify README-release
3648         * top/README-release: Clarify: you should make a point to have
3649         the latest stable versions of build tools in your PATH, and the
3650         reference to buildreq is solely for its list of tool names, not
3651         for its minimal-functional version numbers.
3652         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3653
3654         maint.mk: use more readable (yet functionally equivalent) quoting
3655         It is common to quote a single quote in a single quoted string like
3656         this:  '...'\''...'.  Unless you know the idiom, that looks like
3657         gibberish, so prefer to double-quote the string when possible.
3658         Then you can use a more readable, lone single quote: "...'..."
3659         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3660         "don't" is more readable than the equivalent 'don'\''t'.
3661         (sc_cast_of_x_alloc_return_value): Likewise.
3662         (sc_cast_of_alloca_return_value): Likewise.
3663         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3664         rather than '\'':'\''.
3665
3666 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3667
3668         stdalign: relax _Alignof and tighten _Alignas test
3669         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3670         as it was too strict: alignof must divide offsetof, but it need
3671         not equal offsetof.  Inspired by Joseph S. Myers's comment
3672         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3673         Conversely, tighten the _Alignas test a bit, as the resulting
3674         alignment must be exactly 8.
3675
3676 2012-01-27  Bruno Haible  <bruno@clisp.org>
3677
3678         stdalign: Document the last change.
3679         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3680
3681 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3682
3683         stdalign: check that alignof and offsetof are consistent
3684         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3685         Problem reported for gnulib by Richard W.M. Jones in
3686         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3687
3688 2012-01-27  Jim Meyering  <meyering@redhat.com>
3689
3690         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3691         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3692         convert a sequence with gaps to the minimal containing range.
3693         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3694         * tests/test-update-copyright.sh: Test for this.
3695         The FSF confirmed it is ok to do this, assuming there is at
3696         least one significant change per year in the affected range:
3697         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3698
3699 2012-01-26  Bruno Haible  <bruno@clisp.org>
3700
3701         pipe2: refine doc about thread-safety
3702         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3703         multithread-safety problem.
3704         * doc/glibc-functions/accept4.texi: Likewise.
3705
3706 2012-01-26  Bruno Haible  <bruno@clisp.org>
3707
3708         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3709         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3710         In the test program, include <fcntl.h>, for O_RDONLY.
3711
3712 2012-01-26  Eric Blake  <eblake@redhat.com>
3713
3714         pipe2: document lack of thread-safety in replacement
3715         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3716         issue in replacement.
3717         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3718         Based on a report by Eric Wong.
3719
3720 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3721             Bruno Haible  <bruno@clisp.org>
3722
3723         malloca: Avoid warnings on x86_64 mingw64.
3724         * lib/malloca.c: Include <stdint.h>.
3725         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3726         * modules/malloca (Depends-on): Add stdint.
3727         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3728
3729 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3730
3731         obstack: remove __STDC__ conditionals
3732         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3733         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3734         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3735         m4/include_next.m4 as the only gnulib-maintained places that still
3736         refer to __STDC__.
3737
3738 2012-01-24  Bruno Haible  <bruno@clisp.org>
3739
3740         havelib: Modern quoting.
3741         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3742         the recent change to the GNU coding standards.
3743
3744 2012-01-24  Bruno Haible  <bruno@clisp.org>
3745
3746         stdint: Improve support for Android.
3747         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3748         Reported by Simon Josefsson <simon@josefsson.org>.
3749
3750 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3751
3752         doc: omit trailing empty lines from INSTALL etc.
3753         * doc/Makefile (INSTALL): Omit trailing empty lines.
3754         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3755         omit trailing empty lines.  This simplifies the build procedure.
3756
3757 2012-01-23  Jim Meyering  <meyering@redhat.com>
3758
3759         tests: avoid spurious warnings about gl_sockets_startup
3760         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3761         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3762         reporting a "statement with no effect".
3763         * tests/test-accept.c (main): Mark as "(void)".
3764         * tests/test-accept4.c (main): Likewise.
3765         * tests/test-bind.c (main): Likewise.
3766         * tests/test-connect.c (main): Likewise.
3767         * tests/test-getpeername.c (main): Likewise.
3768         * tests/test-getsockname.c (main): Likewise.
3769         * tests/test-getsockopt.c (main): Likewise.
3770         * tests/test-listen.c (main): Likewise.
3771         * tests/test-recv.c (main): Likewise.
3772         * tests/test-recvfrom.c (main): Likewise.
3773         * tests/test-send.c (main): Likewise.
3774         * tests/test-sendto.c (main): Likewise.
3775         * tests/test-setsockopt.c (main): Likewise.
3776         * tests/test-shutdown.c (main): Likewise.
3777
3778 2012-01-21  Bruno Haible  <bruno@clisp.org>
3779
3780         locale-fr.m4: Fix for Android.
3781         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3782         failure of the test program on Bionic libc.
3783
3784 2012-01-21  Jim Meyering  <meyering@redhat.com>
3785
3786         bootstrap: fail when bootstrap_post_import_hook fails
3787         Otherwise, it's far too easy to miss diagnostics emitted
3788         between gnulib-tool's output and that of running configure.
3789         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3790
3791 2012-01-17  Jim Meyering  <meyering@redhat.com>
3792
3793         maint: enable sc_trailing_blank
3794         * build-aux/pmccabe.css: Remove trailing blanks.
3795         * doc/acl-cygwin.txt: Likewise.
3796         * doc/gnu-oids.texi: Likewise
3797         * cfg.mk: Enable sc_trailing_blank.
3798         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3799
3800 2012-01-17  Jim Meyering  <meyering@redhat.com>
3801
3802         maint: enable sc_prohibit_openat_without_use
3803         * cfg.mk: Enable sc_prohibit_openat_without_use.
3804         Exempt lib/selinux-at.c.
3805
3806 2012-01-17  Jim Meyering  <meyering@redhat.com>
3807
3808         maint: enable sc_prohibit_cloexec_without_use
3809         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3810         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3811
3812 2012-01-17  Jim Meyering  <meyering@redhat.com>
3813
3814         maint: enable sc_prohibit_intprops_without_use
3815         * cfg.mk: Enable sc_prohibit_intprops_without_use
3816         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3817
3818 2012-01-17  Jim Meyering  <meyering@redhat.com>
3819
3820         maint: enable sc_prohibit_hash_pjw_without_use
3821         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3822         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3823         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3824         following " (".
3825
3826 2012-01-17  Jim Meyering  <meyering@redhat.com>
3827
3828         maint: enable double-word-prohibiting rule
3829         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3830         Exempt three files.
3831
3832 2012-01-17  Jim Meyering  <meyering@redhat.com>
3833
3834         maint: remove empty lines at EOF, but excluding modules/*
3835         Apply syntax rules at home as well as abroad.  Most changes
3836         were induced by running this:
3837           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3838             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3839             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3840         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3841         Exempt modules/* and two binary files.
3842         Also exempt doc/INSTALL*, per request from Bruno Haible.
3843         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3844         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3845         * doc/Copyright/request-assign.future: Likewise.
3846         * doc/Copyright/request-disclaim.changes: Likewise.
3847         * doc/INSTALL: Likewise.
3848         * doc/INSTALL.ISO: Likewise.
3849         * doc/INSTALL.UTF-8: Likewise.
3850         * doc/acl-cygwin.txt: Likewise.
3851         * doc/acl-resources.txt: Likewise.
3852         * doc/fdl-1.2.texi: Likewise.
3853         * doc/fdl-1.3.texi: Likewise.
3854         * doc/fdl.texi: Likewise.
3855         * lib/argp-pin.c: Likewise.
3856         * lib/round.c: Likewise.
3857         * lib/unicase/u16-totitle.c: Likewise.
3858         * lib/unictype/block_test.c: Likewise.
3859         * lib/uninorm/canonical-decomposition.c: Likewise.
3860         * m4/README: Likewise.
3861         * m4/relocatable-lib.m4: Likewise.
3862         * tests/test-isnand-nolibm.c: Likewise.
3863         * tests/test-isnand.c: Likewise.
3864         * tests/uninorm/NormalizationTest.txt: Likewise.
3865
3866 2012-01-17  Jim Meyering  <meyering@redhat.com>
3867
3868         maint: add framework to run syntax-check rules against gnulib sources
3869         * cfg.mk: New file, to disable all currently-failing tests.
3870         We'll enable them one by one, as they are made to pass.
3871         * Makefile (sc_maint): New rule.
3872
3873 2012-01-21  Bruno Haible  <bruno@clisp.org>
3874
3875         stdint: Add support for Android.
3876         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3877         include the system's <stdint.h>.
3878         Reported by Simon Josefsson <simon@josefsson.org>.
3879
3880 2012-01-19  Jim Meyering  <meyering@redhat.com>
3881
3882         bootstrap: add bootstrap_post_import_hook
3883         Bison does still need something like the gnulib_mk_hook whose
3884         invocation I had to remove along with slurp in commit 767ccd40.
3885         Technically, we could get along without it, but doing so would
3886         have required living with a warning and a mandatory post-bootstrap
3887         automake rerun.
3888         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3889         (bootstrap_post_import_hook): New function.
3890         Invoke it after gnulib-tool --import and before autoreconf.
3891
3892 2012-01-18  Jim Meyering  <meyering@redhat.com>
3893
3894         gitlog-to-changelog: don't use "no_"-prefixed variable name
3895         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3896         to enable both --cluster and --no-cluster.  Change variable name,
3897         s/\$no_cluster/$cluster/, and reverse usage to match.
3898
3899         gitlog-to-changelog: use "||", not "or" in expressions
3900         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3901         expressions.
3902
3903 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3904
3905         gitlog-to-changelog: new option --no-cluster
3906         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3907         clustering of adjacent commit messages.
3908
3909 2012-01-17  Jim Meyering  <meyering@redhat.com>
3910
3911         maint: spell file systems with two words, not one
3912         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3913         two words, not one.
3914
3915 2012-01-16  Jim Meyering  <meyering@redhat.com>
3916
3917         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3918         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3919
3920 2012-01-16  Eric Blake  <eblake@redhat.com>
3921
3922         bootstrap: cater to autoconf 2.59
3923         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3924         is not available.
3925
3926         bootstrap: properly check for libtool
3927         * build-aux/bootstrap (libtoolize): Also run libtool when older
3928         usage is detected.
3929
3930 2012-01-15  Bruno Haible  <bruno@clisp.org>
3931
3932         Improve support for MSVC 9.
3933         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3934         clashes on MSVC.
3935         * lib/fcntl.in.h: Likewise.
3936         * lib/stdlib.in.h: Likewise.
3937         * lib/sys_stat.in.h: Likewise.
3938
3939 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3940
3941         gnupload: we hold the master copy of this script now
3942         For motivation and more information, see:
3943         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3944         * build-aux/gnupload: Make it clear in the heading comments that the
3945         master copy of this file is maintained by gnulib.  Since we are at
3946         it, bump its copyright year and ...
3947         ($scriptversion): ... the date in its version.
3948         ($usage): Patches and bug reports should be sent to the gnulib list,
3949         not the automake one.
3950         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3951         anymore.
3952
3953 2012-01-15  Bruno Haible  <bruno@clisp.org>
3954
3955         Fix module 'random'.
3956         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3957         initstate, setstate are declared.
3958
3959 2012-01-14  Bruno Haible  <bruno@clisp.org>
3960
3961         Tests for module 'random'.
3962         * modules/random-tests: New file.
3963         * tests/test-random.c: New file, based on tests/test-random_r.c.
3964
3965         New module 'random'.
3966         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3967         declarations.
3968         * lib/random.c: New file, based on glibc/stdlib/random.c.
3969         * m4/random.m4: New file.
3970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3971         HAVE_RANDOM.
3972         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3973         * modules/random: New file.
3974         * config/srclist.txt: Add an entry for random.c.
3975         * doc/posix-functions/random.texi: Mention the 'random' module.
3976         * doc/posix-functions/initstate.texi: Likewise.
3977         * doc/posix-functions/setstate.texi: Likewise.
3978         * doc/posix-functions/srandom.texi: Likewise.
3979
3980 2012-01-12  Bruno Haible  <bruno@clisp.org>
3981
3982         random_r: Use common idioms.
3983         * lib/random_r.c: Include <stdlib.h> first.
3984
3985         random_r: Override incompatible API on AIX, OSF/1.
3986         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3987         Override the system function if REPLACE_RANDOM_R is 1.
3988         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3989         and OSF/1, set REPLACE_RANDOM_R.
3990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3991         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3992         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3993         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3994         * doc/glibc-functions/random_r.texi: Likewise.
3995         * doc/glibc-functions/setstate_r.texi: Likewise.
3996
3997         random_r: Support for MSVC 9.
3998         * lib/random_r.c: Include stdint.h, not inttypes.h.
3999
4000 2012-01-12  Eric Blake  <eblake@redhat.com>
4001
4002         inet_ntop: guard extra work by IF_LINT
4003         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4004         better code generation when not checking for warnings.
4005         Suggested by Paul Eggert and Jim Meyering.
4006
4007         strptime: fix regression on mingw
4008         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4009         Fix regression.  Reported by Bruno Haible.
4010
4011 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4012             Bruno Haible  <bruno@clisp.org>
4013
4014         copy-file: add error-code-returning variant.
4015         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4016         (qcopy_file_preserving): New declaration.
4017         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4018         copy_file_preserving. Change return type to 'int'. Don't emit an error
4019         message here.
4020         (copy_file_preserving): New function.
4021         * tests/test-copy-file.c: Include <stdlib.h>.
4022         (main): Test qcopy_file_preserving if the environment variable
4023         NO_STDERR_OUTPUT is set.
4024         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4025         with NO_STDERR_OUTPUT
4026         * tests/test-copy-file-2.sh: Likewise.
4027
4028 2012-01-10  Bruno Haible  <bruno@clisp.org>
4029
4030         copy-file: Use 'quote' module consistently.
4031         * lib/copy-file.c (copy_file_preserving): Use quote().
4032
4033         copy-file: Refactor.
4034         * lib/copy-file.c: Include quote.h.
4035         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4036         message here.
4037         * modules/copy-file (Depends-on): Add quote.
4038
4039         acl: Export qcopy_acl.
4040         * lib/acl.h (qcopy_acl): New declaration.
4041         * lib/copy-acl.c (qcopy_acl): Make non-static.
4042
4043         acl: Rename a local variable.
4044         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4045
4046         acl: Align return values of copy_acl and qcopy_acl.
4047         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4048         maybe < -1.
4049
4050 2012-01-11  Eric Blake  <eblake@redhat.com>
4051
4052         strptime: silence gcc warnings
4053         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4054         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4055         Reported by Daniel P. Berrange.
4056
4057         inet_ntop: silence gcc warning
4058         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4059         Reported by Daniel P. Berrange.
4060
4061 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4062
4063         getloadavg test: skip the test on GNU/Linux without /proc mounted
4064         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4065         file.  When /proc is not mounted, it always fails with ENOENT.
4066         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4067         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4068
4069 2012-01-10  Bruno Haible  <bruno@clisp.org>
4070
4071         regex: Avoid link error on MSVC 9.
4072         * modules/regex (Depends-on): Add wctype.
4073
4074 2012-01-10  Bruno Haible  <bruno@clisp.org>
4075
4076         doc: Mention --with-tests option.
4077         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4078         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4079         --with-tests.
4080         Reported by Reuben Thomas.
4081
4082 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4083
4084         users.txt: order package names lexicographically.
4085         * users.txt: Order package names lexicographically.
4086
4087 2012-01-10  Jim Meyering  <meyering@redhat.com>
4088
4089         maint.mk: fix description in comment
4090         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4091
4092         ignore-value: remove deprecated ignore_ptr function
4093         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4094         * NEWS: Note this.
4095
4096 2012-01-09  Jim Meyering  <meyering@redhat.com>
4097
4098         test-init.sh: avoid a subshell
4099         * tests/test-init.sh: Remove protective subshell.
4100         Suggested by Bernhard Voelker.  While a subshell is normally
4101         required to protect against older shells (Solaris, FreeBSD) that
4102         warn about a missing program before performing redirection, the
4103         shell-selection tests performed by init.sh probably exclude any
4104         offending shell.
4105
4106 2012-01-08  Bruno Haible  <bruno@clisp.org>
4107
4108         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4109         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4110         variable.
4111
4112 2012-01-08  Bruno Haible  <bruno@clisp.org>
4113
4114         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4115         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4116         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4117         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4118         macro.
4119         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4120         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4121         * lib/spawn_faction_addopen.c: Add workaround implementation if
4122         HAVE_WORKING_POSIX_SPAWN.
4123         * modules/spawn (Makefile): Substitute
4124         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4125         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4126         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4127         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4128         (Depends-on): Update conditions.
4129         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4130         the Solaris 11 bug.
4131
4132 2012-01-08  Bruno Haible  <bruno@clisp.org>
4133
4134         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4135         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4136         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4137         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4138         macro.
4139         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4140         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4141         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4142         HAVE_WORKING_POSIX_SPAWN.
4143         * modules/spawn (Makefile): Substitute
4144         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4145         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4146         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4147         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4148         (Depends-on): Update conditions.
4149         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4150         the Solaris 11 bug.
4151
4152 2012-01-08  Bruno Haible  <bruno@clisp.org>
4153
4154         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4155         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4156         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4157         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4158         HAVE_WORKING_POSIX_SPAWN.
4159         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4160         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4161         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4162         * lib/spawn_faction_addclose.c: Add workaround implementation if
4163         HAVE_WORKING_POSIX_SPAWN.
4164         * modules/spawn (Makefile): Substitute
4165         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4166         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4167         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4168         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4169         (Depends-on): Update conditions.
4170         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4171         the Solaris 11 bug.
4172
4173 2012-01-08  Bruno Haible  <bruno@clisp.org>
4174
4175         doc: Update for Solaris 11 2011-11.
4176         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4177         * m4/printf.m4: Update comments.
4178
4179 2012-01-08  Bruno Haible  <bruno@clisp.org>
4180
4181         mktime: Avoid compilation error on Solaris 11.
4182         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4183
4184 2012-01-08  Bruno Haible  <bruno@clisp.org>
4185
4186         doc: Small fix.
4187         * doc/posix-headers/nl_types.texi: Correct platforms list.
4188
4189 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4190
4191         Add lgpl-3.0 module.
4192         * MODULES.html.sh (Support for building documentation): Add
4193         lgpl-3.0.
4194         * modules/lgpl-3.0: New file.
4195
4196 2012-01-08  Jim Meyering  <meyering@redhat.com>
4197
4198         select.c: indent with spaces, not TABs
4199         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4200
4201 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4202
4203         quotearg: do not use grave accent for left quote
4204         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4205         locale_quoting_style.
4206         (quotearg_buffer_restyled): Fix example.
4207         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4208
4209 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4210
4211         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4212         Most programs do not have translation catalogs for English and much
4213         less separate catalogs for British and American English.  Drop the
4214         suggestion to translators about these two, and provide it
4215         automatically for Unicode locales.  Like most programs, even those
4216         using American English, we use single quotation marks.  This conflicts
4217         with the American typographic convention, but works better when you
4218         cite the entire error message within double quotes.  It also tries not
4219         to clash with established practice and with what non-gnulib programs
4220         will usually do.
4221         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4222         using an UTF-8 or GB-18030 locale.  The list of other locales with
4223         quotes was provided by Bruno Haible.
4224         (quotearg_buffer_restyled): Adjust instructions to translators.
4225         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4226         text, since this would be wrong when using Unicode.
4227         * modules/quotearg: Depend on c-strcaseeq.
4228
4229 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4230
4231         quotearg: fix Wikipedia link
4232         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4233
4234 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4235
4236         Fix for mingw with MSVC9.
4237         * m4/ld-version-script.m4: Check that compiler rejects version
4238         scripts with syntax errors.  Reported by Bruno Haible
4239         <bruno@clisp.org>.
4240
4241 2012-01-06  Bruno Haible  <bruno@clisp.org>
4242
4243         Talk about "native Windows API", not "Woe32".
4244         * lib/accept4.c: Update comments to mention native Windows.
4245         * lib/execute.c: Likewise.
4246         * lib/fatal-signal.c: Likewise.
4247         * lib/localcharset.c: Likewise.
4248         * lib/nanosleep.c: Likewise.
4249         * lib/nl_langinfo.c: Likewise.
4250         * lib/pclose.c: Likewise.
4251         * lib/pipe-filter-gi.c: Likewise.
4252         * lib/pipe-filter-ii.c: Likewise.
4253         * lib/pipe.c: Likewise.
4254         * lib/pipe2.c: Likewise.
4255         * lib/popen.c: Likewise.
4256         * lib/progreloc.c: Likewise.
4257         * lib/relocatable.c: Likewise.
4258         * lib/sigaction.c: Likewise.
4259         * lib/sigprocmask.c: Likewise.
4260         * lib/spawn-pipe.h: Likewise.
4261         * lib/spawn-pipe.c: Likewise.
4262         * lib/spawni.c: Likewise.
4263         * lib/stat-time.h: Likewise.
4264         * lib/w32spawn.h: Likewise.
4265         * tests/test-isatty.c: Likewise.
4266         * lib/config.charset: More comments.
4267         * doc/gnulib-intro.texi: Mention native Windows.
4268         * doc/posix-functions/_Exit_C99.texi: Likewise.
4269         * doc/posix-headers/fcntl.texi: Likewise.
4270
4271 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4272
4273         argp: Avoid crash if translator uses % characters in a translation.
4274         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4275         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4276
4277 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4278
4279         doc: C11 and C++11 are now official
4280         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4281         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4282         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4283         * modules/stdalign:
4284         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4285
4286 2012-01-06  Bruno Haible  <bruno@clisp.org>
4287
4288         uc-is-grapheme-break tests: Tweak.
4289         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4290         message.
4291
4292 2012-01-06  Bruno Haible  <bruno@clisp.org>
4293
4294         test-init.sh: correct the test for diff -u
4295         * tests/test-init.sh: Also redirect stdout to /dev/null.
4296
4297 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4298
4299         Use ', not `, for quoting output.
4300         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4301         (print_changelog_deltas, get_tool_versions, main program):
4302         * build-aux/git-version-gen:
4303         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4304         * build-aux/move-if-change (help):
4305         * build-aux/useless-if-before-free (usage, main program):
4306         * check-module (parse_module_file, usage)
4307         (find_included_lib_files, check_module):
4308         * lib/argmatch.c (main) [TEST]:
4309         * lib/argp-help.c (_help):
4310         * lib/getopt1.c (main) [TEST]:
4311         * lib/git-merge-changelog.c (usage):
4312         * lib/xstrtol-error.c (xstrtol_error):
4313         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4314         * m4/argz.m4 (gl_FUNC_ARGZ):
4315         * m4/bison.m4 (gl_BISON):
4316         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4317         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4318         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4319         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4320         * m4/gc-random.m4 (gl_GC_RANDOM):
4321         * m4/intl.m4 (gt_CHECK_DECL):
4322         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4323         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4324         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4326         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4327         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4328         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4329         * tests/test-dirname.c (main):
4330         * tests/test-getpass.c (main):
4331         * tests/test-iconvme.c (main):
4332         * tests/test-parse-datetime.c (LOG):
4333         * tests/test-xstrtoimax.sh:
4334         * tests/test-xstrtol.sh:
4335         * tests/test-xstrtoll.sh:
4336         * tests/test-xstrtoumax.sh:
4337         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4338         * top/GNUmakefile (abort-due-to-no-makefile):
4339         Quote 'like this', not `like this', as per the recent change to
4340         the GNU coding standards.
4341
4342 2012-01-05  Bruno Haible  <bruno@clisp.org>
4343
4344         strtoimax: Don't force a replacement on systems where intmax_t is int.
4345         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4346         'intmax_t' is not larger than 'int'.
4347         Reported by Pádraig Brady <P@draigBrady.com>.
4348
4349 2012-01-05  Bruno Haible  <bruno@clisp.org>
4350
4351         doc: Mention NetBSD bugs.
4352         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4353         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4354
4355 2012-01-05  Bruno Haible  <bruno@clisp.org>
4356
4357         strtoumax tests: Enhance tests.
4358         * tests/test-strtoumax.c (main): Add tests for large values.
4359
4360 2012-01-05  Bruno Haible  <bruno@clisp.org>
4361
4362         strtoimax: Work around AIX 5.1 bug.
4363         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4364         definition.
4365         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4366         Set HAVE_STRTOIMAX.
4367         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4368         REPLACE_STRTOIMAX.
4369         * modules/inttypes-incomplete (Makefile.am): Substitute
4370         REPLACE_STRTOIMAX.
4371         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4372         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4373         (Depends-on): Update conditions.
4374         * tests/test-strtoimax.c (main): Add tests for large values.
4375         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4376
4377 2012-01-05  Bruno Haible  <bruno@clisp.org>
4378
4379         inttypes: Modernize.
4380         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4381         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4382         (Makefile.am): Update inttypes.h rule.
4383
4384 2012-01-05  Jim Meyering  <meyering@redhat.com>
4385
4386         init.sh: don't waste a subshell just to redirect stderr
4387         * tests/init.sh: In testing for diff -u and diff -c, use a
4388         stderr-redirecting exec inside `...` rather than a subshell.
4389
4390         test-init.sh: avoid failure on HP-UX 11.00
4391         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4392         resolves to diff -c or cmp.  Reported by Bruno Haible.
4393
4394 2012-01-05  Bruno Haible  <bruno@clisp.org>
4395
4396         Tests for module 'strtoull'.
4397         * modules/strtoull-tests: New file.
4398         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4399
4400 2012-01-05  Bruno Haible  <bruno@clisp.org>
4401
4402         Tests for module 'strtoll'.
4403         * modules/strtoll-tests: New file.
4404         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4405
4406 2012-01-05  Bruno Haible  <bruno@clisp.org>
4407
4408         Tests for module 'strtoul'.
4409         * modules/strtoul-tests: New file.
4410         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4411
4412 2012-01-05  Bruno Haible  <bruno@clisp.org>
4413
4414         Tests for module 'strtol'.
4415         * modules/strtol-tests: New file.
4416         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4417
4418 2012-01-04  Jim Meyering  <meyering@redhat.com>
4419
4420         test-init.sh: accommodate Solaris 5.10's different diff -u output
4421         * tests/test-init.sh: Also exempt @@ lines from the comparison
4422         of diff output, since Solaris 5.10 and GNU diff formats differ.
4423         Reported by Stefano Lattarini.
4424
4425 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4426
4427         test-posixtm: don't assume signed integer wraparound
4428         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4429         after signed integer overflow.  Inspired by (though it may not
4430         fix) Bruno Haible's bug report in
4431         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4432
4433         Spell out "Windows 9x" and "Windows XP".
4434         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4435         "Windows 9x" and "WinXP" with "Windows XP".
4436
4437 2012-01-04  Jim Meyering  <meyering@redhat.com>
4438
4439         test-vc-list-files-cvs.sh: remove obsolete comment
4440         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4441         double exit.  Now that's all encapsulated via skip_ and Exit.
4442
4443 2012-01-04  Bruno Haible  <bruno@clisp.org>
4444
4445         Talk about "native Windows API", not "Win32".
4446         * lib/classpath.c: Update comments to mention native Windows.
4447         * lib/csharpexec.c: Likewise.
4448         * lib/dup2.c: Likewise.
4449         * lib/error.c: Likewise.
4450         * lib/fcntl.c: Likewise.
4451         * lib/filename.h: Likewise.
4452         * lib/findprog.c: Likewise.
4453         * lib/get-rusage-as.c: Likewise.
4454         * lib/get-rusage-data.c: Likewise.
4455         * lib/getpagesize.c: Likewise.
4456         * lib/javaexec.c: Likewise.
4457         * lib/msvc-inval.c: Likewise.
4458         * lib/msvc-nothrow.c: Likewise.
4459         * lib/nanosleep.c: Likewise.
4460         * lib/nonblocking.c: Likewise.
4461         * lib/printf-parse.c: Likewise.
4462         * lib/setlocale.c: Likewise.
4463         * lib/sigaction.c: Likewise.
4464         * lib/strerror_r.c: Likewise.
4465         * lib/tmpdir.c: Likewise.
4466         * lib/vasnprintf.c: Likewise.
4467         * lib/w32spawn.h: Likewise.
4468         * lib/waitpid.c: Likewise.
4469         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4470         * m4/locale-ar.m4: Likewise.
4471         * m4/locale-fr.m4: Likewise.
4472         * m4/locale-ja.m4: Likewise.
4473         * m4/locale-tr.m4: Likewise.
4474         * m4/locale-zh.m4: Likewise.
4475         * m4/printf.m4: Likewise.
4476         * tests/test-cloexec.c: Likewise.
4477         * tests/test-copy-acl.sh: Likewise.
4478         * tests/test-copy-file.sh: Likewise.
4479         * tests/test-file-has-acl.sh: Likewise.
4480         * tests/test-set-mode-acl.sh: Likewise.
4481         * tests/test-dup-safer.c: Likewise.
4482         * tests/test-dup2.c: Likewise.
4483         * tests/test-dup3.c: Likewise.
4484         * tests/test-fcntl.c: Likewise.
4485         * tests/test-nonblocking-pipe.h: Likewise.
4486         * tests/test-nonblocking-socket.h: Likewise.
4487         * tests/test-pipe.c: Likewise.
4488         * tests/test-pipe2.c: Likewise.
4489         * tests/test-spawn-pipe-child.c: Likewise.
4490         * doc/acl-resources.txt: Likewise.
4491         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4492         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4493         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4494         * lib/localcharset.c: Update comments to mention native Windows.
4495         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4496         * lib/localename.c: Likewise.
4497         * lib/progreloc.c: Likewise.
4498         * lib/relocatable.c: Likewise.
4499         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4500         (windows_compute_revents): Renamed from win32_compute_revents.
4501         (windows_compute_revents_socket): Renamed from
4502         win32_compute_revents_socket.
4503         * lib/select.c: Update comments to mention native Windows.
4504         (windows_poll_handle): Renamed from win32_poll_handle.
4505         * m4/threadlib.m4: Update comments to mention native Windows.
4506         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4507         --enable-threads=windows instead of --enable-threads=win32. Set
4508         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4509         * lib/glthread/lock.h: Update comments to mention native Windows.
4510         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4511         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4512         USE_WIN32_THREADS.
4513         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4514         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4515         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4516         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4517         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4518         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4519         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4520         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4521         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4522         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4523         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4524         * tests/test-tls.c: Likewise.
4525         Rationale:
4526         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4527         on both 32-bit and 64-bit Windows systems.
4528         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4529         line of distinction is between "native Windows" on one side and Unix/
4530         POSIX systems on the other side. More details in
4531         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4532         Suggested by Paul Eggert.
4533
4534 2012-01-03  Bruno Haible  <bruno@clisp.org>
4535
4536         isatty: Support for MSVC 9.
4537         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4538         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4539         (_isatty_nothrow): New function.
4540         (isatty): Use it instead of _isatty.
4541         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4542         * lib/poll.c (IsConsoleHandle): Likewise.
4543         * lib/select.c (IsConsoleHandle): Likewise.
4544         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4545         (gl_PREREQ_ISATTY): New macro.
4546         * modules/isatty (Depends-on): Add msvc-inval.
4547         (configure.ac): Invoke gl_PREREQ_ISATTY.
4548
4549 2012-01-03  Jim Meyering  <meyering@redhat.com>
4550
4551         maint.mk: remove temporary transition aid from over 1.5 years ago
4552         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4553         purpose was to aid in the transition (avoiding silent malfunction)
4554         from that old name to the new _sc_search_regexp.  This shim was
4555         added by commit 219c504b.
4556
4557         init.sh: do not try to accommodate compare arguments starting with "-"
4558         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4559         compare arguments that start with "-".  Besides, we do not worry
4560         about this when invoking diff or cmp; why start now with sed?
4561         Using "--" to separate options from argument would trigger sed
4562         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4563         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4564
4565 2012-01-02  Bruno Haible  <bruno@clisp.org>
4566
4567         Enhance tests for module 'isatty'.
4568         * modules/isatty-tests (Depends-on): Add pipe-posix.
4569         * tests/test-isatty.c: Include <fcntl.h>.
4570         (DEV_NULL): New macro.
4571         (main): Test the resut of isatty() also on regular files, pipes, and
4572         /dev/null.
4573
4574         New module 'isatty'.
4575         * lib/unistd.in.h (isatty): New declaration.
4576         * lib/isatty.c: New file, based on an idea of
4577         Bastien Roucariès <roucaries.bastien@gmail.com>.
4578         * m4/isatty.m4: New file.
4579         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4580         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4581         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4582         REPLACE_ISATTY.
4583         * modules/isatty: New file.
4584         * doc/posix-functions/isatty.texi: Mention the new module.
4585         Suggested by Paolo Bonzini.
4586
4587 2012-01-02  Bruno Haible  <bruno@clisp.org>
4588
4589         canonicalize: Tweak 2011-12-29 commit.
4590         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4591         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4592
4593 2012-01-02  Jim Meyering  <meyering@redhat.com>
4594
4595         gitlog-to-changelog: describe input syntax in --help output
4596         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4597
4598         gitlog-to-changelog: fix typo in --help: show backslash before email @
4599         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4600         in sources, but not in actual output.
4601
4602 2011-12-30  Jim Meyering  <meyering@redhat.com>
4603
4604         gitlog-to-changelog: don't malfunction when name contains %-directive
4605         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4606         in a name string cause trouble.  E.g., with a user name of "%s",
4607         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4608
4609 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4610
4611         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4612         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4613         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4614         the "  (tiny change)" notation that is appended to the standard
4615         ChangeLog "date  name  email" header line.
4616
4617 2012-01-01  Jim Meyering  <meyering@redhat.com>
4618
4619         test-framework-sh: init.sh: fix "make dist" failure
4620         When using gnulib-tool's --with-tests option and any module that
4621         depends on test-framework-sh, "make dist" would fail due to the
4622         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4623         in the gltests directory, and not in the gllib/ directory.
4624         One way to work around that is to move the EXTRA_DIST += init.sh
4625         from the primary module to the -tests one:
4626         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4627         * modules/test-framework-sh (Makefile.am): ...not here.
4628         Reported by Tom G. Christensen in
4629         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4630
4631         version-etc: update copyright year reported by --version
4632         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4633
4634 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4635
4636         canonicalize: only stat() if required
4637         * lib/canonicalize.c (canonicalize_filename_mode):
4638         Avoid calling l?stat() when both CAN_MISSING,
4639         and CAN_NOLINKS are set, as we neither need
4640         to resolve symlinks or test component existence.
4641
4642 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4643
4644         doc: cover st_ino issues once; add OpenVMS etc.
4645         * doc/posix-functions/stat.texi (stat):
4646         * doc/posix-functions/lstat.texi (lstat):
4647         * doc/posix-functions/fstatat.texi (fstatat):
4648         * doc/posix-functions/fstat.texi (fstat):
4649         Move general 'struct stat' stuff to sys_stat.texi,
4650         leaving behind a pointer.
4651         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4652         Merge duplicate info about 'struct stat' problems into here.
4653         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4654         and suggest partial workarounds.
4655
4656         same-inode: port to OpenVMS
4657         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4658         three st_ino values.
4659
4660 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4661
4662         canonicalize: fix references to stat() and lstat()
4663         * lib/canonicalize.c (canonicalize_filename_mode):
4664         Ensure references always resolve to a replacement
4665         function if required (even via a macro).
4666
4667 2011-12-30  Jim Meyering  <meyering@redhat.com>
4668
4669         gitlog-to-changelog: remove a little duplication
4670         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4671         rather than twice.
4672
4673 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4674
4675         canonicalize: add support for not resolving symlinks
4676         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4677         indicate we don't want to follow symlinks.  Also
4678         provide CAN_MODE_MASK to aid setting these existing
4679         mutually exclusive values.
4680         * lib/canonicalize.c (canonicalize_filename_mode):
4681         Extract the flags from can_mode parameter, which
4682         are currently just used to select between stat()
4683         and lstat().  Also ensure that mutually exclusive
4684         values are flagged immediately as invalid.
4685         * tests/test-canonicalize.c: Verify symlinks are
4686         not followed, and that invalid flag combinations
4687         are diagnosed.
4688
4689 2011-12-25  Jim Meyering  <meyering@redhat.com>
4690
4691         gitlog-to-changelog: do not clump multi-paragraph entries
4692         Identical header lines (date,name,email+coauthors) are suppressed,
4693         thus putting all entries with those same characteristics under
4694         a single header.  However, when a log entry consists of two or
4695         more paragraphs, it may not be clear where it starts and ends.
4696         This change makes it so that such an entry is always separated
4697         from others by a header line, even when that header would
4698         otherwise be suppressed.
4699         * build-aux/gitlog-to-changelog: Implement the above.
4700         Inspired by a related request from Stefano Lattarini in
4701         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4702
4703 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4704
4705         announce-gen: fix `cmd' typo in diagnostic
4706         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4707         diagnostic: a missing '$' meant that the command was not output.
4708
4709 2011-12-23  Jim Meyering  <meyering@redhat.com>
4710
4711         test-framework-sh: distribute init.sh
4712         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4713         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4714         fail due to the lack of init.sh.
4715
4716         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4717         * modules/atexit-tests: Rather than listing tests/init.sh,
4718         now that there's a module for it, simply depend on that new module.
4719         * modules/closein-tests: Likewise.
4720         * modules/exclude-tests: Likewise.
4721         * modules/getcwd-tests: Likewise.
4722         * modules/perror-tests: Likewise.
4723         * modules/pread-tests: Likewise.
4724         * modules/pwrite-tests: Likewise.
4725         * modules/vc-list-files-tests: Likewise.
4726         * modules/verify-tests: Likewise.
4727         * modules/xalloc-die-tests: Likewise.
4728         * modules/xstrtoimax-tests: Likewise.
4729         * modules/xstrtol-tests: Likewise.
4730         * modules/xstrtoll-tests: Likewise.
4731         * modules/xstrtoumax-tests: Likewise.
4732         * modules/yesno-tests: Likewise.
4733
4734 2011-12-22  Jim Meyering  <meyering@redhat.com>
4735
4736         test-framework-sh: add minimal tests of init.sh's compare function
4737         * modules/test-framework-sh-tests: New file.
4738         * tests/test-init.sh: New file.
4739
4740         test-framework-sh: new module
4741         * modules/test-framework-sh: New file.
4742         * MODULES.html.sh (Support for maintaining and releasing projects):
4743         List it.
4744
4745         init.sh: do not emit simulated diff output to stderr
4746         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4747
4748 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4749
4750         .gitignore: ignore gnulib.dvi and regex.info
4751         * doc/.gitignore:add gnulib.dvi and regex.info
4752
4753 2011-12-22  Jim Meyering  <meyering@redhat.com>
4754
4755         init.sh: correct previous change
4756         * tests/init.sh (compare): My previous change was wrong.
4757         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4758
4759         init.sh: avoid unwarranted test failure when using "set -e"
4760         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4761         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4762         a use like "compare exp out" would get evoke an unconditional failure.
4763
4764 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4765
4766         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4767         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4768         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4769         autoreconf that did not.
4770         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4771         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4772
4773 2011-12-17  Jim Meyering  <meyering@redhat.com>
4774
4775         bootstrap: remove some now-unneeded code
4776         This script arose back when gnulib-tool was young.
4777         Since then, it has seen improvements that render much of this
4778         script unnecessary.  In particular, it can now make symlinks
4779         to the files it uses.  Also, I no longer see as much value in
4780         marking files as read-only via comments.
4781         If you relied on the symlink-creation feature of the preceding
4782         version of this script, you can get most of that functionality
4783         by adding the --symlink option to the definition of
4784         gnulib_tool_option_extras in your bootstrap.conf file.
4785         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4786         Run autopoint and libtoolize *before* gnulib-tool.
4787         After it, run an abbreviated autoreconf, rather than a loop around
4788         all tools.
4789         (slirp, bt_mark_as_generated): Remove functions.
4790
4791 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4792
4793         ftoastr: fix typo
4794         * lib/ftoastr.h: Fix misspelling in comment.
4795
4796 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4797
4798         * top/README-release: fix punctuation.
4799
4800 2011-12-17  Jim Meyering  <meyering@redhat.com>
4801
4802         bootstrap: correct the recent buildreq change
4803         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4804         had no effect.
4805         * build-aux/bootstrap (buildreq): Bracket each search term with
4806         "*...*", so that the shell "case" statement works as intended.
4807         Add comments.
4808
4809 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4810
4811         build: let bootstrap resort to wget when downloading .po files
4812         * build-aux/bootstrap (download_po_files): Fallback to wget when
4813         downloading the .po files via rsync fails.  This is necessary to
4814         bootstrap from behind a strict firewall.
4815
4816 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4817
4818         stdint: don't assume C++11 when compiling with g++
4819         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4821         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4822         work also in C++ before C++11, as that improperly inhibits
4823         generating a substitute stdint.h for that case.
4824
4825 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4826
4827         alloca: protect comment from gnulib-tool
4828         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4829         that gnulib-tool doesn't think it's a license, and munge it to
4830         say "GCC version 3".
4831
4832 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4833
4834         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4835         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4836         $(abs_top_builddir) instead of $(top_builddir).
4837
4838 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4839
4840         strftime-tests: also test nanoseconds
4841         * tests/test-strftime.c (T): Add a test of %N.
4842
4843 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4844
4845         inttypes, stdint: add C++11 support
4846         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4847         when including inttypes.h and stdint.h.  Support this change to
4848         the standard.
4849         * doc/posix-headers/inttypes.texi (inttypes.h):
4850         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4851         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4852         Define if not defined already, for the benefit of pre-C++11 hosts.
4853         Define the standard format macros (e.g., PRId8) always.
4854         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4855         Likewise, if __cpluspus.  Define the standard constant and limit
4856         macros (e.g., INT8_C, INT8_MAX) always.
4857         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4858         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4859         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4860         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4861         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4862         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4863         Likewise.
4864
4865 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         nonblocking tests: Fix test failure on Linux/PPC.
4868         Suggested by Prerna Saxena in
4869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4870         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4871         Set to 1100000.
4872
4873 2011-12-12  Jim Meyering  <meyering@redhat.com>
4874
4875         argmatch: don't hard-code `' when listing valid option arguments
4876         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4877         use the quote function to add quotes.  Use fputs rather than
4878         fprintf for the format string with no format directive.
4879
4880 2011-12-07  Eric Blake  <eblake@redhat.com>
4881
4882         bootstrap: detect tools required by gnulib-tool
4883         * build-aux/bootstrap (buildreq): Provide minimum implicit
4884         dependencies.
4885         * DEPENDENCIES: Mention patch as a prereq.
4886
4887 2011-12-04  Bruno Haible  <bruno@clisp.org>
4888
4889         sethostname: Port to Windows platforms.
4890         * lib/sethostname.c: Provide an alternate implementation for Windows
4891         platforms.
4892         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4893         (main): Skip the test if sethostname() fails with EPERM. On Windows
4894         platforms, don't check the result of gethostname().
4895
4896 2011-12-04  Bruno Haible  <bruno@clisp.org>
4897             Jim Meyering  <meyering@redhat.com>
4898
4899         tests: Avoid spurious error message on platforms without mktemp program.
4900         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4901
4902 2011-12-04  Bruno Haible  <bruno@clisp.org>
4903
4904         sethostname: Fix documentation.
4905         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4906         "not fixed" section.
4907
4908 2011-12-03  Bruno Haible  <bruno@clisp.org>
4909
4910         gnulib-tool: Verify that the License field is present and non-empty.
4911         * gnulib-tool (func_get_license_raw): New function, extracted from
4912         func_get_license.
4913         (func_get_license): Use it. Warn if the module is not a test module and
4914         has no license.
4915         Suggested by Jim Meyering.
4916
4917 2011-12-03  Bruno Haible  <bruno@clisp.org>
4918
4919         sethostname tests: Fix link error on mingw.
4920         * tests/test-sethostname1.c: New file, extracted from
4921         tests/test-sethostname.c.
4922         * tests/test-sethostname2.c: New file, extracted from
4923         tests/test-sethostname.c.
4924         * tests/test-sethostname.c: Remove file.
4925         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4926         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4927         (Depends-on): Add gethostname.
4928         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4929         Link the latter with $(GETHOSTNAME_LIB).
4930
4931         sethostname tests: Fix compilation error on mingw.
4932         * tests/test-sethostname.c: Don't include <sys/types.h>.
4933         (geteuid): Use a dummy value without uid_t.
4934         * modules/sethostname-tests (Depends-on): Remove sys_types.
4935
4936         sethostname tests: Avoid a gcc warning.
4937         * tests/test-sethostname.c (main): Remove an unused variable.
4938
4939         Tweak last commit.
4940         * modules/sethostname-tests (Files): Sort by decreasing importance.
4941         (configure.ac): Check for geteuid.
4942         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4943         the test when there's nothing to test. Drop an unnecessary cast.
4944         Improve an error message. Verify that the final sethostname() call
4945         succeeds.
4946
4947 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4948
4949         Add a test suite for the sethostname module.
4950         * modules/sethostname-tests: New file.  A test program
4951         for the sethostname module.
4952         * tests/test-sethostname.c: Likewise.
4953
4954 2011-12-03  Bruno Haible  <bruno@clisp.org>
4955
4956         Tweak last commit.
4957         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4958         Fix preprocessor directives indentation. Fix typos.
4959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4960         * modules/unistd (Makefile): Likewise.
4961
4962 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4963
4964         Integrate the sethostname module into unistd.
4965         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4966         into the unistd.h header.
4967         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4968         preprocessor directives.
4969         * modules/unistd: Setup the Makefile substitutions of the
4970         SETHOSTNAME preprocessor directives.
4971
4972 2011-12-03  Bruno Haible  <bruno@clisp.org>
4973
4974         Tweak last commit.
4975         * lib/sethostname.c: Don't include <string.h>.
4976         (sethostname): No need to copy the argument string to the stack. Don't
4977         call clearerr. Preserve errno when fprintf failed.
4978         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4979         Don't invoke AC_REPLACE_FUNCS.
4980         * modules/sethostname (Link): Remove empty section.
4981         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4982         failure problem.
4983
4984 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4985
4986         New module 'sethostname'.
4987         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4988         for systems that lack it.
4989         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4990         sethostname declaration and function.
4991         * modules/sethostname: New file.  Define the sethostname module.
4992
4993 2011-12-03  Bruno Haible  <bruno@clisp.org>
4994
4995         Tweak last commit.
4996         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4997
4998 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4999
5000         Split the HOST_NAME_MAX detection into a separate m4 macro.
5001         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5002         macro so it can be used by the pending sethostname module.
5003
5004 2011-12-03  Bruno Haible  <bruno@clisp.org>
5005
5006         Fix module descriptions syntax.
5007         * modules/argv-iter (License): Fix syntax.
5008         * modules/di-set (License): Likewise.
5009         * modules/ino-map (License): Likewise.
5010         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5011
5012 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5013
5014         stdalign: port to Clang 3.0
5015         Problem reported by Simon Josefsson in
5016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5017         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5018         which has <stdalign.h> but which does not define alignof.
5019         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5020
5021 2011-12-01  Eric Blake  <eblake@redhat.com>
5022
5023         mktempd: silence dd usage
5024         * build-aux/mktempd (rand_bytes): Silence dd.
5025
5026 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5027
5028         manywarnings: Don't mention gcc version in docstring.
5029         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5030         Jim Meyering <meyering@redhat.com>.
5031
5032 2011-11-30  Jim Meyering  <meyering@redhat.com>
5033
5034         hash: mark a few floating point constants with "f" suffix
5035         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5036         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5037         floating point constants with "f", since they're destined to be
5038         saved/used as "float"s.
5039
5040 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5041
5042         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5043         * tests/test-float.c (test_long_double): Correct and re-enable the
5044         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5045
5046 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5047
5048         Avoid subtracting two pointers that don't point into the same block.
5049         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5050         only pointers into the same memory block are subtracted. We cannot
5051         assume that sizeof (ptrdiff_t) == sizeof (void *).
5052
5053 2011-11-29  Eric Blake  <eblake@redhat.com>
5054
5055         maint.mk: add syntax check for use of compare from init.sh
5056         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5057         moved here from coreutils.
5058
5059         manywarnings: drop -Wunsuffixed-float-constants
5060         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5061         '1.0D', which is the only way to silence this warning for 'double'.
5062
5063 2011-11-29  Jim Meyering  <meyering@redhat.com>
5064
5065         hash: mark compute_bucket_size with the pure attribute
5066         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5067
5068         quotearg, propername: correct pragma guard expression
5069         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5070         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5071
5072 2011-11-28  Jim Meyering  <meyering@redhat.com>
5073
5074         propername: do not mark proper_name with the const attribute
5075         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5076         since it examines data pointed to by its parameter.
5077         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5078         the suggestion from -Wsuggest-attribute=const.
5079
5080         propername: mark one more function as const
5081         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5082
5083 2011-11-27  Jim Meyering  <meyering@redhat.com>
5084
5085         mark functions with const and pure attributes
5086
5087         Mark functions per suggestions from gcc-4.6 when using these options:
5088         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5089         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5090         Follow these guidelines: when possible, apply the attribute to
5091         an extern declaration, not to its definition.  Apply it to the
5092         definition only when the definition is static.
5093         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5094         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5095         * lib/base64.h (isbase64): Likewise.
5096         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5097         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5098         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5099         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5100         (c_tolower, c_toupper): Likewise.
5101         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5102         * lib/chdir-long.c (find_non_slash): Likewise.
5103         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5104         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5105         * lib/file-type.h (file_type): Likewise.
5106         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5107         * lib/filevercmp.c (verrevcmp): Likewise.
5108         * lib/freadahead.h (freadahead): Likewise.
5109         * lib/fts.c (fts_maxarglen): Likewise.
5110         * lib/hash-pjw.h (hash_pjw): Likewise.
5111         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5112         * lib/hash.c (is_prime, next_prime): Likewise.
5113         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5114         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5115         (hash_table_ok, hash_get_first, hash_string): Likewise.
5116         (compute_bucket_size): Likewise.
5117         * lib/i-ring.h (i_ring_empty): Likewise.
5118         * lib/isnan.c (isnanl): Likewise.
5119         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5120         * lib/memcasecmp.h (memcasecmp): Likewise.
5121         * lib/memchr2.h (memchr2): Likewise.
5122         * lib/memcmp2.h (memcmp2): Likewise.
5123         * lib/parse-datetime.y (lookup_zone): Likewise.
5124         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5125         [!WINDOWS_SOCKETS]: Likewise.
5126         * lib/strnlen1.h (strnlen1): Likewise.
5127         * lib/uniwidth.in.h (uc_width): Likewise.
5128         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5129         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5130         (quoting_options_from_style): Add a comment.
5131         * lib/propername.h (proper_name): Add a comment.
5132
5133 2011-11-27  Bruno Haible  <bruno@clisp.org>
5134
5135         Remove unused macros from !_LIBC code in glibc-borrowed files.
5136         * lib/fnmatch.c (STRCOLL): Remove macro.
5137         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5138         * lib/glob.c (__stat, __readdir64): Remove macros.
5139         * lib/tempname.c (__open64, __xstat64): Remove macros.
5140         Suggested by Paul Eggert.
5141
5142 2011-11-27  Bruno Haible  <bruno@clisp.org>
5143
5144         getcwd: Fix link error on MSVC 9.
5145         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5146
5147 2011-11-27  Bruno Haible  <bruno@clisp.org>
5148
5149         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5150         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5151         HAVE_OPENDIR is 0.
5152         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5153         HAVE_CLOSEDIR is 0.
5154         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5155         is 0.
5156         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5157
5158 2011-11-27  Bruno Haible  <bruno@clisp.org>
5159
5160         getcwd: Fix bug from 2011-08-17.
5161         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5162         platforms that need it.
5163         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5164         code of 4 to be a failure, not a success. This ensures that
5165         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5166
5167 2011-11-27  Bruno Haible  <bruno@clisp.org>
5168
5169         binary-io tests: Avoid test failure on mingw when libtool is used.
5170         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5171         Don't verify the size of t-bin-out1.tmp here.
5172         * tests/test-binary-io.sh: Verify it here.
5173         Reported by Simon Josefsson.
5174
5175 2011-11-26  Bruno Haible  <bruno@clisp.org>
5176
5177         Fix conflict between two instantiations of module 'unistd'.
5178         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5179         ${include_guard_prefix} also in the autoconf snippet.
5180         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5182         GNULIB_UNISTD_H_GETOPT.
5183         * modules/getopt-posix (configure.ac): Set the
5184         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5185         * modules/getopt-gnu (configure.ac): Likewise.
5186         * modules/unistd (Makefile.am): Change the substitution value of
5187         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5188         Reported by Simon Josefsson.
5189
5190 2011-11-25  Bruno Haible  <bruno@clisp.org>
5191
5192         pagealign_alloc: Doc and comments.
5193         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5194         module.
5195         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5196
5197 2011-11-25  Jim Meyering  <meyering@redhat.com>
5198
5199         test-update-copyright.sh: avoid false-positive failure
5200         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5201         around false positive failure on Cygwin/Windows.  The latter was
5202         matching erroneously-created files with names like
5203         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5204
5205 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5206
5207         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5208         * m4/valgrind-tests.m4: Check that the parameters that will be
5209         used works, not just a subset of them.  Reported by Bruno Haible
5210         <bruno@clisp.org>.
5211
5212 2011-11-24  Jim Meyering  <meyering@redhat.com>
5213
5214         test-stdalign.c: comment out long double tests
5215         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5216         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5217         error: '_Alignas' specifiers cannot reduce alignment of \
5218         'static_longdouble_alignas'.
5219
5220 2011-11-22  Jim Meyering  <meyering@redhat.com>
5221
5222         init.sh: make "compare /dev/null FILE" output more readable
5223         * tests/init.sh (compare_): Document the preferred order of arguments.
5224         (emit_diff_u_header_): New function.
5225         (compare_dev_null_): Emit a simulated diff, rather than just the
5226         contents of the unexpected file.  Suggestion from Bruno Haible.
5227
5228 2011-11-21  Jim Meyering  <meyering@redhat.com>
5229             Eric Blake  <eblake@redhat.com>
5230
5231         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5232         * tests/init.sh: Make our compare function slightly more portable.
5233         Reported by Bruno Haible in
5234         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5235
5236 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5237
5238         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5239         before using it, in code that ends up in config.h.
5240
5241 2011-11-20  Bruno Haible  <bruno@clisp.org>
5242
5243         getcwd: Work around getcwd bug on AIX 5..7.
5244         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5245         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5246         Use a different value for gl_cv_func_getcwd_path_max. Move the
5247         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5248         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5249         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5250         Define HAVE_MINIMALLY_WORKING_GETCWD.
5251         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5252         where it is not even minimally working, that is, on AIX.
5253         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5254         m4/getcwd-path-max.m4.
5255         (main): Update exit code computation.
5256         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5257         getcwd does not handle long file names.
5258
5259 2011-11-20  Bruno Haible  <bruno@clisp.org>
5260
5261         getcwd: Fix bug from 2009-09-10.
5262         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5263         like "no".
5264
5265 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5266
5267         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5268
5269 2011-11-20  Bruno Haible  <bruno@clisp.org>
5270
5271         fma tests: Avoid shadowing local variables.
5272         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5273         expected.
5274
5275 2011-11-20  Bruno Haible  <bruno@clisp.org>
5276
5277         copysignf tests: Fix.
5278         * tests/test-copysignf.c: Fix signature check.
5279
5280 2011-11-20  Bruno Haible  <bruno@clisp.org>
5281
5282         fma: Remove unused code.
5283         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5284         unused macros.
5285
5286 2011-11-20  Bruno Haible  <bruno@clisp.org>
5287
5288         sethostname: Fix doc about AIX.
5289         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5290         sethostname; it has it.
5291
5292         sethostname: Mention more portability problems.
5293         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5294         problem.
5295         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5296
5297 2011-11-19  Bruno Haible  <bruno@clisp.org>
5298
5299         Depend on module fcntl-h when AT_FDCWD is used.
5300         * modules/utimens (Depends-on): Add fcntl-h.
5301         * modules/areadlinkat (Depends-on): Likewise.
5302         * modules/areadlinkat-with-size (Depends-on): Likewise.
5303         * modules/faccessat (Depends-on): Likewise.
5304         * modules/fchmodat (Depends-on): Likewise.
5305         * modules/fchownat (Depends-on): Likewise.
5306         * modules/getcwd (Depends-on): Likewise.
5307         * modules/mkdirat (Depends-on): Likewise.
5308         * modules/mkfifoat (Depends-on): Likewise.
5309         * modules/readlinkat (Depends-on): Likewise.
5310         * modules/symlinkat (Depends-on): Likewise.
5311         * modules/dup2-tests (Depends-on): Likewise.
5312         * modules/fdutimensat-tests (Depends-on): Likewise.
5313         * modules/futimens-tests (Depends-on): Likewise.
5314
5315 2011-11-19  Bruno Haible  <bruno@clisp.org>
5316
5317         euidaccess: Update a comment.
5318         * lib/euidaccess.c: Update comment about platforms with faccessat.
5319
5320 2011-11-19  Bruno Haible  <bruno@clisp.org>
5321
5322         openat: Fix file list.
5323         * modules/openat (Files): Remove lib/at-func.c.
5324
5325 2011-11-19  Bruno Haible  <bruno@clisp.org>
5326
5327         fstatat: Simplify.
5328         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5329         gnulib should define rpl_fstatat, there is a
5330         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5331
5332 2011-11-19  Bruno Haible  <bruno@clisp.org>
5333
5334         Ensure 'inline' can be used in tests/test-utimens-common.h.
5335         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5336         * modules/futimens-tests (configure.ac): Likewise.
5337         * modules/utimens-tests (configure.ac): Likewise.
5338         * modules/utimensat-tests (configure.ac): Likewise.
5339
5340 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5341
5342         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5343         not hash_insert0.
5344         (hash_insert_if_absent): Doc fix.
5345
5346 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5347
5348         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5349
5350 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5351
5352         test-getcwd: disambiguate exit status
5353         * tests/test-getcwd.c (test_long_name): Return 0..7.
5354         (main): Exit with an unambiguous exit status.  The old
5355         code yielded a mysterious mixture of two failure codes.
5356
5357         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5358         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5359         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5360         rpl_fstatat or fstatat.  This should fix the other problem
5361         reported by Kai Habel in
5362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5363         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5365         and I reproduced it on a Solaris 8 host we still have in production.
5366
5367 2011-11-18  Jim Meyering  <meyering@redhat.com>
5368
5369         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5370         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5371         Add a sentence to the comment.
5372         (hash_insert0): New function that simply calls hash_insert_if_absent.
5373         * lib/hash.h (hash_insert_if_absent): Declare it.
5374         (hash_insert0): Add deprecation attribute.
5375         (_GL_ATTRIBUTE_DEPRECATED): Define.
5376         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5377         not hash_insert0.
5378         * NEWS: Mention it, even though it's not really an incompatible change.
5379
5380 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5381
5382         openat: avoid compilation failure due to lack of <errno.h> inclusion
5383         * lib/openat.c: Include <errno.h>.
5384
5385 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5386
5387         * modules/getcwd (Depends-on): Add fdopendir.
5388         This fixes one of the two problems reported by Kai Habel in
5389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5390
5391         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5392         stdalign problem reported by Ian Beckwith in
5393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5394         * modules/crypto/gc-arcfour (Depends-on):
5395         Depend conditionally on crypto/arcfour.
5396         * modules/crypto/gc-arctwo (Depends-on):
5397         Depend conditionally on crypto/arctwo.
5398         * modules/crypto/gc-des (Depends-on):
5399         Depend conditionally on crypto/des.
5400         * modules/crypto/gc-hmac-md5 (Depends-on):
5401         Depend conditionally on crypto/hmac-md5.
5402         * modules/crypto/gc-hmac-sha1 (Depends-on):
5403         Depend conditionally on crypto/hmac-sha1.
5404         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5405         * modules/crypto/gc-md4 (Depends-on):
5406         Depend conditionally on crypto/md4.
5407         * modules/crypto/gc-md5 (Depends-on):
5408         Depend conditionally on crypto/md5.
5409         * modules/crypto/gc-rijndael (Depends-on):
5410         Depend conditionally on crypto/rijndael.
5411         * modules/crypto/gc-sha1 (Depends-on):
5412         Depend conditionally on crypto/sha1.
5413         * modules/crypto/gc-arcfour:
5414         * modules/crypto/gc-arctwo:
5415         * modules/crypto/gc-des:
5416         * modules/crypto/gc-hmac-md5:
5417         * modules/crypto/gc-hmac-sha1:
5418         * modules/crypto/gc-md2:
5419         * modules/crypto/gc-md4:
5420         * modules/crypto/gc-md5:
5421         * modules/crypto/gc-rijndael:
5422         * modules/crypto/gc-sha1:
5423         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5424         now that the conditional dependencies do the work for us.
5425
5426 2011-11-17  Jim Meyering  <meyering@redhat.com>
5427
5428         tests: factor st_ctime-comparison out of two headers
5429         * tests/test-utimens-common.h (ctime_compare): Define.
5430         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5431         * tests/test-lutimens.h (test_lutimens): Likewise.
5432         * tests/test-utimens.h (test_utimens): Likewise.
5433
5434         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5435         Invoke the test program via an init.sh-using wrapper.
5436         * tests/test-getcwd.sh: New file.
5437         * modules/getcwd-tests (Files): Add it.
5438         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5439
5440 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5441
5442         gitlog-to-changelog: support multi-author commits.
5443         The FSF cares about keeping track of all authors of patches to its
5444         projects, but Git doesn't provide obvious support for multi-author
5445         changesets. Consensus seems to be forming around the use of extra
5446         Signed-off-by inspired lines in the log message formatted as
5447         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5448         multi-author commits between version control systems.
5449         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5450         log message and output in standard ChangeLog multi-author format.
5451         Reported by Peter Rosin <peda@lysator.liu.se>
5452
5453 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5454             Bruno Haible  <bruno@clisp.org>
5455
5456         Fix some modules' file list.
5457         * modules/fstatat (Files): Add m4/lstat.m4.
5458         * modules/openat (Files): Likewise.
5459         * modules/unlinkat (Files): Likewise.
5460
5461 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5462
5463         maint.mk: fix tight-scope.mk generation in VPATH builds.
5464         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5465         reference with $(srcdir) so that the file is found correctly even
5466         when running `make syntax-check' in a VPATH build.
5467
5468 2011-11-13  Bruno Haible  <bruno@clisp.org>
5469             Jim Meyering  <meyering@redhat.com>
5470
5471         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5472         * tests/init.sh (compare): Remove "No differences encountered" or
5473         synonymous output from the 'diff' program.
5474
5475 2011-11-13  Bruno Haible  <bruno@clisp.org>
5476
5477         Makefile: Tweak indentation.
5478         * Makefile: Use tab as first character in every line that contains rule
5479         commands.
5480
5481 2011-11-13  Bruno Haible  <bruno@clisp.org>
5482
5483         Syntax check for copyright statements.
5484         * check-copyright: New file.
5485         * Makefile (sc_check_copyright): New rule.
5486
5487 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5488
5489         * build-aux/git-version-gen: Add --prefix to configure the tag
5490         match string.
5491
5492 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5493
5494         * build-aux/git-version-gen: Add --help and --version.
5495
5496 2011-11-12  Jim Meyering  <meyering@redhat.com>
5497
5498         revamp the other test-exclude?.sh scripts to use init.sh, too
5499         * tests/test-exclude1.sh: Use init.sh.
5500         * tests/test-exclude2.sh: Likewise.
5501         * tests/test-exclude3.sh: Likewise.
5502         * tests/test-exclude4.sh: Likewise.
5503         * tests/test-exclude5.sh: Likewise.
5504         * tests/test-exclude6.sh: Likewise.
5505         * tests/test-exclude7.sh: Likewise.
5506         * tests/test-exclude8.sh: Likewise.
5507         * modules/exclude-tests (Files): List init.sh.
5508
5509         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5510         These shell scripts ignored failure of the binary test-exclude,
5511         so making the latter return 77 didn't cause them to be skipped.
5512         * tests/test-exclude5.sh: Exit with test-exclude's error status
5513         when that program fails.  Revamp to use init.sh.
5514         * tests/test-exclude2.sh: Likewise.
5515
5516         test-exclude: fix a typo
5517         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5518
5519 2011-11-11  Bruno Haible  <bruno@clisp.org>
5520
5521         obstack: Fix compilation error on MSVC 9.
5522         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5523
5524 2011-11-11  Jim Meyering  <meyering@redhat.com>
5525
5526         test-exclude: skip tests rather than failing on deficient systems
5527         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5528         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5529         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5530         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5531
5532 2011-11-10  Bruno Haible  <bruno@clisp.org>
5533
5534         ptsname_r test: Avoid gcc warning on glibc systems.
5535         * tests/test-ptsname_r.c (null_ptr): New function.
5536         (test_errors): Use it.
5537
5538 2011-11-10  Bruno Haible  <bruno@clisp.org>
5539
5540         ptsname_r: Avoid compilation error on OSF/1 5.1.
5541         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5543         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5544         function is not declared or incompatibly declared.
5545         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5546         * modules/ptsname_r (Depends-on, configure.ac): Update.
5547         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5548
5549 2011-11-10  Bruno Haible  <bruno@clisp.org>
5550
5551         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5552         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5553         When cross-compiling, guess yes on all platforms except AIX.
5554         Reported by Ludovic Courtès <ludo@gnu.org>.
5555
5556 2011-11-09  Bruno Haible  <bruno@clisp.org>
5557
5558         ptsname_r tests: Fix bugs.
5559         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5560         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5561
5562 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5563
5564         fstatat: work with cross-compilation
5565         Problem reported by Ludovic Courtès in
5566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5567         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5568         "cross-compiling" and assume the bug is present.  Replace
5569         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5570         an inverted sense, to be more conservative about our assumptions.
5571         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5572
5573 2011-11-09  Bruno Haible  <bruno@clisp.org>
5574
5575         Improve MODULES.html output.
5576         * modules/mkfifoat (Description): Use the word "function".
5577         * modules/readlinkat (Description): Likewise.
5578         * modules/symlinkat (Description): Likewise.
5579
5580 2011-11-09  Eric Blake  <eblake@redhat.com>
5581
5582         ptsname_r-tests: new test module
5583         * modules/ptsname_r-tests: New module.
5584         * tests/test-ptsname_r.c: New file.
5585
5586         ptsname_r: new module
5587         * modules/ptsname_r: New module.
5588         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5589         * lib/ptsname.c (__ptsname_r): Split...
5590         * lib/ptsname_r.c: ...into new file.
5591         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5592         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5593         * modules/stdlib (Makefile.am): Substitute witnesses.
5594         * lib/stdlib.in.h (ptsname_r): Declare it.
5595         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5596         * MODULES.html.sh (Misc): Likewise.
5597         * modules/ptsname (Depends-on): Alter dependency.
5598         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5599
5600 2011-11-09  Jim Meyering  <meyering@redhat.com>
5601
5602         announce-gen: be more concise when there's only one URL+tarball
5603         * build-aux/announce-gen (get_tool_versions): When you distribute
5604         only one type of tarball, combine the first two "Here are..."
5605         sections and make the key-checking grammar independent of
5606         how many tarballs there are.
5607
5608 2011-11-09  Eric Blake  <eblake@redhat.com>
5609
5610         openpty: provide a stub on mingw
5611         * lib/pty.in.h (includes): Provide forward declarations.
5612         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5613
5614         raise: fix mingw handling of SIGPIPE
5615         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5616
5617 2011-11-08  Bruno Haible  <bruno@clisp.org>
5618
5619         More conditional dependencies.
5620         * modules/faccessat (Depends-on): Add conditions.
5621         * modules/fchmodat (Depends-on): Likewise.
5622         * modules/fchownat (Depends-on): Likewise.
5623         * modules/fstatat (Depends-on): Likewise.
5624         * modules/mkfifoat (Depends-on): Likewise.
5625         * modules/readlinkat (Depends-on): Likewise.
5626         * modules/symlinkat (Depends-on): Likewise.
5627         * modules/unlinkat (Depends-on): Likewise.
5628         * modules/utimensat (Depends-on): Likewise.
5629         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5630         * modules/linkat (Depends-on): Refine the conditions.
5631         * modules/renameat (Depends-on): Likewise.
5632
5633 2011-11-08  Bruno Haible  <bruno@clisp.org>
5634
5635         faccessat: Move AC_LIBOBJ invocation to module description.
5636         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5637         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5638         invocation from here...
5639         * modules/faccessat (configure.ac): ... to here. Invoke
5640         gl_PREREQ_FACCESSAT.
5641
5642 2011-11-08  Bruno Haible  <bruno@clisp.org>
5643
5644         faccessat: Simplify autoconf macro.
5645         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5646         gl_FUNC_EUIDACCESS.
5647
5648 2011-11-08  Bruno Haible  <bruno@clisp.org>
5649
5650         renameat: Fix dependencies.
5651         * modules/renameat (Depends-on): Add stdbool.
5652
5653 2011-11-08  Bruno Haible  <bruno@clisp.org>
5654
5655         mkfifoat: Fix module description.
5656         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5657         not gl_UNISTD_MODULE_INDICATOR.
5658
5659 2011-11-08  Bruno Haible  <bruno@clisp.org>
5660
5661         fstatat: Remove unused dependency.
5662         * modules/fstatat (Depends-on): Remove fstat.
5663
5664 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5665
5666         GNUmakefile: behave when Makefile is missing.
5667         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5668
5669 2011-11-08  Bruno Haible  <bruno@clisp.org>
5670
5671         openat: Conditionalize dependencies.
5672         * lib/openat.c: Reduce the scope of some #includes.
5673         * modules/openat (Depends-on): Add conditions.
5674
5675 2011-11-07  Jim Meyering  <meyering@redhat.com>
5676
5677         maint.mk: extract GPG key ID without using a temporary file
5678         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5679         without using a temporary file.  Based on a suggestion from Werner Koch
5680         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5681
5682 2011-11-07  Eric Blake  <eblake@redhat.com>
5683
5684         grantpt: fix typo
5685         * lib/stdlib.in.h (grantpt): Check correct function.
5686
5687         maint.mk: silence new syntax check
5688         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5689
5690 2011-11-06  Bruno Haible  <bruno@clisp.org>
5691
5692         Doc about floating-point and math API.
5693         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5694         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5695
5696 2011-11-06  Bruno Haible  <bruno@clisp.org>
5697
5698         stdalign tests: Skip the test when compiled by Sun C.
5699         * tests/test-stdalign.c (main): Skip the test on Sun C.
5700
5701 2011-11-06  Bruno Haible  <bruno@clisp.org>
5702
5703         ansi-c++-opt: Complete the 2011-06-05 change.
5704         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5705         does not support namespaces, set the variable to "no", not to ":".
5706
5707 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5708
5709         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5710
5711 2011-11-06  Bruno Haible  <bruno@clisp.org>
5712
5713         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5714         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5715         (minus_zerol) [HP-UX]: New macro.
5716         (unary_minus) [HP-UX]: New function.
5717         (copysignl) [HP-UX]: Use unary_minus function.
5718
5719 2011-11-06  Bruno Haible  <bruno@clisp.org>
5720
5721         ldexp, ldexpf, ldexpl: Enhance tests.
5722         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5723         and tests/test-ldexpl.c.
5724         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5725         LDEXP, MIN_EXP, MAX_EXP): New macros.
5726         Include test-ldexp.h.
5727         (main): Just call test_function.
5728         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5729         infinity.h, nan.h.
5730         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5731         MAX_EXP): New macros.
5732         Include test-ldexp.h.
5733         (x, y): Remove variables.
5734         (main): Just call test_function.
5735         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5736         infinity.h, nan.h.
5737         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5738         MAX_EXP): New macros.
5739         Include test-ldexp.h.
5740         (x, y): Remove variables.
5741         (main): Just call test_function.
5742         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5743         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5744         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5745         (Depends-on): Add isnand-nolibm, signbit, float.
5746         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5747         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5748         (Depends-on): Add isnanf-nolibm, signbit, float.
5749
5750 2011-11-06  Bruno Haible  <bruno@clisp.org>
5751
5752         math tests: Cosmetics.
5753         * tests/test-math-c++.cc: Reorder declarations.
5754
5755 2011-11-05  Bruno Haible  <bruno@clisp.org>
5756
5757         fma*: Simplify test.
5758         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5759         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5760
5761         Tests for module 'fmal'.
5762         * modules/fmal-tests: New file.
5763         * tests/test-fmal1.c: New file.
5764         * tests/test-fmal2.c: New file.
5765
5766         New module 'fmal'.
5767         * lib/math.in.h (fmal): New declaration.
5768         * lib/fmal.c: New file.
5769         * m4/fmal.m4: New file.
5770         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5772         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5773         REPLACE_FMAL.
5774         * modules/fmal: New file.
5775         * doc/posix-functions/fmal.texi: Mention the new module and the various
5776         bugs.
5777
5778         Tests for module 'fmaf'.
5779         * modules/fmaf-tests: New file.
5780         * tests/test-fmaf1.c: New file.
5781         * tests/test-fmaf2.c: New file.
5782
5783         New module 'fmaf'.
5784         * lib/math.in.h (fmaf): New declaration.
5785         * lib/fmaf.c: New file.
5786         * m4/fmaf.m4: New file.
5787         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5789         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5790         REPLACE_FMAF.
5791         * modules/fmaf: New file.
5792         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5793         bugs.
5794
5795         Tests for module 'fma'.
5796         * modules/fma-tests: New file.
5797         * tests/test-fma1.c: New file.
5798         * tests/test-fma1.h: New file.
5799         * tests/test-fma2.c: New file.
5800         * tests/test-fma2.h: New file.
5801
5802         New module 'fma'.
5803         * lib/math.in.h (fma): New declaration.
5804         * lib/fma.c: New file.
5805         * m4/fma.m4: New file.
5806         * m4/fegetround.m4: New file.
5807         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5809         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5810         REPLACE_FMA.
5811         * modules/fma: New file.
5812         * doc/posix-functions/fma.texi: Mention the new module and the various
5813         bugs.
5814
5815         Extend gl_MATHFUNC.
5816         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5817         Support 'void' as argument type.
5818         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5819
5820 2011-11-05  Jim Meyering  <meyering@redhat.com>
5821
5822         maint.mk: also prohibit inclusion of dirent.h without use
5823         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5824
5825 2011-11-05  Bruno Haible  <bruno@clisp.org>
5826
5827         ldexpl tests: Avoid test failure on MSVC 9.
5828         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5829         value. Needed in order to enforce the conversion from a value greater
5830         than LDBL_MAX to Infinity.
5831
5832 2011-11-05  Bruno Haible  <bruno@clisp.org>
5833
5834         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5835         * modules/at-internal: New file, extracted from modules/openat.
5836         * modules/openat-h: New file.
5837         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5838         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5839         * modules/openat (Description): Add reference to POSIX function.
5840         (Files): Remove lib/openat.h, lib/openat-proc.c.
5841         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5842         intprops, unistd.
5843         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5844         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5845         gl_FCNTL_MODULE_INDICATOR.
5846         (Include): Remove unistd.h, openat.h.
5847         * modules/areadlinkat (Files): Add lib/at-func.c.
5848         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5849         openat-die, openat-h, save-cwd.
5850         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5851         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5852         openat-die, openat-h, save-cwd, unistd.
5853         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5854         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5855         openat-h, save-cwd. Remove fcntl-h, openat.
5856         * modules/fchmodat (Files): Remove lib/openat.h.
5857         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5858         openat, stdbool, unistd.
5859         * modules/fchownat (Files): Remove lib/openat.h.
5860         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5861         openat, stdbool, sys_stat.
5862         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5863         lib/openat-proc.c.
5864         (Depends-on): Add at-internal.
5865         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5866         * modules/fstatat (Files): Remove lib/openat.h.
5867         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5868         stdbool, unistd.
5869         * modules/fts (Depends-on): Add openat-h.
5870         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5871         openat.
5872         * modules/mkdirat (Files): Remove lib/openat.h.
5873         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5874         openat, stdbool, sys_stat.
5875         * modules/mkfifoat (Files): Add lib/at-func.c.
5876         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5877         openat-h, save-cwd. Remove fcntl-h, openat.
5878         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5879         * modules/readlinkat (Files): Add lib/at-func.c.
5880         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5881         openat-h, save-cwd. Remove fcntl-h, openat.
5882         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5883         openat.
5884         * modules/selinux-at (Files): Add lib/at-func.c.
5885         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5886         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5887         * modules/symlinkat (Files): Add lib/at-func.c.
5888         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5889         openat-h, save-cwd. Remove fcntl-h, openat.
5890         * modules/unlinkat (Files): Remove lib/openat.h.
5891         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5892         stdbool.
5893         * modules/utimensat (Files): Add lib/at-func.c.
5894         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5895         openat-die, openat-h, save-cwd.
5896         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5897         * modules/fdutimensat-tests (Depends-on): Add openat.
5898         * modules/fstatat-tests (Depends-on): Add openat-h.
5899         * modules/readlinkat-tests (Depends-on): Add openat.
5900         * modules/symlinkat-tests (Depends-on): Add openat.
5901
5902 2011-11-05  Bruno Haible  <bruno@clisp.org>
5903
5904         openat: Include <stdbool.h>.
5905         * lib/openat.c: Include <stdbool.h>.
5906
5907 2011-11-04  Bruno Haible  <bruno@clisp.org>
5908
5909         fchownat, renameat, unlinkat: Fix dependencies.
5910         * modules/fchownat (Depends-on): Add fstatat.
5911         * modules/renameat (Depends-on): Likewise.
5912         * modules/unlinkat (Depends-on): Likewise.
5913
5914 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5915
5916         openat: remove direct dependency on dirent
5917         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5918         and hasn't been needed ever since fdopendir was split into its own
5919         module on 2009-08-31.
5920         * modules/openat (Depends-on): Remove dirent.
5921
5922 2011-11-04  Bruno Haible  <bruno@clisp.org>
5923
5924         renameat: Optimize code size.
5925         * modules/renameat (configure.ac): Don't compile at-func2.c if
5926         REPLACE_RENAMEAT is 1.
5927
5928 2011-11-04  Bruno Haible  <bruno@clisp.org>
5929
5930         openat tests: Fix file list.
5931         * modules/openat-tests (Files): Add tests/test-open.h.
5932
5933 2011-11-04  Bruno Haible  <bruno@clisp.org>
5934
5935         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5936         * modules/fchmodat (Depends-on): Add openat-die.
5937         * modules/fchownat (Depends-on): Likewise.
5938         * modules/linkat (Depends-on): Likewise.
5939         * modules/renameat (Depends-on): Likewise.
5940         * modules/openat (Depends-on): Add dirent.
5941
5942 2011-11-04  Jim Meyering  <meyering@redhat.com>
5943
5944         at-func*.c: fix comments
5945         * lib/at-func2.c: Correct/improve first-line comment.
5946         * lib/at-func.c: Correct grammar in first-line comment.
5947
5948 2011-11-04  Bruno Haible  <bruno@clisp.org>
5949
5950         New module 'mkdirat', split off from module 'openat'.
5951         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5952         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5953         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5954         * modules/mkdirat: New file, extracted from modules/openat.
5955         * modules/openat (Files): Remove lib/mkdirat.c.
5956         (Depends-on): Remove mkdir.
5957         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5958         (Include): Remove <sys/stat.h>.
5959         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5960         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5961         tests/test-mkdir.h.
5962         (Depends-on): Remove ignore-value.
5963         (Makefile.am): Remove rules for test-mkdirat.
5964         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5965         of module 'openat'.
5966         * NEWS: Mention the change.
5967
5968 2011-11-04  Bruno Haible  <bruno@clisp.org>
5969
5970         closedir: Avoid warning on mingw.
5971         * lib/closedir.c: Include <unistd.h>.
5972
5973 2011-11-04  Bruno Haible  <bruno@clisp.org>
5974
5975         New module 'fstatat', split off from module 'openat'.
5976         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5977         defined.
5978         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5979         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5980         gl_FUNC_FSTATAT.
5981         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5982         * modules/fstatat: New file, extracted from modules/openat.
5983         * modules/openat (Files): Remove lib/fstatat.c.
5984         (Depends-on): Remove lstat.
5985         (configure.ac): Remove AC_LIBOBJ of fstatat.
5986         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5987         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5988         tests/test-lstat.h, tests/test-stat.h.
5989         (Depends-on): Remove getcwd-lgpl.
5990         (Makefile.am): Remove rules for test-fstatat.
5991         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5992         of module 'openat'.
5993         * NEWS: Mention the change.
5994         * modules/getcwd (Depends-on): Add fstatat.
5995         * modules/linkat (Depends-on): Likewise.
5996         * modules/mkfifoat-tests (Depends-on): Likewise.
5997         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5998
5999 2011-11-03  Bruno Haible  <bruno@clisp.org>
6000
6001         New module 'unlinkat', split off from module 'openat'.
6002         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6003         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6004         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6005         * modules/unlinkat: New file, extracted from modules/openat. Correct
6006         the dependency conditions.
6007         * modules/openat (Files): Remove lib/unlinkat.c.
6008         (Depends-on): Remove rmdir, unlink.
6009         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6010         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6011         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6012         tests/test-rmdir.h, tests/test-unlink.h.
6013         (Depends-on): Remove unlinkdir.
6014         (Makefile.am): Remove rules for test-unlinkat.
6015         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6016         of module 'openat'.
6017         * NEWS: Mention the change.
6018         * modules/linkat-tests (Depends-on): Add unlinkat.
6019         * modules/mkfifoat-tests (Depends-on): Likewise.
6020         * modules/readlinkat-tests (Depends-on): Likewise.
6021
6022 2011-11-02  Bruno Haible  <bruno@clisp.org>
6023
6024         New module 'fchmodat', split off from module 'openat'.
6025         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6026         defined.
6027         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6028         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6029         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6030         * modules/fchmodat: New file, extracted from modules/openat.
6031         * modules/openat (Files): Remove lib/fchmodat.c.
6032         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6033         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6034         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6035         (Makefile.am): Remove rules for test-fchmodat.
6036         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6037         of module 'openat'.
6038         * NEWS: Mention the change.
6039
6040 2011-11-02  Jim Meyering  <meyering@redhat.com>
6041
6042         putenv: indent #definition of "environ" to placate cppi
6043         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6044
6045         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6046         Git logs are often treated as immutable, because editing them
6047         changes the SHA1 checksums of all descendants.  Thus, errors in
6048         git logs tend to stay there forever.  However, when we generate
6049         a ChangeLog file -- typically for distribution -- from that git log,
6050         we can actually make corrections in the generated file.  The key
6051         lies in recording in machine-readable/applicable form the desired
6052         corrections.  See --help for description and an example.
6053         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6054         (usage): Describe it; alphabetize option descriptions.
6055         (main): Honor the new option, carefully.
6056
6057 2011-11-01  Jim Meyering  <meyering@redhat.com>
6058
6059         gitlog-to-changelog: avoid an infloop
6060         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6061         that ends up being empty.
6062
6063 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6064
6065         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6066         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6067         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6068         contains (possibly-quoted) backslashes.  This should avoid
6069         all-too-common shell bugs if COMPLICATED contains backslashes in
6070         the "wrong" places.  Reported by David Evans in
6071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6072         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6073         because we want ASCII ranges.  Is there some reason we don't use
6074         the C locale everywhere in this script?
6075         (func_module, top level): Avoid unwanted pathname expansion when
6076         $repo_url_prefix or $repo_url_suffix_repl contain shell
6077         metacharacters like '?' and '*'.
6078
6079 2011-11-01  Bruno Haible  <bruno@clisp.org>
6080
6081         fchownat: Improve description.
6082         * modules/fchownat (Description): Add link to function.
6083
6084 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6085
6086         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6087         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6089         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6090
6091 2011-11-01  Bruno Haible  <bruno@clisp.org>
6092
6093         alignof: Avoid collision with stdalign module.
6094         * lib/alignof.h (alignof): Remove macro.
6095         * NEWS: Mention the change.
6096         Reported by Paul Eggert.
6097
6098 2011-11-01  Bruno Haible  <bruno@clisp.org>
6099
6100         New module 'fchownat', split off from module 'openat'.
6101         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6102         defined.
6103         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6104         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6105         invoke gl_FUNC_FCHOWNAT.
6106         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6107         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6108         * modules/fchownat: New file, extracted from modules/openat.
6109         * modules/openat (Files): Remove lib/fchownat.c.
6110         (Depends-on): Remove lchown.
6111         (configure.ac): Remove AC_LIBOBJ of fchownat.
6112         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6113         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6114         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6115         (Depends-on): Remove mgetgroups, usleep, stat-time.
6116         (configure.ac): Remove test for getegid.
6117         (Makefile.am): Remove rules for test-fchownat.
6118         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6119         of module 'openat'.
6120         * NEWS: Mention the change.
6121
6122 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6123
6124         stdalign: port better to MSVC and to Sun C 5.11
6125         This fixes some of the problems reported by Bruno Haible in
6126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6127         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6128         shortcomings of MSVC and of Sun C 5.11.
6129         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6130         around __declspec arg.
6131         * modules/stdalign-tests (Files): Add tests/macros.h.
6132         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6133         Include macros.h, for ASSERT.
6134         (DECLARE_ALIGNED): Remove.
6135         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6136         to catch bug), and to 1 if not (simplifies the rest of the code).
6137         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6138         (CHECK_AUTO): Remove.
6139         (CHECK_ALIGNED): Check only the alignment of the static vars,
6140         since auto var alignment isn't supported by Sun C 5.11.
6141         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6142         ASSERT failures are easier to diagnose.
6143
6144 2011-10-31  Bruno Haible  <bruno@clisp.org>
6145
6146         doc about some IRIX 5.3 problems.
6147         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6148         on IRIX 5.3.
6149         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6150         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6151         5.3.
6152         * doc/posix-functions/grantpt.texi: Likewise.
6153         * doc/posix-functions/unlockpt.texi: Likewise.
6154         * doc/posix-functions/lgamma.texi: Likewise.
6155         * doc/posix-functions/nextafter.texi: Likewise.
6156         * doc/posix-functions/remainder.texi: Likewise.
6157         * doc/posix-functions/select.texi: Mention misplaced declaration on
6158         IRIX 5.3.
6159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6160
6161 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6162
6163         gitlog-to-changelog: fix git-log invocation.
6164         git-log mishandles date strings before 1970-01-01 UTC, and there is
6165         no use to specify --since=1970-01-01 by default anyway.
6166         * build-aux/gitlog-to-changelog: By default, when no --since option
6167         was given, do not specify explicit --since option to git-log.
6168
6169 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6170
6171         gitlog-to-changelog: new option --append-dot.
6172         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6173         first non-blank line of each commit message terminated with a dot.
6174
6175 2011-10-30  Bruno Haible  <bruno@clisp.org>
6176
6177         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6178         * lib/ffsl.h: Include <config.h>.
6179         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6180
6181 2011-10-30  Jim Meyering  <meyering@redhat.com>
6182
6183         GNUmakefile: reenable "make syntax-check" for most projects
6184         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6185         build-aux variable", "syntax-check" would do nothing but succeed with
6186         the "No version control files detected..." diagnostic (unless you
6187         happened to override _build-aux via cfg.mk).
6188         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6189         to precede inclusion of maint.mk.  Otherwise, these variables would
6190         be used undefined in any project that does not override the default.
6191
6192 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6193
6194         gitlog-to-changelog: treat a message with only blank lines as empty.
6195         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6196         trailing blank lines before the code that issues a warning about an
6197         empty commit message.
6198
6199 2011-10-30  Jim Meyering  <meyering@redhat.com>
6200
6201         test-parse-datetime.c: avoid new DST-related false positive test failure
6202         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6203         based on the time/date we'll convert, not the current time.
6204         Otherwise, the moment we cross a DST boundary like today's in
6205         Europe, (CEST to CET), that offset ends up being one hour off.
6206
6207 2011-10-27  Bruno Haible  <bruno@clisp.org>
6208
6209         fstat: Tweak documentation.
6210         * modules/fstat (Description): More precise description.
6211
6212 2011-10-27  Bruno Haible  <bruno@clisp.org>
6213
6214         Update documentation regarding 'largefile' module.
6215         * doc/posix-functions/fstat.texi: Tweak wording.
6216         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6217         problems with huge directories and/or small ino_t types.
6218         * doc/posix-functions/readdir.texi: Likewise.
6219         * doc/posix-functions/rewinddir.texi: Likewise.
6220
6221 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6222
6223         maint.mk: don't maintain a second build-aux variable.
6224         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6225         depends on GNUmakefile, which already maintains a cfg.mk
6226         overridable $(_build-aux) for projects with a non-standard
6227         build-aux directory location, although without the $(srcdir)
6228         prefix.  Use that variable consistently instead of introducing a
6229         second one.  Adjust all call sites.
6230
6231 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6232
6233         Add stdalign module and use it in other modules.
6234         This is based on a previous proposal by Bruno Haible
6235         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6236
6237         stdalign: new module
6238         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6239         * modules/stdalign: New files.
6240         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6241         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6242
6243         stdalign-tests: new module
6244         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6245
6246         argp: use stdalign
6247         * lib/argp-parse.c: Include <stdalign.h>.
6248         (alignof): Remove.
6249         * modules/argp (Depends-on): Add stdalign.
6250
6251         crypto libraries: use stdalign
6252         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6253         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6254         Do not include <stdlib.h> twice, in md4.c.
6255         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6256         because we are accessing a pointer's bit-pattern, not a size.
6257         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6258         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6259         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6260         * modules/crypto/sha512: Likewise.
6261
6262         sys_socket: use stdalign, not alignof
6263         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6264         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6265
6266 2011-10-27  Bruno Haible  <bruno@clisp.org>
6267
6268         raise test: Avoid a test failure on Linux/MIPS.
6269         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6270         because 99 is a valid signal on Linux/MIPS.
6271
6272 2011-10-27  Bruno Haible  <bruno@clisp.org>
6273
6274         nonblocking tests: Fix test failure on Linux/MIPS.
6275         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6276         Set to 270000.
6277
6278 2011-10-27  Bruno Haible  <bruno@clisp.org>
6279
6280         utimensat: Work around problem on Linux/hppa.
6281         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6282         values.
6283         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6284
6285 2011-10-25  Jim Meyering  <meyering@redhat.com>
6286
6287         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6288         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6289         after symbols like NULL, size_t, etc.
6290         Reported by Alfred M. Szmidt.
6291
6292         maint.mk: exempt ENODATA from a syntax-check rule
6293         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6294         from the sc_prohibit_always-defined_macros syntax-check rule.
6295         Add a comment.  See this for more details:
6296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6297
6298 2011-10-23  Jim Meyering  <meyering@redhat.com>
6299
6300         fts: close parent dir FD before returning from post-traversal fts_read
6301         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6302         unlink A, even though an FD open on A remained.  This is suboptimal
6303         (holding a file descriptor open longer than needed), but otherwise not
6304         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6305         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6306         that represents a real problem: it causes the removal of A to fail
6307         with e.g., "rm: cannot remove `A': Device or resource busy"
6308
6309         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6310         directory file descriptors.  After completing the final, FTS_DP,
6311         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6312         cache, but then proceeded to add a new FD to it via the subsequent
6313         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6314         final file descriptor would be closed only via fts_close's call to
6315         fd_ring_clear.  Now, it is usually closed earlier, via the final
6316         FTS_DP-returning fts_read call.
6317         * lib/fts.c (restore_initial_cwd): New function, converted from
6318         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6319         Update callers.
6320         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6321         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6322
6323 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6324             Bruno Haible  <bruno@clisp.org>
6325             Jim Meyering  <jim@meyering.net>
6326
6327         readme-release: improve safety of release prep instructions.
6328         * README-release: Don't git pull all branches when only master
6329         is needed for the release process.
6330         Run make maintainer-clean before changing trees and merging.
6331         Don't try to run ./configure right after git pull in case files
6332         that influence the bootstrap process have changed, move the
6333         ./configure step to after running ./bootstrap.
6334         Don't bootstrap "one last time"... it's the first time!
6335
6336 2011-10-22  Bruno Haible  <bruno@clisp.org>
6337
6338         errno, strerror-override: Support for MSVC 10.
6339         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6340         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6341         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6342         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6343         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6344         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6345         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6346         Assign values compatible with MSVC 10.
6347         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6348         New macros.
6349         (GNULIB_defined_EWINSOCK): New macro.
6350         * lib/strerror-override.c (strerror_override): Update accordingly.
6351         * lib/strerror-override.h: Likewise.
6352         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6353         longer equal to the corresponding errno value.
6354         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6355
6356 2011-10-22  Bruno Haible  <bruno@clisp.org>
6357
6358         perror: Recognize when test program crashes.
6359         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6360         strerror, set gl_cv_func_perror_works to no.
6361         Reported by Daniel Richard G. <skunk@iskunk.org>.
6362
6363         perror: Fix indentation.
6364         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6365
6366 2011-10-22  Bruno Haible  <bruno@clisp.org>
6367
6368         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6369         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6370         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6371         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6372         functions, not as a macro.
6373         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6374         macros.
6375         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6376         absence of macro.
6377         Suggested by Eric Blake.
6378         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6379
6380 2011-10-21  Bruno Haible  <bruno@clisp.org>
6381
6382         relocatable-prog-wrapper: Don't leave object files behind.
6383         * build-aux/install-reloc: Re-synchronize list of .o files to be
6384         removed with list of compilation units.
6385
6386 2011-10-20  Bruno Haible  <bruno@clisp.org>
6387
6388         openpty, posix_openpt: Remove code duplication.
6389         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6390         * lib/openpty.c: Include <stdlib.h>.
6391         (openpty): Use posix_openpt on all platforms except IRIX.
6392         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6393
6394 2011-10-20  Bruno Haible  <bruno@clisp.org>
6395
6396         unlockpt: Detect invalid argument.
6397         * lib/unlockpt.c: Include <fcntl.h>.
6398         (unlockpt): Check whether fd is valid, using fcntl().
6399         * modules/unlockpt (Depends-on): Add fcntl-h.
6400
6401 2011-10-20  Bruno Haible  <bruno@clisp.org>
6402
6403         openpty: Avoid compilation error on AIX 6.1.
6404         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6405
6406 2011-10-20  Bruno Haible  <bruno@clisp.org>
6407
6408         posix_openpt: Support for OpenBSD.
6409         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6410         (posix_openpt) [OpenBSD]: New code.
6411         * lib/grantpt.c: Include <fcntl.h>.
6412         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6413         * modules/grantpt (Depends-on): Add fcntl-h.
6414
6415 2011-10-20  Bruno Haible  <bruno@clisp.org>
6416
6417         posix_openpt test: Coding style.
6418         * tests/test-posix_openpt.c: Use GNU coding style.
6419
6420 2011-10-20  Bruno Haible  <bruno@clisp.org>
6421
6422         grantpt: Support --avoid=pt_chown.
6423         * modules/grantpt (Files): Add lib/pty-private.h.
6424
6425 2011-10-20  Bruno Haible  <bruno@clisp.org>
6426
6427         posix_openpt: Fix autoconf macro.
6428         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6429         unneeded check for _getpty.
6430
6431 2011-10-20  Bruno Haible  <bruno@clisp.org>
6432
6433         openpty: Update comments.
6434         * lib/openpty.c: Add comments about Minix.
6435
6436 2011-10-19  Eric Blake  <eblake@redhat.com>
6437
6438         openpty: relax license
6439         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6440
6441         pt_chown: use configmake to simplify build
6442         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6443
6444         ptsname and others: relax license
6445         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6446         * modules/unlockpt (License): Likewise.
6447         * modules/pt_chown (License): Likewise.
6448         * modules/ptsname (License): Likewise.
6449         * modules/ttyname_r (License): Likewise.
6450
6451 2011-10-19  Jim Meyering  <meyering@redhat.com>
6452
6453         posix_openpt: remove spurious #endif
6454         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6455
6456 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6457
6458         maint.mk: Respect $(build_aux) in web-manual rule.
6459         * top/maint.mk (web-manual): Find gen-announce script in user's
6460         $(build_aux) directory instead of hard-coding 'build-aux'.
6461
6462 2011-10-19  Bruno Haible  <bruno@clisp.org>
6463
6464         posix_openpt: Fix compilation error.
6465         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6466         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6467         Mention the openpty module as an alternative.
6468
6469 2011-10-19  Bruno Haible  <bruno@clisp.org>
6470
6471         Support for old NeXTstep 3.3 frexp().
6472         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6473         execution time of the test to 5 seconds.
6474         Reported by Daniel Richard G. <skunk@iskunk.org>.
6475
6476 2011-10-19  Bruno Haible  <bruno@clisp.org>
6477
6478         Support for old NeXTstep 3.3 sed.
6479         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6480         part, use /.../, not \|...|. Escape periods in the header file name.
6481         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6482         Reported by Daniel Richard G. <skunk@iskunk.org>.
6483
6484 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6485
6486         Support for old NeXTstep 3.3 gcc.
6487         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6488         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6489         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6490         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6491         * lib/regex.h (_Restrict_arr_): Likewise.
6492         * lib/regex_internal.h (re_token_t): Likewise.
6493         * lib/regexec.c (check_node_accept_bytes): Likewise.
6494         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6495
6496 2011-10-18  Eric Blake  <eblake@redhat.com>
6497
6498         posix_openpt: new module
6499         * modules/posix_openpt: New module.
6500         * m4/posix_openpt.m4: New file.
6501         * lib/posix_openpt.c: Likewise.
6502         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6503         (gl_STDLIB_H_DEFAULTS): Set defaults.
6504         * modules/stdlib (Makefile.am): Substitute macros.
6505         * lib/stdlib.in.h (posix_openpt): Declare.
6506         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6507         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6508         * modules/posix_openpt-tests: New test module.
6509         * tests/test-posix_openpt.c: New test.
6510
6511 2011-10-15  Bruno Haible  <bruno@clisp.org>
6512
6513         xstrtoll: Fix compilation failure.
6514         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6515         from lib/strtol.c.
6516         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6517         some platforms.
6518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6519
6520 2011-10-15  Bruno Haible  <bruno@clisp.org>
6521
6522         vasnprintf: Optimize bit search operation.
6523         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6525         gl_DOUBLE_EXPONENT_LOCATION.
6526         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6527         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6528         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6529         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6530         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6531         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6532         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6533         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6534         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6535
6536 2011-10-15  Bruno Haible  <bruno@clisp.org>
6537
6538         vasnprintf: Fix comments.
6539         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6540
6541 2011-10-14  Bruno Haible  <bruno@clisp.org>
6542
6543         Tests for module 'integer_length_ll'.
6544         * modules/integer_length_ll-tests: New file.
6545         * tests/test-integer_length_ll.c: New file.
6546
6547         New module 'integer_length_ll'.
6548         * lib/integer_length_ll.c: New file.
6549         * modules/integer_length_ll: New file.
6550
6551 2011-10-14  Bruno Haible  <bruno@clisp.org>
6552
6553         Tests for module 'integer_length_l'.
6554         * modules/integer_length_l-tests: New file.
6555         * tests/test-integer_length_l.c: New file.
6556
6557         New module 'integer_length_l'.
6558         * lib/integer_length_l.c: New file.
6559         * modules/integer_length_l: New file.
6560
6561 2011-10-14  Bruno Haible  <bruno@clisp.org>
6562
6563         Tests for module 'integer_length'.
6564         * modules/integer_length-tests: New file.
6565         * tests/test-integer_length.c: New file.
6566
6567         New module 'integer_length'.
6568         * lib/integer_length.h: New file.
6569         * lib/integer_length.c: New file.
6570         * modules/integer_length: New file.
6571
6572 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6573
6574         popen: Fix dependency conditions.
6575         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6576
6577 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6578
6579         perror: Fix autoconf test.
6580         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6581         <stdlib.h> and <string.h>.
6582
6583 2011-10-14  Bruno Haible  <bruno@clisp.org>
6584
6585         ffsl: Optimize on 64-bit platforms.
6586         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6587         unrolling.
6588
6589 2011-10-13  Bruno Haible  <bruno@clisp.org>
6590
6591         ffsl: Optimize on 32-bit platforms.
6592         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6593         use ffs() without a loop.
6594
6595         ffsl, ffsll: Optimize for GCC.
6596         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6597         * lib/ffsl.c (GCC_BUILTIN): New macro.
6598         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6599
6600 2011-10-13  Bruno Haible  <bruno@clisp.org>
6601
6602         ffs, bcopy, memset: Support symbol renaming via config.h.
6603         * lib/ffs.c: Include <config.h>.
6604         * lib/bcopy.c: Likewise.
6605         * lib/memset.c: Likewise.
6606
6607 2011-10-10  Bruno Haible  <bruno@clisp.org>
6608
6609         atanl: Simplify for platforms where 'long double' == 'double'.
6610         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6611         alternative implementation.
6612         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6613         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6614         * modules/atanl (Depends-on): Add atan. Update conditions.
6615
6616 2011-10-10  Bruno Haible  <bruno@clisp.org>
6617
6618         acosl: Simplify for platforms where 'long double' == 'double'.
6619         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6620         alternative implementation.
6621         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6622         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6623         * modules/acosl (Depends-on): Add acos. Update conditions.
6624
6625 2011-10-10  Bruno Haible  <bruno@clisp.org>
6626
6627         asinl: Simplify for platforms where 'long double' == 'double'.
6628         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6629         alternative implementation.
6630         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6631         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6632         * modules/asinl (Depends-on): Add asin. Update conditions.
6633
6634 2011-10-10  Bruno Haible  <bruno@clisp.org>
6635
6636         tanl: Simplify for platforms where 'long double' == 'double'.
6637         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6638         implementation.
6639         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6640         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6641         * modules/tanl (Depends-on): Add tan. Update conditions.
6642         (configure.ac): Don't compile trigl.c if
6643         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6644
6645 2011-10-10  Bruno Haible  <bruno@clisp.org>
6646
6647         cosl: Simplify for platforms where 'long double' == 'double'.
6648         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6649         implementation.
6650         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6651         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6652         * modules/cosl (Depends-on): Add cos. Update conditions.
6653         (configure.ac): Don't compile sincosl.c and trigl.c if
6654         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6655
6656 2011-10-10  Bruno Haible  <bruno@clisp.org>
6657
6658         sinl: Simplify for platforms where 'long double' == 'double'.
6659         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6660         implementation.
6661         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6662         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6663         * modules/sinl (Depends-on): Add sin. Update conditions.
6664         (configure.ac): Don't compile sincosl.c and trigl.c if
6665         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6666
6667 2011-10-10  Bruno Haible  <bruno@clisp.org>
6668
6669         logl: Simplify for platforms where 'long double' == 'double'.
6670         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6671         implementation.
6672         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6673         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6674         * modules/logl (Depends-on): Add log. Update conditions.
6675
6676 2011-10-10  Bruno Haible  <bruno@clisp.org>
6677
6678         expl: Simplify for platforms where 'long double' == 'double'.
6679         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6680         implementation.
6681         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6682         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6683         * modules/expl (Depends-on): Add exp. Update conditions.
6684
6685 2011-10-10  Bruno Haible  <bruno@clisp.org>
6686
6687         sqrtl: Simplify for platforms where 'long double' == 'double'.
6688         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6689         alternative implementation.
6690         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6691         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6692         * modules/sqrtl (Depends-on): Update conditions.
6693
6694 2011-10-10  Bruno Haible  <bruno@clisp.org>
6695
6696         ldexpl: Simplify for platforms where 'long double' == 'double'.
6697         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6698         alternative implementation.
6699         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6700         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6701         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6702
6703 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6704
6705         ffsll: set correct witness
6706         * modules/ffsll (configure.ac): Fix typo.
6707
6708 2011-10-10  Bruno Haible  <bruno@clisp.org>
6709
6710         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6711         * lib/printf-frexpl.c: Include <config.h>.
6712         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6713         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6714         second time.
6715         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6716         gl_LONG_DOUBLE_VS_DOUBLE.
6717         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6718         conditions.
6719
6720 2011-10-10  Bruno Haible  <bruno@clisp.org>
6721
6722         frexpl: Simplify for platforms where 'long double' == 'double'.
6723         * lib/frexpl.c: Include <config.h>.
6724         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6725         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6726         time.
6727         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6728         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6729         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6730         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6731         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6732         conditions.
6733
6734 2011-10-10  Jim Meyering  <meyering@redhat.com>
6735
6736         test-renameat: don't leave behind a temporary file
6737         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6738           ERROR: files left in build directory after distclean:
6739           ./gltests/test-renameat.too
6740           make[1]: *** [distcleancheck] Error 1
6741         Reported by Tom G. Christensen.
6742
6743 2011-10-09  Bruno Haible  <bruno@clisp.org>
6744
6745         rint: Determine RINT_LIBM correctly on AIX 7.
6746         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6747         directly, not only through a function pointer. Also accept an optional
6748         4th argument with extra code.
6749         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6750         rintf() call by gcc when optimizing.
6751
6752         mathfunc.m4: Refactor.
6753         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6754         m4 variable.
6755
6756 2011-10-09  Bruno Haible  <bruno@clisp.org>
6757
6758         rintl: Simplify for platforms where 'long double' == 'double'.
6759         * lib/rintl.c: Include <config.h>.
6760         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6761         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6762         time.
6763         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6764         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6765         * modules/rintl (Depends-on): Add rint. Update conditions.
6766
6767 2011-10-09  Bruno Haible  <bruno@clisp.org>
6768
6769         roundl: Simplify for platforms where 'long double' == 'double'.
6770         * lib/roundl.c: Include <config.h>.
6771         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6772         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6773         time.
6774         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6775         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6776         * modules/roundl (Depends-on): Add round. Update conditions.
6777
6778 2011-10-09  Bruno Haible  <bruno@clisp.org>
6779
6780         truncl: Simplify for platforms where 'long double' == 'double'.
6781         * lib/truncl.c: Include <config.h>.
6782         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6783         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6784         time.
6785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6786         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6787         * modules/truncl (Depends-on): Add trunc. Update conditions.
6788
6789 2011-10-09  Bruno Haible  <bruno@clisp.org>
6790
6791         ceill: Simplify for platforms where 'long double' == 'double'.
6792         * lib/ceill.c: Include <config.h>.
6793         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6794         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6795         time.
6796         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6797         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6798         * modules/ceill (Depends-on): Add ceil. Update conditions.
6799
6800 2011-10-09  Bruno Haible  <bruno@clisp.org>
6801
6802         floorl: Simplify for platforms where 'long double' == 'double'.
6803         * lib/floorl.c: Include <config.h>.
6804         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6805         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6806         time.
6807         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6808         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6809         * modules/floorl (Depends-on): Add floor. Update conditions.
6810
6811 2011-10-09  Bruno Haible  <bruno@clisp.org>
6812
6813         rint: Fix ordering constraints.
6814         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6815         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6816         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6817
6818 2011-10-09  Bruno Haible  <bruno@clisp.org>
6819
6820         copysignl: Simplify for platforms where 'long double' == 'double'.
6821         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6822         alternative.
6823         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6824         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6825         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6826
6827 2011-10-09  Bruno Haible  <bruno@clisp.org>
6828
6829         Tests for module 'rintl'.
6830         * modules/rintl-tests: New file.
6831         * tests/test-rintl.c: New file.
6832
6833         New module 'rintl'.
6834         * lib/math.in.h (rintl): New declaration.
6835         * lib/rintl.c: New file.
6836         * m4/rintl.m4: New file.
6837         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6839         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6840         * modules/rintl: New file.
6841         * tests/test-math-c++.cc: Check the declaration of rintl.
6842         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6843         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6844         * doc/posix-functions/rintl.texi: Mention the new module.
6845
6846 2011-10-09  Bruno Haible  <bruno@clisp.org>
6847
6848         Tests for module 'rintf'.
6849         * modules/rintf-tests: New file.
6850         * tests/test-rintf.c: New file.
6851
6852         New module 'rintf'.
6853         * lib/math.in.h (rintf): New declaration.
6854         * lib/rintf.c: New file.
6855         * m4/rintf.m4: New file.
6856         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6858         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6859         * modules/rintf: New file.
6860         * tests/test-math-c++.cc: Check the declaration of rintf.
6861         * doc/posix-functions/rintf.texi: Mention the new module.
6862
6863 2011-10-09  Bruno Haible  <bruno@clisp.org>
6864
6865         rint: Support for MSVC.
6866         * lib/math.in.h (rint): New declaration.
6867         * lib/rint.c: New file.
6868         * m4/rint.m4: New file.
6869         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6871         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6872         * modules/rint (Description): Fix.
6873         (Files): Add lib/rint.c, m4/rint.m4.
6874         (Depends-on): Add math.
6875         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6876         gl_MATH_MODULE_INDICATOR.
6877         * tests/test-math-c++.cc: Check the declaration of rint.
6878         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6879         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6880         * doc/posix-functions/rint.texi: Mention the replacement provided by
6881         the module.
6882
6883         rint tests: More tests.
6884         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6885         minus-zero.h, infinity.h, nan.h.
6886         (main): Skip the test if the current rounding mode is not standard. Add
6887         tests for negative numbers, minus zero, infinity, NaN.
6888         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6889         tests/nan.h.
6890         (Depends-on): Add isnand-nolibm.
6891
6892 2011-10-09  Bruno Haible  <bruno@clisp.org>
6893
6894         Tests for module 'copysignl'.
6895         * modules/copysignl-tests: New file.
6896         * tests/test-copysignl.c: New file.
6897
6898         New module 'copysignl'.
6899         * lib/math.in.h (copysignl): New declaration.
6900         * lib/copysignl.c: New file.
6901         * m4/copysignl.m4: New file.
6902         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6904         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6905         HAVE_COPYSIGNL.
6906         * modules/copysignl: New file.
6907         * tests/test-math-c++.cc: Check the declaration of copysignl.
6908         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6909         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6910         * doc/posix-functions/copysignl.texi: Mention the new module.
6911
6912 2011-10-09  Bruno Haible  <bruno@clisp.org>
6913
6914         Tests for module 'copysignf'.
6915         * modules/copysignf-tests: New file.
6916         * tests/test-copysignf.c: New file.
6917
6918         New module 'copysignf'.
6919         * lib/math.in.h (copysignf): New declaration.
6920         * lib/copysignf.c: New file.
6921         * m4/copysignf.m4: New file.
6922         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6924         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6925         HAVE_COPYSIGNF.
6926         * modules/copysignf: New file.
6927         * tests/test-math-c++.cc: Check the declaration of copysignf.
6928         * doc/posix-functions/copysignf.texi: Mention the new module.
6929
6930 2011-10-09  Bruno Haible  <bruno@clisp.org>
6931
6932         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6933         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6934         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6935         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6936         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6937         gl_SIGNAL_H_DEFAULTS.
6938
6939 2011-10-09  Bruno Haible  <bruno@clisp.org>
6940
6941         poll: Make macro safer.
6942         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6943         ac_cv_header_poll_h is not set.
6944
6945 2011-10-09  Bruno Haible  <bruno@clisp.org>
6946
6947         copysign: Provide replacement.
6948         * lib/math.in.h (copysign): New declaration.
6949         * lib/copysign.c: New file.
6950         * m4/copysign.m4: New file.
6951         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6953         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6954         HAVE_COPYSIGN.
6955         * modules/copysign (Description): Clarify.
6956         (Files): Add lib/copysign.c, m4/copysign.m4.
6957         (Depends-on): Add math, signbit.
6958         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6959         gl_MATH_MODULE_INDICATOR.
6960         * tests/test-math-c++.cc: Check the declaration of copysign.
6961         * doc/posix-functions/copysign.texi: Mention the effects of the module
6962         on Minix and MSVC.
6963
6964 2011-10-09  Bruno Haible  <bruno@clisp.org>
6965
6966         isinf: Ensure macro on AIX 5.1.
6967         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6968         macro.
6969         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6970
6971 2011-10-09  Bruno Haible  <bruno@clisp.org>
6972
6973         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6974         * modules/snprintf-posix-tests (configure.ac): Require
6975         gl_LONG_DOUBLE_VS_DOUBLE.
6976         * modules/sprintf-posix-tests (configure.ac): Likewise.
6977         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6978         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6979         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6980         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6981         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6982         tests on platforms where 'long double' is the same as 'double'.
6983         * tests/test-sprintf-posix.h (test_function): Likewise.
6984         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6985         * tests/test-vasprintf-posix.c (test_function): Likewise.
6986
6987         *printf: Fix for platforms where 'long double' == 'double'.
6988         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6989         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6990         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6991         * modules/fprintf-posix (Files): Likewise.
6992         * modules/obstack-printf-posix (Files): Likewise.
6993         * modules/snprintf-posix (Files): Likewise.
6994         * modules/sprintf-posix (Files): Likewise.
6995         * modules/vasnprintf (Files): Likewise.
6996         * modules/vasnprintf-posix (Files): Likewise.
6997         * modules/vasprintf-posix (Files): Likewise.
6998         * modules/vdprintf-posix (Files): Likewise.
6999         * modules/vfprintf-posix (Files): Likewise.
7000         * modules/vsnprintf-posix (Files): Likewise.
7001         * modules/vsprintf-posix (Files): Likewise.
7002         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7003         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7004         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7005         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7006         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7007         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7008         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7009
7010         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7011         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7012         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7013         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7014         'long double'.
7015         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7016
7017         isinf: Fix for platforms where 'long double' == 'double'.
7018         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7019         Don't blindly assume 80-bit 'long double'.
7020
7021         isfinite: Fix for platforms where 'long double' == 'double'.
7022         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7023         Don't blindly assume 80-bit 'long double'.
7024
7025         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7026         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7027         * modules/isfinite-tests (configure.ac): Require
7028         gl_LONG_DOUBLE_VS_DOUBLE.
7029         * modules/isinf-tests (configure.ac): Likewise.
7030         * modules/isnan-tests (configure.ac): Likewise.
7031         * modules/isnanl-tests (configure.ac): Likewise.
7032         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7033         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7034         tests on platforms where 'long double' is the same as 'double'.
7035         * tests/test-isinf.c (test_isinfl): Likewise.
7036         * tests/test-isnan.c (test_long_double): Likewise.
7037         * tests/test-isnanl.h (main): Likewise.
7038
7039 2011-10-08  Bruno Haible  <bruno@clisp.org>
7040
7041         Tests for module 'tanhf'.
7042         * modules/tanhf-tests: New file.
7043         * tests/test-tanhf.c: New file.
7044
7045         New module 'tanhf'.
7046         * lib/math.in.h (tanhf): New declaration.
7047         * lib/tanhf.c: New file.
7048         * m4/tanhf.m4: New file.
7049         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7051         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7052         * modules/tanhf: New file.
7053         * tests/test-math-c++.cc: Check the declaration of tanhf.
7054         * doc/posix-functions/tanhf.texi: Mention the new module.
7055
7056         tanh: Use a .m4 file.
7057         * m4/tanh.m4: New file.
7058         * modules/tanh (Files): Add it.
7059         (configure.ac): Just invoke gl_FUNC_TANH.
7060
7061 2011-10-08  Bruno Haible  <bruno@clisp.org>
7062
7063         Tests for module 'coshf'.
7064         * modules/coshf-tests: New file.
7065         * tests/test-coshf.c: New file.
7066
7067         New module 'coshf'.
7068         * lib/math.in.h (coshf): New declaration.
7069         * lib/coshf.c: New file.
7070         * m4/coshf.m4: New file.
7071         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7073         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7074         * modules/coshf: New file.
7075         * tests/test-math-c++.cc: Check the declaration of coshf.
7076         * doc/posix-functions/coshf.texi: Mention the new module.
7077
7078         cosh: Use a .m4 file.
7079         * m4/cosh.m4: New file.
7080         * modules/cosh (Files): Add it.
7081         (configure.ac): Just invoke gl_FUNC_COSH.
7082
7083 2011-10-08  Bruno Haible  <bruno@clisp.org>
7084
7085         Tests for module 'sinhf'.
7086         * modules/sinhf-tests: New file.
7087         * tests/test-sinhf.c: New file.
7088
7089         New module 'sinhf'.
7090         * lib/math.in.h (sinhf): New declaration.
7091         * lib/sinhf.c: New file.
7092         * m4/sinhf.m4: New file.
7093         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7095         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7096         * modules/sinhf: New file.
7097         * tests/test-math-c++.cc: Check the declaration of sinhf.
7098         * doc/posix-functions/sinhf.texi: Mention the new module.
7099
7100         sinh: Use a .m4 file.
7101         * m4/sinh.m4: New file.
7102         * modules/sinh (Files): Add it.
7103         (configure.ac): Just invoke gl_FUNC_SINH.
7104
7105 2011-10-08  Bruno Haible  <bruno@clisp.org>
7106
7107         Tests for module 'atan2f'.
7108         * modules/atan2f-tests: New file.
7109         * tests/test-atan2f.c: New file.
7110
7111         New module 'atan2f'.
7112         * lib/math.in.h (atan2f): New declaration.
7113         * lib/atan2f.c: New file.
7114         * m4/atan2f.m4: New file.
7115         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7117         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7118         * modules/atan2f: New file.
7119         * tests/test-math-c++.cc: Check the declaration of atan2f.
7120         * doc/posix-functions/atan2f.texi: Mention the new module.
7121
7122         atan2: Use a .m4 file.
7123         * m4/atan2.m4: New file.
7124         * modules/atan2 (Files): Add it.
7125         (configure.ac): Just invoke gl_FUNC_ATAN2.
7126
7127 2011-10-08  Bruno Haible  <bruno@clisp.org>
7128
7129         Tests for module 'atanf'.
7130         * modules/atanf-tests: New file.
7131         * tests/test-atanf.c: New file.
7132
7133         New module 'atanf'.
7134         * lib/math.in.h (atanf): New declaration.
7135         * lib/atanf.c: New file.
7136         * m4/atanf.m4: New file.
7137         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7139         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7140         * modules/atanf: New file.
7141         * tests/test-math-c++.cc: Check the declaration of atanf.
7142         * doc/posix-functions/atanf.texi: Mention the new module.
7143
7144         atan: Use a .m4 file.
7145         * m4/atan.m4: New file.
7146         * modules/atan (Files): Add it.
7147         (configure.ac): Just invoke gl_FUNC_ATAN.
7148
7149 2011-10-08  Bruno Haible  <bruno@clisp.org>
7150
7151         Tests for module 'acosf'.
7152         * modules/acosf-tests: New file.
7153         * tests/test-acosf.c: New file.
7154
7155         New module 'acosf'.
7156         * lib/math.in.h (acosf): New declaration.
7157         * lib/acosf.c: New file.
7158         * m4/acosf.m4: New file.
7159         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7161         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7162         * modules/acosf: New file.
7163         * tests/test-math-c++.cc: Check the declaration of acosf.
7164         * doc/posix-functions/acosf.texi: Mention the new module.
7165
7166         acos: Use a .m4 file.
7167         * m4/acos.m4: New file.
7168         * modules/acos (Files): Add it.
7169         (configure.ac): Just invoke gl_FUNC_ACOS.
7170
7171 2011-10-08  Bruno Haible  <bruno@clisp.org>
7172
7173         Tests for module 'asinf'.
7174         * modules/asinf-tests: New file.
7175         * tests/test-asinf.c: New file.
7176
7177         New module 'asinf'.
7178         * lib/math.in.h (asinf): New declaration.
7179         * lib/asinf.c: New file.
7180         * m4/asinf.m4: New file.
7181         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7183         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7184         * modules/asinf: New file.
7185         * tests/test-math-c++.cc: Check the declaration of asinf.
7186         * doc/posix-functions/asinf.texi: Mention the new module.
7187
7188         asin: Use a .m4 file.
7189         * m4/asin.m4: New file.
7190         * modules/asin (Files): Add it.
7191         (configure.ac): Just invoke gl_FUNC_ASIN.
7192
7193 2011-10-08  Bruno Haible  <bruno@clisp.org>
7194
7195         Tests for module 'tanf'.
7196         * modules/tanf-tests: New file.
7197         * tests/test-tanf.c: New file.
7198
7199         New module 'tanf'.
7200         * lib/math.in.h (tanf): New declaration.
7201         * lib/tanf.c: New file.
7202         * m4/tanf.m4: New file.
7203         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7205         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7206         * modules/tanf: New file.
7207         * tests/test-math-c++.cc: Check the declaration of tanf.
7208         * doc/posix-functions/tanf.texi: Mention the new module.
7209
7210         tan: Use a .m4 file.
7211         * m4/tan.m4: New file.
7212         * modules/tan (Files): Add it.
7213         (configure.ac): Just invoke gl_FUNC_TAN.
7214
7215 2011-10-08  Bruno Haible  <bruno@clisp.org>
7216
7217         Tests for module 'cosf'.
7218         * modules/cosf-tests: New file.
7219         * tests/test-cosf.c: New file.
7220
7221         New module 'cosf'.
7222         * lib/math.in.h (cosf): New declaration.
7223         * lib/cosf.c: New file.
7224         * m4/cosf.m4: New file.
7225         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7227         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7228         * modules/cosf: New file.
7229         * tests/test-math-c++.cc: Check the declaration of cosf.
7230         * doc/posix-functions/cosf.texi: Mention the new module.
7231
7232         cos: Use a .m4 file.
7233         * m4/cos.m4: New file.
7234         * modules/cos (Files): Add it.
7235         (configure.ac): Just invoke gl_FUNC_COS.
7236
7237 2011-10-08  Bruno Haible  <bruno@clisp.org>
7238
7239         Tests for module 'sinf'.
7240         * modules/sinf-tests: New file.
7241         * tests/test-sinf.c: New file.
7242
7243         New module 'sinf'.
7244         * lib/math.in.h (sinf): New declaration.
7245         * lib/sinf.c: New file.
7246         * m4/sinf.m4: New file.
7247         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7249         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7250         * modules/sinf: New file.
7251         * tests/test-math-c++.cc: Check the declaration of sinf.
7252         * doc/posix-functions/sinf.texi: Mention the new module.
7253
7254         sin: Use a .m4 file.
7255         * m4/sin.m4: New file.
7256         * modules/sin (Files): Add it.
7257         (configure.ac): Just invoke gl_FUNC_SIN.
7258
7259 2011-10-08  Bruno Haible  <bruno@clisp.org>
7260
7261         Tests for module 'powf'.
7262         * modules/powf-tests: New file.
7263         * tests/test-powf.c: New file.
7264
7265         New module 'powf'.
7266         * lib/math.in.h (powf): New declaration.
7267         * lib/powf.c: New file.
7268         * m4/powf.m4: New file.
7269         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7271         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7272         * modules/powf: New file.
7273         * tests/test-math-c++.cc: Check the declaration of powf.
7274         * doc/posix-functions/powf.texi: Mention the new module.
7275
7276         pow: Use a .m4 file.
7277         * m4/pow.m4: New file.
7278         * modules/pow (Files): Add it.
7279         (configure.ac): Just invoke gl_FUNC_POW.
7280
7281 2011-10-08  Bruno Haible  <bruno@clisp.org>
7282
7283         Tests for module 'log10f'.
7284         * modules/log10f-tests: New file.
7285         * tests/test-log10f.c: New file.
7286
7287         New module 'log10f'.
7288         * lib/math.in.h (log10f): New declaration.
7289         * lib/log10f.c: New file.
7290         * m4/log10f.m4: New file.
7291         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7293         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7294         * modules/log10f: New file.
7295         * tests/test-math-c++.cc: Check the declaration of log10f.
7296         * doc/posix-functions/log10f.texi: Mention the new module.
7297
7298         log10: Use a .m4 file.
7299         * m4/log10.m4: New file.
7300         * modules/log10 (Files): Add it.
7301         (configure.ac): Just invoke gl_FUNC_LOG10.
7302
7303 2011-10-08  Bruno Haible  <bruno@clisp.org>
7304
7305         Tests for module 'logf'.
7306         * modules/logf-tests: New file.
7307         * tests/test-logf.c: New file.
7308
7309         New module 'logf'.
7310         * lib/math.in.h (logf): New declaration.
7311         * lib/logf.c: New file.
7312         * m4/logf.m4: New file.
7313         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7315         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7316         * modules/logf: New file.
7317         * tests/test-math-c++.cc: Check the declaration of logf.
7318         * doc/posix-functions/logf.texi: Mention the new module.
7319
7320         log: Use a .m4 file.
7321         * m4/log.m4: New file.
7322         * modules/log (Files): Add it.
7323         (configure.ac): Just invoke gl_FUNC_LOG.
7324
7325 2011-10-08  Bruno Haible  <bruno@clisp.org>
7326
7327         Tests for module 'expf'.
7328         * modules/expf-tests: New file.
7329         * tests/test-expf.c: New file.
7330
7331         New module 'expf'.
7332         * lib/math.in.h (expf): New declaration.
7333         * lib/expf.c: New file.
7334         * m4/expf.m4: New file.
7335         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7337         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7338         * modules/expf: New file.
7339         * tests/test-math-c++.cc: Check the declaration of expf.
7340         * doc/posix-functions/expf.texi: Mention the new module.
7341
7342         exp: Use a .m4 file.
7343         * m4/exp.m4: New file.
7344         * modules/exp (Files): Add it.
7345         (configure.ac): Just invoke gl_FUNC_EXP.
7346
7347 2011-10-08  Bruno Haible  <bruno@clisp.org>
7348
7349         Tests for module 'sqrtf'.
7350         * modules/sqrtf-tests: New file.
7351         * tests/test-sqrtf.c: New file.
7352
7353         New module 'sqrtf'.
7354         * lib/math.in.h (sqrtf): New declaration.
7355         * lib/sqrtf.c: New file.
7356         * m4/sqrtf.m4: New file.
7357         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7359         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7360         * modules/sqrtf: New file.
7361         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7362         * doc/posix-functions/sqrtf.texi: Mention the new module.
7363
7364 2011-10-08  Bruno Haible  <bruno@clisp.org>
7365
7366         Tests: Avoid link failures w.r.t. libintl.
7367         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7368         $(LIBINTL).
7369         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7370         $(LIBINTL).
7371         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7372         against $(LIBINTL).
7373         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7374         $(LIBINTL).
7375         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7376         $(LIBINTL).
7377         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7378
7379 2011-10-08  Bruno Haible  <bruno@clisp.org>
7380
7381         pow tests: Defeat compiler optimizations.
7382         * tests/test-pow.c (main): Assign arguments to x and y before use.
7383
7384 2011-10-08  Bruno Haible  <bruno@clisp.org>
7385
7386         gnulib-tool: Improve last commit.
7387         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7388         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7389         ignore dependencies that are not among the modules list.
7390
7391 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7392
7393         gnulib-tool: don't follow dependencies to avoided modules
7394         This fixes a bug that is related to the previous one.
7395         * gnulib-tool (func_modules_transitive_closure)
7396         (func_emit_autoconf_snippets):
7397         Check whether a dependency is acceptable before using it.
7398         (--extract-dependencies): Report an error if --avoid is also used,
7399         since this combination of options is not yet supported.
7400
7401         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7402         Problem reported by Peter Dyballa in
7403         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7404         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7405         when echoing "$condition".
7406
7407 2011-10-07  Bruno Haible  <bruno@clisp.org>
7408
7409         Fix documentation about math functions on MacOS X.
7410         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7411         MacOS X 10.5.
7412         * doc/posix-functions/fdim.texi: Likewise.
7413         * doc/posix-functions/feclearexcept.texi: Likewise.
7414         * doc/posix-functions/fegetenv.texi: Likewise.
7415         * doc/posix-functions/fegetround.texi: Likewise.
7416         * doc/posix-functions/feholdexcept.texi: Likewise.
7417         * doc/posix-functions/feraiseexcept.texi: Likewise.
7418         * doc/posix-functions/fesetenv.texi: Likewise.
7419         * doc/posix-functions/fesetround.texi: Likewise.
7420         * doc/posix-functions/fetestexcept.texi: Likewise.
7421         * doc/posix-functions/feupdateenv.texi: Likewise.
7422         * doc/posix-functions/fmax.texi: Likewise.
7423         * doc/posix-functions/fmin.texi: Likewise.
7424         * doc/posix-functions/log2.texi: Likewise.
7425         * doc/posix-functions/modff.texi: Likewise.
7426         * doc/posix-functions/nan.texi: Likewise.
7427         * doc/posix-functions/nanf.texi: Likewise.
7428         * doc/posix-functions/nextafterf.texi: Likewise.
7429         * doc/posix-functions/remquo.texi: Likewise.
7430
7431 2011-10-07  Bruno Haible  <bruno@clisp.org>
7432
7433         modff: Drop assumption about library that defines modff.
7434         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7435         AC_CHECK_FUNCS.
7436         * modules/modff (Files): Add m4/mathfunc.m4.
7437
7438 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7439
7440         raise tests: Avoid a GCC warning.
7441         * tests/test-raise.c (handler): Use _Noreturn.
7442
7443 2011-10-07  Bruno Haible  <bruno@clisp.org>
7444
7445         Tests for module 'ldexpf'.
7446         * modules/ldexpf-tests: New file.
7447         * tests/test-ldexpf.c: New file.
7448
7449         New module 'ldexpf'.
7450         * lib/math.in.h (ldexpf): New declaration.
7451         * lib/ldexpf.c: New file.
7452         * m4/ldexpf.m4: New file.
7453         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7455         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7456         * modules/ldexpf: New file.
7457         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7458         * doc/posix-functions/ldexpf.texi: Mention the new module.
7459
7460 2011-10-06  Bruno Haible  <bruno@clisp.org>
7461
7462         frexpf: Work around problems on IRIX and mingw.
7463         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7465         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7466         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7467         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7468         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7469         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7470
7471 2011-10-06  Bruno Haible  <bruno@clisp.org>
7472
7473         fabsf: Drop assumption about library that defines fabsf.
7474         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7475         AC_CHECK_FUNCS.
7476         * modules/fabsf (Files): Add m4/mathfunc.m4.
7477
7478 2011-10-06  Bruno Haible  <bruno@clisp.org>
7479
7480         frexpf: Drop assumption about library that defines frexpf.
7481         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7482         'int *', 'float *', 'long double *', 'float', 'long double'.
7483         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7484         AC_CHECK_FUNCS.
7485         * modules/frexpf (Files): Add m4/mathfunc.m4.
7486
7487         Tests for module 'frexpf'.
7488         * modules/frexpf-tests: New file.
7489         * tests/test-frexpf.c: New file.
7490
7491         New module 'frexpf'.
7492         * lib/math.in.h (frexpf): New declaration.
7493         * lib/frexpf.c: New file.
7494         * m4/frexpf.m4: New file.
7495         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7497         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7498         * modules/frexpf: New file.
7499         * tests/test-math-c++.cc: Check the declaration of frexpf.
7500         * doc/posix-functions/frexpf.texi: Mention the new module.
7501
7502 2011-10-06  Bruno Haible  <bruno@clisp.org>
7503
7504         math: Sort function declarations of math.in.h.
7505         * lib/math.in.h (frexp, logb): Move declarations.
7506
7507 2011-10-05  Bruno Haible  <bruno@clisp.org>
7508
7509         Tests for module 'modff'.
7510         * modules/modff-tests: New file.
7511         * tests/test-modff.c: New file.
7512
7513         New module 'modff'.
7514         * lib/math.in.h (modff): New declaration.
7515         * lib/modff.c: New file.
7516         * m4/modff.m4: New file.
7517         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7519         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7520         * modules/modff: New file.
7521         * tests/test-math-c++.cc: Check the declaration of modff.
7522         * doc/posix-functions/modff.texi: Mention the new module.
7523
7524         modf tests: Make test sharper.
7525         * tests/test-modf.c (main): Strengthen upper bound.
7526
7527         modf: Use a .m4 file.
7528         * m4/modf.m4: New file.
7529         * modules/modf (Files): Add it.
7530         (configure.ac): Just invoke gl_FUNC_MODF.
7531
7532 2011-10-05  Bruno Haible  <bruno@clisp.org>
7533
7534         Tests for module 'fmodf'.
7535         * modules/fmodf-tests: New file.
7536         * tests/test-fmodf.c: New file.
7537
7538         New module 'fmodf'.
7539         * lib/math.in.h (fmodf): New declaration.
7540         * lib/fmodf.c: New file.
7541         * m4/fmodf.m4: New file.
7542         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7544         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7545         * modules/fmodf: New file.
7546         * tests/test-math-c++.cc: Check the declaration of fmodf.
7547         * doc/posix-functions/fmodf.texi: Mention the new module.
7548
7549         fmod: Use a .m4 file.
7550         * m4/fmod.m4: New file.
7551         * modules/fmod (Files): Add it.
7552         (configure.ac): Just invoke gl_FUNC_FMOD.
7553
7554 2011-10-05  Bruno Haible  <bruno@clisp.org>
7555
7556         Tests for module 'fabsf'.
7557         * modules/fabsf-tests: New file.
7558         * tests/test-fabsf.c: New file.
7559
7560         New module 'fabsf'.
7561         * lib/math.in.h (fabsf): New declaration.
7562         * lib/fabsf.c: New file.
7563         * m4/fabsf.m4: New file.
7564         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7566         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7567         * modules/fabsf: New file.
7568         * tests/test-math-c++.cc: Check the declaration of fabsf.
7569         * doc/posix-functions/fabsf.texi: Mention the new module.
7570
7571         fabs: Use a .m4 file.
7572         * m4/fabs.m4: New file.
7573         * modules/fabs (Files): Add it.
7574         (configure.ac): Just invoke gl_FUNC_FABS.
7575
7576 2011-10-05  Jim Meyering  <meyering@redhat.com>
7577
7578         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7579         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7580         ls -lL regression introduced in coreutils-8.12, it does so at the
7581         cost of an additional stat call in the common case.  Besides, now
7582         that the kernel change that prompted commit 95f7c57f has been reverted
7583         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7584         we have no use for commit 95f7c57f, "file-has-acl: use
7585         acl_extended_file_nofollow if available".
7586
7587 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7588
7589         file-has-acl: revert unintended change in behavior of ls -L
7590         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7591         derived from...
7592         (file_has_acl): ...code here.  Call it.
7593         This problem was introduced with 2011-07-22 commit 95f7c57f,
7594         "file-has-acl: use acl_extended_file_nofollow if available".
7595         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7596
7597 2011-10-03  Bruno Haible  <bruno@clisp.org>
7598
7599         poll: Avoid link errors on MSVC.
7600         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7601         * modules/poll (Depends-on): Add sockets.
7602         (Link): New section.
7603         * NEWS: Mention the change.
7604         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7605         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7606         $(LIB_POLL) instead of $(LIBSOCKET).
7607
7608 2011-10-03  Bruno Haible  <bruno@clisp.org>
7609
7610         sys_select tests: Fix link error on MSVC 9.
7611         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7612         with $(LIB_SELECT) instead of $(LIBSOCKET).
7613
7614 2011-10-03  Bruno Haible  <bruno@clisp.org>
7615
7616         sys_select: Fix compilation error on mingw.
7617         * lib/sys_select.in.h: On native Windows, include <io.h>.
7618
7619 2011-10-03  Bruno Haible  <bruno@clisp.org>
7620
7621         wmemset: Support for MSVC.
7622         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7623         whether wmemset() exists.
7624
7625 2011-10-03  Bruno Haible  <bruno@clisp.org>
7626
7627         wmemmove: Support for MSVC.
7628         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7629         whether wmemmove() exists.
7630
7631 2011-10-03  Bruno Haible  <bruno@clisp.org>
7632
7633         wmemcpy: Support for MSVC.
7634         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7635         whether wmemcpy() exists.
7636
7637 2011-10-03  Bruno Haible  <bruno@clisp.org>
7638
7639         wmemcmp: Support for MSVC.
7640         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7641         whether wmemcmp() exists.
7642
7643 2011-10-03  Bruno Haible  <bruno@clisp.org>
7644
7645         wmemchr: Support for MSVC.
7646         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7647         whether wmemchr() exists.
7648
7649 2011-10-03  Bruno Haible  <bruno@clisp.org>
7650
7651         glthread/*, strsignal: Support for MSVC.
7652         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7653         including <winsock.h> on MSVC 9.
7654         * lib/glthread/lock.h: Likewise.
7655         * lib/glthread/thread.h: Likewise.
7656         * lib/glthread/tls.h: Likewise.
7657         * lib/glthread/yield.h: Likewise.
7658         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7659         if HAVE_UNISTD_H is false.
7660         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7661
7662 2011-10-03  Bruno Haible  <bruno@clisp.org>
7663
7664         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7665         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7666         Set to 100000.
7667
7668 2011-10-03  Bruno Haible  <bruno@clisp.org>
7669
7670         acl: Fix specification.
7671         * lib/file-has-acl.c (file_has_acl): Fix specification.
7672
7673 2011-10-03  Bruno Haible  <bruno@clisp.org>
7674
7675         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7676         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7677         (compute_curr_prefix, shared_library_fullname,
7678         find_shared_library_fullname, get_shared_library_fullname, relocate):
7679         Use it together with PIC && INSTALLDIR.
7680         Reported by <jojelino@gmail.com>
7681         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7682
7683 2011-10-01  Jim Meyering  <meyering@redhat.com>
7684
7685         maint.mk: adjust a release-related rule not to require use of gzip
7686         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7687         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7688         projects that build only .tar.xz files.  Also fix an erroneous test.
7689
7690         test-linkat: don't leave behind a temporary file
7691         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7692         Otherwise, coreutils' "make distcheck" would fail with this:
7693           Only in /c/cu/tests/torture/coreutils/test/\
7694             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7695           make[2]: *** [my-distcheck] Error 1
7696
7697         float, math: add omitted file
7698         * lib/itold.c: Add file, required for yesterday's float change.
7699
7700 2011-10-01  Bruno Haible  <bruno@clisp.org>
7701
7702         isinf: Fix for OpenBSD/x86.
7703         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7704         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7705         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7706
7707 2011-10-01  Bruno Haible  <bruno@clisp.org>
7708
7709         isfinite: Fix syntax error in configure test.
7710         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7711
7712         isfinite: Fix typo.
7713         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7714         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7715
7716 2011-10-01  Bruno Haible  <bruno@clisp.org>
7717
7718         nonblocking tests: Fix test failure on Linux/IA-64.
7719         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7720         Set to 270000.
7721
7722 2011-10-01  Bruno Haible  <bruno@clisp.org>
7723
7724         mkfifoat tests: Fix a test failure on mingw.
7725         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7726         with error ENOSYS.
7727
7728 2011-09-30  Bruno Haible  <bruno@clisp.org>
7729
7730         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7731         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7732         'long double'. Set REPLACE_ITOLD.
7733         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7734         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7735         * lib/itold.c: New file.
7736         * modules/float (Files): Add lib/itold.c.
7737         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7738         (Makefile.am): Substitute REPLACE_ITOLD.
7739         * modules/math (Depends-on): Add float.
7740         (Makefile.am): Substitute REPLACE_ITOLD.
7741         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7742         * doc/posix-headers/math.texi: Likewise.
7743         * doc/posix-functions/logl.texi: Likewise.
7744
7745 2011-09-30  Bruno Haible  <bruno@clisp.org>
7746
7747         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7748         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7749         Set to 140000.
7750
7751 2011-09-30  Bruno Haible  <bruno@clisp.org>
7752
7753         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7754         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7755         invocation, say "right after AC_PROG_CC_STDC", not "right after
7756         AC_PROG_CC".
7757         Reported by Gary V. Vaughan <gary@gnu.org>.
7758
7759 2011-09-30  Bruno Haible  <bruno@clisp.org>
7760
7761         Centralize C99 requirement.
7762         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7763         * modules/stdarg (configure.ac-early): Invoke it instead of
7764         AC_PROG_CC_STDC.
7765         Reported by Gary V. Vaughan and Paul Eggert.
7766
7767 2011-09-29  Bruno Haible  <bruno@clisp.org>
7768
7769         float: Fix LDBL_MAX value on Linux/PowerPC.
7770         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7771         on Linux/PowerPC.
7772         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7773         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7774         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7775         platform.
7776         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7777
7778 2011-09-29  Bruno Haible  <bruno@clisp.org>
7779
7780         doc: Improve doc about gl_EARLY.
7781         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7782         AC_PROG_CC_STDC invocation.
7783         Reported by Gary V. Vaughan <gary@gnu.org>.
7784
7785 2011-09-28  Bruno Haible  <bruno@clisp.org>
7786
7787         fgetc, fputc, fread, fwrite tests: Fix link error.
7788         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7789         on non-MSVC platforms.
7790         * tests/test-fputc.c (main): Likewise.
7791         * tests/test-fread.c (main): Likewise.
7792         * tests/test-fwrite.c (main): Likewise.
7793         Reported by Jim Meyering.
7794
7795 2011-09-27  Bruno Haible  <bruno@clisp.org>
7796
7797         fputc, fwrite tests: Avoid test failure on MSVC.
7798         * tests/test-fgetc.c: Include msvc-inval.h.
7799         (main): Invoke gl_msvc_inval_ensure_handler.
7800         * tests/test-fputc.c: Include msvc-inval.h.
7801         (main): Invoke gl_msvc_inval_ensure_handler.
7802         * tests/test-fread.c: Include msvc-inval.h.
7803         (main): Invoke gl_msvc_inval_ensure_handler.
7804         * tests/test-fwrite.c: Include msvc-inval.h.
7805         (main): Invoke gl_msvc_inval_ensure_handler.
7806         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7807         * modules/fputc-tests (Depends-on): Likewise.
7808         * modules/fread-tests (Depends-on): Likewise.
7809         * modules/fwrite-tests (Depends-on): Likewise.
7810
7811 2011-09-27  Bruno Haible  <bruno@clisp.org>
7812
7813         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7814         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7815         (raise): Remove older, duplicated declaration.
7816         (_gl_raise_SIGPIPE): New declaration.
7817         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7818         (rpl_raise): Remove function.
7819         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7820         a gnulib-defined SIGPIPE here.
7821         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7822         'sigprocmask' has detected missing signal-blocking and the module
7823         'sigpipe' is enabled.
7824         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7825
7826 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7827
7828         base64-tests: avoid memory leak
7829         * tests/test-base64.c (main): Plug memory leak.
7830
7831         base32: new module
7832         * modules/base32: New module.
7833         * lib/base32.c: New file.
7834         * lib/base32.h: Likewise.
7835         * m4/base32.m4: Likewise.
7836         * modules/base32-tests: New test.
7837         * tests/test-base32.c: Likewise.
7838         * MODULES.html.sh (Misc): Mention it.
7839
7840 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7841
7842         gnulib: use more-standard license notice wording
7843         * gnulib-tool (func_emit_copyright_notice): When emitting a
7844         license notice into a file, use the standard wording as suggested
7845         by the current information for GNU maintainers, except say "file"
7846         rather than "program".  The new wording gives a license version
7847         number, which addresses an issue raised by Glenn Morris in
7848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7849         * m4/onceonly.m4: Use that same wording here, too.
7850
7851         dup2: minor simplification
7852         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7853         as lib/dup2.c no longer uses 'inline'.
7854
7855 2011-09-25  Bruno Haible  <bruno@clisp.org>
7856
7857         strings: Fix compilation error on MSVC.
7858         * lib/strings.in.h: Include <stddef.h> for size_t.
7859
7860 2011-09-25  Bruno Haible  <bruno@clisp.org>
7861
7862         fflush et al.: Document limitation on MSVC.
7863         * doc/posix-functions/fflush.texi: Document possible crash in handling
7864         mode other than DEFAULT_HANDLING.
7865         * doc/posix-functions/fgetc.texi: Likewise.
7866         * doc/posix-functions/fputc.texi: Likewise.
7867         * doc/posix-functions/fread.texi: Likewise.
7868         * doc/posix-functions/fwrite.texi: Likewise.
7869
7870 2011-09-25  Bruno Haible  <bruno@clisp.org>
7871
7872         msvc-inval: Allow three invalid parameter handling modes.
7873         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7874         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7875         macros.
7876         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7877         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7878         SANE_LIBRARY_HANDLING as a no-op.
7879         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7880         <stdlib.h>.
7881         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7882
7883 2011-09-25  Bruno Haible  <bruno@clisp.org>
7884
7885         msvc-inval: Make handler multithread-safe.
7886         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7887         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7888         declarations.
7889         (gl_msvc_inval_current): New declaration.
7890         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7891         Operate on the structure returned by gl_msvc_inval_current().
7892         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7893         Remove varaiables.
7894         (tls_index, tls_initialized): New variables.
7895         (not_per_thread): New variable.
7896         (gl_msvc_inval_current): New function.
7897         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7898         returned by gl_msvc_inval_current().
7899
7900 2011-09-25  Bruno Haible  <bruno@clisp.org>
7901
7902         msvc-inval: Install handler globally.
7903         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7904         !_MSC_VER.
7905         (gl_msvc_invalid_parameter_handler): Remove declaration.
7906         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7907         declarations.
7908         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7909         Install the handler globally, don't uninstall it.
7910         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7911         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7912         currently valid, call RaiseException instead.
7913         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7914         for !_MSC_VER.
7915
7916 2011-09-25  Bruno Haible  <bruno@clisp.org>
7917
7918         strerror_r-posix: Fix for MSVC 9.
7919         * lib/strerror_r.c (local_snprintf): New function.
7920         (snprintf): Define to local_snprintf, not to _snprintf.
7921
7922 2011-09-25  Bruno Haible  <bruno@clisp.org>
7923
7924         ftruncate: Support for MSVC 9.
7925         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7926         (chsize_nothrow): New function.
7927         (chsize): Redefine as a macro.
7928         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7929         * modules/ftruncate (Depends-on): Add msvc-inval.
7930
7931 2011-09-25  Bruno Haible  <bruno@clisp.org>
7932
7933         New module 'fstat'.
7934         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7935         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7936         * lib/fchdir.c (rpl_fstat): Remove function.
7937         * m4/fstat.m4: New file.
7938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7939         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7940         declared.
7941         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7942         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7943         * modules/fstat: New file.
7944         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7945         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7946         is set.
7947         * doc/posix-functions/fstat.texi: Mention the new module and the
7948         problem on MSVC.
7949         * NEWS: Mention the change.
7950         * modules/acl (Depends-on): Add fstat.
7951         * modules/chdir-safer (Depends-on): Likewise.
7952         * modules/chown (Depends-on): Likewise.
7953         * modules/copy-file (Depends-on): Likewise.
7954         * modules/fchdir (Depends-on): Likewise.
7955         * modules/fdopendir (Depends-on): Likewise.
7956         * modules/fopen (Depends-on): Likewise.
7957         * modules/fts (Depends-on): Likewise.
7958         * modules/getcwd (Depends-on): Likewise.
7959         * modules/isapipe (Depends-on): Likewise.
7960         * modules/linkat (Depends-on): Likewise.
7961         * modules/lseek (Depends-on): Likewise.
7962         * modules/mkdir-p (Depends-on): Likewise.
7963         * modules/open (Depends-on): Likewise.
7964         * modules/openat (Depends-on): Likewise.
7965         * modules/read-file (Depends-on): Likewise.
7966         * modules/renameat (Depends-on): Likewise.
7967         * modules/utimens (Depends-on): Likewise.
7968
7969 2011-09-25  Bruno Haible  <bruno@clisp.org>
7970
7971         linkat: Fix compilation on MSVC 9.
7972         * lib/linkat.c: Don't include <stdint.h>.
7973
7974 2011-09-25  Bruno Haible  <bruno@clisp.org>
7975
7976         fclose: Support for MSVC 9.
7977         * lib/fclose.c: Include msvc-inval.h.
7978         (fclose_nothrow): New function.
7979         (rpl_fclose): Use it.
7980         * modules/fclose (Depends-on): Add msvc-inval.
7981         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7982
7983 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7984
7985         dup2: minor simplifications
7986         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7987         that it's a performance win.
7988         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7989         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7990
7991 2011-09-24  Jim Meyering  <meyering@redhat.com>
7992
7993         test-futimens: avoid a warning from gcc -Wshadow
7994         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7995         to avoid a shadowing warning.
7996
7997 2011-09-24  Bruno Haible  <bruno@clisp.org>
7998
7999         fdopen: Support for MSVC 9.
8000         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8001         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8002         * lib/fdopen.c: Include msvc-inval.h.
8003         (fdopen_nothrow): New function.
8004         (rpl_fdopen): Use it.
8005         * modules/fdopen (Depends-on): Add msvc-inval.
8006         * modules/fclose-tests (Depends-on): Add fdopen.
8007         * modules/fflush-tests (Depends-on): Likewise.
8008         * modules/fgetc-tests (Depends-on): Likewise.
8009         * modules/fputc-tests (Depends-on): Likewise.
8010         * modules/fread-tests (Depends-on): Likewise.
8011         * modules/freopen-tests (Depends-on): Likewise.
8012         * modules/fseeko-tests (Depends-on): Likewise.
8013         * modules/ftello-tests (Depends-on): Likewise.
8014         * modules/fwrite-tests  (Depends-on): Likewise.
8015         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8016
8017 2011-09-24  Bruno Haible  <bruno@clisp.org>
8018
8019         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8020         * modules/fgetc-tests (Depends-on): Add unistd.
8021         * modules/fputc-tests (Depends-on): Likewise.
8022         * modules/fread-tests (Depends-on): Likewise.
8023         * modules/fwrite-tests (Depends-on): Likewise.
8024
8025 2011-09-24  Bruno Haible  <bruno@clisp.org>
8026
8027         dup: Simplify autoconf test.
8028         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8029         on gl_MSVC_INVAL's result.
8030
8031 2011-09-24  Bruno Haible  <bruno@clisp.org>
8032
8033         Tests for function fwrite().
8034         * modules/fwrite-tests: New file.
8035         * tests/test-fwrite.c: New file.
8036         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8037
8038         Tests for function fread().
8039         * modules/fread-tests: New file.
8040         * tests/test-fread.c: New file.
8041         * modules/stdio-tests (Depends-on): Add fread-tests.
8042
8043         Activate fputc tests.
8044         * modules/stdio-tests (Depends-on): Add fputc-tests.
8045
8046         Enhance fgetc, fputc tests.
8047         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8048         * tests/test-fputc.c (main): Likewise.
8049
8050 2011-09-24  Bruno Haible  <bruno@clisp.org>
8051
8052         write: Support for MSVC 9.
8053         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8054         is not 1.
8055         * lib/write.c (write_nothrow): New function.
8056         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8057         not 1. Use write_nothrow.
8058         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8059         invalid parameter handler.
8060         (gl_PREREQ_WRITE): New macro.
8061         * modules/write (Depends-on): Add msvc-inval.
8062         (configure.ac): Invoke gl_PREREQ_WRITE.
8063         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8064
8065 2011-09-24  Bruno Haible  <bruno@clisp.org>
8066
8067         read: Fix last commit.
8068         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8069
8070 2011-09-24  Bruno Haible  <bruno@clisp.org>
8071
8072         dup2: Fix last commit.
8073         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8074         (rpl_dup2): Disable fcntl workaround on native Windows.
8075
8076         sigprocmask: Make code safer.
8077         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8078         section that changes macro definitions for this compilation unit.
8079
8080 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8081
8082         dup2: clarify by coalescing Windows-specific material
8083         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8084         "msvc-nothrow.h"' to the Windows-specific section, so that the
8085         Emacs source need not contain these include files.
8086         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8087         Windows-specific fixes into this function rather than just the
8088         nothrow fix, as this shortens and clarifies the code.  Always
8089         define as a function, as that's a bit cleaner than having it be
8090         sometimes a function and sometimes a macro.
8091         (rpl_dup2): Move the Windows-specific stuff out of here and into
8092         ms_windows_dup2.  Don't protect the Haiku-related fix with
8093         "#if !defined __linux__", as the same code also works around
8094         a Linux kernel bug, and it doesn't add any system calls on any
8095         platform.  Add comment about FreeBSD 6.1.
8096
8097         sigprocmask: move #include directive
8098         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8099         Windows-specific section, so that the Emacs source need not
8100         contain msvc-inval.h.
8101
8102 2011-09-23  Bruno Haible  <bruno@clisp.org>
8103
8104         read: Support for MSVC 9.
8105         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8106         is not 1.
8107         * lib/read.c (read_nothrow): New function.
8108         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8109         read_nothrow.
8110         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8111         invalid parameter handler.
8112         (gl_PREREQ_READ): New macro.
8113         * modules/read (Depends-on): Add msvc-inval.
8114         (configure.ac): Invoke gl_PREREQ_READ.
8115         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8116
8117 2011-09-23  Bruno Haible  <bruno@clisp.org>
8118
8119         close: Support for MSVC 9.
8120         * lib/close.c: Include <errno.h>, msvc-inval.h.
8121         (close_nothrow): New function.
8122         (rpl_close): Use it.
8123         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8124         invalid parameter handler.
8125         * modules/close (Depends-on): Add msvc-inval.
8126         * modules/dup2-tests (Depends-on): Add close.
8127         * modules/dup3-tests (Depends-on): Likewise.
8128         * modules/fcntl-tests (Depends-on): Likewise.
8129         * modules/spawn-pipe-tests (Depends-on): Likewise.
8130         * modules/unistd-safer-tests (Depends-on): Likewise.
8131         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8132
8133 2011-09-23  Bruno Haible  <bruno@clisp.org>
8134
8135         New module 'dup'.
8136         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8137         Allow replacement.
8138         * lib/dup.c: New file.
8139         * lib/fchdir.c (rpl_dup): Remove function.
8140         * m4/dup.m4: New file.
8141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8142         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8143         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8144         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8145         * modules/dup: New file.
8146         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8147         'dup' module is in use.
8148         * modules/fdopendir (Depends-on): Add dup.
8149         * modules/fdutimensat-tests (Depends-on): Likewise.
8150         * modules/fts (Depends-on): Likewise.
8151         * modules/futimens-tests (Depends-on): Likewise.
8152         * modules/posix_spawnp-tests (Depends-on): Likewise.
8153         * modules/unistd-safer-tests (Depends-on): Likewise.
8154         * modules/utimens-tests (Depends-on): Likewise.
8155         * doc/posix-functions/dup.texi: Mention the new module and the problem
8156         on MSVC.
8157
8158 2011-09-23  Bruno Haible  <bruno@clisp.org>
8159
8160         getdtablesize: Support for MSVC 9.
8161         * lib/getdtablesize.c: Include msvc-inval.h.
8162         (_setmaxstdio_nothrow): New function.
8163         (_setmaxstdio): Redefine it.
8164         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8165         * modules/getdtablesize (Depends-on): Add msvc-inval.
8166         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8167
8168 2011-09-23  Bruno Haible  <bruno@clisp.org>
8169
8170         signal-h: Rename from signal.
8171         * modules/signal-h: Renamed from modules/signal.
8172         * modules/pthread_sigmask (Depends-on): Update.
8173         * modules/raise (Depends-on): Likewise.
8174         * modules/sigaction (Depends-on): Likewise.
8175         * modules/sigpipe (Depends-on): Likewise.
8176         * modules/sigprocmask (Depends-on): Likewise.
8177         * modules/sys_select (Depends-on): Likewise.
8178         * modules/signal-h-tests: Renamed from modules/signal-tests.
8179         (Files, Depends-on, Makefile.am): Update.
8180         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8181         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8182         (Files, Makefile.am): Update.
8183         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8184         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8185         * modules/signal: New placeholder file.
8186         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8187         * doc/posix-headers/signal.texi: Update.
8188         * NEWS: Mention the change.
8189
8190 2011-09-23  Bruno Haible  <bruno@clisp.org>
8191
8192         sigprocmask: Avoid crashes through signal() on MSVC 9.
8193         * lib/sigprocmask.c: Include msvc-inval.h.
8194         (signal_nothrow): New function.
8195         (signal): Redefine it.
8196         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8197         * modules/sigprocmask (Depends-on): Add msvc-inval.
8198         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8199
8200 2011-09-23  Bruno Haible  <bruno@clisp.org>
8201
8202         Tests for module 'raise'.
8203         * modules/raise-tests: New file.
8204         * tests/test-raise.c: New file.
8205
8206         raise: Support for MSVC.
8207         * lib/signal.in.h (raise): New declaration.
8208         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8209         for native Windows platforms.
8210         * m4/raise.m4: New file.
8211         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8212         HAVE_RAISE, REPLACE_RAISE.
8213         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8214         REPLACE_RAISE.
8215         * modules/raise (Status, Notice): Remove fields.
8216         (Files): Add m4/raise.m4.
8217         (Depends-on): Add signal, msvc-inval.
8218         (configure.ac): Use the common idioms.
8219         (Maintainer): Add me.
8220         * tests/test-signal-c++.cc: Check the signature of raise.
8221         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8222
8223 2011-09-23  Bruno Haible  <bruno@clisp.org>
8224
8225         pipe2: Fix compilation on pre-C99 compilers.
8226         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8227
8228 2011-09-23  Bruno Haible  <bruno@clisp.org>
8229
8230         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8231         * lib/msvc-nothrow.h: New file.
8232         * lib/msvc-nothrow.c: New file.
8233         * m4/msvc-nothrow.m4: New file.
8234         * modules/msvc-nothrow: New file.
8235         * lib/dup2.c: Include msvc-nothrow.h.
8236         (rpl_dup2): No need to protect _get_osfhandle call here.
8237         * lib/accept4.c: Include msvc-nothrow.h.
8238         * lib/error.c: Likewise.
8239         * lib/fcntl.c: Likewise.
8240         * lib/lseek.c: Likewise.
8241         * lib/nonblocking.c: Likewise.
8242         * lib/poll.c: Likewise.
8243         * lib/read.c: Likewise.
8244         * lib/select.c: Likewise.
8245         * lib/sockets.h: Likewise.
8246         * lib/sockets.c: Likewise.
8247         * lib/stdio-read.c: Likewise.
8248         * lib/stdio-write.c: Likewise.
8249         * lib/write.c: Likewise.
8250         * lib/w32sock.h: Likewise.
8251         * lib/w32spawn.h: Likewise.
8252         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8253         * lib/fsync.c: Likewise.
8254         * lib/isapipe.c: Likewise.
8255         * modules/dup2 (Depends-on): Add msvc-nothrow.
8256         * modules/accept4 (Depends-on): Likewise.
8257         * modules/error (Depends-on): Likewise.
8258         * modules/fcntl (Depends-on): Likewise.
8259         * modules/lseek (Depends-on): Likewise.
8260         * modules/nonblocking (Depends-on): Likewise.
8261         * modules/poll (Depends-on): Likewise.
8262         * modules/read (Depends-on): Likewise.
8263         * modules/select (Depends-on): Likewise.
8264         * modules/sockets (Depends-on): Likewise.
8265         * modules/sigpipe (Depends-on): Likewise.
8266         * modules/write (Depends-on): Likewise.
8267         * modules/accept (Depends-on): Likewise.
8268         * modules/bind (Depends-on): Likewise.
8269         * modules/connect (Depends-on): Likewise.
8270         * modules/gethostname (Depends-on): Likewise.
8271         * modules/getpeername (Depends-on): Likewise.
8272         * modules/getsockname (Depends-on): Likewise.
8273         * modules/getsockopt (Depends-on): Likewise.
8274         * modules/ioctl (Depends-on): Likewise.
8275         * modules/listen (Depends-on): Likewise.
8276         * modules/recv (Depends-on): Likewise.
8277         * modules/recvfrom (Depends-on): Likewise.
8278         * modules/send (Depends-on): Likewise.
8279         * modules/sendto (Depends-on): Likewise.
8280         * modules/setsockopt (Depends-on): Likewise.
8281         * modules/shutdown (Depends-on): Likewise.
8282         * modules/socket (Depends-on): Likewise.
8283         * modules/execute (Depends-on): Likewise.
8284         * modules/spawn-pipe (Depends-on): Likewise.
8285         * modules/flock (Depends-on): Likewise.
8286         * modules/fsync (Depends-on): Likewise.
8287         * modules/isapipe (Depends-on): Likewise.
8288         * tests/test-cloexec.c: Include msvc-nothrow.h.
8289         * tests/test-dup-safer.c: Likewise.
8290         * tests/test-dup2.c: Likewise.
8291         * tests/test-dup3.c: Likewise.
8292         * tests/test-fcntl.c: Likewise.
8293         * tests/test-pipe.c: Likewise.
8294         * tests/test-pipe2.c: Likewise.
8295         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8296         * modules/unistd-safer-tests (Depends-on): Likewise.
8297         * modules/dup2-tests (Depends-on): Likewise.
8298         * modules/dup3-tests (Depends-on): Likewise.
8299         * modules/fcntl-tests (Depends-on): Likewise.
8300         * modules/pipe-posix-tests (Depends-on): Likewise.
8301         * modules/pipe2-tests (Depends-on): Likewise.
8302
8303 2011-09-23  Bruno Haible  <bruno@clisp.org>
8304
8305         dup2: Make code more maintainable.
8306         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8307         (rpl_dup2): Use it.
8308         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8309         * modules/dup2 (configure.ac): Invoke it.
8310         Reported by Paul Eggert.
8311
8312 2011-09-23  Bruno Haible  <bruno@clisp.org>
8313
8314         msvc-inval: Fix compilation error.
8315         * lib/msvc-inval.h: Include <excpt.h>.
8316
8317 2011-09-23  Bruno Haible  <bruno@clisp.org>
8318
8319         mkdir: Tweak for MSVC 9.
8320         * lib/sys_stat.in.h: Update comments.
8321         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8322
8323         Tests for module 'chdir'.
8324         * modules/chdir-tests: New file.
8325         * tests/test-chdir.c: New file.
8326
8327         New module 'chdir'.
8328         * modules/chdir: New file.
8329         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8330         (chdir): New declaration.
8331         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8332         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8333         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8334         * tests/test-unistd-c++.cc: Check signature of chdir.
8335         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8336         * modules/chdir-long (Depends-on): Add chdir.
8337         * modules/fchdir (Depends-on): Likewise.
8338         * modules/rename (Depends-on): Likewise.
8339         * modules/savewd (Depends-on): Likewise.
8340
8341         rmdir: Support for mingw, MSVC 9.
8342         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8343         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8344
8345         getcwd: Tweak for MSVC 9.
8346         * lib/unistd.in.h: Update comments.
8347         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8348
8349 2011-09-22  Bruno Haible  <bruno@clisp.org>
8350
8351         strerror_r-posix: Avoid a link error on MSVC.
8352         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8353         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8354
8355 2011-09-22  Bruno Haible  <bruno@clisp.org>
8356
8357         select: Avoid link errors on MSVC.
8358         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8359         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8360         * modules/pselect (Link): Likewise.
8361         * NEWS: Mention the change.
8362         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8363         test-select-stdin against $(LIB_SELECT).
8364         * modules/pselect-tests (Makefile.am): Link test-pselect against
8365         $(LIB_SELECT).
8366
8367 2011-09-22  Bruno Haible  <bruno@clisp.org>
8368
8369         select: Avoid compilation error on MSVC.
8370         * lib/select.c: Don't include <stdbool.h>.
8371
8372 2011-09-21  Bruno Haible  <bruno@clisp.org>
8373
8374         Consolidate all uses of PATH_MAX in *.m4 files.
8375         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8376         macros.
8377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8378         and gl_PATHMAX_SNIPPET.
8379         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8380         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8381         * modules/chdir-long (Files): Add m4/pathmax.m4.
8382         * modules/getcwd (Files): Likewise.
8383
8384 2011-09-21  Bruno Haible  <bruno@clisp.org>
8385
8386         ftruncate: Un-deprecate, concentrate on Win32 support.
8387         * modules/ftruncate (Status, Notice): Remove sections.
8388         (Depends-on): Add largefile.
8389         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8390         non-mingw platforms.
8391         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8392         include <io.h>.
8393         * modules/perror-tests (Depends-on): Add ftruncate.
8394         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8395         'ftruncate' module.
8396
8397 2011-09-21  Bruno Haible  <bruno@clisp.org>
8398
8399         Add dependencies to new dirent related modules.
8400         * modules/opendir (Depends-on): Add closedir.
8401         * modules/getcwd (Depends-on): Add opendir, closedir.
8402         * modules/dirent-safer-tests (Depends-on): Likewise.
8403         * modules/fdopendir-tests (Depends-on): Likewise.
8404         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8405         * modules/renameat-tests (Depends-on): Likewise.
8406
8407 2011-09-21  Bruno Haible  <bruno@clisp.org>
8408
8409         opendir: Avoid compilation error on mingw.
8410         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8411         * modules/opendir (Depends-on): Add unistd.
8412
8413 2011-09-21  Bruno Haible  <bruno@clisp.org>
8414
8415         ftruncate tests: Avoid a test failure on mingw.
8416         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8417
8418 2011-09-21  Bruno Haible  <bruno@clisp.org>
8419
8420         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8421         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8422         native Windows.
8423
8424 2011-09-21  Bruno Haible  <bruno@clisp.org>
8425
8426         New module 'fdopen'.
8427         * lib/stdio.in.h (fdopen): New declaration.
8428         * lib/fdopen.c: New file.
8429         * m4/fdopen.m4: New file.
8430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8431         REPLACE_FDOPEN.
8432         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8433         REPLACE_FDOPEN.
8434         * modules/fdopen: New file.
8435         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8436         * tests/test-stdio-c++.cc: Check signature of fdopen.
8437         * doc/posix-functions/fdopen.texi: Mention the new module.
8438
8439 2011-09-21  Bruno Haible  <bruno@clisp.org>
8440
8441         unlockpt tests: Avoid test failure on NetBSD 5.1.
8442         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8443         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8444
8445 2011-09-21  Bruno Haible  <bruno@clisp.org>
8446
8447         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8448         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8449         * tests/test-getlogin_r.c (main): Likewise.
8450
8451 2011-09-20  Bruno Haible  <bruno@clisp.org>
8452
8453         time tests: Don't require pid_t.
8454         * doc/posix-headers/time.texi: Revert last change.
8455         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8456         * tests/test-time.c: Comment out the check for pid_t.
8457
8458 2011-09-20  Bruno Haible  <bruno@clisp.org>
8459
8460         fsync tests: Avoid a test failure on mingw.
8461         * tests/test-fsync.c (main): Allow a failure with EIO.
8462
8463 2011-09-20  Bruno Haible  <bruno@clisp.org>
8464
8465         euidaccess: Update comments.
8466         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8467
8468 2011-09-20  Bruno Haible  <bruno@clisp.org>
8469
8470         Ensure EBADF returns for socket functions on mingw.
8471         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8472         descriptor is invalid.
8473         * lib/bind.c (rpl_bind): Likewise.
8474         * lib/connect.c (rpl_connect): Likewise.
8475         * lib/getpeername.c (rpl_getpeername): Likewise.
8476         * lib/getsockname.c (rpl_getsockname): Likewise.
8477         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8478         * lib/listen.c (rpl_listen): Likewise.
8479         * lib/recv.c (rpl_recv): Likewise.
8480         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8481         * lib/send.c (rpl_send): Likewise.
8482         * lib/sendto.c (rpl_sendto): Likewise.
8483         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8484         * lib/shutdown.c (rpl_shutdown): Likewise.
8485
8486 2011-09-20  Bruno Haible  <bruno@clisp.org>
8487
8488         select tests: EBADF tests.
8489         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8490         test_bad_fd): New functions.
8491         (test_function): Invoke also test_bad_fd.
8492
8493 2011-09-20  Bruno Haible  <bruno@clisp.org>
8494
8495         Tests for module 'posix_spawn_file_actions_addopen.
8496         * modules/posix_spawn_file_actions_addopen-tests: New file.
8497         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8498
8499         Tests for module 'posix_spawn_file_actions_adddup2'.
8500         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8501         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8502
8503         Tests for module 'posix_spawn_file_actions_addclose'.
8504         * modules/posix_spawn_file_actions_addclose-tests: New file.
8505         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8506
8507 2011-09-20  Bruno Haible  <bruno@clisp.org>
8508
8509         Tests for module 'unlockpt'.
8510         * modules/unlockpt-tests: New file.
8511         * tests/test-unlockpt.c: New file.
8512         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8513
8514         Tests for module 'grantpt'.
8515         * modules/grantpt-tests: New file.
8516         * tests/test-grantpt.c: New file.
8517         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8518
8519 2011-09-20  Bruno Haible  <bruno@clisp.org>
8520
8521         freopen tests: EBADF tests.
8522         * tests/test-freopen.c: Include errno.h, unistd.h.
8523         (main): Add tests for EBADF, commented out for the moment.
8524
8525         fclose tests: EBADF tests.
8526         * tests/test-fclose.c (main): Add tests for EBADF.
8527
8528         fflush tests: EBADF tests.
8529         * tests/test-fflush.c: Include errno.h, macros.h.
8530         (main): Add tests for EBADF.
8531
8532         ftello tests: EBADF tests.
8533         * tests/test-ftello4.sh: New file.
8534         * tests/test-ftello4.c: New file.
8535         * modules/ftello-tests (Files): Add them.
8536         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8537
8538         fseeko tests: EBADF tests.
8539         * tests/test-fseeko4.sh: New file.
8540         * tests/test-fseeko4.c: New file.
8541         * modules/fseeko-tests (Files): Add them.
8542         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8543
8544         Tests for function fputc().
8545         * modules/fputc-tests: New file.
8546         * tests/test-fputc.c: New file.
8547         * modules/stdio-tests (Depends-on): Add fputc-tests.
8548
8549         Tests for function fgetc().
8550         * modules/fgetc-tests: New file.
8551         * tests/test-fgetc.c: New file.
8552         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8553
8554         Tests for function fdopen().
8555         * modules/fdopen-tests: New file.
8556         * tests/test-fdopen.c: New file.
8557         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8558
8559         Tests for module 'vdprintf'.
8560         * modules/vdprintf-tests: New file.
8561         * tests/test-vdprintf.c: New file.
8562
8563         Tests for module 'dprintf'.
8564         * modules/dprintf-tests: New file.
8565         * tests/test-dprintf.c: New file.
8566
8567 2011-09-20  Bruno Haible  <bruno@clisp.org>
8568
8569         Tests for module 'ioctl'.
8570         * modules/ioctl-tests: New file.
8571         * tests/test-ioctl.c: New file.
8572
8573 2011-09-20  Bruno Haible  <bruno@clisp.org>
8574
8575         fcntl tests: EBADF tests.
8576         * tests/test-fcntl.c (main): Add more tests for EBADF.
8577
8578 2011-09-20  Bruno Haible  <bruno@clisp.org>
8579
8580         utimensat tests: EBADF tests.
8581         * tests/test-utimensat.c (main): Add tests for EBADF.
8582
8583         renameat tests: EBADF tests.
8584         * tests/test-renameat.c (main): Add tests for EBADF.
8585
8586         mkfifoat tests: EBADF tests.
8587         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8588
8589         readlinkat tests: EBADF tests.
8590         * tests/test-readlinkat.c (main): Add tests for EBADF.
8591
8592         symlinkat tests: EBADF tests.
8593         * tests/test-symlinkat.c (main): Add tests for EBADF.
8594
8595         linkat tests: EBADF tests.
8596         * tests/test-linkat.c (main): Add tests for EBADF.
8597
8598         Tests for module 'faccessat'.
8599         * modules/faccessat-tests: New file.
8600         * tests/test-faccessat.c: New file.
8601
8602         fdopendir tests: EBADF tests.
8603         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8604
8605         openat tests: EBADF tests.
8606         * tests/test-fchownat.c (main): Add tests for EBADF.
8607         * tests/test-fstatat.c (main): Likewise.
8608         * tests/test-mkdirat.c (main): Likewise.
8609         * tests/test-openat.c (main): Likewise.
8610         * tests/test-unlinkat.c (main): Likewise.
8611         * tests/test-fchmodat.c: New file.
8612         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8613         (Makefile.am): Also run 'test-fchmodat'.
8614
8615 2011-09-20  Bruno Haible  <bruno@clisp.org>
8616
8617         utimens, futimens, fdutimensat tests: EBADF tests.
8618         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8619
8620         Tests for function fstat().
8621         * modules/fstat-tests: New file.
8622         * tests/test-fstat.c: New file.
8623         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8624
8625 2011-09-20  Bruno Haible  <bruno@clisp.org>
8626
8627         test-ttyname_r tests: EBADF tests.
8628         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8629
8630         Tests for module 'isatty'.
8631         * modules/isatty-tests: New file.
8632         * tests/test-isatty.c: New file.
8633
8634         Tests for module 'write'.
8635         * modules/write-tests: New file.
8636         * tests/test-write.c: New file.
8637
8638         Tests for module 'read'.
8639         * modules/read-tests: New file.
8640         * tests/test-read.c: New file.
8641
8642         pwrite tests: EBADF tests.
8643         * tests/test-pwrite.c (main): Add tests for EBADF.
8644
8645         pread tests: EBADF tests.
8646         * tests/test-pread.c (main): Add tests for EBADF.
8647
8648         lseek tests: EBADF tests.
8649         * tests/test-lseek.c (main): Add more tests for EBADF.
8650
8651         Tests for module 'ftruncate'.
8652         * modules/ftruncate-tests: New file.
8653         * tests/test-ftruncate.sh: New file.
8654         * tests/test-ftruncate.c: New file.
8655
8656         fsync tests: EBADF tests.
8657         * tests/test-fsync.c (main): Add more tests for EBADF.
8658
8659         fdatasync tests: EBADF tests.
8660         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8661
8662         Tests for module 'fchown'.
8663         * modules/fchown-tests: New file.
8664         * tests/test-fchown.c: New file.
8665
8666         Tests for module 'fchmod'.
8667         * modules/fchmod-tests: New file.
8668         * tests/test-fchmod.c: New file.
8669
8670         fchdir tests: EBADF tests.
8671         * tests/test-fchdir.c (main): Add more tests for EBADF.
8672
8673         dup2 tests: EBADF tests.
8674         * tests/test-dup2.c (main): Add more tests for EBADF.
8675
8676         Tests for module 'dup'.
8677         * modules/dup-tests: New file.
8678         * tests/test-dup.c: New file.
8679
8680         Tests for module 'close'.
8681         * modules/close-tests: New file.
8682         * tests/test-close.c: New file.
8683
8684 2011-09-20  Bruno Haible  <bruno@clisp.org>
8685
8686         Tests for module 'shutdown'.
8687         * modules/shutdown-tests: New file.
8688         * tests/test-shutdown.c: New file.
8689
8690         Tests for module 'setsockopt'.
8691         * modules/setsockopt-tests: New file.
8692         * tests/test-setsockopt.c: New file.
8693
8694         Tests for module 'sendto'.
8695         * modules/sendto-tests: New file.
8696         * tests/test-sendto.c: New file.
8697
8698         Tests for module 'send'.
8699         * modules/send-tests: New file.
8700         * tests/test-send.c: New file.
8701
8702         Tests for module 'recvfrom'.
8703         * modules/recvfrom-tests: New file.
8704         * tests/test-recvfrom.c: New file.
8705
8706         Tests for module 'recv'.
8707         * modules/recv-tests: New file.
8708         * tests/test-recv.c: New file.
8709
8710         Tests for module 'listen'.
8711         * modules/listen-tests: New file.
8712         * tests/test-listen.c: New file.
8713
8714         Tests for module 'getsockopt'.
8715         * modules/getsockopt-tests: New file.
8716         * tests/test-getsockopt.c: New file.
8717
8718         Tests for module 'getsockname'.
8719         * modules/getsockname-tests: New file.
8720         * tests/test-getsockname.c: New file.
8721
8722         Tests for module 'getpeername'.
8723         * modules/getpeername-tests: New file.
8724         * tests/test-getpeername.c: New file.
8725
8726         Tests for module 'connect'.
8727         * modules/connect-tests: New file.
8728         * tests/test-connect.c: New file.
8729
8730         Tests for module 'bind'.
8731         * modules/bind-tests: New file.
8732         * tests/test-bind.c: New file.
8733
8734         accept4 tests: Fix for native Windows.
8735         * tests/test-accept4.c: Include sockets.h.
8736         (main): Invoke gl_sockets_startup.
8737         * modules/accept4-tests (Depends-on): Add sockets.
8738
8739         accept tests: Fix for native Windows.
8740         * tests/test-accept.c: Include sockets.h.
8741         (main): Invoke gl_sockets_startup.
8742         * modules/accept-tests (Depends-on): Add sockets.
8743
8744 2011-09-19  Bruno Haible  <bruno@clisp.org>
8745
8746         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8747         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8748         do...while(0).
8749         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8750         Suggested by Paul Eggert.
8751
8752 2011-09-19  Bruno Haible  <bruno@clisp.org>
8753
8754         sched: Ensure pid_t is defined.
8755         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8756         not define pid_t.
8757         * lib/sched.in.h: Include <sys/types.h>.
8758         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8760
8761 2011-09-19  Bruno Haible  <bruno@clisp.org>
8762
8763         msvc-inval: Ensure the entire expansion is a single statement.
8764         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8765         of braces.
8766
8767 2011-09-19  Jim Meyering  <meyering@redhat.com>
8768
8769         tests: use printf, not echo in init.sh's warn_ function
8770         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8771         misbehave when given strings containing a backslash or starting
8772         with e.g., -n.  James Youngman suggested setting IFS.
8773
8774 2011-09-19  Eric Blake  <eblake@redhat.com>
8775
8776         futimens: enhance test
8777         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8778         closed non-negative fd.
8779
8780         date: accept 'hence' as opposite of 'ago'
8781         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8782         * tests/test-parse-datetime.c (main): Enhance test.
8783         Suggested by Jesse Wilson.
8784
8785 2011-09-19  Jim Meyering  <meyering@redhat.com>
8786
8787         getcwd: don't fail in a deep directory on a system without openat
8788         Before this change, getcwd would fail when called from a directory
8789         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8790         the non-openat implementation used "..", "../..", "../../..", etc.
8791         to access ancestor directories.  With too many, that string would
8792         be longer than PATH_MAX.
8793         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8794         using gnulib's openat replacement.
8795         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8796         we're using the replacement function.
8797
8798 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8799
8800         maint.mk: avoid warnings from perl about missing files
8801         * top/maint.mk (def_sym_regex): Ignore files listed in
8802         $(gl_other_headers_) that do not exist, say because a project
8803         does not use a corresponding module.
8804
8805 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8806
8807         stat: use pathmax.h only if needed
8808         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8809         This is better for Emacs, which does not have a mingw port and
8810         therefore can avoid the pathmax module.
8811
8812         utimens: remove dependency on dup2
8813         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8814         to work around the Linux kernel bug.
8815         * modules/utimens (Depends-on): Remove dup2.
8816
8817 2011-09-18  Bruno Haible  <bruno@clisp.org>
8818
8819         inet_ntop, inet_pton: Look for it also in libresolv.
8820         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8821         libnsl, search for it in libresolv.
8822         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8823         Needed on Solaris 7.
8824
8825 2011-09-18  Bruno Haible  <bruno@clisp.org>
8826
8827         accept, accept4 tests: Avoid link error on Solaris.
8828         * modules/accept-tests (Makefile.am): Link test-accept against
8829         $(LIBSOCKET).
8830         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8831         $(LIBSOCKET).
8832
8833         accept4: Avoid link error on Solaris.
8834         * modules/accept4 (Link): New section.
8835
8836         socket functions: Avoid link errors on Solaris.
8837         * modules/accept (Depends-on): Add socketlib.
8838         (Link): New section.
8839         * modules/bind (Depends-on): Add socketlib.
8840         (Link): New section.
8841         * modules/connect (Depends-on): Add socketlib.
8842         (Link): New section.
8843         * modules/getpeername (Depends-on): Add socketlib.
8844         (Link): New section.
8845         * modules/getsockname (Depends-on): Add socketlib.
8846         (Link): New section.
8847         * modules/getsockopt (Depends-on): Add socketlib.
8848         (Link): New section.
8849         * modules/listen (Depends-on): Add socketlib.
8850         (Link): New section.
8851         * modules/recv (Depends-on): Add socketlib.
8852         (Link): New section.
8853         * modules/recvfrom (Depends-on): Add socketlib.
8854         (Link): New section.
8855         * modules/send (Depends-on): Add socketlib.
8856         (Link): New section.
8857         * modules/sendto (Depends-on): Add socketlib.
8858         (Link): New section.
8859         * modules/setsockopt (Depends-on): Add socketlib.
8860         (Link): New section.
8861         * modules/shutdown (Depends-on): Add socketlib.
8862         (Link): New section.
8863         * modules/socket (Depends-on): Add socketlib.
8864         (Link): New section.
8865
8866 2011-09-18  Bruno Haible  <bruno@clisp.org>
8867
8868         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8869         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8870         than 5 seconds.
8871         * modules/ptsname-tests (configure.ac): Test for alarm.
8872
8873 2011-09-18  Bruno Haible  <bruno@clisp.org>
8874
8875         posix_spawn_file_actions_add*: Fix module dependencies.
8876         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8877         posix_spawn_file_actions_init.
8878         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8879         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8880
8881 2011-09-18  Bruno Haible  <bruno@clisp.org>
8882
8883         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8884         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8885         * tests/test-renameat.c (main): Likewise.
8886
8887 2011-09-18  Bruno Haible  <bruno@clisp.org>
8888
8889         Tests for module 'accept4'.
8890         * modules/accept4-tests: New file.
8891         * tests/test-accept4.c: New file.
8892
8893 2011-09-18  Bruno Haible  <bruno@clisp.org>
8894
8895         Tests for module 'accept'.
8896         * modules/accept-tests: New file.
8897         * tests/test-accept.c: New file.
8898
8899 2011-09-18  Bruno Haible  <bruno@clisp.org>
8900
8901         dup2: Support for MSVC.
8902         * lib/dup2.c: Include msvc-inval.h.
8903         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8904         _get_osfhandle calls.
8905         * modules/dup2 (Depends-on): Add msvc-inval.
8906         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8907
8908         New module 'msvc-inval'.
8909         * lib/msvc-inval.h: New file.
8910         * lib/msvc-inval.c: New file.
8911         * m4/msvc-inval.m4: New file.
8912         * modules/msvc-inval: New file.
8913
8914 2011-09-17  Bruno Haible  <bruno@clisp.org>
8915
8916         Tests for module 'pclose'.
8917         * modules/pclose-tests: New file.
8918
8919         New module 'pclose'.
8920         * lib/stdio.in.h (pclose): New declaration.
8921         * lib/pclose.c: New file.
8922         * m4/pclose.m4: New file.
8923         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8924         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8925         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8926         * modules/pclose: New file.
8927         * modules/popen-tests (Depends-on): Add pclose.
8928         * modules/popen-safer-tests (Depends-on): Likewise.
8929         * doc/posix-functions/pclose.texi: Mention the new module.
8930
8931 2011-09-17  Bruno Haible  <bruno@clisp.org>
8932
8933         popen: Support for MSVC.
8934         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8935         * lib/popen.c (popen): Provide alternate definition for native Windows.
8936         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8938         * modules/popen (Depends-on, configure.ac): Update condition.
8939         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8940         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8941         fixed.
8942
8943 2011-09-17  Bruno Haible  <bruno@clisp.org>
8944
8945         isnanl, isnand, isnanf: Work around MSVC bug.
8946         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8947
8948 2011-09-17  Bruno Haible  <bruno@clisp.org>
8949
8950         sys_socket tests: Fix recent mistake.
8951         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8952
8953 2011-09-17  Bruno Haible  <bruno@clisp.org>
8954
8955         putenv: Support for MSVC.
8956         * modules/putenv (Depends-on): Add environ.
8957         * lib/putenv.c (environ): Disable declaration.
8958         * lib/unistd.in.h: Update comment.
8959
8960 2011-09-17  Bruno Haible  <bruno@clisp.org>
8961
8962         math: Avoid macro redefinition warnings on MSVC.
8963         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8964         Undefine before redefining.
8965
8966 2011-09-17  Bruno Haible  <bruno@clisp.org>
8967
8968         doc: Mention functions which are declared as macros.
8969         * doc/posix-functions/*[fl].texi: Mention that some functions are
8970         defined as macros with arguments only.
8971
8972 2011-09-17  Bruno Haible  <bruno@clisp.org>
8973
8974         Add dependencies to new dirent related modules.
8975         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8976         * modules/fts (Depends-on): Likewise.
8977         * modules/glob (Depends-on): Likewise.
8978         * modules/savedir (Depends-on): Likewise.
8979         * modules/scandir (Depends-on): Likewise.
8980         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8981         * modules/fdopendir (Depends-on): Add opendir.
8982
8983 2011-09-17  Bruno Haible  <bruno@clisp.org>
8984
8985         inet_pton: Support for MSVC on Windows Vista or newer.
8986         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8987         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8988         HAVE_DECL_INET_PTON is defined.
8989         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8990         On platforms with <winsock2.h>, test whether inet_pton is declared in
8991         <ws2tcpip.h>. If so, arrange to replace it.
8992         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8993         REPLACE_INET_PTON.
8994         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8995         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8996         (Depends-on, configure.ac): Update condition.
8997         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8998
8999 2011-09-17  Bruno Haible  <bruno@clisp.org>
9000
9001         inet_ntop: Support for MSVC on Windows Vista or newer.
9002         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9003         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9004         HAVE_DECL_INET_NTOP is defined.
9005         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9006         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9007         <ws2tcpip.h>. If so, arrange to replace it.
9008         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9009         REPLACE_INET_NTOP.
9010         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9011         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9012         (Depends-on, configure.ac): Update condition.
9013         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9014
9015 2011-09-16  Eric Blake  <eblake@redhat.com>
9016
9017         test-fsync: yet another enhancement
9018         * tests/test-fsync.c (main): Also test behavior on read-only text
9019         file.
9020
9021 2011-09-16  Bruno Haible  <bruno@clisp.org>
9022
9023         Enhance fsync, fdatasync tests.
9024         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9025         * tests/test-fdatasync.c (main): Likewise.
9026
9027 2011-09-16  Bruno Haible  <bruno@clisp.org>
9028
9029         Support for MSVC compiler: Ensure mode_t gets defined.
9030         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9031         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9032         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9033         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9034         * tests/test-fcntl-h.c: Check that mode_t is defined.
9035         * tests/test-sys_stat.c: Likewise.
9036         * tests/test-sys_types.c: Likewise.
9037         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9038         * doc/posix-headers/sys_stat.texi: Likewise.
9039         * doc/posix-headers/sys_types.texi: Likewise.
9040
9041 2011-09-16  Bruno Haible  <bruno@clisp.org>
9042
9043         sys_stat: Support for MSVC.
9044         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9045         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9046         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9047         MSVC.
9048
9049 2011-09-16  Bruno Haible  <bruno@clisp.org>
9050
9051         Support for MSVC compiler: Ensure off_t gets defined.
9052         * lib/unistd.in.h: Include <sys/types.h>.
9053         * tests/test-fcntl-h.c: Check that off_t is defined.
9054         * tests/test-sys_stat.c: Likewise.
9055         * tests/test-sys_types.c: Likewise.
9056
9057 2011-09-16  Eric Blake  <eblake@redhat.com>
9058
9059         fdatasync: port to Solaris
9060         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9061         * modules/fdatasync (Link): Document it.
9062         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9063
9064         fdatasync: port to MacOS X 10.7
9065         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9066         declared.
9067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9068         * modules/unistd (Makefile.am): Substitute it.
9069         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9070         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9071
9072         fdatasync: minor improvements
9073         * modules/fdatasync (Depends-on): Add condition for fsync.
9074         * lib/fdatasync.c (fdatasync): Add comment.
9075         * tests/test-unistd-c++.cc: Test fdatasync.
9076
9077         unistd: update refs to newer POSIX
9078         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9079         Suggested by Bruno Haible.
9080
9081         fdatasync: new module
9082         * modules/fsync (Description): Document difference to fdatasync.
9083         * modules/fdatasync: New module.
9084         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9085         * lib/fdatasync.c (fdatasync): Likewise.
9086         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9087         defaults.
9088         * modules/unistd (Makefile.am): Set witnesses.
9089         * lib/unistd.in.h (fdatasync): Declare.
9090         * MODULES.html.sh: Document it.
9091         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9092         * modules/fdatasync-tests: New test.
9093         * tests/test-fdatasync.c: Likewise.
9094
9095 2011-09-16  Eric Blake  <eblake@redhat.com>
9096
9097         test-fsync: enhance tests
9098         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9099         * tests/test-fsync.c (main): Enhance test.
9100
9101 2011-09-15  Bruno Haible  <bruno@clisp.org>
9102
9103         Support for MSVC compiler: Ensure ssize_t gets defined.
9104         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9105         * doc/posix-headers/stdio.texi: Likewise.
9106         * modules/stdio (Depends-on): Add ssize_t.
9107         * modules/sys_socket (Depends-on): Likewise.
9108         * modules/sys_types (Depends-on): Likewise.
9109         * modules/sys_uio (Depends-on): Likewise.
9110         * modules/unistd (Depends-on): Likewise.
9111         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9112         * tests/test-sys_types.c: Check that ssize_t is defined.
9113
9114 2011-09-14  Bruno Haible  <bruno@clisp.org>
9115
9116         Avoid using #, the m4 comment starter character, near brackets.
9117         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9118         delimiter character in sed expressions.
9119         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9120         Suggested by Eric Blake.
9121
9122         Properly quote AC_CHECK_DECLS' 4th argument.
9123         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9124         argument.
9125         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9126         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9127         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9128         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9129         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9130         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9131         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9132         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9133         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9134         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9135         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9136         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9137         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9138         * m4/isinf.m4 (gl_ISINF): Likewise.
9139         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9140         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9141         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9142         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9143         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9145         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9146         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9147         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9148         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9149         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9150         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9152         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9154         Reported by Eric Blake.
9155
9156         Properly quote AC_CHECK_DECL's 4th argument.
9157         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9158         argument.
9159         * m4/argp.m4 (gl_ARGP): Likewise.
9160         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9161         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9162         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9163         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9164         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9165         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9167         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9168         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9169         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9170         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9171         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9172         Reported by Eric Blake.
9173
9174 2011-09-14  Eric Blake  <eblake@redhat.com>
9175
9176         opendir: avoid compile warning
9177         * lib/opendir.c (includes): Always include errno.h.
9178         Reported by Tatsuro MATSUOKA.
9179
9180 2011-09-14  Jim Meyering  <meyering@redhat.com>
9181
9182         maint.mk: sc_tight_scope: propagate failure from sub-make
9183         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9184         Reported by Martin von Gagern.
9185
9186 2011-09-13  Bruno Haible  <bruno@clisp.org>
9187
9188         tempname: Support for MSVC.
9189         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9190         MSVC.
9191         * modules/tempname (Depends-on): Add fcntl-h.
9192
9193 2011-09-13  Bruno Haible  <bruno@clisp.org>
9194
9195         sys_time: Support for MSVC.
9196         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9197         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9198         include <winsock2.h>.
9199         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9200         function declarations that collide with POSIX.
9201         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9202         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9203
9204 2011-09-13  Bruno Haible  <bruno@clisp.org>
9205
9206         stat: Support for MSVC.
9207         * lib/stat.c: Include pathmax.h.
9208         * modules/stat (Depends-on): Add pathmax.
9209
9210         pathmax: Support for native Windows.
9211         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9212
9213 2011-09-12  Bruno Haible  <bruno@clisp.org>
9214
9215         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9216         * lib/dirent.in.h (struct dirent): New type.
9217         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9218         DT_WHT): New macros.
9219         (DIR): New type.
9220         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9221         (readdir, rewinddir): New declarations.
9222         * lib/dirent-private.h: New file.
9223         * lib/opendir.c: New file.
9224         * lib/readdir.c: New file.
9225         * lib/rewinddir.c: New file.
9226         * lib/closedir.c: New file.
9227         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9228         * m4/opendir.m4: New file.
9229         * m4/readdir.m4: New file.
9230         * m4/rewinddir.m4: New file.
9231         * m4/closedir.m4: New file.
9232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9233         REPLACE_CLOSEDIR here.
9234         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9235         readdir, rewinddir are declared.
9236         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9237         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9238         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9239         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9240         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9241         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9242         * modules/opendir: New file.
9243         * modules/readdir: New file.
9244         * modules/rewinddir: New file.
9245         * modules/closedir: New file.
9246         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9247         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9248         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9249         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9250         * NEWS: Mention the 'fchdir' change.
9251
9252 2011-09-11  Bruno Haible  <bruno@clisp.org>
9253
9254         asm-underscore.m4: Support for MSVC.
9255         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9256         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9257
9258 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9259
9260         Doc about crypt functions.
9261         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9262         needing for _GNU_SOURCE to get crypt.
9263         * doc/posix-functions/encrypt.texi: Likewise.
9264         * doc/posix-functions/setkey.texi: Likewise.
9265
9266 2011-09-11  Bruno Haible  <bruno@clisp.org>
9267
9268         doc: Update regarding MSVC 9.
9269         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9270         tested".
9271         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9272         * doc/posix-headers/*.texi: Likewise.
9273         * doc/pastposix-functions/*.texi: Likewise.
9274         * doc/glibc-functions/*.texi: Likewise.
9275         * doc/glibc-headers/*.texi: Likewise.
9276
9277 2011-09-11  Bruno Haible  <bruno@clisp.org>
9278
9279         unistd et al.: Don't assume <unistd.h> exists.
9280         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9281         does not exist.
9282         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9283         exist. But include <stdlib.h>.
9284         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9285         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9286         symlink() does not exist.
9287         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9288         include <io.h> instead.
9289         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9290         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9291         include <direct.h> instead.
9292         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9294         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9295         <io.h> instead.
9296         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9297         correctly if the system does not have hard links.
9298         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9299         <direct.h> instead.
9300         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9301         it when looking for function declarations.
9302         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9303         <direct.h> and <io.h> instead.
9304         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9305
9306 2011-09-11  Bruno Haible  <bruno@clisp.org>
9307
9308         strcase: Support for MSVC.
9309         * modules/strcase (Status, Notice): Remove obsoletion mark.
9310         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9311         * doc/posix-functions/strncasecmp.texi: Likewise.
9312
9313         strings: Don't assume <strings.h> exists.
9314         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9315         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9316         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9317         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9318
9319 2011-09-11  Bruno Haible  <bruno@clisp.org>
9320
9321         dirent: Don't assume <dirent.h> exists.
9322         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9323         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9324         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9325         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9326
9327 2011-09-11  Bruno Haible  <bruno@clisp.org>
9328
9329         Fix wint_t on MSVC.
9330         * lib/wchar.in.h (wint_t): On MSVC, override it.
9331         * lib/wctype.in.h (wint_t): Likewise.
9332         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9333         MSVC.
9334         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9335         * doc/posix-headers/wctype.texi: Likewise.
9336
9337 2011-09-11  Bruno Haible  <bruno@clisp.org>
9338
9339         sys_types: Fix typo.
9340         * lib/sys_types.in.h: Fix typo in comment.
9341         Reported by Paul Eggert.
9342
9343         Support for MSVC compiler: Ensure size_t gets defined.
9344         * modules/strings (Depends-on): Add 'sys_types'.
9345         * modules/sys_uio (Depends-on): Likewise.
9346         * lib/sys_uio.in.h: Update comment.
9347
9348         C++ tests for module 'sys_types'.
9349         * modules/sys_types-c++-tests: New file.
9350         * tests/test-sys_types-c++.cc: New file.
9351
9352         Tests for module 'sys_types'.
9353         * modules/sys_types-tests: New file.
9354         * tests/test-sys_types.c: New file.
9355
9356         New module 'sys_types'.
9357         * lib/sys_types.in.h: New file.
9358         * m4/sys_types_h.m4: New file.
9359         * modules/sys_types: New file.
9360         * doc/posix-headers/sys_types.texi: Mention the new module and the
9361         size_t problem on MSVC 9.
9362
9363 2011-09-11  Bruno Haible  <bruno@clisp.org>
9364
9365         Support for MSVC compiler: Avoid division by a literal 0.
9366         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9367         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9368         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9369         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9370         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9371         * tests/infinity.h: New file.
9372         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9373         on MSVC.
9374         * tests/test-ceilf1.c: Include infinity.h.
9375         (main): Use Infinityf.
9376         * tests/test-ceil1.c: Include infinity.h.
9377         (main): Use Infinityd.
9378         * tests/test-ceill.c: Include infinity.h.
9379         (main): Use Infinityl.
9380         * tests/test-dprintf-posix.c: Include infinity.h.
9381         (test_function): Use Infinityd.
9382         * tests/test-floorf1.c: Include infinity.h.
9383         (main): Use Infinityf.
9384         * tests/test-floor1.c: Include infinity.h.
9385         (main): Use Infinityd.
9386         * tests/test-floorl.c: Include infinity.h.
9387         (main): Use Infinityl.
9388         * tests/test-fprintf-posix.c: Include infinity.h.
9389         (test_function): Use Infinityd.
9390         * tests/test-frexp.c: Include infinity.h.
9391         (main): Use Infinityd.
9392         * tests/test-frexpl.c: Include infinity.h.
9393         (main): Use Infinityl.
9394         * tests/test-isfinite.c: Include infinity.h.
9395         (test_isfinitef): Use Infinityf.
9396         (test_isfinited): Use Infinityd.
9397         (test_isfinitel): Use Infinityl.
9398         * tests/test-isinf.c: Include infinity.h.
9399         (test_isinff): Use Infinityf.
9400         (test_isinfd): Use Infinityd.
9401         (test_isinfl): Use Infinityl.
9402         * tests/test-isnan.c: Include infinity.h.
9403         (test_float): Use Infinityf.
9404         (test_double): Use Infinityd.
9405         (test_long_double): Use Infinityl.
9406         * tests/test-isnanf.h: Include infinity.h.
9407         (main): Use Infinityf.
9408         * tests/test-isnand.h: Include infinity.h.
9409         (main): Use Infinityd.
9410         * tests/test-isnanl.h: Include infinity.h.
9411         (main): Use Infinityl.
9412         * tests/test-ldexpl.c: Include infinity.h.
9413         (main): Use Infinityl.
9414         * tests/test-printf-posix.h: Include infinity.h.
9415         (test_function): Use Infinityd.
9416         * tests/test-roundf1.c: Include infinity.h.
9417         (main): Use Infinityf.
9418         * tests/test-round1.c: Include infinity.h.
9419         (main): Use Infinityd.
9420         * tests/test-roundl.c: Include infinity.h.
9421         (main): Use Infinityl.
9422         * tests/test-signbit.c: Include infinity.h.
9423         (test_signbitf): Use Infinityf.
9424         (test_signbitd): Use Infinityd.
9425         (test_signbitl): Use Infinityl.
9426         * tests/test-snprintf-posix.h: Include infinity.h.
9427         (test_function): Use Infinityd, Infinityl.
9428         * tests/test-sprintf-posix.h: Include infinity.h.
9429         (test_function): Use Infinityd, Infinityl.
9430         * tests/test-truncf1.c: Include infinity.h.
9431         (main): Use Infinityf.
9432         * tests/test-trunc1.c: Include infinity.h.
9433         (main): Use Infinityd.
9434         * tests/test-truncl.c: Include infinity.h.
9435         (main): Use Infinityl.
9436         * tests/test-vasnprintf-posix.c: Include infinity.h.
9437         (test_function): Use Infinityd, Infinityl.
9438         * tests/test-vasprintf-posix.c: Include infinity.h.
9439         (test_function): Use Infinityd, Infinityl.
9440         * modules/ceilf-tests (Files): Add tests/infinity.h.
9441         * modules/ceil-tests (Files): Likewise.
9442         * modules/ceill-tests (Files): Likewise.
9443         * modules/dprintf-posix-tests (Files): Likewise.
9444         * modules/floorf-tests (Files): Likewise.
9445         * modules/floor-tests (Files): Likewise.
9446         * modules/floorl-tests (Files): Likewise.
9447         * modules/fprintf-posix-tests (Files): Likewise.
9448         * modules/frexp-tests (Files): Likewise.
9449         * modules/frexp-nolibm-tests (Files): Likewise.
9450         * modules/frexpl-tests (Files): Likewise.
9451         * modules/frexpl-nolibm-tests (Files): Likewise.
9452         * modules/isfinite-tests (Files): Likewise.
9453         * modules/isinf-tests (Files): Likewise.
9454         * modules/isnan-tests (Files): Likewise.
9455         * modules/isnanf-tests (Files): Likewise.
9456         * modules/isnanf-nolibm-tests (Files): Likewise.
9457         * modules/isnand-tests (Files): Likewise.
9458         * modules/isnand-nolibm-tests (Files): Likewise.
9459         * modules/isnanl-tests (Files): Likewise.
9460         * modules/isnanl-nolibm-tests (Files): Likewise.
9461         * modules/ldexpl-tests (Files): Likewise.
9462         * modules/printf-posix-tests (Files): Likewise.
9463         * modules/roundf-tests (Files): Likewise.
9464         * modules/round-tests (Files): Likewise.
9465         * modules/roundl-tests (Files): Likewise.
9466         * modules/signbit-tests (Files): Likewise.
9467         * modules/snprintf-posix-tests (Files): Likewise.
9468         * modules/sprintf-posix-tests (Files): Likewise.
9469         * modules/truncf-tests (Files): Likewise.
9470         * modules/trunc-tests (Files): Likewise.
9471         * modules/truncl-tests (Files): Likewise.
9472         * modules/vasnprintf-posix-tests (Files): Likewise.
9473         * modules/vasprintf-posix-tests (Files): Likewise.
9474         * modules/vdprintf-posix-tests (Files): Likewise.
9475         * modules/vfprintf-posix-tests (Files): Likewise.
9476         * modules/vprintf-posix-tests (Files): Likewise.
9477         * modules/vsnprintf-posix-tests (Files): Likewise.
9478         * modules/vsprintf-posix-tests (Files): Likewise.
9479         * modules/xprintf-posix-tests (Files): Likewise.
9480
9481 2011-09-11  Bruno Haible  <bruno@clisp.org>
9482
9483         Ensure pid_t gets defined.
9484         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9485         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9486         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9487         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9488         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9489         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9490         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9491         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9492         * tests/test-fcntl-h.c: Check that pid_t is defined.
9493         * tests/test-sched.c: Likewise.
9494         * tests/test-termios.c: Likewise.
9495         * tests/test-time.c: Likewise.
9496         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9497         * doc/posix-headers/signal.texi: Likewise.
9498         * doc/posix-headers/sys_types.texi: Likewise.
9499         * doc/posix-headers/time.texi: Likewise.
9500
9501 2011-09-11  Bruno Haible  <bruno@clisp.org>
9502
9503         acl: Fix compilation on Solaris 10 (older version).
9504         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9505         of ACE_EVERYONE.
9506         * lib/set-mode-acl.c (qset_acl): Likewise.
9507         Reported by Christian Jullien <eligis@orange.fr>.
9508
9509 2011-09-10  Bruno Haible  <bruno@clisp.org>
9510
9511         iconv, unsetenv: Add support for MSVC compiler.
9512         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9513         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9514
9515 2011-09-10  Bruno Haible  <bruno@clisp.org>
9516
9517         *printf: Add support for MSVC compiler.
9518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9519         handles the exception caused by the %n directive. When cross-compiling,
9520         guess no on native Windows.
9521         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9522         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9523         emulate it through vsnprintf.
9524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9525         * doc/posix-functions/dprintf.texi: Update documentation regarding
9526         MSVC 9.
9527         * doc/posix-functions/fprintf.texi: Likewise.
9528         * doc/posix-functions/printf.texi: Likewise.
9529         * doc/posix-functions/snprintf.texi: Likewise.
9530         * doc/posix-functions/sprintf.texi: Likewise.
9531         * doc/posix-functions/swprintf.texi: Likewise.
9532         * doc/posix-functions/vdprintf.texi: Likewise.
9533         * doc/posix-functions/vfprintf.texi: Likewise.
9534         * doc/posix-functions/vprintf.texi: Likewise.
9535         * doc/posix-functions/vsnprintf.texi: Likewise.
9536         * doc/posix-functions/vsprintf.texi: Likewise.
9537         * doc/glibc-functions/asprintf.texi: Likewise.
9538         * doc/glibc-functions/obstack_printf.texi: Likewise.
9539         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9540         * doc/glibc-functions/vasprintf.texi: Likewise.
9541
9542 2011-09-10  Bruno Haible  <bruno@clisp.org>
9543
9544         nocrash: Add support for native Windows.
9545         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9546
9547 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9548             Bruno Haible  <bruno@clisp.org>
9549
9550         absolute-header, include-next: Add support for MSVC compiler.
9551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9552         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9553         directory separator in #line directives.
9554         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9555         recognize also backslash as directory separator in #line directives.
9556
9557 2011-09-08  Jim Meyering  <meyering@redhat.com>
9558
9559         maint.mk: mark the post-release commit log with "maint: " prefix
9560         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9561         one-line commit-log summary.
9562
9563 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9564             Bruno Haible  <bruno@clisp.org>
9565
9566         Doc about crypt functions.
9567         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9568         systems.
9569         * doc/posix-functions/encrypt.texi: Likewise.
9570         * doc/posix-functions/setkey.texi: Likewise.
9571
9572 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9573
9574         * lib/gc.h: Fix copyright header.
9575
9576 2011-09-07  Bruno Haible  <bruno@clisp.org>
9577
9578         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9579         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9580         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9581
9582 2011-09-07  Bruno Haible  <bruno@clisp.org>
9583
9584         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9585         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9586         * lib/freopen.c: Likewise.
9587         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9588         * lib/lstat.c: Likewise.
9589         * lib/stat.c: Likewise.
9590         * lib/open.c: Use different syntax for include of <fcntl.h>.
9591         * lib/openat.c: Include fcntl.h again, explicitly.
9592
9593 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9594
9595         parse-datetime: document the newly accepted format
9596         * doc/parse-datetime.texi (Combined date and time of day items):
9597         New section.
9598
9599 2011-09-06  Bruno Haible  <bruno@clisp.org>
9600
9601         acl: Fix a test failure on newer Solaris 10 with ZFS.
9602         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9603         ENOSYS as no ACL.
9604         Reported by Jim Meyering.
9605
9606 2011-09-06  Bruno Haible  <bruno@clisp.org>
9607
9608         acl: Update for AIX >= 5.3 with NFS.
9609         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9610         ENOSYS as no ACL.
9611
9612         acl: Fix a test failure on AIX >= 5.3 with NFS.
9613         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9614         as no ACL.
9615
9616 2011-09-06  Bruno Haible  <bruno@clisp.org>
9617
9618         acl: Fix a test failure on IRIX 6.5 with NFS.
9619         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9620         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9621         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9622         * lib/copy-acl.c (qcopy_acl): Likewise.
9623
9624 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9625
9626         openat: port to AIX 7.1 with large files
9627         AIX 7.1 does a "#define openat open64at" if large files are in use,
9628         so we can't simply #undef openat.  Use the orig_openat trick (similar
9629         to orig_open in lib/open.c) to work around the problem.  Problem
9630         reported by Kevin Brott for GNU tar, in the thread containing
9631         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9632         * lib/openat.c (__need_system_fcntl_h): Define first.
9633         Include <fcntl.h> and <sys/types.h> before undefining.
9634         (orig_openat) [HAVE_OPENAT]: New inline function.
9635         (openat) [HAVE_OPENAT]: Do not undef.
9636         (rpl_openat): Use orig_openat, not openat.
9637
9638 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9639             Bruno Haible  <bruno@clisp.org>
9640
9641         acl: Avoid errors on NonStop Kernel.
9642         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9643         ENOTSUP errors.
9644
9645 2011-09-05  Bruno Haible  <bruno@clisp.org>
9646
9647         acl: Clean up Solaris code.
9648         * lib/acl-internal.h: Remove no-op #if.
9649         * lib/file-has-acl.c: Likewise.
9650         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9651         * lib/copy-acl.c (qcopy_acl): Likewise.
9652
9653 2011-09-05  Bruno Haible  <bruno@clisp.org>
9654
9655         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9656         binaries built on the original Solaris 10.
9657         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9658         trivial.
9659
9660 2011-09-05  Bruno Haible  <bruno@clisp.org>
9661
9662         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9663         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9664         10.
9665         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9666         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9667         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9668         instead of acl_get, facl_get, acl_set, facl_set.
9669
9670 2011-09-05  Bruno Haible  <bruno@clisp.org>
9671
9672         copy-file: Try unit tests on more file systems.
9673         * tests/test-copy-file-1.sh: New file.
9674         * tests/test-copy-file-2.sh: New file.
9675         * modules/copy-file-tests (Files): Add them.
9676         (Makefile.am): Add them to TESTS.
9677
9678         acl: Try unit tests on more file systems.
9679         * tests/test-file-has-acl-1.sh: New file.
9680         * tests/test-file-has-acl-2.sh: New file.
9681         * tests/test-set-mode-acl-1.sh: New file.
9682         * tests/test-set-mode-acl-2.sh: New file.
9683         * tests/test-copy-acl-1.sh: New file.
9684         * tests/test-copy-acl-2.sh: New file.
9685         * modules/acl-tests (Files): Add them.
9686         (Makefile.am): Add them to TESTS.
9687
9688 2011-09-04  Bruno Haible  <bruno@clisp.org>
9689
9690         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9691         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9692         10.
9693         (OLD_ALLOW, OLD_DENY): New macros.
9694         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9695         ACE_ACCESS_ALLOWED_ACE_TYPE.
9696         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9697         ACE_ACCESS_DENIED_ACE_TYPE.
9698         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9699         (NEW_ACE_EXECUTE): Fix value.
9700         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9701         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9702         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9703         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9704         NEW_ACE_SYNCHRONIZE): New macros.
9705         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9706         instead of acl_fromtext, acl_set, facl_set.
9707         Fixes a coreutils/tests/cp/perm failure.
9708
9709 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9710
9711         openat: test for fstatat (..., 0) bug
9712         Further testing with tar suggests that fstatat (..., 0)
9713         does not work in general, on AIX 7.1; see
9714         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9715         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9716         replacement fstatat (which is what older AIX releases were using
9717         anyway).
9718         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9719         use is now changed to orig_fstatat.  This was probably the right
9720         thing to do anyway.
9721         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9722         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9723         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9724         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9725         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9726         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9727         if the bug is found.
9728
9729         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9730         This tests for another fstatat bug on AIX 7.1:
9731         fstatat (AT_FDCWD, ..., 0) does not work.  See
9732         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9733         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9734         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9735         (rpl_fstatat): Adjust so that it works around either (or both)
9736         bugs if present.
9737         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9738
9739 2011-09-03  Karl Berry  <karl@gnu.org>
9740
9741         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9742         in index entries.
9743
9744 2011-09-02  Bruno Haible  <bruno@clisp.org>
9745
9746         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9747         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9748         values of AR, ARFLAGS, RANLIB.
9749         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9750
9751 2011-09-02  Bruno Haible  <bruno@clisp.org>
9752
9753         Find 'ar' program that fits with --host argument.
9754         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9755
9756 2011-09-02  Bruno Haible  <bruno@clisp.org>
9757
9758         tests: init.sh: Support any non-GNU diff.
9759         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9760         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9761         Solaris 8.
9762
9763 2011-09-02  Bruno Haible  <bruno@clisp.org>
9764
9765         tests: init.sh: work also with any non-GNU diff that supports -u
9766         * tests/init.sh: Relax check for diff -u support.
9767         Rather than checking for GNU diff via --version, simply check
9768         for support for -u itself.  Useful at least on OpenBSD 4.9,
9769         AIX 7.1, IRIX 6.5, and Solaris 10.
9770
9771 2011-09-01  Bruno Haible  <bruno@clisp.org>
9772
9773         strtoimax, strtoumax: Document problem on HP-UX 11.
9774         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9775         * doc/posix-functions/strtoumax.texi: Likewise.
9776
9777 2011-09-01  Bruno Haible  <bruno@clisp.org>
9778
9779         strtoumax: Avoid link error on OSF/1 with DTK cc.
9780         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9781         defined as a function.
9782         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9783         strtoumax is defined, not whether it is declared.
9784
9785 2011-09-01  Bruno Haible  <bruno@clisp.org>
9786
9787         strtoimax: Avoid link error on OSF/1 with DTK cc.
9788         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9789         defined as a function.
9790         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9791         strtoimax is defined, not whether it is declared.
9792
9793 2011-09-01  Bruno Haible  <bruno@clisp.org>
9794
9795         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9796         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9797         as a function.
9798         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9799         whether it is declared.
9800
9801 2011-09-01  Bruno Haible  <bruno@clisp.org>
9802
9803         imaxabs: Avoid link error on OSF/1 with DTK cc.
9804         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9805         as a function.
9806         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9807         whether it is declared.
9808
9809 2011-09-01  Bruno Haible  <bruno@clisp.org>
9810
9811         Tests for module 'strtoumax'.
9812         * modules/strtoumax-tests: New file.
9813         * tests/test-strtoumax.c: New file.
9814
9815         Tests for module 'strtoimax'.
9816         * modules/strtoimax-tests: New file.
9817         * tests/test-strtoimax.c: New file.
9818
9819         Tests for module 'imaxdiv'.
9820         * modules/imaxdiv-tests: New file.
9821         * tests/test-imaxdiv.c: New file.
9822
9823         Tests for module 'imaxabs'.
9824         * modules/imaxabs-tests: New file.
9825         * tests/test-imaxabs.c: New file.
9826
9827 2011-09-01  Bruno Haible  <bruno@clisp.org>
9828
9829         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9830         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9831         pthread_create.
9832
9833 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9834
9835         openat: work around AIX 7.1 fstatat issue
9836         This should fix the problem that was not properly fixed
9837         in the previous change, dated 2011-08-30.
9838         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9839         __need_system_stat_h defined.
9840         (orig_fstatat) [HAVE_FSTATAT]: New function.
9841         (rpl_fstatat): Go back to the old way of doing things,
9842         except call orig_fstatat instead of fstatat.
9843         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9844         Remove unnecessary check whether fstatat fills in st_size etc.
9845
9846 2011-09-01  Bruno Haible  <bruno@clisp.org>
9847
9848         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9849         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9850         just include the system's header.
9851
9852 2011-08-31  Jim Meyering  <meyering@redhat.com>
9853
9854         tests: avoid spurious assertion failure in test-float.c on ppc64
9855         * tests/test-float.c (test_long_double): Comment out an assertion,
9856         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9857         with gcc-4.4.4.
9858
9859         maint: indent with spaces, not TABs
9860         I need to get in the habit of running gnulib's "make check".
9861         Both of these would have been caught.
9862         * m4/largefile.m4: Indent with spaces, not TABs.
9863         * lib/parse-datetime.y (iso_8601_time): Likewise.
9864         Spotted by Pádraig Brady.
9865
9866         test-parse-datetime.c: accommodate a relatively strict gcc warning
9867         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9868         to avoid a warning from gcc's -Werror=missing-declarations.
9869         Insert a few spaces-before-funcall-parenthesis.
9870
9871 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9872
9873         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9874         The parser now accepts ISO 8601 date-time strings with "T" as the
9875         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9876         with a space between the date and time strings.  Now it also parses
9877         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9878         variants like "2004-02-29T16:21:42.333-07:00"
9879         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9880         of day representation using the 'T' separator character.
9881         * doc/parse-datetime.texi (General date syntax): replace use of
9882         deprecated --iso-8601 option with --rfc-3339 in example of date
9883         command output formats that can be parsed.
9884         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9885         lib/parse-datetime.y.
9886         (gmt_offset): New function.
9887         (main): Add additional test cases to validate ISO8601 extended
9888         date and time of day parsing.
9889
9890 2011-08-31  Bruno Haible  <bruno@clisp.org>
9891
9892         freopen: Documentation.
9893         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9894         name.
9895         Reported by Claudio Bley <claudio.bley@gmail.com>.
9896
9897 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9898
9899         freopen: Don't crash if the filename argument is NULL.
9900         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9901         NULL.
9902
9903 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9904
9905         openat: work around AIX 7.1 fstatat bug
9906         Problem reported by Kevin Brott for GNU tar, in the thread containing
9907         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9908         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9909         FSTATAT_ST_SIZE_ETC_BROKEN.
9910         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9911         rpl_fstatat.
9912         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9913         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9914         AC_CHECK_FUNCS_ONCE for fstatat.
9915         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9916         fchmodat, mkdirat, openat and unlinkat.
9917
9918 2011-08-30  Bruno Haible  <bruno@clisp.org>
9919
9920         Avoid endless recursions if config.h includes some header files.
9921         * lib/fopen.c (__need_FILE): Define already before including config.h.
9922         * lib/freopen.c (__need_FILE): Likewise.
9923         * lib/open.c (__need_system_fcntl_h): Likewise.
9924         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9925         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9926         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9927
9928 2011-08-25  Karl Berry  <karl@gnu.org>
9929
9930         * config/srclist.txt (ylwrap): new try.
9931         * build-aux/ylwrap: new file.
9932
9933 2011-08-23  Bruno Haible  <bruno@clisp.org>
9934
9935         tmpdir: Use a good default directory on native Windows.
9936         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9937         (P_tmpdir): Default to _P_tmpdir on native Windows.
9938         (path_search): On native Windows, try the value returned by GetTempPath
9939         before trying P_tmpdir.
9940         * modules/tmpdir (Depends-on): Add pathmax.
9941         Suggested by John Darrington <john@darrington.wattle.id.au>.
9942
9943 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9944
9945         doc: fix typo in README-release
9946         * top/README-release: Capitalize first word of a sentence.
9947
9948 2011-08-19  Jim Meyering  <meyering@redhat.com>
9949
9950         fts: do not exhaust memory when processing million-entry directories
9951         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9952         directory would require about 256*N bytes of memory.  Thus, it was
9953         easy to construct a directory too large to be processed by any of
9954         those tools.  With this change, fts' maximum memory utilization is
9955         now limited to around 30MB.
9956         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9957         (fts_read): When we've processed the final entry (i.e., when
9958         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9959         using the parent entry to read any remaining entries.  Dispatch
9960         depending on what fts_build returns:
9961         - NULL+stop, aka failure: stop
9962         - NULL otherwise: move up in the dir hierarchy
9963         - non-NULL: handle this new entry
9964         (fts_build): Declare and use new local, continue_readdir.
9965         Prepare to be called from fts_read, when the entries
9966         from a partially-read directory have just been exhausted.
9967         In that case, we'll skip the opendir and instead use the parent's
9968         fts_dirp and derive dir_fd from that.
9969         Finally, in the readdir loop, if we read max_entries entries,
9970         exit the loop ensuring *not* to call closedir.  This is required
9971         so that fts_dirp can be reused on a subsequent call.
9972         Prompted by Ben England's report of memory exhaustion in find
9973         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9974
9975         maint: fts: move decl of `dp' down into while loop; split a long line
9976         * lib/fts.c (fts_build): No semantic change.
9977
9978         fts: add/use new struct member, fts_dirp
9979         We are about to use this to manage any directory with
9980         too many entries to read all of them into memory at once.
9981         To do that, we'll need to save the DIR* pointer in each
9982         affected FTSENT struct.
9983         * lib/fts_.h: Include <dirent.h>.
9984         (struct FTSENT) [fts_dirp]: New member.
9985         * lib/fts.c (closedir_and_clear): Define.
9986         Use it in place of closedir so that we are sure to
9987         clear the new fts_dirp member when done with it.
9988         (fts_alloc): Initialize the new member.
9989         (fts_lfree): Free, if needed.
9990
9991         maint: fts: give __opendir2 a new parameter and rename
9992         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9993         than surreptitiously using sole caller's "dir_fd".
9994         (fts_opendir): Rename from __opendir2.
9995
9996         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9997         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9998
9999         maint: fts.c: correct off-by-one indentation
10000         * lib/fts.c (fts_build): Correct indentation, change style
10001         of a couple of block comments, and bracing style.
10002
10003         maint: fts.c: move __opendir2 #define "up" out of function body
10004         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10005
10006         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10007         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10008         out for a long time and besides was useful only on BSD systems.
10009
10010 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10011
10012         regex: port to Stratus OpenVOS
10013         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10014         define to empty, rather than attempting nonportable optimizations.
10015         Problem reported by Paul Green in:
10016         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10017         and fix suggested by Eric Blake in:
10018         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10019
10020 2011-08-17  Eric Blake  <eblake@redhat.com>
10021
10022         getcwd: fix test failures on mingw
10023         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10024         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10025         test if long directory cannot be created, and allow mingw errno.
10026
10027         getcwd-lgpl: fix m4 to match relaxed test for BSD
10028         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10029         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10030         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10031         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10032         signature problem.
10033
10034         getcwd: fix compilation on mingw64
10035         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10036         getcwd.
10037         Reported by Marc-André Lureau.
10038
10039         pipe2: silence compiler warning
10040         * lib/pipe2.c (pipe2): Hide label if it is not used.
10041
10042 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10043
10044         relocatable-prog: fix link error
10045         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10046         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10047         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10048         into modules/relocatable-lib without noticing that
10049         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10050         also needs to build relocatable.c.
10051
10052 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10053
10054         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10056         shell code: it contained a 'break' that was not in a loop.
10057         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10058         via a shell-language loop; this may have been true in old Autoconf
10059         versions, but it's not true in Autoconf 2.68.  I found this bug
10060         when testing coreutils git on Solaris 8, whose shell complains
10061         about the syntax error.
10062
10063 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10064
10065         * lib/base64.c: Fix comment to reference RFC 4648.
10066         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10067         <gvtulder@gmail.com>.
10068
10069 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10070
10071         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10072
10073         po/Makefile.in.in: fix make -q problem
10074         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10075         rule, since there's no file named 'check-macro-version' and its
10076         use as a file breaks make -q.
10077         (all): Don't depend on check-macro-version.
10078         (CHECK_MACRO_VERSION): New macro.
10079         (stamp-po): Use it.
10080
10081         configmake: fix make -q problem
10082         * modules/configmake (configmake.h): Update configmake.h's time stamp
10083         even if the file does not change.  Otherwise, 'make -q' fails.
10084         Problem reported by Simon Josefsson in
10085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10086
10087 2011-08-11  Jim Meyering  <meyering@redhat.com>
10088
10089         git-version-gen: correct the advice in a comment
10090         * build-aux/git-version-gen: Correct comment.
10091         Don't recommend to list .tarball-version in .gitignore.
10092
10093 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10094
10095         base64: fix off-by-one buffer size bug
10096         Problem and (trivial) fix reported by Gijs van Tulder in
10097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10098         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10099         * tests/test-base64.c (main): Catch the bug.
10100
10101 2011-08-10  Eric Blake  <eblake@redhat.com>
10102
10103         closein: correct comments
10104         * lib/closein.c (close_stdin): Improve comments.
10105
10106 2011-08-09  Bruno Haible  <bruno@clisp.org>
10107
10108         More tests for 'fseeko'.
10109         * tests/test-fseeko3.c: New file, from Eric Blake.
10110         * tests/test-fseeko3.sh: New file.
10111         * modules/fseeko-tests (Files): Add them.
10112         (TESTS): Add test-fseeko3.sh.
10113         (check_PROGRAMS): Add test-fseeko3.
10114
10115 2011-08-09  Eric Blake  <eblake@redhat.com>
10116
10117         fseeko: remove unneeded hack
10118         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10119
10120         fseeko: fix bug on glibc
10121         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10122         Reported by John W. Eaton.
10123
10124 2011-08-08  Bruno Haible  <bruno@clisp.org>
10125
10126         unictype/base: Fix interoperability with preinstalled libunistring.
10127         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10128         Reported by Simon Josefsson.
10129
10130 2011-08-08  Bruno Haible  <bruno@clisp.org>
10131
10132         iswblank: Detect declaration correctly.
10133         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10134         AC_CHECK_DECLS invocation.
10135
10136 2011-08-08  Bruno Haible  <bruno@clisp.org>
10137
10138         tcgetsid: Detect declaration correctly.
10139         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10140         AC_CHECK_DECLS invocation.
10141         Reported by Simon Josefsson.
10142
10143 2011-08-08  Eric Blake  <eblake@redhat.com>
10144
10145         largefile: fix typo that regressed large file support
10146         * modules/largefile (configure.ac-early): Fix section name.
10147
10148 2011-08-06  Karl Berry  <karl@gnu.org>
10149
10150         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10151         a separate module.
10152
10153 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10154
10155         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10156         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10157         get prototype for free.
10158
10159 2011-08-04  Bruno Haible  <bruno@clisp.org>
10160
10161         Tests for module 'pathmax'.
10162         * modules/pathmax-tests: New file.
10163         * tests/test-pathmax.c: New file.
10164
10165         canonicalize-lgpl: Support larger filenames on the Hurd.
10166         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10167         Reported by Paul Eggert.
10168
10169         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10170         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10171         * lib/chdir-long.h: Include pathmax.h.
10172         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10173         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10174         (PATH_MAX): Remove code that is done by pathmax.h.
10175         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10176         * lib/tmpfile.c: Add a comment.
10177         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10178         * modules/chdir-long (Depends-on): Add pathmax.
10179         * modules/getcwd (Depends-on): Add pathmax.
10180         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10181         is not defined.
10182         * doc/posix-headers/limits.texi: Mention the pathmax module.
10183         * NEWS: Mention the change.
10184
10185 2011-08-02  Bruno Haible  <bruno@clisp.org>
10186
10187         pthread_sigmask: Actually use results of gl_THREADLIB.
10188         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10189         gl_THREADLIB, not gl_[]THREADLIB.
10190         Reported by Eric Blake.
10191
10192 2011-08-02  Jim Meyering  <meyering@redhat.com>
10193
10194         maint.mk: relax the default _gl_TS_function_match regexp
10195         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10196         space between function name and "(" in an "extern" declaration.
10197         That would fail to match a decl with no space there: extern void foo();
10198
10199 2011-07-31  Iain Nicol  <iain@thenicols.net>
10200
10201         git-version-gen: document that EXTRA_DIST must include .version
10202         * build-aux/git-version-gen: In the how-to-use comment, document
10203         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10204         will fail when run from an unpacked distribution tarball.
10205
10206 2011-08-01  Bruno Haible  <bruno@clisp.org>
10207
10208         wctype-h: Fix last change.
10209         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10210         REPLACE_TOWLOWER to 0.
10211         Reported by Sam Steingold <sds@gnu.org>.
10212
10213 2011-07-31  Bruno Haible  <bruno@clisp.org>
10214
10215         frexpl: Update autoconf test.
10216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10217         according to changes of 2011-06-20.
10218
10219 2011-07-31  Bruno Haible  <bruno@clisp.org>
10220
10221         sys_utsname: Add support for Minix.
10222         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10223         <sys/utsname.h>.
10224         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10225         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10226
10227 2011-07-31  Bruno Haible  <bruno@clisp.org>
10228
10229         strings: Add support for Minix.
10230         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10231         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10232         * doc/posix-headers/strings.texi: Document the Minix problem.
10233
10234 2011-07-31  Bruno Haible  <bruno@clisp.org>
10235
10236         wctype-h: Add support for Minix.
10237         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10238         REPLACE_TOWLOWER.
10239         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10240         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10241         REPLACE_ISWCNTRL.
10242
10243 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10244
10245         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10246         This is a performance improvement for 64-bit hosts: it causes the
10247         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10248
10249 2011-07-31  Bruno Haible  <bruno@clisp.org>
10250
10251         stdioext: Add support for Minix.
10252         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10253         * lib/fpurge.c (fpurge): Likewise.
10254         * lib/freadahead.c (freadahead): Likewise.
10255         * lib/freadable.c (freadable): Likewise.
10256         * lib/freading.c (freading): Likewise.
10257         * lib/freadptr.c (freadptr): Likewise.
10258         * lib/freadseek.c (freadptrinc): Likewise.
10259         * lib/fseeko.c (rpl_fseeko): Likewise.
10260         * lib/fseterr.c (fseterr): Likewise.
10261         * lib/fwritable.c (fwritable): Likewise.
10262         * lib/fwriting.c (fwriting): Likewise.
10263         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10264         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10265
10266 2011-07-31  Bruno Haible  <bruno@clisp.org>
10267
10268         errno: Port to Minix.
10269         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10270         ECONNABORTED are defined.
10271         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10272         GNULIB_defined_ECONNABORTED): New macros.
10273         * lib/strerror-override.h (strerror_override): Test also
10274         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10275         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10276         ECONNABORTED.
10277         * doc/posix-headers/errno.texi: Mention the Minix problem.
10278
10279 2011-07-31  Bruno Haible  <bruno@clisp.org>
10280
10281         Work around declaration collisions on Minix.
10282         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10283         defined, set REPLACE_MBSINIT.
10284         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10285         defined, set REPLACE_MBRTOWC.
10286         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10287         set REPLACE_MBRLEN.
10288         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10289         defined, set REPLACE_MBSRTOWCS.
10290         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10291         defined, set REPLACE_WCRTOMB.
10292         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10293         defined, set REPLACE_WCSRTOMBS.
10294
10295 2011-07-31  Bruno Haible  <bruno@clisp.org>
10296
10297         Add support for Minix with ACK compiler.
10298         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10299         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10300         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10301
10302 2011-07-31  Bruno Haible  <bruno@clisp.org>
10303
10304         Documentation about Minix.
10305         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10306         * doc/glibc-headers/*.texi: Likewise.
10307         * doc/posix-functions/*.texi: Likewise.
10308         * doc/glibc-functions/*.texi: Likewise.
10309
10310 2011-07-31  Bruno Haible  <bruno@clisp.org>
10311
10312         snippet/warn-on-use: Fix indentation.
10313         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10314
10315 2011-07-25  Jim Meyering  <meyering@redhat.com>
10316
10317         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10318         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10319         commands.
10320
10321 2011-07-27  Jim Meyering  <meyering@redhat.com>
10322
10323         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10324         * top/maint.mk (gl_extract_significant_defines_): Now that
10325         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10326         gnulib/lib/signal.in.h, and now that we recommend to
10327         define-if-undefined those two symbols in application code,
10328         we must filter them out of the "significant" list.
10329         This avoids a "make syntax-check" failure in coreutils.
10330
10331 2011-07-26  Eric Blake  <eblake@redhat.com>
10332
10333         warnings: add comments about previous patch
10334         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10335         * m4/include_next.m4: Likewise.
10336         * m4/warn-on-use.m4: Likewise.
10337         * m4/warnings.m4: Likewise, and simplify use.
10338         Suggested by Stefano Lattarini.
10339
10340         include-next, warnings: support older autoconf
10341         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10342         AS_VAR_PUSHDEF in a way that works with older autoconf.
10343         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10344         Reported by Daniel P. Berrange.
10345
10346 2011-07-25  Bruno Haible  <bruno@clisp.org>
10347
10348         fseek, ftell: Fix doc.
10349         * doc/posix-functions/fseek.texi: Reword statement about
10350         AC_SYS_LARGEFILE.
10351         * doc/posix-functions/ftell.texi: Likewise.
10352
10353 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10354             Bruno Haible  <bruno@clisp.org>
10355
10356         Add dependencies to the 'largefile' module.
10357         * modules/fopen (Depends-on): Add 'largefile'.
10358         * modules/freopen (Depends-on): Likewise.
10359         * modules/fseeko (Depends-on): Likewise.
10360         * modules/ftello (Depends-on): Likewise.
10361         * modules/glob (Depends-on): Likewise.
10362         * modules/lseek (Depends-on): Likewise.
10363         * modules/lstat (Depends-on): Likewise.
10364         * modules/mkostemp (Depends-on): Likewise.
10365         * modules/mkostemps (Depends-on): Likewise.
10366         * modules/mkstemp (Depends-on): Likewise.
10367         * modules/mkstemps (Depends-on): Likewise.
10368         * modules/open (Depends-on): Likewise.
10369         * modules/openat (Depends-on): Likewise.
10370         * modules/pread (Depends-on): Likewise.
10371         * modules/pwrite (Depends-on): Likewise.
10372         * modules/scandir (Depends-on): Likewise.
10373         * modules/stat (Depends-on): Likewise.
10374         * modules/tmpfile (Depends-on): Likewise.
10375         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10376         since the containing module now depends on the largefile module.
10377         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10378         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10379         off_t is fixed by gnulib.
10380         * doc/posix-functions/freopen.texi: Likewise.
10381         * doc/posix-functions/fseeko.texi: Likewise.
10382         * doc/posix-functions/fstatat.texi: Likewise.
10383         * doc/posix-functions/ftello.texi: Likewise.
10384         * doc/posix-functions/glob.texi: Likewise.
10385         * doc/posix-functions/lseek.texi: Likewise.
10386         * doc/posix-functions/lstat.texi: Likewise.
10387         * doc/posix-functions/mkstemp.texi: Likewise.
10388         * doc/posix-functions/open.texi: Likewise.
10389         * doc/posix-functions/openat.texi: Likewise.
10390         * doc/posix-functions/pread.texi: Likewise.
10391         * doc/posix-functions/pwrite.texi: Likewise.
10392         * doc/posix-functions/scandir.texi: Likewise.
10393         * doc/posix-functions/stat.texi: Likewise.
10394         * doc/posix-functions/tmpfile.texi: Likewise.
10395         * doc/glibc-functions/mkostemp.texi: Likewise.
10396         * doc/glibc-functions/mkostemps.texi: Likewise.
10397         * doc/glibc-functions/mkstemps.texi: Likewise.
10398
10399 2011-07-25  Bruno Haible  <bruno@clisp.org>
10400
10401         fcntl: Move AC_LIBOBJ invocation to module description.
10402         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10403         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10404
10405         fcntl: Remove call-in from fchdir.m4.
10406         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10408
10409         dup3: Remove potential call-in from fchdir.m4.
10410         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10412
10413         dup2: Move AC_LIBOBJ invocation to module description.
10414         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10415         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10416         Don't invoke AC_LIBOBJ.
10417         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10418
10419         dup2: Remove call-in from fchdir.m4.
10420         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10422
10423         fclose: Move AC_LIBOBJ invocation to module description.
10424         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10425         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10426         to 1.
10427         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10428
10429         fclose: Remove call-in from close.m4.
10430         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10431         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10432
10433         close: Move AC_LIBOBJ invocation to module description.
10434         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10435         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10436         1.
10437         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10438
10439         close: Remove call-in from fchdir.m4.
10440         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10442
10443         open: Move AC_LIBOBJ invocation to module description.
10444         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10445         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10446         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10447
10448         open: Remove call-in from fchdir.m4.
10449         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10451
10452         fchdir: Start to remove gl_REPLACE_* idiom.
10453         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10454         (gl_FUNC_FCHDIR): Invoke it.
10455
10456 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10457
10458         * lib/ftell.c (ftell): Comment out cast.
10459
10460         close: use gl_REPLACE_FCLOSE only if defined
10461         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10462         is defined.  The close module doesn't depend on the fclose module
10463         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10465         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10466
10467 2011-07-24  Jim Meyering  <meyering@redhat.com>
10468
10469         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10470         * tests/test-select.h (test_function): Declare as "static".
10471
10472 2011-07-24  Bruno Haible  <bruno@clisp.org>
10473
10474         doc: Mention the effects of AC_SYS_LARGEFILE.
10475         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10476         on this function.
10477         * doc/posix-functions/aio_error.texi: Likewise.
10478         * doc/posix-functions/aio_fsync.texi: Likewise.
10479         * doc/posix-functions/aio_read.texi: Likewise.
10480         * doc/posix-functions/aio_return.texi: Likewise.
10481         * doc/posix-functions/aio_suspend.texi: Likewise.
10482         * doc/posix-functions/aio_write.texi: Likewise.
10483         * doc/posix-functions/fgetpos.texi: Likewise.
10484         * doc/posix-functions/fopen.texi: Likewise.
10485         * doc/posix-functions/freopen.texi: Likewise.
10486         * doc/posix-functions/fsetpos.texi: Likewise.
10487         * doc/posix-functions/fstatvfs.texi: Likewise.
10488         * doc/posix-functions/ftruncate.texi: Likewise.
10489         * doc/posix-functions/ftw.texi: Likewise.
10490         * doc/posix-functions/getrlimit.texi: Likewise.
10491         * doc/posix-functions/glob.texi: Likewise.
10492         * doc/posix-functions/lio_listio.texi: Likewise.
10493         * doc/posix-functions/lockf.texi: Likewise.
10494         * doc/posix-functions/mkstemp.texi: Likewise.
10495         * doc/posix-functions/mmap.texi: Likewise.
10496         * doc/posix-functions/nftw.texi: Likewise.
10497         * doc/posix-functions/openat.texi: Likewise.
10498         * doc/posix-functions/opendir.texi: Likewise.
10499         * doc/posix-functions/posix_fadvise.texi: Likewise.
10500         * doc/posix-functions/posix_fallocate.texi: Likewise.
10501         * doc/posix-functions/pread.texi: Likewise.
10502         * doc/posix-functions/pwrite.texi: Likewise.
10503         * doc/posix-functions/readdir.texi: Likewise.
10504         * doc/posix-functions/readdir_r.texi: Likewise.
10505         * doc/posix-functions/rewinddir.texi: Likewise.
10506         * doc/posix-functions/scandir.texi: Likewise.
10507         * doc/posix-functions/seekdir.texi: Likewise.
10508         * doc/posix-functions/setrlimit.texi: Likewise.
10509         * doc/posix-functions/statvfs.texi: Likewise.
10510         * doc/posix-functions/telldir.texi: Likewise.
10511         * doc/posix-functions/tmpfile.texi: Likewise.
10512         * doc/posix-functions/truncate.texi: Likewise.
10513         * doc/glibc-functions/fallocate.texi: Likewise.
10514         * doc/glibc-functions/fstatfs.texi: Likewise.
10515         * doc/glibc-functions/fts_children.texi: Likewise.
10516         * doc/glibc-functions/fts_read.texi: Likewise.
10517         * doc/glibc-functions/getdirentries.texi: Likewise.
10518         * doc/glibc-functions/mkostemp.texi: Likewise.
10519         * doc/glibc-functions/mkostemps.texi: Likewise.
10520         * doc/glibc-functions/mkstemps.texi: Likewise.
10521         * doc/glibc-functions/preadv.texi: Likewise.
10522         * doc/glibc-functions/pwritev.texi: Likewise.
10523         * doc/glibc-functions/sendfile.texi: Likewise.
10524         * doc/glibc-functions/statfs.texi: Likewise.
10525
10526 2011-07-24  Bruno Haible  <bruno@clisp.org>
10527
10528         doc: Fix typo.
10529         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10530
10531 2011-07-24  Bruno Haible  <bruno@clisp.org>
10532
10533         doc: Mention fsusage.
10534         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10535
10536 2011-07-24  Bruno Haible  <bruno@clisp.org>
10537
10538         doc: Mention new glibc headers and functions.
10539         * doc/glibc-headers/gshadow.texi: New file.
10540         * doc/glibc-functions/endsgent.texi: New file.
10541         * doc/glibc-functions/fgetsgent.texi: New file.
10542         * doc/glibc-functions/fgetsgent_r.texi: New file.
10543         * doc/glibc-functions/getsgent.texi: New file.
10544         * doc/glibc-functions/getsgent_r.texi: New file.
10545         * doc/glibc-functions/getsgnam.texi: New file.
10546         * doc/glibc-functions/getsgnam_r.texi: New file.
10547         * doc/glibc-functions/putsgent.texi: New file.
10548         * doc/glibc-functions/setsgent.texi: New file.
10549         * doc/glibc-functions/sgetsgent.texi: New file.
10550         * doc/glibc-functions/sgetsgent_r.texi: New file.
10551         * doc/glibc-functions/malloc_info.texi: New file.
10552         * doc/glibc-functions/preadv.texi: New file.
10553         * doc/glibc-functions/pwritev.texi: New file.
10554         * doc/glibc-functions/register_printf_modifier.texi: New file.
10555         * doc/glibc-functions/register_printf_specifier.texi: New file.
10556         * doc/glibc-functions/register_printf_type.texi: New file.
10557         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10558         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10559         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10560         * doc/glibc-functions/pthread_getname_np.texi: New file.
10561         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10562         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10563         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10564         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10565         * doc/glibc-functions/pthread_setname_np.texi: New file.
10566         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10567         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10568         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10569         * doc/glibc-functions/qsort_r.texi: New file.
10570         * doc/glibc-functions/quick_exit.texi: New file.
10571         * doc/glibc-functions/syncfs.texi: New file.
10572         * doc/gnulib.texi: Include them.
10573         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10574         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10575         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10576         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10577         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10578         * doc/glibc-functions/execvpe.texi: Likewise.
10579
10580 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10581
10582         ftell: don't include <unistd.h>
10583         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10584         guaranteed to define off_t, and the ftell module depends on the
10585         stdio module.
10586
10587         ftell: do not assume wraparound signed arithmetic
10588         * lib/ftell.c: Include <limits.h>.
10589         (ftell): Don't assume wraparound signed arithmetic.
10590
10591 2011-07-24  Bruno Haible  <bruno@clisp.org>
10592
10593         close: No longer depend on module 'fclose'.
10594         * modules/close (Depends-on): Remove fclose.
10595         * NEWS: Mention the change.
10596         Suggested by Sam Steingold <sds@gnu.org>.
10597
10598 2011-07-24  Bruno Haible  <bruno@clisp.org>
10599
10600         fsusage: Enable large volume support on AIX >= 5.2.
10601         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10602         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10603         instead of STAT_STATVFS.
10604         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10605
10606         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10607         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10608         f_blocks field only on MacOS X.
10609
10610         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10611         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10612         * modules/fsusage (Depends-on): Add largefile.
10613
10614 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10615
10616         * README: Modernize discussion of signed integers.
10617         Assuming overflow wraparound is no longer safe.
10618         Mention ones' complement and signed magnitude.
10619
10620 2011-07-22  Bruno Haible  <bruno@clisp.org>
10621
10622         select tests, pselect tests: Refactor.
10623         * tests/test-select.h: New file, extracted from tests/test-select.c.
10624         (select_fn): New type.
10625         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10626         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10627         test_pipe): Add my_select argument.
10628         (test_function): Renamed from main. Add my_select argument.
10629         * tests/test-select.c: Move most code to tests/test-select.h. Include
10630         test-select.h.
10631         * modules/select-tests (Files): Add tests/test-select.h.
10632         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10633         (my_select, main): New functions.
10634         * modules/pselect-tests (Files): Add tests/test-select.h,
10635         tests/macros.h, tests/signature.h.
10636         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10637         (configure.ac): Check for <sys/wait.h>.
10638
10639 2011-07-22  Bruno Haible  <bruno@clisp.org>
10640
10641         sys_select tests: Check the signature of FD_*.
10642         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10643         signature tests from here...
10644         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10645         here.
10646         * modules/sys_select-tests (Files): Add tests/signature.h.
10647
10648 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10649
10650         largefile: new module, replacing large-inode
10651         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10652         * MODULES.html.sh: Add largefile, remove large-inode.
10653         * modules/largefile, m4/largefile.m4: New files.
10654         * modules/large-inode, m4/large-inode.m4: Remove.
10655
10656         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10657         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10658         implementations that use only 32 bits to count blocks.
10659         On typical hosts with 1024-byte blocks, this fails with file
10660         systems as small as 4 TiB.  Problem reported by Herb Wartens
10661         <http://debbugs.gnu.org/9140> and this should also fix a similar
10662         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10663
10664         large-inode: New module
10665         * MODULES.html.sh: Add it.
10666         * modules/large-inode, m4/large-inode.m4: New files.
10667
10668         extensions: Enable extensions on MacOS X 10.5 and later.
10669         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10670
10671 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10672
10673         file-has-acl: use acl_extended_file_nofollow if available
10674         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10675         (acl_extended_file): New macro.
10676         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10677         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10678
10679 2011-07-21  Bruno Haible  <bruno@clisp.org>
10680
10681         Declare system functions in a way that works with C++.
10682         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10683         declare fdopendir as extern "C".
10684         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10685         declare frexpl as extern "C".
10686         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10687         declare gai_strerror as extern "C".
10688         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10689         programs, declare gai_strerror as extern "C".
10690         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10691         declare getlogin_r as extern "C".
10692         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10693         as extern "C".
10694         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10695         declare ldexpl as extern "C".
10696         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10697         as extern "C".
10698         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10699         program, declare getmntinfo as extern "C".
10700         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10701         stpncpy as extern "C".
10702         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10703         program, declare __xpg_strerror_r as extern "C".
10704         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10705         strndup as extern "C".
10706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10707         declare memset and bzero as extern "C".
10708         Reported by Sam Steingold <sds@gnu.org>.
10709
10710 2011-07-12  Jim Meyering  <meyering@redhat.com>
10711
10712         maint.mk: prohibit inclusion of "verify.h" without use
10713         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10714
10715 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10716
10717         timer-time: A new module to check for timer_settime()
10718         * m4/timer_time.m4: Check for the posix function.
10719         * modules/timer-time: Add the new module.
10720         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10721         Mention it.
10722
10723 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10724             Bruno Haible  <bruno@clisp.org>
10725
10726         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10727         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10728         not defined, assume POSIX threads and look for pthread_sigmask in
10729         $LIBS, without changing $CPPFLAGS.
10730
10731 2011-07-19  Bruno Haible  <bruno@clisp.org>
10732
10733         strstr: Update cross-compilation guess.
10734         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10735         CPUs, guess no, in view of glibc
10736         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10737         Suggested by Eric Blake. Reported by Reuben Thomas.
10738
10739 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10740
10741         getopt-gnu: suppress core dumps from detection code
10742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10743         to suppress core dumps that may well occur on glibc systems.
10744         * modules/getopt-gnu: Depend on nocrash.
10745
10746 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10747
10748         pthread_sigmask: ensure usleep is declared
10749         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10750         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10751
10752 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10753
10754         doc: Document NonStop portability issues.
10755         * doc/posix-functions/sigaction.texi (sigaction):
10756         * doc/posix-headers/signal.texi (signal.h):
10757         Document NonStop.  See Joachim Schmitz in
10758         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10759
10760 2011-07-15  Bruno Haible  <bruno@clisp.org>
10761
10762         ffsl, ffsll: Avoid unportable behaviour.
10763         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10764
10765 2011-07-15  Bruno Haible  <bruno@clisp.org>
10766
10767         ffs: More tests.
10768         * tests/test-ffs.c (NBITS): New macro.
10769         (main): Add more tests.
10770         * tests/test-ffsl.c (NBITS): New macro.
10771         (main): Add more tests.
10772         * tests/test-ffsll.c (NBITS): New macro.
10773         (main): Add more tests.
10774
10775 2011-07-15  Eric Blake  <eblake@redhat.com>
10776
10777         ffsl, ffsll: new modules
10778         * modules/ffsl: New file.
10779         * modules/ffsll: Likewise.
10780         * m4/ffsl.m4: Likewise.
10781         * m4/ffsll.m4: Likewise.
10782         * lib/ffsl.c: Likewise.
10783         * lib/ffsl.h: Likewise.
10784         * lib/ffsll.c: Likewise.
10785         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10786         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10787         * modules/string (Makefile.am): Substitute witnesses.
10788         * lib/strings.in.h (ffsl, ffsll): Declare.
10789         * modules/ffsl-tests: New test file.
10790         * modules/ffsll-tests: Likewise.
10791         * tests/test-ffsl.c: Likewise.
10792         * tests/test-ffsll.c: Likewise.
10793         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10794         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10795         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10796
10797         ffs: fix m4 prerequisite
10798         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10799
10800         ffs: avoid undefined behavior
10801         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10802         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10803         Reported by Bruno Haible.
10804
10805 2011-07-12  Bruno Haible  <bruno@clisp.org>
10806
10807         pthread_sigmask: Rely on module 'threadlib'.
10808         * modules/pthread_sigmask (Depends-on): Add threadlib.
10809         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10810         is defined.
10811
10812 2011-07-12  Bruno Haible  <bruno@clisp.org>
10813
10814         regex: Depend on module 'strcase'.
10815         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10816
10817 2011-07-12  Jim Meyering  <meyering@redhat.com>
10818
10819         warn-on-use: fix typo in file name
10820         * modules/snippet/warn-on-use (Files): Correct file name:
10821         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10822
10823 2011-07-12  Bruno Haible  <bruno@clisp.org>
10824
10825         strings: Document module.
10826         * doc/posix-headers/strings.texi: Mention module 'strings'.
10827
10828 2011-07-12  Bruno Haible  <bruno@clisp.org>
10829
10830         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10831         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10832         (Files, Makefile.am): Update.
10833         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10834         * modules/stdlib (Depends-on): Update.
10835
10836 2011-07-12  Bruno Haible  <bruno@clisp.org>
10837
10838         * NEWS: Mention the changes.
10839
10840         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10841         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10842         (Files, Makefile.am): Update.
10843         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10844         * modules/arpa_inet (Depends-on): Update.
10845         * modules/ctype (Depends-on): Update.
10846         * modules/dirent (Depends-on): Update.
10847         * modules/fcntl-h (Depends-on): Update.
10848         * modules/glob (Depends-on): Update.
10849         * modules/iconv-h (Depends-on): Update.
10850         * modules/inttypes-incomplete (Depends-on): Update.
10851         * modules/langinfo (Depends-on): Update.
10852         * modules/locale (Depends-on): Update.
10853         * modules/math (Depends-on): Update.
10854         * modules/netdb (Depends-on): Update.
10855         * modules/poll-h (Depends-on): Update.
10856         * modules/pty (Depends-on): Update.
10857         * modules/search (Depends-on): Update.
10858         * modules/signal (Depends-on): Update.
10859         * modules/spawn (Depends-on): Update.
10860         * modules/stdio (Depends-on): Update.
10861         * modules/stdlib (Depends-on): Update.
10862         * modules/string (Depends-on): Update.
10863         * modules/strings (Depends-on): Update.
10864         * modules/sys_file (Depends-on): Update.
10865         * modules/sys_ioctl (Depends-on): Update.
10866         * modules/sys_select (Depends-on): Update.
10867         * modules/sys_socket (Depends-on): Update.
10868         * modules/sys_stat (Depends-on): Update.
10869         * modules/sys_time (Depends-on): Update.
10870         * modules/sys_times (Depends-on): Update.
10871         * modules/sys_utsname (Depends-on): Update.
10872         * modules/sys_wait (Depends-on): Update.
10873         * modules/termios (Depends-on): Update.
10874         * modules/time (Depends-on): Update.
10875         * modules/unistd (Depends-on): Update.
10876         * modules/wchar (Depends-on): Update.
10877         * modules/wctype-h (Depends-on): Update.
10878         * MODULES.html.sh (Support for building libraries and executables):
10879         Update.
10880
10881         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10882         * modules/snippet/unused-parameter: Renamed from
10883         modules/unused-parameter.
10884         (Files, Makefile.am): Update.
10885         * build-aux/snippet/unused-parameter.h: Renamed from
10886         build-aux/unused-parameter.h.
10887         * modules/selinux-h (Depends-on): Update.
10888         * modules/unistr/base (Depends-on): Update.
10889         * MODULES.html.sh (Core language properties): Update.
10890
10891         Rename module 'link-warning' to 'snippet/link-warning'.
10892         * modules/snippet/link-warning: Renamed from modules/link-warning.
10893         (Files, Makefile.am): Update.
10894         * build-aux/snippet/link-warning.h: Renamed from
10895         build-aux/link-warning.h.
10896         * MODULES.html.sh (Support for building libraries and executables):
10897         Update.
10898
10899         Rename module 'c++defs' to 'snippet/c++defs'.
10900         * modules/snippet/c++defs: Renamed from modules/c++defs.
10901         (Files, Makefile.am): Update.
10902         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10903         * modules/arpa_inet (Depends-on): Update.
10904         * modules/ctype (Depends-on): Update.
10905         * modules/dirent (Depends-on): Update.
10906         * modules/fcntl-h (Depends-on): Update.
10907         * modules/glob (Depends-on): Update.
10908         * modules/iconv-h (Depends-on): Update.
10909         * modules/langinfo (Depends-on): Update.
10910         * modules/locale (Depends-on): Update.
10911         * modules/math (Depends-on): Update.
10912         * modules/netdb (Depends-on): Update.
10913         * modules/poll-h (Depends-on): Update.
10914         * modules/pty (Depends-on): Update.
10915         * modules/search (Depends-on): Update.
10916         * modules/signal (Depends-on): Update.
10917         * modules/spawn (Depends-on): Update.
10918         * modules/stdio (Depends-on): Update.
10919         * modules/stdlib (Depends-on): Update.
10920         * modules/string (Depends-on): Update.
10921         * modules/strings (Depends-on): Update.
10922         * modules/sys_ioctl (Depends-on): Update.
10923         * modules/sys_select (Depends-on): Update.
10924         * modules/sys_socket (Depends-on): Update.
10925         * modules/sys_stat (Depends-on): Update.
10926         * modules/sys_time (Depends-on): Update.
10927         * modules/sys_wait (Depends-on): Update.
10928         * modules/termios (Depends-on): Update.
10929         * modules/time (Depends-on): Update.
10930         * modules/unistd (Depends-on): Update.
10931         * modules/wchar (Depends-on): Update.
10932         * modules/wctype-h (Depends-on): Update.
10933
10934         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10935         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10936         (Files, Makefile.am): Update.
10937         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10938         * modules/argv-iter (Depends-on): Update.
10939         * modules/arpa_inet (Depends-on): Update.
10940         * modules/dirent (Depends-on): Update.
10941         * modules/fcntl-h (Depends-on): Update.
10942         * modules/fnmatch (Depends-on): Update.
10943         * modules/getopt-posix (Depends-on): Update.
10944         * modules/glob (Depends-on): Update.
10945         * modules/iconv-h (Depends-on): Update.
10946         * modules/inttypes-incomplete (Depends-on): Update.
10947         * modules/locale (Depends-on): Update.
10948         * modules/math (Depends-on): Update.
10949         * modules/netdb (Depends-on): Update.
10950         * modules/search (Depends-on): Update.
10951         * modules/signal (Depends-on): Update.
10952         * modules/spawn (Depends-on): Update.
10953         * modules/stdio (Depends-on): Update.
10954         * modules/stdlib (Depends-on): Update.
10955         * modules/string (Depends-on): Update.
10956         * modules/strings (Depends-on): Update.
10957         * modules/sys_socket (Depends-on): Update.
10958         * modules/sys_stat (Depends-on): Update.
10959         * modules/sys_time (Depends-on): Update.
10960         * modules/sys_times (Depends-on): Update.
10961         * modules/sys_utsname (Depends-on): Update.
10962         * modules/time (Depends-on): Update.
10963         * modules/unistd (Depends-on): Update.
10964         * modules/wchar (Depends-on): Update.
10965         * MODULES.html.sh (Support for building libraries and executables):
10966         Update.
10967
10968 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10969
10970         Improvements on _Noreturn and related modules.
10971
10972         modules/_Exit-tests: test _Noreturn too
10973         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10974         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10975         (main): Use them.
10976
10977         stdnoreturn, stdnoreturn-tests: remove modules
10978         They're not needed here and a bit premature for use elsewhere.  See
10979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10980         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10981         * tests/test-stdnoreturn.c: Remove files.
10982         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10983         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10984         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10985         and using noreturn.
10986         * modules/openat, modules/sigpipe-die, modules/xalloc:
10987         * modules/xmemdup0, modules/xstrtol:
10988         Remove dependency on stdnoreturn.
10989
10990         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10991         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10992         Reparenthesize to avoid GCC warning.
10993         Support Microsoft's syntax.
10994         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10995
10996         _Noreturn-tests: remove module
10997         * modules/_Noreturn-tests: Remove.
10998         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10999         * tests/test-_Noreturn.c: Remove.
11000         * tests/test-stdnoreturn.c: Merge from the old
11001         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11002
11003 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11004
11005         _Noreturn, stdnoreturn, and related modules.
11006
11007         * top/maint.mk: Adjust to new noreturn support.
11008         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11009         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11010
11011         xalloc: use stdnoreturn.h
11012         * lib/xalloc.h: Include <stdnoreturn.h>.
11013         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11014         * modules/xalloc (Depends-on): Add stdnoreturn.
11015
11016         xstrtol: use stdnoreturn.h
11017         * lib/xstrtol.h: Include <stdnoreturn.h>.
11018         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11019         * modules/xstrtol (Depends-on): Add stdnoreturn.
11020
11021         xmemdup0: use stdnoreturn.h
11022         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11023         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11024         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11025
11026         sigpipe-die: use stdnoreturn.h
11027         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11028         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11029         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11030
11031         openat: use stdnoreturn.h
11032         * lib/openat.h: Include <stdnoreturn.h>.
11033         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11034         * modules/openat (Depends-on): Add stdnoreturn.
11035
11036         * lib/openat-die.c (openat_save_fail): Modernize comment.
11037
11038         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11039
11040         * lib/glthread/thread.h: Modernize comment.
11041
11042         obstack: use _Noreturn
11043         * lib/obstack.c (__attribute__): Remove macro.
11044         (print_and_abort): Use _Noreturn.
11045
11046         c-stack: use _Noreturn
11047         * lib/c-stack.c (die, overflow_handler, segv_handler):
11048         Use _Noreturn rather than __attribute__((noreturn)).
11049
11050         argmatch-tests, exclude_tests: use _Noreturn
11051         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11052         Remove.
11053         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11054
11055         stdlib: use _Noreturn
11056         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11057         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11058         * modules/stdlib (Depends-on): Add _Noreturn.
11059         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11060
11061         stdnoreturn-tests: new module
11062         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11063
11064         stdnoreturn: new module
11065         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11066         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11067
11068         _Noreturn-tests: new module
11069         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11070
11071         _Noreturn: new module
11072         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11073         New section, mentioning it.
11074         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11075
11076         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11077
11078 2011-07-11  Eric Blake  <eblake@redhat.com>
11079
11080         ffs: new module
11081         * modules/ffs: New file.
11082         * m4/ffs.m4: Likewise.
11083         * lib/ffs.c: Likewise.
11084         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11085         * modules/strings (Makefile.am): Substitute witness.
11086         (Depends-on): Add c++defs.
11087         * lib/strings.in.h (ffs): Declare.
11088         * modules/ffs-tests: New test file.
11089         * tests/test-ffs.c: Test new module.
11090         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11091         * doc/posix-functions/ffs.texi (ffs): Likewise.
11092
11093         regex: avoid compiler warning
11094         * lib/regex.c (includes): Include <strings.h>, for use of
11095         strcasecmp in regcomp.c.
11096         Reported by Joachim Schmitz.
11097
11098 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11099
11100         stdint: respect system's intmax_t if INTMAX_MAX
11101         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11102         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11103         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11104         long but int64_t is long long, and where we will clash with the
11105         system intmax_t if we override it.  See
11106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11107         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11108         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11109         similarly for UINTMAX_C.
11110
11111 2011-07-08  Bruno Haible  <bruno@clisp.org>
11112
11113         pthread_sigmask tests: Avoid a compiler warning.
11114         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11115         non-zero.
11116
11117         sigprocmask tests: A better way to avoid a compiler warning.
11118         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11119         (main): Complain if system() returns non-zero.
11120         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11121
11122 2011-07-08  Bruno Haible  <bruno@clisp.org>
11123
11124         pthread_sigmask: Work around IRIX bug.
11125         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11126         bug.
11127         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11128         there may be unblocked pending signals.
11129         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11130
11131 2011-07-08  Bruno Haible  <bruno@clisp.org>
11132
11133         pthread_sigmask: Work around Cygwin bug.
11134         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11135         bug.
11136         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11137         the system's pthread_sigmask function.
11138         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11139
11140 2011-07-08  Bruno Haible  <bruno@clisp.org>
11141
11142         pthread_sigmask: Work around bug in single-threaded implementation.
11143         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11144         FreeBSD, HP-UX, Solaris bug.
11145         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11146         * lib/pthread_sigmask.c: Include <stddef.h>.
11147         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11148         the system's pthread_sigmask function.
11149         * modules/pthread_sigmask (configure.ac): Invoke
11150         gl_PREREQ_PTHREAD_SIGMASK.
11151         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11152         HP-UX, Solaris.
11153
11154 2011-07-08  Eric Blake  <eblake@redhat.com>
11155
11156         test-sigprocmask: avoid compiler warning
11157         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11158         * tests/test-sigprocmask.c (main): Use it to silence warning.
11159         Reported by Jim Meyering.
11160
11161         test-snprintf: avoid compiler warning
11162         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11163         * tests/test-vsnprintf.c (main): Likewise.
11164         Reported by Jim Meyering.
11165
11166 2011-07-08  Bruno Haible  <bruno@clisp.org>
11167
11168         Tests for module 'pthread_sigmask'.
11169         * modules/pthread_sigmask-tests: New file.
11170         * tests/test-pthread_sigmask1.c: New file, based on
11171         tests/test-sigprocmask.c.
11172         * tests/test-pthread_sigmask2.c: New file.
11173
11174 2011-07-08  Jim Meyering  <meyering@redhat.com>
11175
11176         test-getopt.h: avoid warning about an unused variable
11177         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11178
11179 2011-07-07  Jim Meyering  <meyering@redhat.com>
11180
11181         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11182         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11183         now that it no longer contains leading TABs.
11184         Remove unused "url=FIXME" statement.
11185
11186 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11187
11188         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11189         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11190         When gl_THREADLIB is not in use, assume that the POSIX sematics
11191         are desired.  This is better for Emacs, which uses POSIX semantics
11192         on GNUish and/or POSIXish platforms, and does not use threads at
11193         all otherwise.
11194
11195         pthread_sigmask: fix typo when testing for libraries
11196         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11197         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11198
11199 2011-07-08  Eric Blake  <eblake@redhat.com>
11200
11201         fts: introduce FTS_NOATIME
11202         * lib/fts_.h (FTS_NOATIME): New bit flag.
11203         (FTS_OPTIONMASK): Adjust.
11204         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11205         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11206
11207 2011-07-08  Bruno Haible  <bruno@clisp.org>
11208
11209         Tests for module 'thread'.
11210         * modules/thread-tests: New file.
11211         * tests/test-thread_self.c: New file.
11212         * tests/test-thread_create.cc: New file.
11213
11214 2011-07-08  Bruno Haible  <bruno@clisp.org>
11215
11216         thread: Avoid gcc warnings when using gl_thread_self().
11217         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11218         'void *'.
11219         (gl_thread_self_pointer): Update.
11220
11221 2011-07-07  Bruno Haible  <bruno@clisp.org>
11222
11223         signal-c++-tests: Check declaration of pthread_sigmask.
11224         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11225         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11226         $(LIB_PTHREAD_SIGMASK).
11227
11228 2011-07-07  Bruno Haible  <bruno@clisp.org>
11229
11230         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11231         * lib/signal.in.h (pthread_sigmask): Override if
11232         REPLACE_PTHREAD_SIGMASK is 1.
11233         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11234         REPLACE_PTHREAD_SIGMASK.
11235         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11236         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11237         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11238         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11239         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11240
11241 2011-07-07  Bruno Haible  <bruno@clisp.org>
11242
11243         pthread_sigmask: Ensure declaration in <signal.h>.
11244         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11245         include <pthread.h>.
11246         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11247         problem.
11248
11249 2011-07-07  Bruno Haible  <bruno@clisp.org>
11250
11251         pthread_sigmask: Document the module.
11252         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11253
11254 2011-07-07  Bruno Haible  <bruno@clisp.org>
11255
11256         pthread_sigmask: Follow gnulib conventions.
11257         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11258         gl_PTHREAD_SIGMASK.
11259         * modules/pthread_sigmask (configure.ac): Update.
11260
11261 2011-07-07  Bruno Haible  <bruno@clisp.org>
11262
11263         pthread_sigmask: Make declaration C++ safe.
11264         * lib/signal.in.h: In two special conditions, just do an #include_next.
11265         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11266         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11267         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11268         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11269         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11270         not REPLACE_PTHREAD_MASK.
11271         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11272         not REPLACE_PTHREAD_MASK.
11273         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11274
11275 2011-07-07  Bruno Haible  <bruno@clisp.org>
11276
11277         pthread_sigmask: Fix return value.
11278         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11279         * lib/pthread_sigmask.c: New file.
11280         * modules/pthread_sigmask (Files): Add it.
11281         (configure.ac): Invoke AC_LIBOBJ.
11282
11283 2011-07-07  Eric Blake  <eblake@redhat.com>
11284
11285         getopt: more portable argv creation
11286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11287         const, use char arrays rather than strings.
11288         Suggested by Paul Eggert.
11289
11290 2011-07-07  Bruno Haible  <bruno@clisp.org>
11291
11292         Tests for module 'sigprocmask'.
11293         * modules/sigprocmask-tests: New file.
11294         * tests/test-sigprocmask.c: New file.
11295
11296 2011-07-07  Bruno Haible  <bruno@clisp.org>
11297
11298         float tests: Tweak.
11299         * tests/test-float.c (main): Tweak skip message.
11300
11301 2011-07-07  Eric Blake  <eblake@redhat.com>
11302
11303         getopt: avoid compiler warning during configure
11304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11305         assigning string literals to non-const pointer.
11306
11307         getopt-gnu: avoid crash in glibc getopt
11308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11309         * tests/test-getopt.h (test_getopt): Enhance test.
11310         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11311         * doc/posix-functions/getopt.texi (getopt): Document it.
11312         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11313         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11314         Likewise.
11315
11316 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11317
11318         getopt: handle W; without long options in getopt [BZ #12922]
11319         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11320         but no long options are defined, just return 'W'.
11321
11322 2011-07-07  Bruno Haible  <bruno@clisp.org>
11323
11324         Avoid literal tabs.
11325         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11326         variable containing a tab instead of a literal tab.
11327         Reported by Jim Meyering.
11328
11329 2011-07-07  Bruno Haible  <bruno@clisp.org>
11330
11331         Comments.
11332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11333
11334 2011-07-06  Bruno Haible  <bruno@clisp.org>
11335
11336         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11337         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11338         <winsock2.h>.
11339         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11340         lib/sys_socket.in.h.
11341         (close, gethostname): Hide declarations from <winsock2.h>.
11342         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11343         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11344         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11345         (select): Don't override if gnulib's <sys/select.h> was already
11346         included.
11347         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11348         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11349         setsockopt, shutdown, select): Tweak indentation.
11350
11351 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11352
11353         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11354         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11355         in an application that does not use the sys_select module.
11356
11357 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11358
11359         poll: do not return 0 on timeout=-1
11360         * lib/poll.c: Loop with yield if no events occured
11361
11362 2011-07-06  Eric Blake  <eblake@redhat.com>
11363
11364         pthread_sigmask: always replace when not using pthread
11365         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11366         replacement when using some threading other than pthread.  Fix
11367         logic bug.
11368
11369 2011-07-06  Bruno Haible  <bruno@clisp.org>
11370
11371         Comments.
11372         * m4/printf.m4: Update comments about mingw.
11373
11374 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11375
11376         sys_select: define sigset_t more portably
11377         * lib/sys_select.in.h: Always include <sys/types.h>, since
11378         we now need sigset_t and mingw defines it there.
11379         Include <signal.h> before split inclusion guard, to avoid
11380         mishaps on Solaris, whose <signal.h> eventually includes us.
11381         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11382         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11383         which come from ...
11384         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11385         gl_CHECK_TYPE_SIGSET_T.
11386         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11387         does the real work.
11388         * modules/sys_select (Depends-on): Add 'signal'.
11389
11390         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11391         Suggested by Bruno Haible.
11392
11393         pselect: Use pthread_sigmask, not sigprocmask.
11394         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11395         multithreaded apps better than sigprocmask does.
11396         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11397         sigprocmask directly.
11398
11399 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11400
11401         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11402         Don't #undef,  since we don't need any underlying pselect.
11403         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11404         (Depends-on): Add select.
11405         (Link): Add $(LIBSOCKET).
11406         These changes suggested by Bruno Haible.
11407
11408         pselect: document better
11409         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11410         * doc/posix-functions/pselect.texi (pselect): Document new module.
11411
11412         pthread_sigmask: new module
11413         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11414         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11415         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11416         This is done only as a macro; I don't know how well that'll
11417         work for C++.  Move <sys/types.h> include before the include_next,
11418         to avoid mishap on Solaris.
11419         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11420         * modules/signal (Makefile.am): Substitute the check's results.
11421         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11422
11423         test-pselect: new module
11424         * modules/pselect-tests, tests/test-pselect.c: New files.
11425         * tests/test-select.c, tests/test-sys_select-c++.cc:
11426         If TEST_PSELECT is defined, test pselect instead of testing select.
11427
11428         * tests/test-sys_select.c (sigset_t): Test for it, too.
11429         Suggested by Bruno Haible.
11430
11431 2011-07-05  Eric Blake  <eblake@redhat.com>
11432
11433         snprintf: guarantee %1$d, for libintl
11434         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11435         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11436         * doc/posix-functions/snprintf.texi (snprintf): Update.
11437         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11438         * tests/test-snprintf.c (main): Enhance test.
11439         * tests/test-vsnprintf.c (main): Likewise.
11440
11441 2011-07-05  Jim Meyering  <meyering@redhat.com>
11442
11443         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11444         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11445         per Bruno's request, to accommodate this idiom (no space after "#")
11446         even when the function is inside an #if block:
11447         char *
11448         gets (char *s)
11449         #undef gets
11450         {
11451           ...
11452         }
11453
11454 2011-07-04  Jim Meyering  <meyering@redhat.com>
11455
11456         maint: indent with spaces, not TABs, and add a rule to check this
11457         * tests/test-userspec.c: Indent with spaces, not TABs.
11458         * tests/test-argp.c: Likewise.
11459         * tests/test-c-stack2.sh: Likewise.
11460         * tests/test-parse-duration.sh: Likewise
11461         * m4/strtod.m4: Likewise.
11462         * m4/alloca.m4: Likewise.
11463         * m4/pselect.m4: Likewise.
11464         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11465
11466 2011-07-03  Jim Meyering  <meyering@redhat.com>
11467
11468         maint.mk: correct omissions in prohibit_argmatch_without_use check
11469         This rule would mistakenly report that argmatch.h is included without
11470         use even when both the argmatch and invalid_arg macro were used.
11471         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11472         of argmatch and invalid_arg.
11473
11474 2011-07-03  Bruno Haible  <bruno@clisp.org>
11475
11476         Comments about EINTR.
11477         * lib/safe-read.h: Explain the purpose of this module.
11478         * lib/safe-write.h: Likewise.
11479         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11480         module.
11481         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11482         module.
11483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11484
11485 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11486
11487         xnanosleep: Rewrite to use new dtotimespec module.
11488         It has the conversion code that used to be in xnanosleep.
11489         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11490         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11491         (TIME_T_MAX): Remove.
11492         (xnanosleep): Rewrite in terms of dtotimespec.
11493         * modules/xnanosleep (Depends-on): Add dtotimespec.
11494         Remove intprops, stdbool.
11495
11496         timespec-add, timespec-sub: new modules
11497         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11498         * lib/timespec-add.c, lib/timespec-sub.c:
11499         * modules/timespec-add, modules/timespec-sub: New files.
11500
11501         dtotimespec: new module
11502         * lib/timespec.h (dtotimespec): New decl.
11503         * lib/dtotimespec.c, modules/dtotimespec: New files.
11504
11505         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11506
11507         pselect: new module
11508         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11509         (pselect): New decls.
11510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11511         since the standard pselect decl uses 'restrict'.
11512         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11513         HAVE_PSELECT, REPLACE_PSELECT.
11514         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11515         HAVE_PSELECT, REPLACE_PSELECT.
11516         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11517
11518         sys_select: don't depend on sys_socket
11519         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11521         This fix works on GNU and GNU-like platforms, but has not been tested
11522         on native Windows.
11523         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11525         gl_HEADER_SYS_SOCKET.
11526         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11527         gl_PREREQ_SYS_H_WINSOCK2.
11528
11529 2011-06-29  Eric Blake  <eblake@redhat.com>
11530
11531         pipe2: fix C89 compile problem
11532         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11533         Reported by Bruno Haible.
11534
11535         pipe, pipe2: don't corrupt fd on error
11536         * lib/pipe.c (pipe): Leave fd unchanged on error.
11537         * lib/pipe2.c (pipe2): Likewise.
11538         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11539         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11540
11541 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11542
11543         mmap-anon: do not use regular expressions inadvertently
11544         * m4/mmap-anon.m4: Remove trailing period from strings sought
11545         in the output.
11546
11547 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11548
11549         nanosleep: fix integer overflow problem
11550         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11551         arithmetic wraps around on overflow.
11552
11553         nanosleep: simplify carrying
11554         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11555         first call to the underyling nanosleep, not for the last one.
11556         This doesn't fix any bugs, but it simplifies the computation of
11557         the remaining delay.  Found while auditing integer overflow issues.
11558
11559         dup2: remove test for existence of fcntl
11560         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11561         "#if HAVE_FCNTL", in the configure-time test program.
11562         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11563         and therefore speeds up "configure" a bit.  Found while
11564         adding the dup2 module to Emacs.
11565
11566 2011-06-24  Eric Blake  <eblake@redhat.com>
11567
11568         maint.mk: enhance useless header checks
11569         * top/maint.mk (_sc_header_without_use): Check both include
11570         styles.
11571         (sc_prohibit_assert_without_use)
11572         (sc_prohibit_close_stream_without_use)
11573         (sc_prohibit_getopt_without_use)
11574         (sc_prohibit_quotearg_without_use)
11575         (sc_prohibit_quote_without_use)
11576         (sc_prohibit_long_options_without_use)
11577         (sc_prohibit_inttostr_without_use)
11578         (sc_prohibit_ignore_value_without_use)
11579         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11580         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11581         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11582         (sc_prohibit_hash_pjw_without_use)
11583         (sc_prohibit_safe_read_without_use)
11584         (sc_prohibit_argmatch_without_use)
11585         (sc_prohibit_canonicalize_without_use)
11586         (sc_prohibit_root_dev_ino_without_use)
11587         (sc_prohibit_openat_without_use)
11588         (sc_prohibit_c_ctype_without_use)
11589         (sc_prohibit_signal_without_use)
11590         (sc_prohibit_stdio--_without_use)
11591         (sc_prohibit_stdio-safer_without_use)
11592         (sc_prohibit_strings_without_use)
11593         (sc_prohibit_intprops_without_use)
11594         (sc_prohibit_stddef_without_use)
11595         (sc_prohibit_xfreopen_without_use): Update clients.
11596
11597 2011-06-24  Jim Meyering  <meyering@redhat.com>
11598
11599         syntax-check: keep one maint.mk rule in sync with its header
11600         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11601         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11602         I prefer to avoid temporary files here, so use <(...), but that
11603         is not supported by /bin/sh, so...
11604         (SHELL): Define to /bin/bash.
11605
11606 2011-06-24  Eric Blake  <eblake@redhat.com>
11607
11608         maint.mk: update sc_prohibit_intprops_without_use
11609         * top/maint.mk (_intprops_names): Match recent changes.
11610
11611 2011-06-24  Bruno Haible  <bruno@clisp.org>
11612
11613         strerror-override: No-op tweak.
11614         * lib/strerror-override.h (strerror_override): Reorder conditions,
11615         for consistency with lib/strerror-override.c.
11616
11617 2011-06-23  Eric Blake  <eblake@redhat.com>
11618
11619         maint.mk: test further PATH_MAX issues
11620         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11621         (sc_prohibit_path_max_allocation): ...and also test alloca.
11622         Suggested by Jim Meyering.
11623
11624 2011-06-22  Eric Blake  <eblake@redhat.com>
11625
11626         maint.mk: add syntax-check to avoid char[PATH_MAX]
11627         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11628
11629         stat: be robust to PATH_MAX definition
11630         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11631         * modules/stat (Depends-on): Add verify.
11632
11633         link: work around IRIX bug
11634         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11635         * lib/link.c (rpl_link): Work around it.
11636         * tests/test-link.h (test_link): Enhance test.
11637         * doc/posix-functions/link.texi (link): Document the bug.
11638
11639         getopt: silence clang warning
11640         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11641         dereference.
11642         Reported by Gustavo Martin Domato.
11643
11644 2011-06-22  Jim Meyering  <meyering@redhat.com>
11645
11646         bootstrap: do not insert a blank line into each .gitignore file
11647         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11648
11649 2011-06-21  Eric Blake  <eblake@redhat.com>
11650
11651         perror: test for output mismatch
11652         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11653         perror on IRIX.
11654
11655         strerror_r: fix OpenBSD behavior on out-of-range
11656         * lib/strerror_r.c (strerror_r): Always use maximal string.
11657         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11658
11659         strerror_r: fix OpenBSD behavior on 0
11660         * lib/strerror-override.c (strerror_override): Also override 0
11661         when needed.
11662         * lib/strerror-override.h (strerror_override): Likewise.
11663         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11664         earlier.
11665         * lib/strerror_r.c (strerror_r): Likewise.
11666         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11667         behavior...
11668         (gl_FUNC_STRERROR_0): ...into new macro.
11669         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11670         is overridden.
11671         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11672         * modules/strerror-override (Files): Add strerror.m4.
11673         (configure.ac): Also provide override for 0 when needed.
11674         * doc/posix-functions/strerror.texi (strerror): Document this.
11675         * doc/posix-functions/perror.texi (perror): Likewise.
11676
11677         perror: adjust array size
11678         * modules/perror (Depends-on): Add strerror-override.
11679         * lib/perror.c (perror): Use it to avoid magic number.
11680
11681         strerror-override: reduce size
11682         * lib/strerror-override.c (strerror_override): Use fewer lines.
11683
11684 2011-06-20  Bruno Haible  <bruno@clisp.org>
11685
11686         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11687         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11688
11689 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11690
11691         alloca: port to compilers that can optimize like GCC 4.6.0
11692         * lib/alloca.c (find_stack_direction): New signature, taken from
11693         Autoconf git.  This works with GCC 4.6.0.  This code should never
11694         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11695         be used with other compilers that optimize as well as GCC 4.6.0 does.
11696         (alloca): Adjust to new signature.
11697         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11698         New macro, which patches Autoconf in a similar way.
11699
11700         c-stack: stop worrying about stack direction
11701         * lib/c-stack.c (find_stack_direction): Remove.
11702         (segv_handler): Don't worry about stack direction growth, as it's
11703         too much of a pain to configure this correctly, given how compilers
11704         are optimizing-away our stack-growth detection code.  Instead, assume
11705         that any access to just before or just after the stack is OK.
11706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11707         Don't require AC_FUNC_ALLOCA; no longer needed.
11708
11709 2011-06-20  Eric Blake  <eblake@redhat.com>
11710
11711         test-stat: don't allocate PATH_MAX bytes
11712         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11713         PATH_MAX-sized buffer.
11714         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11715         * modules/stat-tests (Depends-on): Likewise.
11716         * tests/test-fstatat.c (includes): Drop pathmax.h.
11717         * tests/test-stat.c (includes): Likewise.
11718         Reported by Bruno Haible.
11719
11720 2011-06-20  Bruno Haible  <bruno@clisp.org>
11721
11722         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11723         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11724         * lib/float.c: New file.
11725         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11726         REPLACE_FLOAT_LDBL.
11727         * modules/float (Files): Add lib/float.c.
11728         (configure.ac): Invoke AC_LIBOBJ.
11729         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11730
11731 2011-06-20  Bruno Haible  <bruno@clisp.org>
11732
11733         Tests for module 'float'.
11734         * modules/float-tests: New file.
11735         * tests/test-float.c: New file.
11736
11737 2011-06-19  Bruno Haible  <bruno@clisp.org>
11738
11739         isinf: Coding style.
11740         * lib/isinf.c: Use GNU coding style.
11741
11742 2011-06-19  Bruno Haible  <bruno@clisp.org>
11743
11744         linkat test: Avoid test failure on AIX 7.1.
11745         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11746         * tests/test-link.h (test_link): Likewise.
11747
11748 2011-06-19  Bruno Haible  <bruno@clisp.org>
11749
11750         pread test: Avoid test failure on OpenBSD 4.9.
11751         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11752
11753 2011-06-19  Bruno Haible  <bruno@clisp.org>
11754
11755         sprintf-posix: Fix test failure on AIX 7.1.
11756         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11757         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11758         on AIX.
11759         * doc/posix-functions/fprintf.texi: Likewise.
11760         * doc/posix-functions/printf.texi: Likewise.
11761         * doc/posix-functions/snprintf.texi: Likewise.
11762         * doc/posix-functions/sprintf.texi: Likewise.
11763         * doc/posix-functions/vdprintf.texi: Likewise.
11764         * doc/posix-functions/vfprintf.texi: Likewise.
11765         * doc/posix-functions/vprintf.texi: Likewise.
11766         * doc/posix-functions/vsnprintf.texi: Likewise.
11767         * doc/posix-functions/vsprintf.texi: Likewise.
11768
11769 2011-06-19  Bruno Haible  <bruno@clisp.org>
11770
11771         roundl-ieee: Fix test failure on AIX 7.1.
11772         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11773         * doc/posix-functions/roundl.texi: Mention problem with negative
11774         arguments.
11775
11776 2011-06-19  Bruno Haible  <bruno@clisp.org>
11777
11778         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11779         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11780         * doc/posix-functions/round.texi: Mention problem with negative
11781         arguments.
11782         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11783
11784 2011-06-19  Bruno Haible  <bruno@clisp.org>
11785
11786         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11788         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11789         * doc/posix-functions/roundf.texi: Mention problem with negative
11790         arguments.
11791         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11792
11793 2011-06-19  Bruno Haible  <bruno@clisp.org>
11794
11795         ceilf-ieee: Work around bug on MacOS X 10.5.
11796         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11797
11798         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11799         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11800         IEEE compliant, avoid compiler optimizations.
11801         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11802         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11803         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11804         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11805         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11806         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11807         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11808         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11809         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11810         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11811
11812 2011-06-19  Bruno Haible  <bruno@clisp.org>
11813
11814         ceilf-ieee: Work around bug on AIX 7.1.
11815         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11816         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11817
11818 2011-06-19  Bruno Haible  <bruno@clisp.org>
11819
11820         ceil-ieee: Work around bug on AIX 7.1.
11821         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11822         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11823
11824 2011-06-18  Bruno Haible  <bruno@clisp.org>
11825
11826         fsync test: Avoid test failure on MacOS X and AIX.
11827         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11828         EINVAL.
11829
11830 2011-06-18  Bruno Haible  <bruno@clisp.org>
11831
11832         openat, fdopendir tests: Fix link errors.
11833         * modules/openat-tests (Depends-on): Add progname.
11834         * modules/fdopendir-tests (Depends-on): Likewise.
11835         * tests/test-fchownat.c: Include progname.h.
11836         (main): Call set_program_name.
11837         * tests/test-fstatat.c: Include progname.h.
11838         (main): Call set_program_name.
11839         * tests/test-mkdirat.c: Include progname.h.
11840         (main): Call set_program_name.
11841         * tests/test-openat.c: Include progname.h.
11842         (main): Call set_program_name.
11843         * tests/test-unlinkat.c: Include progname.h.
11844         (main): Call set_program_name.
11845         * tests/test-fdopendir.c: Include progname.h.
11846         (main): Call set_program_name.
11847
11848 2011-06-18  Bruno Haible  <bruno@clisp.org>
11849
11850         Doc update.
11851         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11852         HP-UX.
11853         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11854
11855 2011-06-18  Bruno Haible  <bruno@clisp.org>
11856
11857         getcwd tests: Avoid compilation error on HP-UX 11.31.
11858         * modules/getcwd-tests (Depends-on): Add pathmax.
11859         * tests/test-getcwd.c: Include pathmax.h.
11860
11861 2011-06-18  Bruno Haible  <bruno@clisp.org>
11862
11863         isfinite, isinf: Fix link error on AIX 6 and 7.
11864         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11865         needed, also test the macro with a 'float' argument.
11866         * m4/isinf.m4 (gl_ISINF): Likewise.
11867
11868 2011-06-18  Bruno Haible  <bruno@clisp.org>
11869
11870         getloadavg: Don't clobber LIBS. Regression from previous commit.
11871         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11872         AC_CHECK_LIB from here...
11873         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11874         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11875         gl_func_getloadavg_done.
11876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11877
11878 2011-06-18  Bruno Haible  <bruno@clisp.org>
11879
11880         clean-temp: Improve documentation.
11881         * lib/clean-temp.h: Explain better how to use this module.
11882         Reported by John Darrington <john@darrington.wattle.id.au>.
11883
11884 2011-06-17  Bruno Haible  <bruno@clisp.org>
11885
11886         pread, pwrite: Avoid cc warning on AIX.
11887         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11888         (pwrite): Likewise.
11889
11890 2011-06-17  Bruno Haible  <bruno@clisp.org>
11891
11892         spawn-pipe tests: Fix link error.
11893         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11895
11896 2011-06-17  Bruno Haible  <bruno@clisp.org>
11897
11898         Tests: Remove unnecessary dependency.
11899         * modules/canonicalize-tests (Depends-on): Remove progname.
11900         * modules/chown-tests (Depends-on): Likewise.
11901         * modules/dirname-tests (Depends-on): Likewise.
11902         * modules/fdopendir-tests (Depends-on): Likewise.
11903         * modules/fdutimensat-tests (Depends-on): Likewise.
11904         * modules/hash-tests (Depends-on): Likewise.
11905         * modules/lchown-tests (Depends-on): Likewise.
11906         * modules/linkat-tests (Depends-on): Likewise.
11907         * modules/renameat-tests (Depends-on): Likewise.
11908         * modules/spawn-pipe-tests (Depends-on): Likewise.
11909         * modules/utimensat-tests (Depends-on): Likewise.
11910
11911 2011-06-17  Bruno Haible  <bruno@clisp.org>
11912
11913         spawn-pipe tests: Fix link error.
11914         * tests/test-spawn-pipe-child.c: Undefine fflush.
11915
11916 2011-06-17  Bruno Haible  <bruno@clisp.org>
11917
11918         Fix tests link errors.
11919         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11920         * modules/chown-tests (Makefile.am): Don't link test-chown with
11921         LIBINTL.
11922         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11923         LIBINTL.
11924         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11925         LIBINTL.
11926         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11927         LIBINTL.
11928
11929 2011-06-16  Bruno Haible  <bruno@clisp.org>
11930
11931         crypto/gc-sha1: Fix recent regression.
11932         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11933         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11934
11935         crypto/gc-md5: Fix recent regression.
11936         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11937
11938         crypto/gc-md4: Fix recent regression.
11939         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11940         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11941
11942         crypto/gc-arctwo: Fix recent regression.
11943         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11944         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11945
11946         crypto/gc-rijndael: Fix recent regression.
11947         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11948         (configure.ac): Invoke AC_LIBOBJ here.
11949         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11951
11952         crypto/gc-hmac-sha1: Fix recent regression.
11953         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11954         (configure.ac): Invoke AC_LIBOBJ here.
11955         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11957
11958         crypto/gc-hmac-md5: Fix recent regression.
11959         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11960         (configure.ac): Invoke AC_LIBOBJ here.
11961         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11963
11964         crypto/gc-des: Fix recent regression.
11965         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11966         (configure.ac): Invoke AC_LIBOBJ here.
11967         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11969
11970         crypto/gc-arcfour: Fix recent regression.
11971         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11972         (configure.ac): Invoke AC_LIBOBJ here.
11973         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11975
11976 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11977
11978         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11979         After the 2011-05-21 change, this macro requires
11980         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11981         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11982
11983 2011-06-16  Bruno Haible  <bruno@clisp.org>
11984
11985         fprintftime: Move AC_LIBOBJ invocations to module description.
11986         * m4/fprintftime.m4: Remove file.
11987         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11988         (configure.ac): Remove gl_FPRINTFTIME call.
11989         (Makefile.am): Augment lib_SOURCES.
11990         Reported by Jim Meyering.
11991
11992 2011-06-16  Bruno Haible  <bruno@clisp.org>
11993
11994         tmpfile-safer: Finish 2011-05-23 commit.
11995         * m4/stdio-safer.m4: Really remove file.
11996         Reported by Jim Meyering.
11997
11998 2011-06-16  Bruno Haible  <bruno@clisp.org>
11999
12000         syntax-check: Fix typo.
12001         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12002         printf-posix.m4.
12003         Reported by Jim Meyering.
12004
12005 2011-06-13  Jim Meyering  <meyering@redhat.com>
12006
12007         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12008         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12009
12010 2011-05-23  Bruno Haible  <bruno@clisp.org>
12011
12012         yesno: Move AC_LIBOBJ invocations to module description.
12013         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12014         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12015
12016 2011-05-23  Bruno Haible  <bruno@clisp.org>
12017
12018         xstrtol: Move AC_LIBOBJ invocations to module description.
12019         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12020         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12021
12022 2011-05-23  Bruno Haible  <bruno@clisp.org>
12023
12024         xstrtold: Move AC_LIBOBJ invocations to module description.
12025         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12026         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12027
12028 2011-05-23  Bruno Haible  <bruno@clisp.org>
12029
12030         xstrtod: Move AC_LIBOBJ invocations to module description.
12031         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12032         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12033
12034 2011-05-23  Bruno Haible  <bruno@clisp.org>
12035
12036         xnanosleep: Move AC_LIBOBJ invocations to module description.
12037         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12038         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12039
12040 2011-05-23  Bruno Haible  <bruno@clisp.org>
12041
12042         xgetcwd: Move AC_LIBOBJ invocations to module description.
12043         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12044         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12045
12046 2011-05-23  Bruno Haible  <bruno@clisp.org>
12047
12048         xalloc: Move AC_LIBOBJ invocations to module description.
12049         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12050         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12051
12052 2011-05-23  Bruno Haible  <bruno@clisp.org>
12053
12054         write-any-file: Move AC_LIBOBJ invocations to module description.
12055         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12056         invocation.
12057         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12058
12059 2011-05-23  Bruno Haible  <bruno@clisp.org>
12060
12061         utimens: Move AC_LIBOBJ invocations to module description.
12062         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12063         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12064
12065 2011-05-23  Bruno Haible  <bruno@clisp.org>
12066
12067         utimecmp: Move AC_LIBOBJ invocations to module description.
12068         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12069         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12070
12071 2011-05-23  Bruno Haible  <bruno@clisp.org>
12072
12073         userspec: Move AC_LIBOBJ invocations to module description.
12074         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12075         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12076
12077 2011-05-23  Bruno Haible  <bruno@clisp.org>
12078
12079         unlinkdir: Move AC_LIBOBJ invocations to module description.
12080         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12081         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12082
12083 2011-05-23  Bruno Haible  <bruno@clisp.org>
12084
12085         unistd-safer: Move AC_LIBOBJ invocations to module description.
12086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12087         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12088
12089 2011-05-23  Bruno Haible  <bruno@clisp.org>
12090
12091         tempname: Move AC_LIBOBJ invocations to module description.
12092         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12093         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12094
12095 2011-05-23  Bruno Haible  <bruno@clisp.org>
12096
12097         strftime: Move AC_LIBOBJ invocations to module description.
12098         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12099         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12100
12101 2011-05-23  Bruno Haible  <bruno@clisp.org>
12102
12103         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12104         * m4/stdlib-safer.m4: Remove file.
12105         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12106         (configure.ac): Remove gl_STDLIB_SAFER call.
12107         (Makefile.am): Augment lib_SOURCES.
12108
12109 2011-05-23  Bruno Haible  <bruno@clisp.org>
12110
12111         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12112         * m4/stdio-safer.m4: Remove file.
12113         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12114         (configure.ac): Remove gl_TMPFILE_SAFER call.
12115         (Makefile.am): Augment lib_SOURCES.
12116
12117 2011-05-23  Bruno Haible  <bruno@clisp.org>
12118
12119         popen-safer: Move AC_LIBOBJ invocations to module description.
12120         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12121         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12122         (configure.ac): Remove gl_POPEN_SAFER call.
12123         (Makefile.am): Augment lib_SOURCES.
12124
12125 2011-05-23  Bruno Haible  <bruno@clisp.org>
12126
12127         freopen-safer: Move AC_LIBOBJ invocations to module description.
12128         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12129         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12130         (configure.ac): Remove gl_FREOPEN_SAFER call.
12131         (Makefile.am): Augment lib_SOURCES.
12132
12133 2011-05-23  Bruno Haible  <bruno@clisp.org>
12134
12135         fopen-safer: Move AC_LIBOBJ invocations to module description.
12136         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12137         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12138         (configure.ac): Remove gl_FOPEN_SAFER call.
12139         (Makefile.am): Augment lib_SOURCES.
12140
12141 2011-05-23  Bruno Haible  <bruno@clisp.org>
12142
12143         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12144         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12145         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12146
12147 2011-05-23  Bruno Haible  <bruno@clisp.org>
12148
12149         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12150         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12151         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12152
12153 2011-05-23  Bruno Haible  <bruno@clisp.org>
12154
12155         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12156         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12157         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12158
12159 2011-05-23  Bruno Haible  <bruno@clisp.org>
12160
12161         settime: Move AC_LIBOBJ invocations to module description.
12162         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12163         * modules/settime (Makefile.am): Augment lib_SOURCES.
12164
12165 2011-05-23  Bruno Haible  <bruno@clisp.org>
12166
12167         savedir: Move AC_LIBOBJ invocations to module description.
12168         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12169         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12170
12171 2011-05-23  Bruno Haible  <bruno@clisp.org>
12172
12173         save-cwd: Move AC_LIBOBJ invocations to module description.
12174         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12175         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12176
12177 2011-05-23  Bruno Haible  <bruno@clisp.org>
12178
12179         same: Move AC_LIBOBJ invocations to module description.
12180         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12181         * modules/same (Makefile.am): Augment lib_SOURCES.
12182
12183 2011-05-23  Bruno Haible  <bruno@clisp.org>
12184
12185         safe-write: Move AC_LIBOBJ invocations to module description.
12186         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12187         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12188         instead of gl_SAFE_WRITE.
12189         (Makefile.am): Augment lib_SOURCES.
12190
12191 2011-05-23  Bruno Haible  <bruno@clisp.org>
12192
12193         safe-read: Move AC_LIBOBJ invocations to module description.
12194         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12195         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12196         of gl_SAFE_READ.
12197         (Makefile.am): Augment lib_SOURCES.
12198
12199 2011-05-23  Bruno Haible  <bruno@clisp.org>
12200
12201         safe-alloc: Move AC_LIBOBJ invocations to module description.
12202         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12203         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12204
12205 2011-05-23  Bruno Haible  <bruno@clisp.org>
12206
12207         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12208         * m4/rijndael.m4: Remove file.
12209         * modules/crypto/rijndael (Files): Remove it.
12210         (configure.ac): Remove gl_RIJNDAEL call.
12211         (Makefile.am): Augment lib_SOURCES.
12212
12213 2011-05-23  Bruno Haible  <bruno@clisp.org>
12214
12215         readtokens: Move AC_LIBOBJ invocations to module description.
12216         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12217         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12218
12219 2011-05-23  Bruno Haible  <bruno@clisp.org>
12220
12221         read-file: Move AC_LIBOBJ invocations to module description.
12222         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12223         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12224         of gl_FUNC_READ_FILE.
12225         (Makefile.am): Augment lib_SOURCES.
12226
12227 2011-05-23  Bruno Haible  <bruno@clisp.org>
12228
12229         quotearg: Move AC_LIBOBJ invocations to module description.
12230         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12231         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12232
12233 2011-05-23  Bruno Haible  <bruno@clisp.org>
12234
12235         quote: Move AC_LIBOBJ invocations to module description.
12236         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12237         * modules/quote (Makefile.am): Augment lib_SOURCES.
12238
12239 2011-05-23  Bruno Haible  <bruno@clisp.org>
12240
12241         posixver: Move AC_LIBOBJ invocations to module description.
12242         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12243         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12244
12245 2011-05-23  Bruno Haible  <bruno@clisp.org>
12246
12247         posixtm: Move AC_LIBOBJ invocations to module description.
12248         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12249         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12250
12251 2011-05-23  Bruno Haible  <bruno@clisp.org>
12252
12253         physmem: Move AC_LIBOBJ invocations to module description.
12254         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12255         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12256
12257 2011-05-23  Bruno Haible  <bruno@clisp.org>
12258
12259         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12260         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12261         invocation.
12262         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12263
12264 2011-05-23  Bruno Haible  <bruno@clisp.org>
12265
12266         mpsort: Move AC_LIBOBJ invocations to module description.
12267         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12268         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12269
12270 2011-05-23  Bruno Haible  <bruno@clisp.org>
12271
12272         modechange: Move AC_LIBOBJ invocations to module description.
12273         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12274         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12275
12276 2011-05-23  Bruno Haible  <bruno@clisp.org>
12277
12278         mkdir-p: Move AC_LIBOBJ invocations to module description.
12279         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12280         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12281
12282 2011-05-23  Bruno Haible  <bruno@clisp.org>
12283
12284         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12285         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12286         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12287
12288 2011-05-23  Bruno Haible  <bruno@clisp.org>
12289
12290         mgetgroups: Move AC_LIBOBJ invocations to module description.
12291         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12292         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12293
12294 2011-05-23  Bruno Haible  <bruno@clisp.org>
12295
12296         memxor: Move AC_LIBOBJ invocations to module description.
12297         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12298         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12299
12300 2011-05-23  Bruno Haible  <bruno@clisp.org>
12301
12302         memcoll: Move AC_LIBOBJ invocations to module description.
12303         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12304         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12305
12306 2011-05-23  Bruno Haible  <bruno@clisp.org>
12307
12308         memcasecmp: Move AC_LIBOBJ invocations to module description.
12309         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12310         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12311
12312 2011-05-23  Bruno Haible  <bruno@clisp.org>
12313
12314         crypto/md5: Move AC_LIBOBJ invocations to module description.
12315         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12316         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12317
12318 2011-05-23  Bruno Haible  <bruno@clisp.org>
12319
12320         crypto/md4: Move AC_LIBOBJ invocations to module description.
12321         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12322         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12323
12324 2011-05-23  Bruno Haible  <bruno@clisp.org>
12325
12326         crypto/md2: Move AC_LIBOBJ invocations to module description.
12327         * m4/md2.m4: Remove file.
12328         * modules/crypto/md2 (Files): Remove it.
12329         (configure.ac): Remove gl_MD2 call.
12330         (Makefile.am): Augment lib_SOURCES.
12331
12332 2011-05-23  Bruno Haible  <bruno@clisp.org>
12333
12334         long-options: Move AC_LIBOBJ invocations to module description.
12335         * m4/long-options.m4: Remove file.
12336         * modules/long-options (Files): Remove it.
12337         (configure.ac): Remove gl_LONG_OPTIONS call.
12338         (Makefile.am): Augment lib_SOURCES.
12339
12340 2011-05-23  Bruno Haible  <bruno@clisp.org>
12341
12342         i-ring: Move AC_LIBOBJ invocations to module description.
12343         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12344         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12345
12346 2011-05-23  Bruno Haible  <bruno@clisp.org>
12347
12348         idcache: Move AC_LIBOBJ invocations to module description.
12349         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12350         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12351
12352 2011-05-23  Bruno Haible  <bruno@clisp.org>
12353
12354         human: Move AC_LIBOBJ invocations to module description.
12355         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12356         * modules/human (Makefile.am): Augment lib_SOURCES.
12357
12358 2011-05-23  Bruno Haible  <bruno@clisp.org>
12359
12360         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12361         * m4/hmac-sha1.m4: Remove file.
12362         * modules/crypto/hmac-sha1 (Files): Remove it.
12363         (configure.ac): Remove gl_HMAC_SHA1 call.
12364         (Makefile.am): Augment lib_SOURCES.
12365
12366 2011-05-23  Bruno Haible  <bruno@clisp.org>
12367
12368         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12369         * m4/hmac-md5.m4: Remove file.
12370         * modules/crypto/hmac-md5 (Files): Remove it.
12371         (configure.ac): Remove gl_HMAC_MD5 call.
12372         (Makefile.am): Augment lib_SOURCES.
12373
12374 2011-05-23  Bruno Haible  <bruno@clisp.org>
12375
12376         hash: Move AC_LIBOBJ invocations to module description.
12377         * m4/hash.m4: Remove file.
12378         * modules/hash (Files): Remove it.
12379         (configure.ac): Remove gl_HASH call.
12380         (Makefile.am): Augment lib_SOURCES.
12381
12382 2011-05-23  Bruno Haible  <bruno@clisp.org>
12383
12384         hard-locale: Move AC_LIBOBJ invocations to module description.
12385         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12386         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12387
12388 2011-05-23  Bruno Haible  <bruno@clisp.org>
12389
12390         getugroups: Move AC_LIBOBJ invocations to module description.
12391         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12392         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12393
12394 2011-05-23  Bruno Haible  <bruno@clisp.org>
12395
12396         gettime: Move AC_LIBOBJ invocations to module description.
12397         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12398         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12399
12400 2011-05-23  Bruno Haible  <bruno@clisp.org>
12401
12402         getndelim2: Move AC_LIBOBJ invocations to module description.
12403         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12404         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12405
12406 2011-05-23  Bruno Haible  <bruno@clisp.org>
12407
12408         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12409         * m4/gc-pbkdf2-sha1.m4: Remove file.
12410         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12411         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12412         (Makefile.am): Augment lib_SOURCES.
12413
12414 2011-05-23  Bruno Haible  <bruno@clisp.org>
12415
12416         fts: Move AC_LIBOBJ invocations to module description.
12417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12418         * modules/fts (configure.ac): ... to here.
12419
12420 2011-05-23  Bruno Haible  <bruno@clisp.org>
12421
12422         file-type: Move AC_LIBOBJ invocations to module description.
12423         * m4/file-type.m4: Remove file.
12424         * modules/file-type (Files): Remove it.
12425         (configure.ac): Remove gl_FILE_TYPE call.
12426         (Makefile.am): Augment lib_SOURCES.
12427
12428 2011-05-23  Bruno Haible  <bruno@clisp.org>
12429
12430         filenamecat*: Respect rules for use of AC_LIBOBJ.
12431         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12432         Remove AC_LIBOBJ invocation.
12433         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12434         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12435
12436 2011-05-23  Bruno Haible  <bruno@clisp.org>
12437
12438         filemode: Move AC_LIBOBJ invocations to module description.
12439         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12440         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12441
12442 2011-05-23  Bruno Haible  <bruno@clisp.org>
12443
12444         openat-safer: Move AC_LIBOBJ invocations to module description.
12445         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12446         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12447
12448 2011-05-23  Bruno Haible  <bruno@clisp.org>
12449
12450         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12451         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12452         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12453
12454 2011-05-23  Bruno Haible  <bruno@clisp.org>
12455
12456         exclude: Move AC_LIBOBJ invocations to module description.
12457         * m4/exclude.m4: Remove file.
12458         * modules/exclude (Files): Remove it.
12459         (configure.ac): Remove gl_EXCLUDE call.
12460         (Makefile.am): Augment lib_SOURCES.
12461
12462 2011-05-23  Bruno Haible  <bruno@clisp.org>
12463
12464         dirname*: Respect rules for use of AC_LIBOBJ.
12465         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12466         invocations.
12467         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12468         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12469
12470 2011-05-23  Bruno Haible  <bruno@clisp.org>
12471
12472         dirent-safer: Move AC_LIBOBJ invocations to module description.
12473         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12474         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12475
12476 2011-05-23  Bruno Haible  <bruno@clisp.org>
12477
12478         crypto/des: Move AC_LIBOBJ invocations to module description.
12479         * m4/des.m4: Remove file.
12480         * modules/crypto/des (Files): Remove it.
12481         (configure.ac): Remove gl_DES call.
12482         (Makefile.am): Augment lib_SOURCES.
12483
12484 2011-05-23  Bruno Haible  <bruno@clisp.org>
12485
12486         cycle-check: Move AC_LIBOBJ invocations to module description.
12487         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12488         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12489
12490 2011-05-23  Bruno Haible  <bruno@clisp.org>
12491
12492         c-strtold: Move AC_LIBOBJ invocations to module description.
12493         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12494         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12495
12496 2011-05-23  Bruno Haible  <bruno@clisp.org>
12497
12498         c-strtod: Move AC_LIBOBJ invocations to module description.
12499         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12500         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12501
12502 2011-05-23  Bruno Haible  <bruno@clisp.org>
12503
12504         crc: Move AC_LIBOBJ invocations to module description.
12505         * m4/crc.m4: Remove file.
12506         * modules/crc (Files): Remove it.
12507         (configure.ac): Remove gl_CRC call.
12508         (Makefile.am): Augment lib_SOURCES.
12509
12510 2011-05-23  Bruno Haible  <bruno@clisp.org>
12511
12512         close-stream: Move AC_LIBOBJ invocations to module description.
12513         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12514         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12515
12516 2011-05-23  Bruno Haible  <bruno@clisp.org>
12517
12518         closeout: Move AC_LIBOBJ invocations to module description.
12519         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12520         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12521
12522 2011-05-23  Bruno Haible  <bruno@clisp.org>
12523
12524         closein: Move AC_LIBOBJ invocations to module description.
12525         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12526         * modules/closein (Makefile.am): Augment lib_SOURCES.
12527
12528 2011-05-23  Bruno Haible  <bruno@clisp.org>
12529
12530         cloexec: Move AC_LIBOBJ invocations to module description.
12531         * m4/cloexec.m4: Remove file.
12532         * modules/cloexec (Files): Remove it.
12533         (configure.ac): Remove gl_CLOEXEC call.
12534         (Makefile.am): Augment lib_SOURCES.
12535
12536 2011-05-23  Bruno Haible  <bruno@clisp.org>
12537
12538         check-version: Move AC_LIBOBJ invocations to module description.
12539         * m4/check-version.m4: Remove file.
12540         * modules/check-version (Files): Remove it.
12541         (configure.ac): Remove gl_CHECK_VERSION call.
12542         (Makefile.am): Augment lib_SOURCES.
12543
12544 2011-05-23  Bruno Haible  <bruno@clisp.org>
12545
12546         chdir-safer: Move AC_LIBOBJ invocations to module description.
12547         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12548         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12549
12550 2011-05-23  Bruno Haible  <bruno@clisp.org>
12551
12552         canonicalize: Move AC_LIBOBJ invocations to module description.
12553         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12554         AC_LIBOBJ invocation.
12555         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12556
12557 2011-05-23  Bruno Haible  <bruno@clisp.org>
12558
12559         canon-host: Move AC_LIBOBJ invocations to module description.
12560         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12561         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12562         instead of gl_CANON_HOST.
12563         (Makefile.am): Augment lib_SOURCES.
12564
12565 2011-05-23  Bruno Haible  <bruno@clisp.org>
12566
12567         backupfile: Move AC_LIBOBJ invocations to module description.
12568         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12569         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12570
12571 2011-05-23  Bruno Haible  <bruno@clisp.org>
12572
12573         argmatch: Move AC_LIBOBJ invocations to module description.
12574         * m4/argmatch.m4: Remove file.
12575         * modules/argmatch (Files): Remove it.
12576         (configure.ac): Remove gl_ARGMATCH call.
12577         (Makefile.am): Augment lib_SOURCES.
12578
12579 2011-05-23  Bruno Haible  <bruno@clisp.org>
12580
12581         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12582         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12583         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12584
12585 2011-05-23  Bruno Haible  <bruno@clisp.org>
12586
12587         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12588         * m4/arcfour.m4: Remove file.
12589         * modules/crypto/arcfour (Files): Remove it.
12590         (configure.ac): Remove gl_ARCFOUR call.
12591         (Makefile.am): Augment lib_SOURCES.
12592
12593 2011-05-22  Bruno Haible  <bruno@clisp.org>
12594
12595         write: Move AC_LIBOBJ invocations to module description.
12596         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12597         * modules/write (configure.ac): ... to here.
12598
12599 2011-05-22  Bruno Haible  <bruno@clisp.org>
12600
12601         wmemset: Move AC_LIBOBJ invocations to module description.
12602         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12603         here...
12604         * modules/wmemset (configure.ac): ... to here.
12605
12606 2011-05-22  Bruno Haible  <bruno@clisp.org>
12607
12608         wmemmove: Move AC_LIBOBJ invocations to module description.
12609         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12610         here...
12611         * modules/wmemmove (configure.ac): ... to here.
12612
12613 2011-05-22  Bruno Haible  <bruno@clisp.org>
12614
12615         wmemcpy: Move AC_LIBOBJ invocations to module description.
12616         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12617         here...
12618         * modules/wmemcpy (configure.ac): ... to here.
12619
12620 2011-05-22  Bruno Haible  <bruno@clisp.org>
12621
12622         wmemcmp: Move AC_LIBOBJ invocations to module description.
12623         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12624         here...
12625         * modules/wmemcmp (configure.ac): ... to here.
12626
12627 2011-05-22  Bruno Haible  <bruno@clisp.org>
12628
12629         wmemchr: Move AC_LIBOBJ invocations to module description.
12630         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12631         here...
12632         * modules/wmemchr (configure.ac): ... to here.
12633
12634 2011-05-22  Bruno Haible  <bruno@clisp.org>
12635
12636         wcswidth: Move AC_LIBOBJ invocations to module description.
12637         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12638         here...
12639         * modules/wcswidth (configure.ac): ... to here.
12640
12641 2011-05-22  Bruno Haible  <bruno@clisp.org>
12642
12643         wcwidth: Respect rules for use of AC_LIBOBJ.
12644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12645         invocation from here...
12646         * modules/wcwidth (configure.ac): ... to here.
12647         (Depends-on): Update conditions.
12648
12649 2011-05-22  Bruno Haible  <bruno@clisp.org>
12650
12651         wctype: Move AC_LIBOBJ invocations to module description.
12652         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12653         invocation from here...
12654         * modules/wctype (configure.ac): ... to here.
12655         (Depends-on): Update conditions.
12656
12657 2011-05-22  Bruno Haible  <bruno@clisp.org>
12658
12659         wctrans: Move AC_LIBOBJ invocations to module description.
12660         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12661         invocation from here...
12662         * modules/wctrans (configure.ac): ... to here.
12663
12664 2011-05-22  Bruno Haible  <bruno@clisp.org>
12665
12666         wctomb: Move AC_LIBOBJ invocations to module description.
12667         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12668         invocations from here...
12669         * modules/wctomb (configure.ac): ... to here.
12670
12671 2011-05-22  Bruno Haible  <bruno@clisp.org>
12672
12673         wctob: Move AC_LIBOBJ invocations to module description.
12674         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12675         gl_PREREQ_WCTOB invocations from here...
12676         * modules/wctob (configure.ac): ... to here.
12677         (Depends-on): Update conditions.
12678
12679 2011-05-22  Bruno Haible  <bruno@clisp.org>
12680
12681         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12682         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12683         here...
12684         * modules/wcsxfrm (configure.ac): ... to here.
12685
12686 2011-05-22  Bruno Haible  <bruno@clisp.org>
12687
12688         wcstok: Move AC_LIBOBJ invocations to module description.
12689         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12690         * modules/wcstok (configure.ac): ... to here.
12691
12692 2011-05-22  Bruno Haible  <bruno@clisp.org>
12693
12694         wcsstr: Move AC_LIBOBJ invocations to module description.
12695         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12696         * modules/wcsstr (configure.ac): ... to here.
12697
12698 2011-05-22  Bruno Haible  <bruno@clisp.org>
12699
12700         wcsspn: Move AC_LIBOBJ invocations to module description.
12701         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12702         * modules/wcsspn (configure.ac): ... to here.
12703
12704 2011-05-22  Bruno Haible  <bruno@clisp.org>
12705
12706         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12707         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12708         gl_PREREQ_WCSRTOMBS invocations from here...
12709         * modules/wcsrtombs (configure.ac): ... to here.
12710
12711 2011-05-22  Bruno Haible  <bruno@clisp.org>
12712
12713         wcsrchr: Move AC_LIBOBJ invocations to module description.
12714         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12715         here...
12716         * modules/wcsrchr (configure.ac): ... to here.
12717
12718 2011-05-22  Bruno Haible  <bruno@clisp.org>
12719
12720         wcspbrk: Move AC_LIBOBJ invocations to module description.
12721         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12722         here...
12723         * modules/wcspbrk (configure.ac): ... to here.
12724
12725 2011-05-22  Bruno Haible  <bruno@clisp.org>
12726
12727         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12728         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12729         gl_PREREQ_WCSNRTOMBS invocations from here...
12730         * modules/wcsnrtombs (configure.ac): ... to here.
12731
12732 2011-05-22  Bruno Haible  <bruno@clisp.org>
12733
12734         wcsnlen: Move AC_LIBOBJ invocations to module description.
12735         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12736         here...
12737         * modules/wcsnlen (configure.ac): ... to here.
12738
12739 2011-05-22  Bruno Haible  <bruno@clisp.org>
12740
12741         wcsncpy: Move AC_LIBOBJ invocations to module description.
12742         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12743         here...
12744         * modules/wcsncpy (configure.ac): ... to here.
12745
12746 2011-05-22  Bruno Haible  <bruno@clisp.org>
12747
12748         wcsncmp: Move AC_LIBOBJ invocations to module description.
12749         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12750         here...
12751         * modules/wcsncmp (configure.ac): ... to here.
12752
12753 2011-05-22  Bruno Haible  <bruno@clisp.org>
12754
12755         wcsncat: Move AC_LIBOBJ invocations to module description.
12756         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12757         here...
12758         * modules/wcsncat (configure.ac): ... to here.
12759
12760 2011-05-22  Bruno Haible  <bruno@clisp.org>
12761
12762         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12763         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12764         from here...
12765         * modules/wcsncasecmp (configure.ac): ... to here.
12766
12767 2011-05-22  Bruno Haible  <bruno@clisp.org>
12768
12769         wcslen: Move AC_LIBOBJ invocations to module description.
12770         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12771         * modules/wcslen (configure.ac): ... to here.
12772
12773 2011-05-22  Bruno Haible  <bruno@clisp.org>
12774
12775         wcsdup: Move AC_LIBOBJ invocations to module description.
12776         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12777         * modules/wcsdup (configure.ac): ... to here.
12778
12779 2011-05-22  Bruno Haible  <bruno@clisp.org>
12780
12781         wcscspn: Move AC_LIBOBJ invocations to module description.
12782         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12783         here...
12784         * modules/wcscspn (configure.ac): ... to here.
12785
12786 2011-05-22  Bruno Haible  <bruno@clisp.org>
12787
12788         wcscpy: Move AC_LIBOBJ invocations to module description.
12789         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12790         * modules/wcscpy (configure.ac): ... to here.
12791
12792 2011-05-22  Bruno Haible  <bruno@clisp.org>
12793
12794         wcscoll: Move AC_LIBOBJ invocations to module description.
12795         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12796         here...
12797         * modules/wcscoll (configure.ac): ... to here.
12798
12799 2011-05-22  Bruno Haible  <bruno@clisp.org>
12800
12801         wcscmp: Move AC_LIBOBJ invocations to module description.
12802         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12803         * modules/wcscmp (configure.ac): ... to here.
12804
12805 2011-05-22  Bruno Haible  <bruno@clisp.org>
12806
12807         wcschr: Move AC_LIBOBJ invocations to module description.
12808         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12809         * modules/wcschr (configure.ac): ... to here.
12810
12811 2011-05-22  Bruno Haible  <bruno@clisp.org>
12812
12813         wcscat: Move AC_LIBOBJ invocations to module description.
12814         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12815         * modules/wcscat (configure.ac): ... to here.
12816
12817 2011-05-22  Bruno Haible  <bruno@clisp.org>
12818
12819         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12820         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12821         here...
12822         * modules/wcscasecmp (configure.ac): ... to here.
12823
12824 2011-05-22  Bruno Haible  <bruno@clisp.org>
12825
12826         wcrtomb: Move AC_LIBOBJ invocations to module description.
12827         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12828         invocations from here...
12829         * modules/wcrtomb (configure.ac): ... to here.
12830
12831 2011-05-22  Bruno Haible  <bruno@clisp.org>
12832
12833         wcpncpy: Move AC_LIBOBJ invocations to module description.
12834         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12835         here...
12836         * modules/wcpncpy (configure.ac): ... to here.
12837
12838 2011-05-22  Bruno Haible  <bruno@clisp.org>
12839
12840         wcpcpy: Move AC_LIBOBJ invocations to module description.
12841         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12842         * modules/wcpcpy (configure.ac): ... to here.
12843
12844 2011-05-22  Bruno Haible  <bruno@clisp.org>
12845
12846         waitpid: Move AC_LIBOBJ invocations to module description.
12847         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12848         invocation from here...
12849         * modules/waitpid (configure.ac): ... to here.
12850
12851 2011-05-22  Bruno Haible  <bruno@clisp.org>
12852
12853         utimensat: Move AC_LIBOBJ invocations to module description.
12854         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12855         here...
12856         * modules/utimensat (configure.ac): ... to here.
12857
12858 2011-05-22  Bruno Haible  <bruno@clisp.org>
12859
12860         usleep: Move AC_LIBOBJ invocations to module description.
12861         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12862         here...
12863         * modules/usleep (configure.ac): ... to here.
12864
12865 2011-05-22  Bruno Haible  <bruno@clisp.org>
12866
12867         unlockpt: Move AC_LIBOBJ invocations to module description.
12868         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12869         gl_PREREQ_UNLOCKPT invocations from here...
12870         * modules/unlockpt (configure.ac): ... to here.
12871
12872 2011-05-22  Bruno Haible  <bruno@clisp.org>
12873
12874         unlink: Respect rules for use of AC_LIBOBJ.
12875         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12876         * modules/unlink (configure.ac): ... to here.
12877
12878 2011-05-22  Bruno Haible  <bruno@clisp.org>
12879
12880         uname: Move AC_LIBOBJ invocations to module description.
12881         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12883         here...
12884         * modules/uname (configure.ac): ... to here.
12885
12886 2011-05-22  Bruno Haible  <bruno@clisp.org>
12887
12888         ttyname_r: Move AC_LIBOBJ invocations to module description.
12889         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12890         gl_PREREQ_TTYNAME_R invocations from here...
12891         * modules/ttyname_r (configure.ac): ... to here.
12892
12893 2011-05-22  Bruno Haible  <bruno@clisp.org>
12894
12895         tsearch: Move AC_LIBOBJ invocations to module description.
12896         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12897         invocations from here...
12898         * modules/tsearch (configure.ac): ... to here.
12899
12900 2011-05-22  Bruno Haible  <bruno@clisp.org>
12901
12902         towctrans: Move AC_LIBOBJ invocations to module description.
12903         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12904         AC_LIBOBJ invocation from here...
12905         * modules/towctrans (configure.ac): ... to here.
12906
12907 2011-05-22  Bruno Haible  <bruno@clisp.org>
12908
12909         tmpfile: Move AC_LIBOBJ invocations to module description.
12910         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12911         invocations from here...
12912         * modules/tmpfile (configure.ac): ... to here.
12913
12914 2011-05-22  Bruno Haible  <bruno@clisp.org>
12915
12916         times: Move AC_LIBOBJ invocations to module description.
12917         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12918         * modules/times (configure.ac): ... to here.
12919
12920 2011-05-22  Bruno Haible  <bruno@clisp.org>
12921
12922         time_r: Move AC_LIBOBJ invocations to module description.
12923         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12924         invocations from here...
12925         * modules/time_r (configure.ac): ... to here.
12926
12927 2011-05-22  Bruno Haible  <bruno@clisp.org>
12928
12929         timegm: Move AC_LIBOBJ invocations to module description.
12930         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12931         invocations from here...
12932         * modules/timegm (configure.ac): ... to here.
12933
12934 2011-05-22  Bruno Haible  <bruno@clisp.org>
12935
12936         tcgetsid: Move AC_LIBOBJ invocations to module description.
12937         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12938         and gl_PREREQ_TCGETSID invocations from here...
12939         * modules/tcgetsid (configure.ac): ... to here.
12940         (Depends-on): Update conditions.
12941
12942 2011-05-22  Bruno Haible  <bruno@clisp.org>
12943
12944         symlinkat: Move AC_LIBOBJ invocations to module description.
12945         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12946         here...
12947         * modules/symlinkat (configure.ac): ... to here.
12948
12949 2011-05-22  Bruno Haible  <bruno@clisp.org>
12950
12951         symlink: Move AC_LIBOBJ invocations to module description.
12952         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12953         here...
12954         * modules/symlink (configure.ac): ... to here.
12955
12956 2011-05-22  Bruno Haible  <bruno@clisp.org>
12957
12958         strverscmp: Move AC_LIBOBJ invocations to module description.
12959         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12960         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12961         from here...
12962         * modules/strverscmp (configure.ac): ... to here.
12963
12964 2011-05-22  Bruno Haible  <bruno@clisp.org>
12965
12966         strtok_r: Move AC_LIBOBJ invocations to module description.
12967         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12968         and gl_PREREQ_STRTOK_R invocations from here...
12969         * modules/strtok_r (configure.ac): ... to here.
12970         (Depends-on): Update conditions.
12971
12972 2011-05-22  Bruno Haible  <bruno@clisp.org>
12973
12974         strtoumax: Move AC_LIBOBJ invocations to module description.
12975         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12976         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12977         from here...
12978         * modules/strtoumax (configure.ac): ... to here.
12979
12980 2011-05-22  Bruno Haible  <bruno@clisp.org>
12981
12982         strtoimax: Move AC_LIBOBJ invocations to module description.
12983         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12984         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12985         from here...
12986         * modules/strtoimax (configure.ac): ... to here.
12987
12988 2011-05-22  Bruno Haible  <bruno@clisp.org>
12989
12990         strtoull: Move AC_LIBOBJ invocations to module description.
12991         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12992         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12993         from here...
12994         * modules/strtoull (configure.ac): ... to here.
12995
12996 2011-05-22  Bruno Haible  <bruno@clisp.org>
12997
12998         strtoll: Move AC_LIBOBJ invocations to module description.
12999         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13000         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13001         here...
13002         * modules/strtoll (configure.ac): ... to here.
13003
13004 2011-05-22  Bruno Haible  <bruno@clisp.org>
13005
13006         strtoul: Move AC_LIBOBJ invocations to module description.
13007         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13008         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13009         * modules/strtoul (configure.ac): ... to here.
13010
13011 2011-05-22  Bruno Haible  <bruno@clisp.org>
13012
13013         strtol: Move AC_LIBOBJ invocations to module description.
13014         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13015         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13016         * modules/strtol (configure.ac): ... to here.
13017
13018 2011-05-22  Bruno Haible  <bruno@clisp.org>
13019
13020         strtod: Move AC_LIBOBJ invocations to module description.
13021         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13022         invocations from here...
13023         * modules/strtod (configure.ac): ... to here.
13024
13025 2011-05-22  Bruno Haible  <bruno@clisp.org>
13026
13027         strstr*: Move AC_LIBOBJ invocations to module description.
13028         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13029         invocations from here...
13030         * modules/strstr-simple (configure.ac): ... to here.
13031         * modules/strstr (configure.ac): ... and here.
13032
13033 2011-05-22  Bruno Haible  <bruno@clisp.org>
13034
13035         strsignal: Move AC_LIBOBJ invocations to module description.
13036         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13037         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13038         * modules/strsignal (configure.ac): ... to here.
13039         (Depends-on): Update conditions.
13040
13041 2011-05-22  Bruno Haible  <bruno@clisp.org>
13042
13043         strsep: Move AC_LIBOBJ invocations to module description.
13044         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13046         here...
13047         * modules/strsep (configure.ac): ... to here.
13048
13049 2011-05-22  Bruno Haible  <bruno@clisp.org>
13050
13051         strptime: Move AC_LIBOBJ invocations to module description.
13052         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13053         gl_PREREQ_STRPTIME invocations from here...
13054         * modules/strptime (configure.ac): ... to here.
13055
13056 2011-05-22  Bruno Haible  <bruno@clisp.org>
13057
13058         strpbrk: Move AC_LIBOBJ invocations to module description.
13059         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13060         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13061         here...
13062         * modules/strpbrk (configure.ac): ... to here.
13063
13064 2011-05-22  Bruno Haible  <bruno@clisp.org>
13065
13066         strnlen: Move AC_LIBOBJ invocations to module description.
13067         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13068         invocations from here...
13069         * modules/strnlen (configure.ac): ... to here.
13070
13071 2011-05-22  Bruno Haible  <bruno@clisp.org>
13072
13073         strndup: Move AC_LIBOBJ invocations to module description.
13074         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13075         invocations from here...
13076         * modules/strndup (configure.ac): ... to here.
13077         (Depends-on): Update conditions.
13078
13079 2011-05-22  Bruno Haible  <bruno@clisp.org>
13080
13081         strncat: Move AC_LIBOBJ invocations to module description.
13082         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13083         invocations from here...
13084         * modules/strncat (configure.ac): ... to here.
13085
13086 2011-05-22  Bruno Haible  <bruno@clisp.org>
13087
13088         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13089         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13090         invocations from here...
13091         * modules/strdup (configure.ac): ... to here.
13092         * modules/strdup-posix (configure.ac): ... and here.
13093
13094 2011-05-22  Bruno Haible  <bruno@clisp.org>
13095
13096         strcspn: Move AC_LIBOBJ invocations to module description.
13097         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13099         here...
13100         * modules/strcspn (configure.ac): ... to here.
13101
13102 2011-05-22  Bruno Haible  <bruno@clisp.org>
13103
13104         strchrnul: Move AC_LIBOBJ invocations to module description.
13105         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13106         gl_PREREQ_STRCHRNUL invocations from here...
13107         * modules/strchrnul (configure.ac): ... to here.
13108
13109 2011-05-22  Bruno Haible  <bruno@clisp.org>
13110
13111         strcasestr*: Move AC_LIBOBJ invocations to module description.
13112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13113         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13114         * modules/strcasestr-simple (configure.ac): ... to here.
13115         * modules/strcasestr (configure.ac): ... and here.
13116
13117 2011-05-22  Bruno Haible  <bruno@clisp.org>
13118
13119         strcase: Move AC_LIBOBJ invocations to module description.
13120         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13121         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13122         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13123         gl_PREREQ_STRNCASECMP invocations from here...
13124         * modules/strcase (configure.ac): ... to here.
13125
13126 2011-05-22  Bruno Haible  <bruno@clisp.org>
13127
13128         stpncpy: Move AC_LIBOBJ invocations to module description.
13129         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13130         here...
13131         * modules/stpncpy (configure.ac): ... to here.
13132
13133 2011-05-22  Bruno Haible  <bruno@clisp.org>
13134
13135         stpcpy: Move AC_LIBOBJ invocations to module description.
13136         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13138         here...
13139         * modules/stpcpy (configure.ac): ... to here.
13140
13141 2011-05-21  Bruno Haible  <bruno@clisp.org>
13142
13143         stat: Move AC_LIBOBJ invocations to module description.
13144         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13145         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13146         here...
13147         * modules/stat (configure.ac): ... to here.
13148
13149 2011-05-21  Bruno Haible  <bruno@clisp.org>
13150
13151         sleep: Move AC_LIBOBJ invocations to module description.
13152         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13153         * modules/sleep (configure.ac): ... to here.
13154
13155 2011-05-21  Bruno Haible  <bruno@clisp.org>
13156
13157         signbit: Move AC_LIBOBJ invocations to module description.
13158         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13159         * modules/signbit (configure.ac): ... to here.
13160
13161 2011-05-21  Bruno Haible  <bruno@clisp.org>
13162
13163         sigprocmask: Move AC_LIBOBJ invocations to module description.
13164         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13165         gl_PREREQ_SIGPROMASK invocations from here...
13166         * modules/sigprocmask (configure.ac): ... to here.
13167
13168 2011-05-21  Bruno Haible  <bruno@clisp.org>
13169
13170         sigaction: Move AC_LIBOBJ invocations to module description.
13171         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13172         gl_PREREQ_SIGACTION invocations from here...
13173         * modules/sigaction (configure.ac): ... to here.
13174
13175 2011-05-21  Bruno Haible  <bruno@clisp.org>
13176
13177         sig2str: Move AC_LIBOBJ invocations to module description.
13178         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13180         here...
13181         * modules/sig2str (configure.ac): ... to here.
13182
13183 2011-05-21  Bruno Haible  <bruno@clisp.org>
13184
13185         setlocale: Move AC_LIBOBJ invocations to module description.
13186         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13187         gl_PREREQ_SETLOCALE invocations from here...
13188         * modules/setlocale (configure.ac): ... to here.
13189
13190 2011-05-21  Bruno Haible  <bruno@clisp.org>
13191
13192         unsetenv: Move AC_LIBOBJ invocations to module description.
13193         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13194         and gl_PREREQ_UNSETENV invocations from here...
13195         * modules/unsetenv (configure.ac): ... to here.
13196         (Depends-on): Update.
13197
13198 2011-05-21  Bruno Haible  <bruno@clisp.org>
13199
13200         setenv: Move AC_LIBOBJ invocations to module description.
13201         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13202         here...
13203         * modules/setenv (configure.ac): ... to here.
13204
13205 2011-05-21  Bruno Haible  <bruno@clisp.org>
13206
13207         selinux-h: Move AC_LIBOBJ invocations to module description.
13208         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13209         AC_LIBOBJ invocation from here...
13210         * modules/selinux-h (configure.ac): ... to here.
13211
13212 2011-05-21  Bruno Haible  <bruno@clisp.org>
13213
13214         select: Respect rules for use of AC_LIBOBJ.
13215         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13216         here...
13217         * modules/select (configure.ac): ... to here.
13218
13219 2011-05-21  Bruno Haible  <bruno@clisp.org>
13220
13221         scandir: Move AC_LIBOBJ invocations to module description.
13222         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13223         invocations from here...
13224         * modules/scandir (configure.ac): ... to here.
13225
13226 2011-05-21  Bruno Haible  <bruno@clisp.org>
13227
13228         rpmatch: Move AC_LIBOBJ invocations to module description.
13229         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13231         here...
13232         * modules/rpmatch (configure.ac): ... to here.
13233
13234 2011-05-21  Bruno Haible  <bruno@clisp.org>
13235
13236         rmdir: Respect rules for use of AC_LIBOBJ.
13237         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13238         * modules/rmdir (configure.ac): ... to here.
13239
13240 2011-05-21  Bruno Haible  <bruno@clisp.org>
13241
13242         renameat: Move AC_LIBOBJ invocations to module description.
13243         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13244         here...
13245         * modules/renameat (configure.ac): ... to here.
13246
13247 2011-05-21  Bruno Haible  <bruno@clisp.org>
13248
13249         rename: Respect rules for use of AC_LIBOBJ.
13250         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13251         here...
13252         * modules/rename (configure.ac): ... to here.
13253
13254 2011-05-21  Bruno Haible  <bruno@clisp.org>
13255
13256         remove: Move AC_LIBOBJ invocations to module description.
13257         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13258         here...
13259         * modules/remove (configure.ac): ... to here.
13260
13261 2011-05-21  Bruno Haible  <bruno@clisp.org>
13262
13263         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13264         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13265         macro.
13266         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13267         * modules/relocatable-lib (configure.ac): ... to here.
13268         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13269         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13270
13271 2011-05-21  Bruno Haible  <bruno@clisp.org>
13272
13273         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13274         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13275         here...
13276         * modules/relocatable-prog (configure.ac): ... to here.
13277
13278 2011-05-21  Bruno Haible  <bruno@clisp.org>
13279
13280         regex: Move AC_LIBOBJ invocations to module description.
13281         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13282         invocations from here...
13283         * modules/regex (configure.ac): ... to here.
13284
13285 2011-05-21  Bruno Haible  <bruno@clisp.org>
13286
13287         realloc-*: Move AC_LIBOBJ invocations to module description.
13288         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13289         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13290         AC_LIBOBJ invocations from here...
13291         * modules/realloc-gnu (configure.ac): ... to here.
13292         * modules/realloc-posix (configure.ac): ... and here.
13293
13294 2011-05-21  Bruno Haible  <bruno@clisp.org>
13295
13296         readutmp: Move AC_LIBOBJ invocations to module description.
13297         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13298         * modules/readutmp (configure.ac): ... to here.
13299
13300 2011-05-21  Bruno Haible  <bruno@clisp.org>
13301
13302         readlinkat: Move AC_LIBOBJ invocations to module description.
13303         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13304         here...
13305         * modules/readlinkat (configure.ac): ... to here.
13306
13307 2011-05-21  Bruno Haible  <bruno@clisp.org>
13308
13309         readlink: Move AC_LIBOBJ invocations to module description.
13310         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13311         gl_PREREQ_READLINK invocations from here...
13312         * modules/readlink (configure.ac): ... to here.
13313
13314 2011-05-21  Bruno Haible  <bruno@clisp.org>
13315
13316         readline: Move AC_LIBOBJ invocations to module description.
13317         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13318         gl_PREREQ_READLINE invocations from here...
13319         * modules/readline (configure.ac): ... to here.
13320
13321 2011-05-21  Bruno Haible  <bruno@clisp.org>
13322
13323         read: Move AC_LIBOBJ invocations to module description.
13324         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13325         * modules/read (configure.ac): ... to here.
13326
13327 2011-05-21  Bruno Haible  <bruno@clisp.org>
13328
13329         rawmemchr: Move AC_LIBOBJ invocations to module description.
13330         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13332         from here...
13333         * modules/rawmemchr (configure.ac): ... to here.
13334
13335 2011-05-21  Bruno Haible  <bruno@clisp.org>
13336
13337         random_r: Move AC_LIBOBJ invocations to module description.
13338         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13339         gl_PREREQ_RANDOM_R invocations from here...
13340         * modules/random_r (configure.ac): ... to here.
13341
13342 2011-05-21  Bruno Haible  <bruno@clisp.org>
13343
13344         pwrite: Move AC_LIBOBJ invocations to module description.
13345         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13346         * modules/pwrite (configure.ac): ... to here.
13347
13348 2011-05-21  Bruno Haible  <bruno@clisp.org>
13349
13350         putenv: Move AC_LIBOBJ invocations to module description.
13351         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13352         * modules/putenv (configure.ac): ... to here.
13353
13354 2011-05-21  Bruno Haible  <bruno@clisp.org>
13355
13356         login_tty: Move AC_LIBOBJ invocations to module description.
13357         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13358         * modules/login_tty (configure.ac): ... to here.
13359
13360 2011-05-21  Bruno Haible  <bruno@clisp.org>
13361
13362         openpty: Move AC_LIBOBJ invocations to module description.
13363         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13364         * modules/openpty (configure.ac): ... to here.
13365
13366 2011-05-21  Bruno Haible  <bruno@clisp.org>
13367
13368         forkpty: Move AC_LIBOBJ invocations to module description.
13369         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13370         * modules/forkpty (configure.ac): ... to here.
13371
13372 2011-05-21  Bruno Haible  <bruno@clisp.org>
13373
13374         ptsname: Move AC_LIBOBJ invocations to module description.
13375         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13376         invocations from here...
13377         * modules/ptsname (configure.ac): ... to here.
13378
13379 2011-05-21  Bruno Haible  <bruno@clisp.org>
13380
13381         pread: Move AC_LIBOBJ invocations to module description.
13382         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13383         * modules/pread (configure.ac): ... to here.
13384
13385 2011-05-21  Bruno Haible  <bruno@clisp.org>
13386
13387         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13388         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13389         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13390         * modules/posix_spawn (configure.ac): ... to here.
13391         * modules/posix_spawnp (configure.ac): ... and here.
13392
13393 2011-05-21  Bruno Haible  <bruno@clisp.org>
13394
13395         popen: Move AC_LIBOBJ invocations to module description.
13396         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13397         invocations from here...
13398         * modules/popen (configure.ac): ... to here.
13399
13400 2011-05-21  Bruno Haible  <bruno@clisp.org>
13401
13402         poll: Move AC_LIBOBJ invocations to module description.
13403         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13404         invocations from here...
13405         * modules/poll (configure.ac): ... to here.
13406
13407 2011-05-21  Bruno Haible  <bruno@clisp.org>
13408
13409         pipe-posix: Move AC_LIBOBJ invocations to module description.
13410         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13411         * modules/pipe-posix (configure.ac): ... to here.
13412
13413 2011-05-21  Bruno Haible  <bruno@clisp.org>
13414
13415         openat: Respect rules for use of AC_LIBOBJ.
13416         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13417         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13418         * modules/openat (configure.ac): ... to here.
13419
13420 2011-05-21  Bruno Haible  <bruno@clisp.org>
13421
13422         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13423         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13424         invocation from here...
13425         * modules/obstack-printf (configure.ac): ... to here.
13426         * modules/obstack-printf-posix (configure.ac): ... and here.
13427
13428 2011-05-21  Bruno Haible  <bruno@clisp.org>
13429
13430         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13431         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13432         from here...
13433         * modules/nl_langinfo (configure.ac): ... to here.
13434
13435 2011-05-21  Bruno Haible  <bruno@clisp.org>
13436
13437         nanosleep: Move AC_LIBOBJ invocations to module description.
13438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13439         gl_PREREQ_NANOSLEEP invocations from here...
13440         * modules/nanosleep (configure.ac): ... to here.
13441
13442 2011-05-21  Bruno Haible  <bruno@clisp.org>
13443
13444         mountlist: Move AC_LIBOBJ invocations to module description.
13445         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13446         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13447         * modules/mountlist (configure.ac): ... to here.
13448
13449 2011-05-21  Bruno Haible  <bruno@clisp.org>
13450
13451         mktime: Respect rules for use of AC_LIBOBJ.
13452         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13453         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13454         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13455         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13456         * modules/mktime (configure.ac): ... to here.
13457         * modules/mktime-internal (configure.ac): ... and here.
13458         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13459
13460 2011-05-21  Bruno Haible  <bruno@clisp.org>
13461
13462         mkstemps: Move AC_LIBOBJ invocations to module description.
13463         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13464         here...
13465         * modules/mkstemps (configure.ac): ... to here.
13466
13467 2011-05-21  Bruno Haible  <bruno@clisp.org>
13468
13469         mkstemp: Move AC_LIBOBJ invocations to module description.
13470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13471         gl_PREREQ_MKSTEMP invocations from here...
13472         * modules/mkstemp (configure.ac): ... to here.
13473
13474 2011-05-21  Bruno Haible  <bruno@clisp.org>
13475
13476         mkostemps: Move AC_LIBOBJ invocations to module description.
13477         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13478         here...
13479         * modules/mkostemps (configure.ac): ... to here.
13480
13481 2011-05-21  Bruno Haible  <bruno@clisp.org>
13482
13483         mkostemp: Move AC_LIBOBJ invocations to module description.
13484         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13485         gl_PREREQ_MKOSTEMP invocations from here...
13486         * modules/mkostemp (configure.ac): ... to here.
13487
13488 2011-05-21  Bruno Haible  <bruno@clisp.org>
13489
13490         mknod: Move AC_LIBOBJ invocations to module description.
13491         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13492         * modules/mknod (configure.ac): ... to here.
13493
13494 2011-05-21  Bruno Haible  <bruno@clisp.org>
13495
13496         mkfifoat: Move AC_LIBOBJ invocations to module description.
13497         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13498         here...
13499         * modules/mkfifoat (configure.ac): ... to here.
13500
13501 2011-05-21  Bruno Haible  <bruno@clisp.org>
13502
13503         mkfifo: Respect rules for use of AC_LIBOBJ.
13504         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13505         here...
13506         * modules/mkfifo (configure.ac): ... to here.
13507
13508 2011-05-21  Bruno Haible  <bruno@clisp.org>
13509
13510         mkdtemp: Move AC_LIBOBJ invocations to module description.
13511         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13512         invocations from here...
13513         * modules/mkdtemp (configure.ac): ... to here.
13514
13515 2011-05-21  Bruno Haible  <bruno@clisp.org>
13516
13517         mkdir: Move AC_LIBOBJ invocations to module description.
13518         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13519         * modules/mkdir (configure.ac): ... to here.
13520
13521 2011-05-21  Bruno Haible  <bruno@clisp.org>
13522
13523         memset: Move AC_LIBOBJ invocations to module description.
13524         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13525         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13526         here...
13527         * modules/memset (configure.ac): ... to here.
13528
13529 2011-05-21  Bruno Haible  <bruno@clisp.org>
13530
13531         memrchr: Move AC_LIBOBJ invocations to module description.
13532         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13533         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13534         here...
13535         * modules/memrchr (configure.ac): ... to here.
13536
13537 2011-05-21  Bruno Haible  <bruno@clisp.org>
13538
13539         mempcpy: Move AC_LIBOBJ invocations to module description.
13540         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13541         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13542         here...
13543         * modules/mempcpy (configure.ac): ... to here.
13544
13545 2011-05-21  Bruno Haible  <bruno@clisp.org>
13546
13547         memmove: Move AC_LIBOBJ invocations to module description.
13548         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13549         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13550         here...
13551         * modules/memmove (configure.ac): ... to here.
13552
13553 2011-05-21  Bruno Haible  <bruno@clisp.org>
13554
13555         memmem*: Move AC_LIBOBJ invocations to module description.
13556         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13557         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13558         here...
13559         (gl_FUNC_MEMMEM): ... and here...
13560         * modules/memmem-simple (configure.ac): ... to here.
13561         * modules/memmem (configure.ac): ... and here.
13562
13563 2011-05-21  Bruno Haible  <bruno@clisp.org>
13564
13565         memcpy: Move AC_LIBOBJ invocations to module description.
13566         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13568         here...
13569         * modules/memcpy (configure.ac): ... to here.
13570
13571 2011-05-21  Bruno Haible  <bruno@clisp.org>
13572
13573         memcmp: Simplify autoconf macro.
13574         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13575         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13576         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13577
13578 2011-05-21  Bruno Haible  <bruno@clisp.org>
13579
13580         memcmp: Move AC_LIBOBJ invocations to module description.
13581         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13582         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13583         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13584         * modules/memcmp (configure.ac): ... to here.
13585         (Depends-on): Update conditions.
13586
13587 2011-05-21  Bruno Haible  <bruno@clisp.org>
13588
13589         memchr: Respect rules for use of AC_LIBOBJ.
13590         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13591         invocations from here...
13592         * modules/memchr (configure.ac): ... to here.
13593
13594 2011-05-21  Bruno Haible  <bruno@clisp.org>
13595
13596         mbtowc: Move AC_LIBOBJ invocations to module description.
13597         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13598         invocations from here...
13599         * modules/mbtowc (configure.ac): ... to here.
13600
13601 2011-05-21  Bruno Haible  <bruno@clisp.org>
13602
13603         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13604         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13605         gl_PREREQ_MBSRTOWCS invocations from here...
13606         * modules/mbsrtowcs (configure.ac): ... to here.
13607
13608 2011-05-21  Bruno Haible  <bruno@clisp.org>
13609
13610         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13611         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13612         gl_PREREQ_MBSNRTOWCS invocations from here...
13613         * modules/mbsnrtowcs (configure.ac): ... to here.
13614
13615 2011-05-21  Bruno Haible  <bruno@clisp.org>
13616
13617         mbsinit: Move AC_LIBOBJ invocations to module description.
13618         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13619         invocations from here...
13620         * modules/mbsinit (configure.ac): ... to here.
13621
13622 2011-05-21  Bruno Haible  <bruno@clisp.org>
13623
13624         mbrlen: Move AC_LIBOBJ invocations to module description.
13625         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13626         invocations from here...
13627         * modules/mbrlen (configure.ac): ... to here.
13628
13629 2011-05-21  Bruno Haible  <bruno@clisp.org>
13630
13631         mbrtowc: Respect rules for use of AC_LIBOBJ.
13632         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13633         invocations from here...
13634         * modules/mbrtowc (configure.ac): ... to here.
13635
13636 2011-05-21  Bruno Haible  <bruno@clisp.org>
13637
13638         malloc-*: Move AC_LIBOBJ invocations to module description.
13639         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13640         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13641         AC_LIBOBJ invocations from here...
13642         * modules/malloc-gnu (configure.ac): ... to here.
13643         * modules/malloc-posix (configure.ac): ... and here.
13644
13645 2011-05-21  Bruno Haible  <bruno@clisp.org>
13646
13647         lstat, openat: Respect rules for use of AC_LIBOBJ.
13648         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13649         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13650         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13651         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13652         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13653         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13654         here.
13655         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13656
13657 2011-05-21  Bruno Haible  <bruno@clisp.org>
13658
13659         lseek: Move AC_LIBOBJ invocations to module description.
13660         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13661         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13662         * modules/lseek (configure.ac): ... to here.
13663
13664 2011-05-21  Bruno Haible  <bruno@clisp.org>
13665
13666         linkat: Move AC_LIBOBJ invocations to module description.
13667         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13668         here...
13669         * modules/linkat (configure.ac): ... to here.
13670
13671 2011-05-21  Bruno Haible  <bruno@clisp.org>
13672
13673         link: Respect rules for use of AC_LIBOBJ.
13674         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13675         * modules/link (configure.ac): ... to here.
13676
13677 2011-05-21  Bruno Haible  <bruno@clisp.org>
13678
13679         lchown: Move AC_LIBOBJ invocations to module description.
13680         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13681         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13682         * modules/lchown (configure.ac): ... to here.
13683
13684 2011-05-21  Bruno Haible  <bruno@clisp.org>
13685
13686         iswctype: Move AC_LIBOBJ invocations to module description.
13687         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13688         here...
13689         * modules/iswctype (configure.ac): ... to here.
13690
13691 2011-05-21  Bruno Haible  <bruno@clisp.org>
13692
13693         iswblank: Move AC_LIBOBJ invocations to module description.
13694         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13695         here...
13696         * modules/iswblank (configure.ac): ... to here.
13697
13698 2011-05-21  Bruno Haible  <bruno@clisp.org>
13699
13700         atanl: Move AC_LIBOBJ invocations to module description.
13701         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13702         * modules/atanl (configure.ac): ... to here.
13703
13704 2011-05-21  Bruno Haible  <bruno@clisp.org>
13705
13706         acosl: Move AC_LIBOBJ invocations to module description.
13707         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13708         * modules/acosl (configure.ac): ... to here.
13709
13710 2011-05-21  Bruno Haible  <bruno@clisp.org>
13711
13712         asinl: Respect rules for use of AC_LIBOBJ.
13713         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13714         * modules/asinl (configure.ac): ... to here.
13715
13716 2011-05-21  Bruno Haible  <bruno@clisp.org>
13717
13718         tanl: Move AC_LIBOBJ invocations to module description.
13719         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13720         * modules/tanl (configure.ac): ... to here.
13721
13722 2011-05-21  Bruno Haible  <bruno@clisp.org>
13723
13724         cosl: Move AC_LIBOBJ invocations to module description.
13725         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13726         * modules/cosl (configure.ac): ... to here.
13727
13728 2011-05-21  Bruno Haible  <bruno@clisp.org>
13729
13730         sinl: Move AC_LIBOBJ invocations to module description.
13731         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13732         * modules/sinl (configure.ac): ... to here.
13733
13734 2011-05-21  Bruno Haible  <bruno@clisp.org>
13735
13736         logl: Move AC_LIBOBJ invocations to module description.
13737         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13738         * modules/logl (configure.ac): ... to here.
13739
13740 2011-05-21  Bruno Haible  <bruno@clisp.org>
13741
13742         expl: Move AC_LIBOBJ invocations to module description.
13743         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13744         * modules/expl (configure.ac): ... to here.
13745
13746 2011-05-21  Bruno Haible  <bruno@clisp.org>
13747
13748         roundl: Move AC_LIBOBJ invocations to module description.
13749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13750         * modules/roundl (configure.ac): ... to here.
13751
13752 2011-05-21  Bruno Haible  <bruno@clisp.org>
13753
13754         round: Move AC_LIBOBJ invocations to module description.
13755         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13756         * modules/round (configure.ac): ... to here.
13757
13758 2011-05-21  Bruno Haible  <bruno@clisp.org>
13759
13760         roundf: Move AC_LIBOBJ invocations to module description.
13761         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13762         * modules/roundf (configure.ac): ... to here.
13763
13764 2011-05-21  Bruno Haible  <bruno@clisp.org>
13765
13766         truncl: Move AC_LIBOBJ invocations to module description.
13767         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13768         * modules/truncl (configure.ac): ... to here.
13769
13770 2011-05-21  Bruno Haible  <bruno@clisp.org>
13771
13772         trunc: Move AC_LIBOBJ invocations to module description.
13773         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13774         * modules/trunc (configure.ac): ... to here.
13775
13776 2011-05-21  Bruno Haible  <bruno@clisp.org>
13777
13778         truncf: Move AC_LIBOBJ invocations to module description.
13779         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13780         * modules/truncf (configure.ac): ... to here.
13781
13782 2011-05-21  Bruno Haible  <bruno@clisp.org>
13783
13784         ceill: Move AC_LIBOBJ invocations to module description.
13785         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13786         * modules/ceill (configure.ac): ... to here.
13787
13788 2011-05-21  Bruno Haible  <bruno@clisp.org>
13789
13790         ceil: Move AC_LIBOBJ invocations to module description.
13791         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13792         * modules/ceil (configure.ac): ... to here.
13793
13794 2011-05-21  Bruno Haible  <bruno@clisp.org>
13795
13796         ceilf: Move AC_LIBOBJ invocations to module description.
13797         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13798         * modules/ceilf (configure.ac): ... to here.
13799
13800 2011-05-21  Bruno Haible  <bruno@clisp.org>
13801
13802         floorl: Respect rules for use of AC_LIBOBJ.
13803         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13804         * modules/floorl (configure.ac): ... to here.
13805
13806 2011-05-21  Bruno Haible  <bruno@clisp.org>
13807
13808         floor: Respect rules for use of AC_LIBOBJ.
13809         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13810         * modules/floor (configure.ac): ... to here.
13811
13812 2011-05-21  Bruno Haible  <bruno@clisp.org>
13813
13814         floorf: Move AC_LIBOBJ invocations to module description.
13815         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13816         * modules/floorf (configure.ac): ... to here.
13817
13818 2011-05-20  Bruno Haible  <bruno@clisp.org>
13819
13820         sqrtl: Respect rules for use of AC_LIBOBJ.
13821         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13822         * modules/sqrtl (configure.ac): ... to here.
13823
13824 2011-05-20  Bruno Haible  <bruno@clisp.org>
13825
13826         ldexpl: Respect rules for use of AC_LIBOBJ.
13827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13828         * modules/ldexpl (configure.ac): ... to here.
13829
13830 2011-05-20  Bruno Haible  <bruno@clisp.org>
13831
13832         frexpl*: Respect rules for use of AC_LIBOBJ.
13833         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13834         invocation from here...
13835         * modules/frexpl (configure.ac): ... to here.
13836         * modules/frexpl-nolibm (configure.ac): ... and here.
13837
13838 2011-05-20  Bruno Haible  <bruno@clisp.org>
13839
13840         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13841         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13842         invocation from here...
13843         * modules/frexp (configure.ac): ... to here.
13844         * modules/frexp-nolibm (configure.ac): ... and here.
13845
13846 2011-05-20  Bruno Haible  <bruno@clisp.org>
13847
13848         isnan: Respect rules for use of AC_LIBOBJ.
13849         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13850         invocations here.
13851         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13852         REPLACE_ISNAN.
13853         * modules/isnand (configure.ac): Likewise.
13854         * modules/isnanl (configure.ac): Likewise.
13855
13856 2011-05-20  Bruno Haible  <bruno@clisp.org>
13857
13858         isnanl*: Respect rules for use of AC_LIBOBJ.
13859         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13860         invocation from here...
13861         * modules/isnanl (configure.ac): ... to here.
13862         * modules/isnanl-nolibm (configure.ac): ... and here.
13863
13864 2011-05-20  Bruno Haible  <bruno@clisp.org>
13865
13866         isnand*: Move AC_LIBOBJ invocations to module description.
13867         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13868         invocation from here...
13869         * modules/isnand (configure.ac): ... to here.
13870         * modules/isnand-nolibm (configure.ac): ... and here.
13871
13872 2011-05-20  Bruno Haible  <bruno@clisp.org>
13873
13874         isnanf*: Move AC_LIBOBJ invocations to module description.
13875         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13876         invocation from here...
13877         * modules/isnanf (configure.ac): ... to here.
13878         * modules/isnanf-nolibm (configure.ac): ... and here.
13879
13880 2011-05-20  Bruno Haible  <bruno@clisp.org>
13881
13882         isnan*: Separate the AC_LIBOBJ invocations.
13883         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13884         AC_LIBOBJ invocation.
13885         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13886         here.
13887         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13888         AC_LIBOBJ invocation.
13889         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13890         here.
13891         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13892         AC_LIBOBJ invocation.
13893         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13894         here.
13895         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13896
13897 2011-05-08  Bruno Haible  <bruno@clisp.org>
13898
13899         isinf: Move AC_LIBOBJ invocations to module description.
13900         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13901         * modules/isinf (configure.ac): ... to here.
13902
13903 2011-05-08  Bruno Haible  <bruno@clisp.org>
13904
13905         isfinite: Move AC_LIBOBJ invocations to module description.
13906         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13907         * modules/isfinite (configure.ac): ... to here.
13908
13909 2011-05-08  Bruno Haible  <bruno@clisp.org>
13910
13911         isblank: Move AC_LIBOBJ invocations to module description.
13912         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13913         here...
13914         * modules/isblank (configure.ac): ... to here.
13915
13916 2011-05-08  Bruno Haible  <bruno@clisp.org>
13917
13918         isapipe: Move AC_LIBOBJ invocations to module description.
13919         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13920         gl_PREREQ_ISAPIPE invocations from here...
13921         * modules/isapipe (configure.ac): ... to here.
13922         (Depends-on): Update condition.
13923
13924 2011-05-08  Bruno Haible  <bruno@clisp.org>
13925
13926         ioctl: Move AC_LIBOBJ invocations to module description.
13927         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13928         invocations from here...
13929         * modules/ioctl (configure.ac): ... to here.
13930         (Depends-on): Update condition.
13931
13932 2011-05-08  Bruno Haible  <bruno@clisp.org>
13933
13934         imaxdiv: Move AC_LIBOBJ invocations to module description.
13935         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13936         invocations from here...
13937         * modules/imaxdiv (configure.ac): ... to here.
13938
13939 2011-05-08  Bruno Haible  <bruno@clisp.org>
13940
13941         imaxabs: Move AC_LIBOBJ invocations to module description.
13942         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13943         invocations from here...
13944         * modules/imaxabs (configure.ac): ... to here.
13945
13946 2011-05-08  Bruno Haible  <bruno@clisp.org>
13947
13948         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13950         AC_LIBOBJ invocations from here...
13951         * modules/getaddrinfo (configure.ac): ... to here.
13952         (Depends-on): Add conditions.
13953
13954 2011-05-08  Bruno Haible  <bruno@clisp.org>
13955
13956         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13957         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13958         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13959         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13960         (gl_PREREQ_INET_PTON): ... from here.
13961         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13962         gl_PREREQ_INET_PTON here.
13963         (Depends-on): Update condition.
13964
13965 2011-05-08  Bruno Haible  <bruno@clisp.org>
13966
13967         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13968         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13969         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13970         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13971         (gl_PREREQ_INET_NTOP): ... from here.
13972         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13973         gl_PREREQ_INET_NTOP here.
13974         (Depends-on): Update condition.
13975
13976 2011-05-08  Bruno Haible  <bruno@clisp.org>
13977
13978         iconv_open: Move AC_LIBOBJ invocations to module description.
13979         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13980         AC_LIBOBJ invocations from here...
13981         * modules/iconv_open (configure.ac): ... to here.
13982
13983 2011-05-08  Bruno Haible  <bruno@clisp.org>
13984
13985         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13986         If module 'iconv_open' is among the main modules and module
13987         'iconv_open-utf' is among the tests dependencies, then
13988         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13989         return the special iconv_t values. Therefore iconv() and iconv_close()
13990         must support these special iconv_t values, already in lib, not only in
13991         tests.
13992         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13993         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13994         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13995         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13996         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13997         (Depends-on): Add the dependencies of iconv_open-utf.
13998         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13999         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14000         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14001
14002 2011-05-08  Bruno Haible  <bruno@clisp.org>
14003
14004         group-member: Move AC_LIBOBJ invocations to module description.
14005         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14006         gl_PREREQ_GROUP_MEMBER invocations from here...
14007         * modules/group-member (configure.ac): ... to here.
14008
14009 2011-05-08  Bruno Haible  <bruno@clisp.org>
14010
14011         grantpt: Move AC_LIBOBJ invocations to module description.
14012         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14013         invocations from here...
14014         * modules/grantpt (configure.ac): ... to here.
14015
14016 2011-05-08  Bruno Haible  <bruno@clisp.org>
14017
14018         glob: Move AC_LIBOBJ invocations to module description.
14019         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14020         from here...
14021         * modules/glob (configure.ac): ... to here.
14022
14023 2011-05-08  Bruno Haible  <bruno@clisp.org>
14024
14025         getusershell: Move AC_LIBOBJ invocations to module description.
14026         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14027         Move AC_LIBOBJ invocation from here...
14028         * modules/getusershell (configure.ac): ... to here.
14029         (Depends-on): Update condition.
14030
14031 2011-05-08  Bruno Haible  <bruno@clisp.org>
14032
14033         gettimeofday: Move AC_LIBOBJ invocations to module description.
14034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14035         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14036         gl_PREREQ_GETTIMEOFDAY invocations from here...
14037         * modules/gettimeofday (configure.ac): ... to here.
14038
14039 2011-05-08  Bruno Haible  <bruno@clisp.org>
14040
14041         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14042         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14043         just gl_FUNC_TZSET.
14044         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14045         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14046         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14047         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14048
14049 2011-05-08  Bruno Haible  <bruno@clisp.org>
14050
14051         getsubopt: Move AC_LIBOBJ invocations to module description.
14052         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14053         gl_PREREQ_GETSUBOPT invocations from here...
14054         * modules/getsubopt (configure.ac): ... to here.
14055
14056 2011-05-08  Bruno Haible  <bruno@clisp.org>
14057
14058         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14059         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14060         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14061         * modules/getpass-gnu (configure.ac): ... to here.
14062
14063 2011-05-08  Bruno Haible  <bruno@clisp.org>
14064
14065         getpass: Move AC_LIBOBJ invocations to module description.
14066         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14067         gl_PREREQ_GETPASS invocations from here...
14068         * modules/getpass (configure.ac): ... to here.
14069
14070 2011-05-08  Bruno Haible  <bruno@clisp.org>
14071
14072         getpagesize: Move AC_LIBOBJ invocations to module description.
14073         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14074         from here...
14075         * modules/getpagesize (configure.ac): ... to here.
14076
14077 2011-05-08  Bruno Haible  <bruno@clisp.org>
14078
14079         getopt: Move AC_LIBOBJ invocations to module description.
14080         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14081         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14082         invocations from here...
14083         * modules/getopt-gnu (configure.ac): ... to here.
14084         * modules/getopt-posix (configure.ac): ... and here.
14085         (Depends-on): Update condition.
14086
14087 2011-05-08  Bruno Haible  <bruno@clisp.org>
14088
14089         getopt, argp: Respect rules for use of AC_LIBOBJ.
14090         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14091         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14092         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14093         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14094
14095 2011-05-08  Bruno Haible  <bruno@clisp.org>
14096
14097         getlogin_r: Move AC_LIBOBJ invocations to module description.
14098         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14099         gl_PREREQ_GETLOGIN_R invocations from here...
14100         * modules/getlogin_r (configure.ac): ... to here.
14101
14102 2011-05-08  Bruno Haible  <bruno@clisp.org>
14103
14104         getlogin: Move AC_LIBOBJ invocations to module description.
14105         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14106         here...
14107         * modules/getlogin (configure.ac): ... to here.
14108
14109 2011-05-08  Bruno Haible  <bruno@clisp.org>
14110
14111         getloadavg: Move AC_LIBOBJ invocations to module description.
14112         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14113         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14114         * modules/getloadavg (configure.ac): ... to here.
14115
14116 2011-05-08  Bruno Haible  <bruno@clisp.org>
14117
14118         gethrxtime: Move AC_LIBOBJ invocations to module description.
14119         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14120         LIB_GETHRXTIME from here...
14121         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14122         invocations from here...
14123         * modules/gethrxtime (configure.ac): ... to here.
14124
14125 2011-05-08  Bruno Haible  <bruno@clisp.org>
14126
14127         gethostname: Move AC_LIBOBJ invocations to module description.
14128         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14129         gl_PREREQ_GETHOSTNAME invocations from here...
14130         * modules/gethostname (configure.ac): ... to here.
14131
14132 2011-05-08  Bruno Haible  <bruno@clisp.org>
14133
14134         getgroups: Move AC_LIBOBJ invocations to module description.
14135         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14136         here...
14137         * modules/getgroups (configure.ac): ... to here.
14138
14139 2011-05-08  Bruno Haible  <bruno@clisp.org>
14140
14141         getdtablesize: Move AC_LIBOBJ invocations to module description.
14142         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14143         invocation from here...
14144         * modules/getdtablesize (configure.ac): ... to here.
14145
14146 2011-05-08  Bruno Haible  <bruno@clisp.org>
14147
14148         getdomainname: Move AC_LIBOBJ invocations to module description.
14149         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14150         gl_PREREQ_GETDOMAINNAME invocations from here...
14151         * modules/getdomainname (configure.ac): ... to here.
14152
14153 2011-05-08  Bruno Haible  <bruno@clisp.org>
14154
14155         getline: Move AC_LIBOBJ invocations to module description.
14156         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14157         invocations from here...
14158         * modules/getline (configure.ac): ... to here.
14159
14160 2011-05-08  Bruno Haible  <bruno@clisp.org>
14161
14162         getline: Simplify.
14163         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14164         It's already handled through the module dependency.
14165
14166 2011-05-08  Bruno Haible  <bruno@clisp.org>
14167
14168         getdelim: Move AC_LIBOBJ invocations to module description.
14169         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14170         and gl_PREREQ_GETDELIM invocations from here...
14171         * modules/getdelim (configure.ac): ... to here.
14172         (Depends-on): Fix condition.
14173
14174 2011-05-08  Bruno Haible  <bruno@clisp.org>
14175
14176         getcwd: Move AC_LIBOBJ invocations to module description.
14177         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14178         invocations from here...
14179         * modules/getcwd (configure.ac): ... to here.
14180
14181 2011-05-08  Bruno Haible  <bruno@clisp.org>
14182
14183         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14184         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14185         here...
14186         * modules/getcwd-lgpl (configure.ac): ... to here.
14187
14188 2011-05-07  Bruno Haible  <bruno@clisp.org>
14189
14190         crypto/gc: Move AC_LIBOBJ invocations to module description.
14191         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14192         * modules/crypto/gc (configure.ac): ... to here.
14193
14194 2011-05-07  Bruno Haible  <bruno@clisp.org>
14195
14196         fwriting: Move AC_LIBOBJ invocations to module description.
14197         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14198         here...
14199         * modules/fwriting (configure.ac): ... to here.
14200
14201 2011-05-07  Bruno Haible  <bruno@clisp.org>
14202
14203         fwritable: Move AC_LIBOBJ invocations to module description.
14204         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14205         here...
14206         * modules/fwritable (configure.ac): ... to here.
14207
14208 2011-05-07  Bruno Haible  <bruno@clisp.org>
14209
14210         futimens: Move AC_LIBOBJ invocations to module description.
14211         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14212         here...
14213         * modules/futimens (configure.ac): ... to here.
14214
14215 2011-05-07  Bruno Haible  <bruno@clisp.org>
14216
14217         ftruncate: Move AC_LIBOBJ invocations to module description.
14218         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14219         gl_PREREQ_FTRUNCATE invocations from here...
14220         * modules/ftruncate (configure.ac): ... to here.
14221
14222 2011-05-07  Bruno Haible  <bruno@clisp.org>
14223
14224         fsync: Move AC_LIBOBJ invocations to module description.
14225         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14226         invocations from here...
14227         * modules/fsync (configure.ac): ... to here.
14228
14229 2011-05-07  Bruno Haible  <bruno@clisp.org>
14230
14231         fsusage: Move AC_LIBOBJ invocations to module description.
14232         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14233         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14234         * modules/fsusage (configure.ac): ... to here.
14235
14236 2011-05-07  Bruno Haible  <bruno@clisp.org>
14237
14238         freopen: Move AC_LIBOBJ invocations to module description.
14239         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14240         invocations from here...
14241         * modules/freopen (configure.ac): ... to here.
14242
14243 2011-05-07  Bruno Haible  <bruno@clisp.org>
14244
14245         free: Move AC_LIBOBJ invocations to module description.
14246         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14247         invocations from here...
14248         * modules/free (configure.ac): ... to here.
14249
14250 2011-05-07  Bruno Haible  <bruno@clisp.org>
14251
14252         freadable: Move AC_LIBOBJ invocations to module description.
14253         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14254         here...
14255         * modules/freadable (configure.ac): ... to here.
14256
14257 2011-05-07  Bruno Haible  <bruno@clisp.org>
14258
14259         fpurge: Move AC_LIBOBJ invocations to module description.
14260         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14261         invocations from here...
14262         * modules/fpurge (configure.ac): ... to here.
14263
14264 2011-05-07  Bruno Haible  <bruno@clisp.org>
14265
14266         fpending: Move AC_LIBOBJ invocations to module description.
14267         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14268         gl_FUNC_FPENDING.
14269         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14270         invocations from here...
14271         * modules/fpending (configure.ac): ... to here.
14272
14273 2011-05-07  Bruno Haible  <bruno@clisp.org>
14274
14275         fopen: Move AC_LIBOBJ invocations to module description.
14276         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14277         invocations from here...
14278         * modules/fopen (configure.ac): ... to here.
14279
14280 2011-05-07  Bruno Haible  <bruno@clisp.org>
14281
14282         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14283         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14284         gl_FUNC_FNMATCH_POSIX.
14285         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14286         invocations from here...
14287         * modules/fnmatch (configure.ac): ... to here.
14288         * modules/fnmatch-gnu (configure.ac): ... and here.
14289
14290 2011-05-07  Bruno Haible  <bruno@clisp.org>
14291
14292         flock: Move AC_LIBOBJ invocations to module description.
14293         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14294         invocations from here...
14295         * modules/flock (configure.ac): ... to here.
14296
14297 2011-05-07  Bruno Haible  <bruno@clisp.org>
14298
14299         fileblocks: Move AC_LIBOBJ invocations to module description.
14300         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14301         gl_PREREQ_FILEBLOCKS invocations from here...
14302         * modules/fileblocks (configure.ac): ... to here.
14303
14304 2011-05-06  Bruno Haible  <bruno@clisp.org>
14305
14306         fflush: Move AC_LIBOBJ invocations to module description.
14307         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14308         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14309         invocations from here...
14310         * modules/fflush (configure.ac): ... to here.
14311
14312 2011-05-06  Bruno Haible  <bruno@clisp.org>
14313
14314         fdopendir: Move AC_LIBOBJ invocations to module description.
14315         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14316         here...
14317         * modules/fdopendir (configure.ac): ... to here.
14318         (Depends-on): Improve conditions.
14319
14320 2011-05-06  Bruno Haible  <bruno@clisp.org>
14321
14322         _Exit: Move AC_LIBOBJ invocations to module description.
14323         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14324         invocations from here...
14325         * modules/_Exit (configure.ac): ... to here.
14326
14327 2011-05-21  Bruno Haible  <bruno@clisp.org>
14328
14329         euidaccess: Respect rules for use of AC_LIBOBJ.
14330         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14332         from here...
14333         * modules/euidaccess (configure.ac): ... to here.
14334
14335 2011-05-06  Bruno Haible  <bruno@clisp.org>
14336
14337         error: Move AC_LIBOBJ invocations to module description.
14338         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14339         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14340         invocations from here...
14341         * modules/error (configure.ac): ... to here.
14342
14343 2011-05-06  Bruno Haible  <bruno@clisp.org>
14344
14345         duplocale: Move AC_LIBOBJ invocations to module description.
14346         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14347         gl_PREREQ_DUPLOCALE invocations from here...
14348         * modules/duplocale (configure.ac): ... to here.
14349
14350 2011-05-05  Bruno Haible  <bruno@clisp.org>
14351
14352         dirfd: Move AC_LIBOBJ invocations to module description.
14353         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14354         gl_FUNC_DIRFD.
14355         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14356         here...
14357         * modules/dirfd (configure.ac): ... to here.
14358         (Depends-on): Fix condition.
14359
14360 2011-05-05  Bruno Haible  <bruno@clisp.org>
14361
14362         chown: Respect rules for use of AC_LIBOBJ.
14363         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14364         * modules/chown (configure.ac): ... to here.
14365
14366 2011-05-05  Bruno Haible  <bruno@clisp.org>
14367
14368         chdir-long: Move AC_LIBOBJ invocations to module description.
14369         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14370         gl_PREREQ_CHDIR_LONG invocations from here...
14371         * modules/chdir-long (configure.ac): ... to here.
14372
14373 2011-05-05  Bruno Haible  <bruno@clisp.org>
14374
14375         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14376         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14377         from here...
14378         * modules/canonicalize-lgpl (configure.ac): ... to here.
14379
14380 2011-05-05  Bruno Haible  <bruno@clisp.org>
14381
14382         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14383         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14384         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14385         REPLACE_CALLOC.
14386         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14387         * modules/calloc-gnu (configure.ac): Likewise.
14388
14389 2011-05-05  Bruno Haible  <bruno@clisp.org>
14390
14391         btowc: Move AC_LIBOBJ invocations to module description.
14392         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14393         invocations from here...
14394         * modules/btowc (configure.ac): ... to here.
14395
14396 2011-05-21  Bruno Haible  <bruno@clisp.org>
14397
14398         atexit: Move AC_LIBOBJ invocations to module description.
14399         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14401         here...
14402         * modules/atexit (configure.ac): ... to here.
14403
14404 2011-05-05  Bruno Haible  <bruno@clisp.org>
14405
14406         atoll: Move AC_LIBOBJ invocations to module description.
14407         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14408         invocations from here...
14409         * modules/atoll (configure.ac): ... to here.
14410
14411 2011-05-05  Bruno Haible  <bruno@clisp.org>
14412
14413         argz: Move AC_LIBOBJ invocations to module description.
14414         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14415         * modules/argz (configure.ac): ... to here.
14416
14417 2011-05-05  Bruno Haible  <bruno@clisp.org>
14418
14419         alphasort: Move AC_LIBOBJ invocations to module description.
14420         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14421         gl_PREREQ_ALPHASORT invocations from here...
14422         * modules/alphasort (configure.ac): ... to here.
14423
14424 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         verify: new macro verify_expr; verify_true deprecated
14427         * NEWS: Mention this.
14428         * doc/verify.texi (Compile-time Assertions): Document this.
14429         * lib/verify.h (verify_true): Deprecate.
14430         (verify_expr): New macro.
14431         * tests/test-verify.c (function): Test verify_expr.
14432
14433 2011-06-14  Jim Meyering  <meyering@redhat.com>
14434
14435         init.sh: give more portable redirection-related advice in a comment
14436         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14437         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14438         for lots of discussion.  Stefano Lattarini suggested the solution
14439         of putting "9>&2" after the command.  Reported by Bruno Haible.
14440
14441 2011-06-13  Bruno Haible  <bruno@clisp.org>
14442
14443         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14444         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14445         'none'.
14446
14447 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14448
14449         ftoastr: use strtof only if HAVE_STRTOF
14450         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14452         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14453         * modules/ftoastr (configure.ac): Check for strtof.
14454
14455 2011-06-13  Bruno Haible  <bruno@clisp.org>
14456
14457         gnulib-tool: Addendum to 2011-06-08 commit.
14458         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14459         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14460
14461 2011-06-13  Bruno Haible  <bruno@clisp.org>
14462
14463         fseeko: Provide a non-inline replacement of fseek().
14464         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14465         * modules/fseeko (Depends-on): Add fseek.
14466         * modules/fseek (License): Change to LGPLv2+.
14467
14468 2011-06-13  Bruno Haible  <bruno@clisp.org>
14469
14470         ftello: Provide a non-inline replacement of ftell().
14471         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14472         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14473         not have ftello() (such as on mingw).
14474         * modules/ftello (Depends-on): Add ftell.
14475         * modules/ftell (License): Change to LGPLv2+.
14476
14477 2011-05-07  Bruno Haible  <bruno@clisp.org>
14478
14479         ftell: Move AC_LIBOBJ invocations to module description.
14480         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14481         * modules/ftell (configure.ac): ... to here.
14482
14483 2011-05-07  Bruno Haible  <bruno@clisp.org>
14484
14485         ftello: Respect rules for use of AC_LIBOBJ.
14486         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14487         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14488         here...
14489         * modules/ftello (configure.ac): ... to here.
14490
14491 2011-05-07  Bruno Haible  <bruno@clisp.org>
14492
14493         fseeko: Simplify.
14494         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14495         (gl_FUNC_FSEEKO): Inline it here.
14496
14497 2011-05-07  Bruno Haible  <bruno@clisp.org>
14498
14499         fseek: Move AC_LIBOBJ invocations to module description.
14500         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14501         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14502         * modules/fseek (configure.ac): ... to here.
14503
14504 2011-05-07  Bruno Haible  <bruno@clisp.org>
14505
14506         fseek: Respect rules for use of AC_LIBOBJ.
14507         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14508         here...
14509         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14510
14511 2011-05-07  Bruno Haible  <bruno@clisp.org>
14512
14513         fseeko: Respect rules for use of AC_LIBOBJ.
14514         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14515         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14516         here...
14517         * modules/fseeko (configure.ac): ... to here.
14518
14519 2011-06-13  Bruno Haible  <bruno@clisp.org>
14520
14521         gnulib-tool: Allow comments in the 'Depends-on' section.
14522         * doc/gnulib.texi (Module description): Mention comment syntax in the
14523         Depends-on section.
14524         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14525
14526 2011-06-13  Bruno Haible  <bruno@clisp.org>
14527
14528         file-set.h: guard __attibute__ use, now that it's not always defined
14529         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14530         versions that support it.  This fixes a coreutils build failure with
14531         the vendor cc on HP-UX 11.31.
14532
14533 2011-06-12  Bruno Haible  <bruno@clisp.org>
14534
14535         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14536         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14537         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14538         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14539         (acl, aclsort): New declarations.
14540         (aclv_nontrivial): New declaration.
14541         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14542         (file_has_acl): Read also the second kind of HP-UX ACLs.
14543         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14544         kind of HP-UX ACLs if the first kind fails.
14545         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14546         second kind of HP-UX ACLs.
14547         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14548         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14549         agree.
14550         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14551         hpuxjfs.
14552         Handle hpuxjfs.
14553         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14554         hpuxjfs.
14555         Handle hpuxjfs.
14556         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14557         (func_test_same_acls): Use both lsacl and getacl.
14558         Handle hpuxjfs.
14559         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14560         (func_test_same_acls): Use both lsacl and getacl.
14561         Handle hpuxjfs.
14562
14563 2011-06-12  Bruno Haible  <bruno@clisp.org>
14564
14565         acl: Complete the 2010-08-10 fix.
14566         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14567         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14568         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14569         explicitly.
14570         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14571         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14572
14573 2011-06-12  Bruno Haible  <bruno@clisp.org>
14574
14575         spawn-pipe tests: Comments.
14576         * tests/test-spawn-pipe-child.c (main): Update comment.
14577         Reported by James Youngman <jay@gnu.org>.
14578
14579 2011-06-11  James Youngman  <jay@gnu.org>
14580
14581         New module 'stat-size'.
14582         * modules/stat-size: New module.  Provides macros for accessing
14583         file size information in instances of struct stat.  Depends on the
14584         fileblocks module because it calls st_blocks.
14585         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14586         * doc/gnulib.texi: Include stat-size.texi.
14587         * doc/stat-size.texi: Documentation for this module.
14588         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14589         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14590         AC_STRUCT_ST_BLOCKS.
14591
14592 2011-06-09  Bruno Haible  <bruno@clisp.org>
14593
14594         thread: Support pthreads-win32.
14595         * lib/glthread/thread.h (gl_thread_self): Define differently on
14596         pthreads-win32.
14597         (gl_null_thread): New declaration.
14598         (gl_thread_self_pointer): New macro.
14599         * lib/glthread/thread.c (gl_null_thread): New constant.
14600         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14601         gl_thread_self.
14602         * tests/test-tls.c: Likewise.
14603         Suggested by Paul Eggert. Reported by Eric Blake.
14604
14605 2011-06-09  Bruno Haible  <bruno@clisp.org>
14606
14607         thread: Fix confusion between NULL and 0.
14608         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14609         Reported by Paul Eggert.
14610
14611 2011-06-09  Bruno Haible  <bruno@clisp.org>
14612
14613         spawn-pipe tests: Avoid test failure on HP-UX 11.
14614         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14615         is closed.
14616
14617 2011-06-09  Bruno Haible  <bruno@clisp.org>
14618
14619         acl tests: Fix compilation error on HP-UX 11.
14620         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14621
14622 2011-06-09  Bruno Haible  <bruno@clisp.org>
14623
14624         rmdir: Avoid test failure on HP-UX 10.20.
14625         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14626         EEXIST.
14627
14628 2011-06-08  Eric Blake  <eblake@redhat.com>
14629
14630         perror: fix test on mingw
14631         * modules/perror-tests (Depends-on): Add dup2.
14632
14633         strerror_r-posix: fix on MacOS
14634         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14635         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14636         logic bug.
14637         * lib/strerror_r.c (strerror_r): Fix the bug.
14638         * lib/strerror.c (strerror): Likewise.
14639         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14640         problem.
14641         * doc/posix-functions/strerror.texi (strerror): Likewise.
14642         * doc/posix-functions/perror.texi (perror): Likewise.
14643         * tests/test-strerror.c (main): Enhance test.
14644         * tests/test-strerror_r.c (main): Likewise.
14645
14646 2011-06-08  Bruno Haible  <bruno@clisp.org>
14647
14648         gnulib-tool: Better isolation between different gnulib-tool invocations.
14649         * gnulib-tool: New option --witness-c-macro.
14650         (witness_c_macro): New variable.
14651         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14652         AM_CPPFLAGS define it as a C macro.
14653         (func_emit_tests_Makefile_am): Likewise.
14654         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14655         read it from there.
14656         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14657         m4_define, not AC_DEFUN.
14658         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14659         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14660         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14661         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14662         s|...|...|, to substitute the values of the GNULIB_* module indicator
14663         variables.
14664         * modules/dirent (Makefile.am): Likewise.
14665         * modules/fcntl-h (Makefile.am): Likewise.
14666         * modules/iconv-h (Makefile.am): Likewise.
14667         * modules/langinfo (Makefile.am): Likewise.
14668         * modules/locale (Makefile.am): Likewise.
14669         * modules/math (Makefile.am): Likewise.
14670         * modules/netdb (Makefile.am): Likewise.
14671         * modules/poll-h (Makefile.am): Likewise.
14672         * modules/pty (Makefile.am): Likewise.
14673         * modules/search (Makefile.am): Likewise.
14674         * modules/signal (Makefile.am): Likewise.
14675         * modules/spawn (Makefile.am): Likewise.
14676         * modules/stdio (Makefile.am): Likewise.
14677         * modules/stdlib (Makefile.am): Likewise.
14678         * modules/string (Makefile.am): Likewise.
14679         * modules/sys_ioctl (Makefile.am): Likewise.
14680         * modules/sys_select (Makefile.am): Likewise.
14681         * modules/sys_socket (Makefile.am): Likewise.
14682         * modules/sys_stat (Makefile.am): Likewise.
14683         * modules/sys_times (Makefile.am): Likewise.
14684         * modules/sys_utsname (Makefile.am): Likewise.
14685         * modules/sys_wait (Makefile.am): Likewise.
14686         * modules/termios (Makefile.am): Likewise.
14687         * modules/time (Makefile.am): Likewise.
14688         * modules/unistd (Makefile.am): Likewise.
14689         * modules/wchar (Makefile.am): Likewise.
14690
14691 2011-06-08  Eric Blake  <eblake@redhat.com>
14692
14693         strerror: simplify replacement
14694         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14695         * modules/strerror (configure.ac): No prereqs needed here...
14696         * modules/strerror-override (configure.ac): ...but this needs it.
14697         (Files): Add file for needed prereq macro.
14698
14699 2011-06-08  Bruno Haible  <bruno@clisp.org>
14700
14701         strerror_r-posix: Tweaks.
14702         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14703         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14705         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14706         (gl_FUNC_STRERROR_R): ... to here.
14707         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14708
14709 2011-06-07  Eric Blake  <eblake@redhat.com>
14710
14711         perror: document fixed bugs
14712         * doc/posix-functions/perror.texi (perror): Document recent
14713         patches.
14714
14715 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14716
14717         stat-time: get_stat_birthtime failure is better-defined
14718         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14719         return a timestamp whose tv_sec and tv_nsec values are both -1.
14720         Previously, the spec said only that the tv_nsec value was negative.
14721         This upward-compatible change simplifies GNU tar a bit.
14722
14723 2011-06-07  Eric Blake  <eblake@redhat.com>
14724
14725         strerror_r-posix: work around cygwin 1.7.9
14726         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14727         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14728         bug without replacing strerror_r.
14729         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14730         strerror_r is buggy, but without requiring strerror_r compilation.
14731         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14732
14733         test-perror: relax test to ignore cygwin bug
14734         * tests/test-perror2.c (main): Relax test on requiring detection
14735         of stream errors, and use unbuffered stream.
14736         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14737         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14738         * doc/posix-functions/fputc.texi (fputc): Likewise.
14739         * doc/posix-functions/fputs.texi (fputs): Likewise.
14740         * doc/posix-functions/fputws.texi (fputws): Likewise.
14741         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14742         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14743         * doc/posix-functions/getopt.texi (getopt): Likewise.
14744         * doc/posix-functions/perror.texi (perror): Likewise.
14745         * doc/posix-functions/printf.texi (printf): Likewise.
14746         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14747         * doc/posix-functions/psignal.texi (psignal): Likewise.
14748         * doc/posix-functions/putc.texi (putc): Likewise.
14749         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14750         Likewise.
14751         * doc/posix-functions/putchar.texi (putchar): Likewise.
14752         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14753         Likewise.
14754         * doc/posix-functions/puts.texi (puts): Likewise.
14755         * doc/posix-functions/putwc.texi (putwc): Likewise.
14756         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14757         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14758         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14759         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14760         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14761         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14762         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14763         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14764
14765 2011-05-22  Bruno Haible  <bruno@clisp.org>
14766
14767         strerror: Move AC_LIBOBJ invocations to module description.
14768         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14769         gl_PREREQ_STRERROR invocations from here...
14770         * modules/strerror (configure.ac): ... to here.
14771
14772 2011-05-21  Bruno Haible  <bruno@clisp.org>
14773
14774         perror: Use common idiom.
14775         * modules/perror (configure.ac): Reorder statements.
14776
14777 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14778
14779         tests: fix usage message in 'mktempd_'
14780         * tests/init.sh (mktempd_): In the usage message, use literal
14781         'mktempd_', not '$ME' (which is even undefined), as the name of
14782         the subroutine.
14783
14784 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14785
14786         tests init: new function 'fatal_', for hard errors
14787         Before this patch, the only way offered by tests/init.sh to
14788         properly signal a hard error was the `framework_failure_'
14789         function.  But the error message issued by that function,
14790         as its name would suggest, refers to a set-up failure in the
14791         testsuite, while hard errors can obviously also be due to
14792         other reasons.  The best way to fix this inconsistency is to
14793         introduce a new function with a more general error message.
14794         * tests/init.sh (fatal_): New function.
14795
14796 2011-06-06  Eric Blake  <eblake@redhat.com>
14797
14798         canonicalize-lgpl: use common idiom
14799         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14800         over newer POSIX -Rf.
14801         Reported by Bruno Haible.
14802
14803         canonicalize-lgpl: work around AIX realpath bug
14804         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14805         * doc/posix-functions/realpath.texi (realpath): Document it.
14806         Reported by Bruno Haible.
14807
14808         strerror: work around FreeBSD bug
14809         * lib/strerror.c (strerror): Special case 0.
14810         Reported by Bruno Haible.
14811
14812         strerror-override: avoid bloating errno module
14813         * modules/errno (Files, configure.ac): Move replacement strings...
14814         * modules/strerror-override: ...to new module.
14815         * modules/strerror (Depends-on): Add strerror-override.
14816         * modules/strerror_r-posix (Depends-on): Likewise.
14817         * MODULES.html.sh: Document new module.
14818         Reported by Bruno Haible.
14819
14820 2011-06-06  Bruno Haible  <bruno@clisp.org>
14821
14822         spawn-pipe tests: Rename program.
14823         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14824         * tests/test-spawn-pipe-child.c: Update comment.
14825         * tests/test-spawn-pipe.sh: Update.
14826         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14827
14828         spawn-pipe tests: Link the child program only against libc.
14829         * tests/test-spawn-pipe-child.c: New file, extracted from
14830         tests/test-spawn-pipe.c.
14831         (main): Expect only one argument.
14832         (is_open): New function, copied from tests/test-pipe.c.
14833         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14834         (child_main): Remove function.
14835         (test_pipe): Pass only one argument to the child program.
14836         (main): Remove child process code. Expect the child program's name as
14837         first argument.
14838         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14839         argument.
14840         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14841         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14842         test-spawn-pipe-child against no libraries.
14843
14844 2011-06-06  Bruno Haible  <bruno@clisp.org>
14845
14846         careadlinkat: Avoid mismatch between ssize_t and int.
14847         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14848         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14849
14850 2011-06-06  Jim Meyering  <meyering@redhat.com>
14851
14852         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14853         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14854         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14855
14856 2011-06-05  Bruno Haible  <bruno@clisp.org>
14857
14858         ansi-c++-opt: Interoperability with libtool.
14859         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14860         set the variable to "no", not to ":".
14861         * NEWS: Mention the change.
14862
14863 2011-06-05  Bruno Haible  <bruno@clisp.org>
14864
14865         acl: Fix test failure on AIX 7.
14866         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14867         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14868
14869 2011-06-05  Bruno Haible  <bruno@clisp.org>
14870
14871         pipe-filter-ii: Fix test failure on AIX and IRIX.
14872         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14873         with EAGAIN, retry with a smaller buffer size.
14874
14875 2011-06-05  Bruno Haible  <bruno@clisp.org>
14876
14877         localename: Fix link dependencies.
14878         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14879         * modules/localename-tests (Makefile.am): Link test-localename with
14880         $(LIBTHREAD).
14881
14882 2011-06-05  Bruno Haible  <bruno@clisp.org>
14883
14884         error: Avoid gcc warning.
14885         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14886
14887 2011-06-05  Bruno Haible  <bruno@clisp.org>
14888
14889         unsetenv: Avoid gcc warning.
14890         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14891
14892 2011-06-05  Bruno Haible  <bruno@clisp.org>
14893
14894         setenv: Avoid gcc warning.
14895         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14896
14897 2011-06-05  Bruno Haible  <bruno@clisp.org>
14898
14899         sys_select: Ensure memset is declared also on AIX 7.
14900         * lib/sys_select.in.h: Include <string.h> also on AIX.
14901         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14902         self-contained also on AIX 7.1.
14903
14904 2011-06-04  Jim Meyering  <meyering@redhat.com>
14905
14906         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14907         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14908         function name, "error".
14909         (_gl_translatable_diag_func_re): New configurable variable.
14910
14911 2011-06-04  Bruno Haible  <bruno@clisp.org>
14912
14913         getopt: Avoid gcc warning.
14914         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14915
14916 2011-06-04  Bruno Haible  <bruno@clisp.org>
14917
14918         strerror_r: Fix comments.
14919         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14920         commit.
14921
14922 2011-06-04  Bruno Haible  <bruno@clisp.org>
14923
14924         perror: Fix compilation error.
14925         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14926         Undefine fprintf, not sprintf.
14927         * modules/perror (Depends-on): Remove intprops, verify.
14928
14929 2011-06-04  Bruno Haible  <bruno@clisp.org>
14930
14931         setlocale: Enable replacement on Cygwin 1.5.
14932         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14933         Cygwin 1.5.x.
14934         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14935         LC_CTYPE category also exists on Cygwin 1.5.x.
14936
14937 2011-06-04  Bruno Haible  <bruno@clisp.org>
14938
14939         strerror-override: Don't disable symbol renamings.
14940         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14941         * lib/strerror-override.c: Include config.h.
14942         (strerror_override): Don't undefine.
14943
14944 2011-06-03  Bruno Haible  <bruno@clisp.org>
14945
14946         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14947         * lib/localename.h: Update copyright header.
14948         * lib/localename.c: Likewise.
14949         * lib/relocatable.h: Likewise.
14950         * lib/relocatable.c: Likewise.
14951
14952 2011-06-02  Bruno Haible  <bruno@clisp.org>
14953
14954         doc: Fix a module name.
14955         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14956
14957 2011-06-02  Bruno Haible  <bruno@clisp.org>
14958
14959         pipe2: Remove dependency on 'nonblocking' module.
14960         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14961         O_NONBLOCK is defined by gnulib.
14962         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14963         is zero.
14964         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14965         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14966         defined by gnulib.
14967         (get_nonblocking_flag): New function.
14968         (main): Test O_NONBLOCK flag only if it is nonzero.
14969         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14970
14971 2011-06-03  Jim Meyering  <meyering@redhat.com>
14972
14973         maint: three new prohibit-header-without-use rules
14974         Prohibit use of cloexec.h, posixver.h, same.h without use.
14975         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14976         (sc_prohibit_posixver_without_use): Likewise.
14977         (sc_prohibit_same_without_use): Likewise.
14978
14979 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14980
14981         allocator: 'die' routine is now given requested size
14982         * lib/allocator.h (struct allocator.die): New size arg.
14983         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14984         If the actual problem is an ssize_t limitation, not a size_t or
14985         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14986
14987 2011-06-01  Eric Blake  <eblake@redhat.com>
14988
14989         strerror: drop strerror_r dependency
14990         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14991         * lib/strerror-override.c (strerror_override): ...to new file.
14992         * lib/strerror-override.h: Add prototype.
14993         * lib/strerror-impl.h: Delete.
14994         * lib/strerror.c (strerror): New implementation.
14995         * modules/errno (Files): Add new files.
14996         (configure.ac): Compile new file as appropriate.
14997         * modules/strerror (Files): Drop unused file.
14998         (Depends-on): Drop strerror_r-posix.
14999         * MODULES.html.sh: Document strerror_r-posix.
15000         Requested by Sam Steingold.
15001
15002         perror: call strerror_r directly
15003         * modules/perror (Files): Drop strerror-impl.h.
15004         * lib/perror.c (perror): Use our own stack buffer, rather than
15005         calling a wrapper that uses static storage.
15006         * doc/posix-functions/perror.texi (perror): Document a limitation
15007         of our replacement.
15008
15009         strerror_r: fix includes for FreeBSD
15010         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15011         since we use abort on some platforms.
15012         Reported by Matthias Bolte.
15013
15014 2011-05-31  Bruno Haible  <bruno@clisp.org>
15015
15016         Fix link errors in tests: openat-die uses gettext-h.
15017         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15018         against $(LIBINTL).
15019         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15020         against $(LIBINTL).
15021         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15022         $(LIBINTL).
15023         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15024         against $(LIBINTL).
15025         * modules/linkat-tests (Makefile.am): Link test-linkat against
15026         $(LIBINTL).
15027         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15028         $(LIBINTL).
15029         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15030         against $(LIBINTL).
15031         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15032         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15033         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15034         $(LIBINTL).
15035         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15036         $(LIBINTL).
15037         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15038         $(LIBINTL).
15039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15040
15041 2011-05-31  Bruno Haible  <bruno@clisp.org>
15042
15043         Fix link errors in tests: wait-process uses gettext-h.
15044         * modules/nonblocking-pipe-tests (Makefile.am): Set
15045         test_nonblocking_pipe_main_LDADD.
15046         * modules/nonblocking-socket-tests (Makefile.am): Link
15047         test-nonblocking-socket-main against $(LIBINTL).
15048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15049
15050 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15051
15052         assert-h: work around 'verify' incompatibility
15053         * lib/verify.h: Use @...@ directives, not ifdef.
15054         * modules/assert-h (assert.h): Implement the directives.
15055         (assert.h): Substitute the symbol-prefix more consistently.
15056
15057 2011-05-29  Jim Meyering  <meyering@redhat.com>
15058
15059         trim: remove three superfluous assignments
15060         * lib/trim.c (trim2): Remove three superfluous assignments
15061         and correct brace positioning.
15062
15063 2011-05-29  Bruno Haible  <bruno@clisp.org>
15064
15065         wctype-h: Avoid namespace pollution on Solaris 2.6.
15066         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15067         identifiers.
15068         * doc/posix-headers/wctype.texi: Mention the problem.
15069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15070
15071 2011-05-28  Jim Meyering  <meyering@redhat.com>
15072
15073         parse-datetime.y: accommodate -Wstrict-overflow
15074         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15075         placate -Wstrict-overflow.
15076
15077         trim: avoid a warning from -O2 -Wstrict-overflow
15078         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15079
15080 2011-05-29  Bruno Haible  <bruno@clisp.org>
15081
15082         gnulib-tool: Fix bug in yesterday's commit.
15083         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15084         twice.
15085
15086 2011-05-29  Bruno Haible  <bruno@clisp.org>
15087
15088         Allow multiple gnulib generated include files to be combined.
15089         * gnulib-tool (func_compute_include_guard_prefix): New function.
15090         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15091         ${gl_include_guard_prefix} references.
15092         (func_import, func_create_testdir): Invoke
15093         func_compute_include_guard_prefix.
15094         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15095         * lib/ctype.in.h: Likewise.
15096         * lib/dirent.in.h: Likewise.
15097         * lib/errno.in.h: Likewise.
15098         * lib/fcntl.in.h: Likewise.
15099         * lib/float.in.h: Likewise.
15100         * lib/getopt.in.h: Likewise.
15101         * lib/iconv.in.h: Likewise.
15102         * lib/langinfo.in.h: Likewise.
15103         * lib/locale.in.h: Likewise.
15104         * lib/math.in.h: Likewise.
15105         * lib/netdb.in.h: Likewise.
15106         * lib/netinet_in.in.h: Likewise.
15107         * lib/poll.in.h: Likewise.
15108         * lib/pthread.in.h: Likewise.
15109         * lib/pty.in.h: Likewise.
15110         * lib/sched.in.h: Likewise.
15111         * lib/se-selinux.in.h: Likewise.
15112         * lib/search.in.h: Likewise.
15113         * lib/signal.in.h: Likewise.
15114         * lib/spawn.in.h: Likewise.
15115         * lib/stdarg.in.h: Likewise.
15116         * lib/stddef.in.h: Likewise.
15117         * lib/stdint.in.h: Likewise.
15118         * lib/stdio.in.h: Likewise.
15119         * lib/stdlib.in.h: Likewise.
15120         * lib/string.in.h: Likewise.
15121         * lib/strings.in.h: Likewise.
15122         * lib/sys_file.in.h: Likewise.
15123         * lib/sys_ioctl.in.h: Likewise.
15124         * lib/sys_select.in.h: Likewise.
15125         * lib/sys_socket.in.h: Likewise.
15126         * lib/sys_stat.in.h: Likewise.
15127         * lib/sys_time.in.h: Likewise.
15128         * lib/sys_times.in.h: Likewise.
15129         * lib/sys_uio.in.h: Likewise.
15130         * lib/sys_utsname.in.h: Likewise.
15131         * lib/sys_wait.in.h: Likewise.
15132         * lib/sysexits.in.h: Likewise.
15133         * lib/termios.in.h: Likewise.
15134         * lib/time.in.h: Likewise.
15135         * lib/unistd.in.h: Likewise.
15136         * lib/wchar.in.h: Likewise.
15137         * lib/wctype.in.h: Likewise.
15138         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15139         * modules/ctype (Makefile.am): Likewise.
15140         * modules/dirent (Makefile.am): Likewise.
15141         * modules/errno (Makefile.am): Likewise.
15142         * modules/fcntl-h (Makefile.am): Likewise.
15143         * modules/float (Makefile.am): Likewise.
15144         * modules/getopt-posix (Makefile.am): Likewise.
15145         * modules/iconv-h (Makefile.am): Likewise.
15146         * modules/langinfo (Makefile.am): Likewise.
15147         * modules/locale (Makefile.am): Likewise.
15148         * modules/math (Makefile.am): Likewise.
15149         * modules/netdb (Makefile.am): Likewise.
15150         * modules/netinet_in (Makefile.am): Likewise.
15151         * modules/poll-h (Makefile.am): Likewise.
15152         * modules/pthread (Makefile.am): Likewise.
15153         * modules/pty (Makefile.am): Likewise.
15154         * modules/sched (Makefile.am): Likewise.
15155         * modules/search (Makefile.am): Likewise.
15156         * modules/selinux-h (Makefile.am): Likewise.
15157         * modules/signal (Makefile.am): Likewise.
15158         * modules/spawn (Makefile.am): Likewise.
15159         * modules/stdarg (Makefile.am): Likewise.
15160         * modules/stddef (Makefile.am): Likewise.
15161         * modules/stdint (Makefile.am): Likewise.
15162         * modules/stdio (Makefile.am): Likewise.
15163         * modules/stdlib (Makefile.am): Likewise.
15164         * modules/string (Makefile.am): Likewise.
15165         * modules/strings (Makefile.am): Likewise.
15166         * modules/sys_file (Makefile.am): Likewise.
15167         * modules/sys_ioctl (Makefile.am): Likewise.
15168         * modules/sys_select (Makefile.am): Likewise.
15169         * modules/sys_socket (Makefile.am): Likewise.
15170         * modules/sys_stat (Makefile.am): Likewise.
15171         * modules/sys_time (Makefile.am): Likewise.
15172         * modules/sys_times (Makefile.am): Likewise.
15173         * modules/sys_uio (Makefile.am): Likewise.
15174         * modules/sys_utsname (Makefile.am): Likewise.
15175         * modules/sys_wait (Makefile.am): Likewise.
15176         * modules/sysexits (Makefile.am): Likewise.
15177         * modules/termios (Makefile.am): Likewise.
15178         * modules/time (Makefile.am): Likewise.
15179         * modules/unistd (Makefile.am): Likewise.
15180         * modules/wchar (Makefile.am): Likewise.
15181         * modules/wctype-h (Makefile.am): Likewise.
15182         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15183
15184 2011-05-29  Bruno Haible  <bruno@clisp.org>
15185
15186         assert-h: Allow multiple gnulib generated replacements to coexist.
15187         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15188
15189 2011-05-29  Bruno Haible  <bruno@clisp.org>
15190
15191         argp: Allow coexistence with strerror_r-posix module.
15192         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15193         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15194         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15195         not the glibc signature.
15196
15197 2011-05-28  Bruno Haible  <bruno@clisp.org>
15198
15199         gnulib-tool: Alternative structure of testdirs, similar to --import.
15200         * gnulib-tool: New option --single-configure.
15201         (func_usage): Document it.
15202         (single_configure): New variable.
15203         (func_modules_transitive_closure_separately,
15204         func_modules_transitive_closure_separately,
15205         func_determine_use_libtests, func_modules_add_dummy_separately,
15206         func_modules_to_filelist_separately): New functions, extracted from
15207         func_import.
15208         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15209         (func_import): Use the new functions.
15210         (func_create_testdir): Set final_modules. Handle $single_configure =
15211         true case.
15212
15213 2011-05-28  Bruno Haible  <bruno@clisp.org>
15214
15215         getloadavg: Remove an unreliable safety check.
15216         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15217         getloadavg.c is in place.
15218         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15219         Reported by Sam Steingold <sds@gnu.org>.
15220
15221 2011-05-28  Bruno Haible  <bruno@clisp.org>
15222
15223         doc: Cleanup yet another file produced by texinfo.tex.
15224         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15225
15226 2011-05-28  Bruno Haible  <bruno@clisp.org>
15227
15228         Finish the conditional dependencies mechanism.
15229         * gnulib-tool: New option --no-conditional-dependencies.
15230         (func_usage): Document it. Don't mark --conditional-dependencies as
15231         experimental.
15232         (cond_dependencies): The possible values can now be true, false, empty.
15233         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15234         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15235         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15236
15237 2011-05-28  Bruno Haible  <bruno@clisp.org>
15238
15239         doc: Use a recent texinfo.tex.
15240         * doc/Makefile (tex_opts): New variable.
15241         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15242
15243 2011-05-28  Jim Meyering  <meyering@redhat.com>
15244
15245         intprops.h: adjust comment to match code change
15246         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15247         only once, it *may* have side effects.  Also fix an unrelated typo.
15248         (_GL_INT_SIGNED): Likewise.
15249
15250 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15251
15252         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15253
15254 2011-05-26  Bruno Haible  <bruno@clisp.org>
15255
15256         mbsrchr: Avoid collision with system function on Interix.
15257         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15258         Reported by Markus Duft <mduft@gentoo.org>.
15259
15260 2011-05-15  James Youngman  <jay@gnu.org>
15261
15262         getopt: for ambiguous options, enumerate the possibilities.
15263         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15264         the ambiguous options when an ambiguous prefix is given. This was
15265         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15266         glibc change was
15267         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15268
15269 2011-05-25  Eric Blake  <eblake@redhat.com>
15270
15271         getcwd: work around mingw bug
15272         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15273         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15274         Reported by Matthias Bolte.
15275
15276 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15277
15278         test-intprops: disable -Wtype-limits diagnostics
15279         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15280         diagnostics.  Otherwise, the integer overflow macros generate many
15281         diagnostics.  Reported by Jim Meyering in
15282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15283
15284         intprops: shorten, to pacify gcc -Woverlength-strings
15285         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15286         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15287         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15288         likely to run afoul of C compiler limits for string constant lengths.
15289         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15290
15291 2011-05-24  Eric Blake  <eblake@redhat.com>
15292
15293         docs: document recently fixed glibc printf bug
15294         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15295         * doc/posix-functions/printf.texi (printf): Likewise.
15296         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15297         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15298
15299         closein-tests: convert to init.sh
15300         * modules/closein-tests (Files): Add init.sh
15301         * tests/test-closein.sh Use it.
15302
15303         yesno-tests: convert to init.sh
15304         * modules/yesno-tests (Files): Add init.sh.
15305         * tests/test-yesno.sh: Use it.
15306
15307         atexit-tests: ensure reliable exit status
15308         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15309         Reported by Bruno Haible.
15310
15311 2011-05-24  Bruno Haible  <bruno@clisp.org>
15312
15313         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15314         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15315         gl_PREREQ_STRERROR_R invocations from here...
15316         * modules/strerror_r-posix (configure.ac): ... to here.
15317
15318 2011-05-24  Eric Blake  <eblake@redhat.com>
15319
15320         strerror_r: fix missing header
15321         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15322
15323         strerror_r: fix AIX test failures
15324         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15325         ERANGE failure.
15326
15327         strerror_r: fix Solaris test failures
15328         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15329         failures.
15330         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15331
15332         strerror_r: enforce POSIX recommendations
15333         * lib/strerror_r.c (safe_copy): New helper method.
15334         (strerror_r): Guarantee a non-empty string.
15335         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15336         recent POSIX rulings and to match our strerror guarantees.
15337         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15338
15339 2011-05-24  Jim Meyering  <meyering@redhat.com>
15340
15341         test-perror2.c: avoid warning about unused variable
15342         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15343
15344 2011-05-24  Eric Blake  <eblake@redhat.com>
15345
15346         perror: avoid spurious test failure on HP-UX
15347         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15348
15349         tests: fix logic bug in init.sh
15350         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15351         shell.
15352
15353 2011-05-24  Jim Meyering  <meyering@redhat.com>
15354
15355         utimensat: do not reference an out-of-scope buffer
15356         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15357         declared in an inner scope, yet "times" would be dereferenced outside
15358         the scope in which "ts" was valid.
15359         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15360         of ts[2] "out/up", so that the use of aliased "times" (via
15361         "times = ts;") does not end up referencing an out-of-scope "ts"
15362
15363         opendir-safer.c: don't clobber errno; don't close negative FD
15364         * lib/opendir-safer.c (opendir_safer):
15365         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15366         file descriptor, and more importantly, don't clobber the
15367         offending errno value with EINVAL.  Before, upon failure
15368         of dup_safer, we would pass the negative file descriptor to
15369         fdopendir, which would clobber errno.
15370
15371 2011-05-23  Bruno Haible  <bruno@clisp.org>
15372
15373         idcache: Fix module description.
15374         * modules/idcache (Include): Set to "idcache.h".
15375
15376 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15377
15378         gnulib-tool: fix portability problem with MacOS sed
15379         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15380         before the "}".  Problem reported by Leo in
15381         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15382         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15383         sed_extract_condition1, sed_extract_condition2.
15384
15385 2011-05-23  Bruno Haible  <bruno@clisp.org>
15386
15387         hash: Simplify autoconf macro.
15388         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15389
15390 2011-05-23  Bruno Haible  <bruno@clisp.org>
15391
15392         getugroups: Fix module description.
15393         * modules/getugroups (Include): Set to "getugroups.h".
15394
15395 2011-05-23  Bruno Haible  <bruno@clisp.org>
15396
15397         linkat: Simplify autoconf macro.
15398         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15399
15400 2011-05-23  Bruno Haible  <bruno@clisp.org>
15401             Eric Blake  <eblake@redhat.com>
15402
15403         linkat, renameat: Update dependencies.
15404         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15405         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15406         symlinkat.
15407
15408 2011-05-23  Jim Meyering  <meyering@redhat.com>
15409
15410         maint.mk: more tight_scope improvements
15411         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15412         (_gl_TS_headers): Define only in if-0'd block.
15413         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15414         sometimes we must *not* use it.  Adjust uses accordingly.
15415         (sc_tight_scope): Use much simpler grep-based test to determine
15416         whether we skip this rule.
15417
15418         maint.mk: generalize/improve the tight-scope rule
15419         * top/maint.mk: Emit a warning when the test is skipped.
15420         (_gl_TS_dir): Add $(srcdir)/ prefix.
15421         (_gl_TS_function_match): Simplify, rather than trying
15422         to enumerate common types.  Otherwise, it would fail to match an
15423         "extern unsigned char const *" declaration in idutils.
15424         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15425         a way to support use of that type of macro.
15426         (_gl_TS_var_match): Simplify regexp.
15427         (_gl_TS_obj_files): New configurable variable.
15428         (_gl_TS_headers): Likewise.
15429
15430 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15431
15432         verify: fix bug when gnulib <assert.h> is also included
15433         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15434         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15435         Perhaps there's a better way, but this fixes the immediate problem.
15436         Problem reported by Bruno Haible in
15437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15438
15439 2011-05-22  Bruno Haible  <bruno@clisp.org>
15440
15441         xgetcwd: Simplify autoconf macro.
15442         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15443
15444 2011-05-22  Bruno Haible  <bruno@clisp.org>
15445
15446         New module 'mktime-internal'.
15447         * modules/mktime-internal: New file.
15448         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15449         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15450         mktime_internal as a C macro if libc has __mktime_internal.
15451         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15452         conditions.
15453         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15454
15455 2011-05-22  Bruno Haible  <bruno@clisp.org>
15456
15457         timegm: Correct mktime replacement statements.
15458         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15459         defining mktime as a C macro. This completes a 2009-07-28 commit.
15460
15461 2011-05-22  Bruno Haible  <bruno@clisp.org>
15462
15463         timegm: Simplify autoconf macro.
15464         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15465
15466 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15467
15468         clock-time: change to LGPLv2+.
15469         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15470         BSD-like but we have no mark for that; this is good enough for now.
15471
15472 2011-05-21  Bruno Haible  <bruno@clisp.org>
15473
15474         strerror_r: Fix comments.
15475         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15476
15477 2011-05-21  Bruno Haible  <bruno@clisp.org>
15478
15479         relocatable-prog-wrapper: Fix possible link error.
15480         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15481         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15482         (gl_FUNC_SETENV): ... to here.
15483         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15484         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15485
15486 2011-05-21  Bruno Haible  <bruno@clisp.org>
15487
15488         relocatable-prog-wrapper: Assume strerror() exists.
15489         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15490         m4/strerror.m4.
15491         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15492         * lib/relocwrapper.c: Remove mention of strerror module.
15493         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15494         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15495         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15496         C macro.
15497
15498 2011-05-21  Bruno Haible  <bruno@clisp.org>
15499
15500         select: Simplify replacement idiom.
15501         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15502         Win32 platforms.
15503         * lib/sys_select.in.h (select): Simplify accordingly.
15504         * modules/select (Depends-on): Likewise.
15505
15506 2011-05-21  Bruno Haible  <bruno@clisp.org>
15507
15508         mkdir-p: Simplify autoconf macro.
15509         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15510         gl_FUNC_LCHOWN.
15511
15512 2011-05-21  Eric Blake  <eblake@redhat.com>
15513
15514         strerror_r: avoid clobbering strerror on cygwin
15515         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15516         fall back instead to sys_errlist.
15517         * modules/strerror (configure.ac): Add witness.
15518         * tests/test-strerror_r.c (main): Enhance test.
15519         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15520         * tests/test-perror2.c (main): Free memory before exit.
15521
15522 2011-05-21  Bruno Haible  <bruno@clisp.org>
15523
15524         mkdtemp: Use gnulib naming conventions.
15525         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15526         * modules/mkdtemp (configure.ac): Update.
15527
15528 2011-05-20  Eric Blake  <eblake@redhat.com>
15529
15530         strerror_r: avoid corrupting errno on Solaris
15531         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15532         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15533
15534         strerror_r: avoid compiler warning
15535         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15536
15537         strerror_r: simplify AIX code
15538         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15539
15540         test-perror: avoid spurious failure on FreeBSD
15541         * modules/perror-tests (Depends-on): Add strerror, now that
15542         strerror_r no longer pulls it in.
15543
15544 2011-05-20  Bruno Haible  <bruno@clisp.org>
15545
15546         strerror_r-posix: Remove unused dependencies.
15547         * modules/strerror_r-posix (Depends-on): Remove strerror.
15548         Reported by Eric Blake.
15549
15550 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15551
15552         intprops: remove assumption about A|B representation
15553         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15554         is a valid integer if both A and B are.  Although this is true for
15555         all known practical hosts, the C standard doesn't guarantee it,
15556         and the code need not assume it.  Also, this change may work around
15557         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15559
15560 2011-05-20  Eric Blake  <eblake@redhat.com>
15561
15562         perror: work around FreeBSD bug
15563         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15564         is broken.  Move AC_LIBOBJ...
15565         * modules/perror (configure.ac): Here.
15566         * doc/posix-functions/perror.texi (perror): Document this.
15567         * tests/test-perror2.c (main): Enhance test.
15568
15569         test-perror: check for strerror interactions
15570         * tests/macros.h (STREQ): Add macro.
15571         * modules/perror-tests (Files): Add second test.
15572         * tests/test-perror2.c (main): New file.
15573         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15574
15575         test-perror: rewrite to use init script
15576         * modules/perror-tests (Files): Add init.sh.
15577         * tests/test-perror.sh: Use temporary directory.
15578
15579 2011-05-20  Jim Meyering  <meyering@redhat.com>
15580
15581         maint: replace misused "a" with "an"
15582         * doc/intprops.texi: "a integer"
15583         * doc/regex.texi: "a explanation"
15584         * lib/alignof.h: "a object"
15585         * lib/argmatch.h: "a explanation"
15586         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15587         * lib/stdint.in.h: "a integer"
15588         * lib/userspec.c: "a owner"
15589         * doc/gnulib.texi: Fix "a idea", and reword.
15590
15591 2011-05-19  Jim Meyering  <meyering@redhat.com>
15592
15593         maint: correct misuse of "a" and "an"
15594         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15595         * lib/argp-help.c: "an docum...": s/an/a/
15596         * lib/argp-parse.c: "An vector": s/An/A/
15597         * lib/execute.c: "an native": s/an/a/
15598         * lib/spawn-pipe.c: Likewise.
15599         * lib/gc.h: "an Gc_rc": s/an/a/
15600         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15601         * lib/fts.c: "an stat.st_dev": s/an/a/
15602
15603 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15604
15605         intprops-tests: work around HP-UX 11.23 cc bug with constants
15606         * tests/test-intprops.c (VERIFY): New macro.
15607         (main): Use it, instead of verify, to work around the compiler bug; see
15608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15609
15610         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15611         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15612         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15613         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15614         (_GL_REMAINDER_OVERFLOW): Use it.
15615
15616         intprops-tests: revert unsigned part of previous change
15617         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15618         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15619         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15621
15622 2011-05-19  Bruno Haible  <bruno@clisp.org>
15623
15624         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15625         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15626         strerror_r() returned without filling the buffer.
15627         Reported by Eric Blake.
15628
15629 2011-05-19  Eric Blake  <eblake@redhat.com>
15630
15631         strerror_r: guarantee unchanged errno
15632         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15633         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15634         failure.
15635         * tests/test-strerror_r.c (main): Enhance test.
15636
15637 2011-05-19  Bruno Haible  <bruno@clisp.org>
15638
15639         strerror_r: Reorder #if blocks.
15640         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15641         for consistency with the previous commit.
15642
15643 2011-05-19  Bruno Haible  <bruno@clisp.org>
15644
15645         perror: Avoid clobbering the strerror buffer when possible.
15646         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15647         * lib/strerror.c: Include it.
15648         * modules/strerror (Files): Add lib/strerror-impl.h.
15649         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15650         (my_strerror): New function, defined through lib/strerror-impl.h.
15651         (perror): Use it instead of strerror.
15652         * modules/perror (Files): Add lib/strerror-impl.h.
15653         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15654
15655 2011-05-19  Eric Blake  <eblake@redhat.com>
15656
15657         strerror_r: fix on newer cygwin
15658         * lib/strerror_r.c (strerror_r): Cygwin now has
15659         __xpg_strerror_r, use it.
15660
15661 2011-05-19  Bruno Haible  <bruno@clisp.org>
15662
15663         strerror_r: Avoid clobbering the strerror buffer when possible.
15664         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15665         (sys_nerr, sys_errlist): New declarations.
15666         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15667         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15668         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15669
15670 2011-05-19  Bruno Haible  <bruno@clisp.org>
15671
15672         strerror_r: Fix test failure on mingw.
15673         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15674         EXTEND_STRERROR_R.
15675         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15676         macros from errno.in.h instead.
15677
15678 2011-05-19  Eric Blake  <eblake@redhat.com>
15679
15680         strerror: relax test for Solaris
15681         * tests/test-strerror.c (main): Permit Solaris behavior.
15682         * tests/test-strerror_r.c (main): Likewise.
15683
15684         strerror: enforce POSIX ruling on strerror(0)
15685         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15687         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15688         * doc/posix-functions/strerror.texi (strerror): Document it.
15689         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15690         * tests/test-strerror.c (main): Strengthen test.
15691         * tests/test-strerror_r.c (main): Likewise.
15692
15693 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15694
15695         intprop-tests: port to older and more-pedantic compilers
15696         * modules/intprops-tests (Files): Add tests/macros.h.
15697         * tests/test-intprops.c: Include macros.h.
15698         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15699         it's no longer documented to expand to an integer constant expression.
15700         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15701         argument is floating point, as it's no longer documented to expand
15702         to an integer constant expression in that case.
15703         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15704         compiler bugs reported by Bruno Haible.  See
15705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15706         (U0, U1): New constants, to work around the same bugs.  Also,
15707         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15708
15709         intprops: work around C compiler bugs
15710         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15711         bug in Sun C 5.11 2010/08/13 and other compilers; see
15712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15713
15714         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15715         * doc/intprops.texi (Integer Type Determination): Fix
15716         documentation for TYPE_IS_INTEGER: it returns an constant
15717         expression, not an integer constant expression.  Fix doc for
15718         TYPE_SIGNED: it returns an integer constant expression only if its
15719         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15720         hardly worth documented that way....)
15721
15722 2011-05-18  Bruno Haible  <bruno@clisp.org>
15723
15724         strerror_r: Avoid clobbering the strerror buffer when possible.
15725         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15726         Handle gnulib defined errno values here. When strerror() returns NULL
15727         or an empty string, return EINVAL.
15728         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15729         gnulib defined errno values here.
15730         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15731
15732 2011-05-18  Eric Blake  <eblake@redhat.com>
15733
15734         fnmatch: avoid compiler warning
15735         * lib/fnmatch_loop.c (FCT): Use correct type.
15736         Reported by Matthias Bolte.
15737
15738 2011-05-13  Jim Meyering  <meyering@redhat.com>
15739
15740         maint.mk: three new prohibit_<HDR>_without_use rules
15741         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15742         (sc_prohibit_stdio-safer_without_use): Likewise.
15743         (sc_prohibit_xfreopen_without_use): Likewise.
15744
15745 2011-05-17  Jim Meyering  <meyering@redhat.com>
15746
15747         announce-gen: fail if the NEWS delta is empty
15748         If there's nothing noteworthy in NEWS, then either you forgot
15749         or you shouldn't be releasing.
15750         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15751
15752 2011-05-17  Pádraig Brady <P@draigBrady.com>
15753
15754         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15755         reserved symbols starting with double underscore from the check.
15756
15757 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15758
15759         intprops: add doc
15760         * doc/intprops.texi: New file, documenting intprops.
15761         * doc/gnulib.texi (Particular Modules): Include it.
15762
15763         verify: add doc to gnulib manual and fix example
15764         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15765         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15766         (Compile-time Assertions): Fix example so it can't overflow.
15767
15768 2011-05-17  Jim Meyering  <meyering@redhat.com>
15769
15770         warnings.m4: don't usurp save_CPPFLAGS variable name
15771         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15772
15773         doc: fix typo
15774         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15775
15776 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15777             Bruno Haible  <bruno@clisp.org>
15778
15779         doc: Tweak recent change.
15780         * README (Portability guidelines): Tweak new text.
15781         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15782         Interix 6.1.
15783
15784 2011-05-16  Eric Blake  <eblake@redhat.com>
15785
15786         inttypes: avoid autoconf warning
15787         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15788         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15789
15790 2011-05-16  Sam Steingold <sds@gnu.org>
15791         and Eric Blake  <eblake@redhat.com>
15792
15793         vc-list-files: accept multiple directory operands
15794         * build-aux/vc-list-files: Iterate over all remaining operands.
15795
15796 2011-05-16  Bruno Haible  <bruno@clisp.org>
15797
15798         Fix confusion regarding deprecated modules.
15799         * modules/calloc (Status, Notice): Mark module as deprecated, not
15800         obsolete.
15801         * modules/fnmatch-posix (Status, Notice): Likewise.
15802         * modules/getdate (Status, Notice): Likewise.
15803         * modules/getopt (Status, Notice): Likewise.
15804         * modules/malloc (Status, Notice): Likewise.
15805         * modules/pipe (Status, Notice): Likewise.
15806         * modules/realloc (Status, Notice): Likewise.
15807         * modules/rename-dest-slash (Status, Notice): Likewise.
15808         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15809         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15810         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15811         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15812         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15813
15814 2011-05-16  Bruno Haible  <bruno@clisp.org>
15815
15816         doc: List the target platforms.
15817         * doc/gnulib-intro.texi (Target Platforms): New section.
15818         * doc/gnulib.texi (Introduction): Update menu.
15819         * README (Portability guidelines): Refer to the new section. Update
15820         statement about oldest supported environment. Remove rationale why
15821         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15822         unportable C89 function.
15823         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15824         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15825
15826 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15827
15828         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15829
15830 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15831
15832         intprops-tests: new module
15833         * modules/intprops-tests, tests/test-intprops.c: New files.
15834
15835         intprops: add safe, portable integer overflow checking
15836         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15837         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15838         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15839         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15840         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15841         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15842         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15843         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15844         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15845         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15846         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15847
15848 2011-05-12  James Youngman  <jay@gnu.org>
15849
15850         Add a test for glibc's Bugzilla bug #12378.
15851         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15852         doesn't allow the literal matching of a lone "[" (which is
15853         required by POSIX).
15854         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15855
15856 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15857
15858         Sync glibc change fixing Bugzilla bug #12378.
15859         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15860         beginning and fall back to matching as normal character if the
15861         string ends before the matching ']' is found.  This is what POSIX
15862         requires.
15863
15864 2011-05-13  Eric Blake  <eblake@redhat.com>
15865
15866         getcwd-lgpl: relax test for FreeBSD
15867         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15868         issue.
15869         * tests/test-getcwd-lgpl.c (main): Relax test.
15870         Reported by Matthias Bolte.
15871
15872 2011-05-11  Eric Blake  <eblake@redhat.com>
15873
15874         test-fflush: silence compiler warning
15875         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15876
15877 2011-05-11  Bruno Haible  <bruno@clisp.org>
15878
15879         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15880         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15881         * modules/canonicalize (Depends-on): Add 'nocrash'.
15882         * modules/canonicalize-lgpl (Depends-on): Likewise.
15883         * doc/posix-functions/realpath.texi: Update platforms list.
15884         Reported by Ryan Schmidt <ryandesign@macports.org>.
15885
15886 2011-05-11  Bruno Haible  <bruno@clisp.org>
15887
15888         group-member: Declare function in <unistd.h>.
15889         * lib/unistd.in.h (group_member): New declaration.
15890         * lib/group-member.h: Remove file.
15891         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15892         * tests/test-unistd-c++.cc: Check signature of group_member.
15893         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15894         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15895         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15896         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15897         HAVE_GROUP_MEMBER.
15898         * modules/group-member (Files): Remove lib/group-member.h.
15899         (Depends-on): Add unistd. Specify conditions.
15900         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15901         (Include): Change to <unistd.h>.
15902         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15903         HAVE_GROUP_MEMBER.
15904         * NEWS: Mention the change.
15905         * lib/euidaccess.c: Don't include group-member.h.
15906
15907 2011-05-11  Bruno Haible  <bruno@clisp.org>
15908
15909         group-member: Document module.
15910         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15911         module.
15912
15913 2011-05-11  Bruno Haible  <bruno@clisp.org>
15914
15915         fclose: Fix mistake earlier today.
15916         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15917
15918 2011-05-11  Eric Blake  <eblake@redhat.com>
15919
15920         fclose: preserve fflush errors
15921         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15922         Reported by Jim Meyering.
15923
15924         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15925         * build-aux/bootstrap (check_versions): When no specific version
15926         is required, merely check that the app produces an exit status
15927         that indicates its existence.
15928
15929         maint.mk: drop redundant check
15930         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15931         the same but better.
15932
15933 2011-05-11  Bruno Haible  <bruno@clisp.org>
15934
15935         fclose: Fix possible link error.
15936         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15937         unregister_shadow_fd. Improve comments.
15938         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15939         Eric Blake.
15940
15941 2011-05-11  Jim Meyering  <meyering@redhat.com>
15942
15943         maint.mk: improve "can not" detection and generalize rule name
15944         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15945         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15946         Use the same technique as in sc_prohibit_doubled_word, so that
15947         we recognize "can not" also when the words are separated by a newline.
15948         Suggested by Eric Blake.
15949         (perl_filename_lineno_text_): Define.  Factored out of...
15950         (prohibit_doubled_word_): ...here.  Use the new definition.
15951         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15952         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15953         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15954
15955 2011-05-10  Eric Blake  <eblake@redhat.com>
15956
15957         fclose: avoid double close race when possible
15958         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15959         all but WINDOWS_SOCKETS.
15960
15961 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15962
15963         openat: correct new comment
15964         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15965
15966 2011-05-10  Jim Meyering  <meyering@redhat.com>
15967
15968         openat: add comments
15969         * lib/openat-proc.c (openat_proc_name): Add comments,
15970         mostly from Eric Blake.
15971
15972 2011-05-09  Eric Blake  <eblake@redhat.com>
15973
15974         openat: reduce syscalls in first probe of /proc
15975         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15976         be a directory.  Simplify the probe for .. bugs.
15977         * modules/openat (Depends-on): Drop same-inode.
15978         Reported by Bastien ROUCARIES.
15979
15980 2011-05-09  Jim Meyering  <meyering@redhat.com>
15981
15982         maint.mk: change semantics/name of tight_scope variables
15983         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15984         Rename variables to align with semantics that make them more useful.
15985
15986         maint.mk: tweak new rule's name not to impinge
15987         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15988         (sc_tight_scope): Use new rule name rather than $@-0.
15989
15990         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15991         * top/maint.mk (sc_tight_scope): New rule.
15992         (sc_tight_scope-0): New rule, ifdef'd out.
15993         (_gl_TS_dir): Default.
15994         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15995         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15996
15997 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15998
15999         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16000         Haible <bruno@clisp.org>.
16001
16002 2011-05-08  Bruno Haible  <bruno@clisp.org>
16003
16004         Comments.
16005         * m4/isnanf.m4: Add comment.
16006         * m4/isnanl.m4: Likewise.
16007
16008 2011-05-08  Bruno Haible  <bruno@clisp.org>
16009
16010         glob: Remove obsolete macro.
16011         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16012
16013 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16014
16015         intprops: Sun C 5.11 supports __typeof__
16016         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16017         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16018         which is new.
16019         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16020
16021         intprops: switch to usual gnulib indenting and naming
16022         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16023         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16024
16025         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16026
16027 2011-05-08  Jim Meyering  <meyering@redhat.com>
16028
16029         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16030         * top/maint.mk (release-prep): Use make's --no-print-directory
16031         option when generating the announcement.  This eliminates the
16032         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16033         generated announcement template.
16034
16035 2011-05-08  Bruno Haible  <bruno@clisp.org>
16036
16037         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16038         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16039         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16040
16041 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16042
16043         ignore-value, verify: Omit include files from lib_SOURCES.
16044         * modules/ignore-value, modules/verify (Makefile.am):
16045         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16046         that leads Automake to duplicate use of am__objects_... variables
16047         in Makefile.in.  See
16048         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16049
16050 2011-05-07  Bruno Haible  <bruno@clisp.org>
16051
16052         fclose: Simplify autoconf macro.
16053         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16054         defined.
16055
16056 2011-05-07  Bruno Haible  <bruno@clisp.org>
16057
16058         canonicalize-lgpl: Fix autoconf macro ordering bug.
16059         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16060         gl_STDLIB_H_DEFAULTS.
16061
16062 2011-05-06  Eric Blake  <eblake@redhat.com>
16063
16064         maintainer-makefile: make sc_po_check easier to tune
16065         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16066         to probe for strings, such as an alternate location for gnulib.
16067
16068         fclose: guarantee behavior on seekable stdin
16069         * modules/fclose (Depends-on): Add fflush.
16070         * doc/posix-functions/fclose.texi (fclose): Document this.
16071         * tests/test-fclose.c (main): Make test for this unconditional.
16072
16073 2011-05-06  Bruno Haible  <bruno@clisp.org>
16074
16075         fflush, fpurge: Relicense under LGPLv2+.
16076         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16077         * modules/fpurge (License): Likewise.
16078         With permission from Eric Blake and Jim Meyering.
16079         Suggested by Eric Blake.
16080
16081 2011-05-06  Karl Berry  <karl@gnu.org>
16082
16083         * MODULES.html.sh (func_all_modules): remove exit.
16084
16085 2011-05-06  Jim Meyering  <meyering@redhat.com>
16086
16087         maint.mk: use info-gnu@ as the default only for a stable release
16088         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16089         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16090         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16091         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16092
16093 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16094
16095         assert-h: new module, which supports C1X-style static_assert
16096         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16097         * lib/verify.h: Revamp so that this can be copied into assert.h,
16098         while retaining the ability to use it standalone as before.
16099         Rename private identifiers so as not to encroach on the
16100         standard C namespace, since this is now used by assert.h.
16101         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16102         the old verify_true.
16103         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16104         the old verify_true.  Use _GL_VERIFY_TYPE.
16105         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16106         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16107         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16108         defined when this file is copied into the replacement assert.h.
16109         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16110         and _Static_assert is not built in.
16111         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16112         defined, and use the new macros mentioned above.
16113         * doc/posix-headers/assert.texi: Document this.
16114
16115 2011-05-05  Bruno Haible  <bruno@clisp.org>
16116
16117         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16118         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16119         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16120         gl_REPLACE_FCLOSE here.
16121         * modules/fflush (Depends-on): Remove fclose.
16122         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16123         combination with module 'fclose'.
16124
16125 2011-05-05  Bruno Haible  <bruno@clisp.org>
16126
16127         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16128         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16129         gl_FUNC_FFLUSH.
16130         (gl_FUNC_FFLUSH): Use it.
16131         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16132         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16133         gl_REPLACE_FSEEKO here.
16134
16135 2011-05-05  Bruno Haible  <bruno@clisp.org>
16136
16137         tzset: Relicense under LGPL.
16138         * modules/tzset (License): Change to LGPL.
16139         No agreement needed; it's a no-op.
16140
16141         strtoimax, strtoumax: Relicense under LGPL.
16142         * modules/strtoimax (License): Change to LGPL.
16143         * modules/strtoumax (License): Likewise.
16144         With permission from Jim Meyering, Paul Eggert:
16145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16147
16148         getgroups: Relicense under LGPL.
16149         * modules/getgroups (License): Change to LGPL.
16150         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16154
16155         nanosleep: Relicense under LGPL.
16156         * modules/nanosleep (License): Change to LGPL.
16157         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16158         Haible:
16159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16163
16164         futimens: Relicense under LGPL.
16165         * modules/futimens (License): Change to LGPL.
16166         With permission from Eric Blake:
16167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16168
16169         fflush: Relicense under LGPL.
16170         * modules/fflush (License): Change to LGPL.
16171         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16175
16176         tmpfile: Relicense under LGPL.
16177         * modules/tmpfile (License): Change to LGPL.
16178         With permission from Ben Pfaff:
16179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16180
16181         isfinite: Relicense under LGPL.
16182         * modules/isfinite (License): Change to LGPL.
16183         With permission from Ben Pfaff, Bruno Haible:
16184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16186
16187         acosl..tanl: Relicense under LGPL.
16188         * modules/acosl (License): Change to LGPL.
16189         * modules/asinl (License): Likewise.
16190         * modules/atanl (License): Likewise.
16191         * modules/cosl (License): Likewise.
16192         * modules/expl (License): Likewise.
16193         * modules/logl (License): Likewise.
16194         * modules/sinl (License): Likewise.
16195         * modules/sqrtl (License): Likewise.
16196         * modules/tanl (License): Likewise.
16197         Source code originally from glibc and Paolo Bonzini. Agreements:
16198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16200
16201 2011-05-05  Bruno Haible  <bruno@clisp.org>
16202
16203         signal: Define sighandler_t.
16204         * lib/signal.in.h (sighandler_t): New type.
16205         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16206         whether sighandler_t is defined.
16207         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16208         * modules/signal (Depends-on): Add extensions.
16209         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16210         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16211         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16212
16213 2011-05-05  Eric Blake  <eblake@redhat.com>
16214
16215         maint: remove useless REPLACE_*_H macros
16216         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16217         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16218         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16219         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16220         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16221         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16222         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16223         * m4/btowc.m4: Update callers.
16224         * m4/dirfd.m4: Likewise.
16225         * m4/duplocale.m4: Likewise.
16226         * m4/fchdir.m4: Likewise.
16227         * m4/fdopendir.m4: Likewise.
16228         * m4/inet_ntop.m4: Likewise.
16229         * m4/inet_pton.m4: Likewise.
16230         * m4/ioctl.m4: Likewise.
16231         * m4/mbrlen.m4: Likewise.
16232         * m4/mbrtowc.m4: Likewise.
16233         * m4/mbsinit.m4: Likewise.
16234         * m4/mbsnrtowcs.m4: Likewise.
16235         * m4/mbsrtowcs.m4: Likewise.
16236         * m4/poll.m4: Likewise.
16237         * m4/setlocale.m4: Likewise.
16238         * m4/wcrtomb.m4: Likewise.
16239         * m4/wcsnrtombs.m4: Likewise.
16240         * m4/wcsrtombs.m4: Likewise.
16241         * m4/wctob.m4: Likewise.
16242         * m4/wcwidth.m4: Likewise.
16243         * modules/posix_spawn: Likewise.
16244         * modules/posix_spawn_file_actions_addclose: Likewise.
16245         * modules/posix_spawn_file_actions_adddup2: Likewise.
16246         * modules/posix_spawn_file_actions_addopen: Likewise.
16247         * modules/posix_spawn_file_actions_destroy: Likewise.
16248         * modules/posix_spawn_file_actions_init: Likewise.
16249         * modules/posix_spawnattr_destroy: Likewise.
16250         * modules/posix_spawnattr_getflags: Likewise.
16251         * modules/posix_spawnattr_getpgroup: Likewise.
16252         * modules/posix_spawnattr_getschedparam: Likewise.
16253         * modules/posix_spawnattr_getschedpolicy: Likewise.
16254         * modules/posix_spawnattr_getsigdefault: Likewise.
16255         * modules/posix_spawnattr_getsigmask: Likewise.
16256         * modules/posix_spawnattr_init: Likewise.
16257         * modules/posix_spawnattr_setflags: Likewise.
16258         * modules/posix_spawnattr_setpgroup: Likewise.
16259         * modules/posix_spawnattr_setschedparam: Likewise.
16260         * modules/posix_spawnattr_setschedpolicy: Likewise.
16261         * modules/posix_spawnattr_setsigdefault: Likewise.
16262         * modules/posix_spawnattr_setsigmask: Likewise.
16263         * modules/posix_spawnp: Likewise.
16264
16265 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16266
16267         Add option to do-release-commit-and-tag to specify branch.
16268         * build-aux/do-release-commit-and-tag: Add --branch.
16269
16270 2011-05-03  Bruno Haible  <bruno@clisp.org>
16271
16272         Avoid unnecessary compilation units, through conditional dependencies.
16273         * modules/accept (Depends-on): Add conditions to the dependencies.
16274         * modules/acosl (Depends-on): Likewise.
16275         * modules/argz (Depends-on): Likewise.
16276         * modules/asinl (Depends-on): Likewise.
16277         * modules/atanl (Depends-on): Likewise.
16278         * modules/atoll (Depends-on): Likewise.
16279         * modules/bind (Depends-on): Likewise.
16280         * modules/btowc (Depends-on): Likewise.
16281         * modules/canonicalize-lgpl (Depends-on): Likewise.
16282         * modules/ceil (Depends-on): Likewise.
16283         * modules/ceilf (Depends-on): Likewise.
16284         * modules/ceill (Depends-on): Likewise.
16285         * modules/chdir-long (Depends-on): Likewise.
16286         * modules/chown (Depends-on): Likewise.
16287         * modules/close (Depends-on): Likewise.
16288         * modules/connect (Depends-on): Likewise.
16289         * modules/cosl (Depends-on): Likewise.
16290         * modules/dirfd (Depends-on): Likewise.
16291         * modules/dprintf (Depends-on): Likewise.
16292         * modules/dprintf-posix (Depends-on): Likewise.
16293         * modules/error (Depends-on): Likewise.
16294         * modules/euidaccess (Depends-on): Likewise.
16295         * modules/expl (Depends-on): Likewise.
16296         * modules/faccessat (Depends-on): Likewise.
16297         * modules/fchdir (Depends-on): Likewise.
16298         * modules/fclose (Depends-on): Likewise.
16299         * modules/fcntl (Depends-on): Likewise.
16300         * modules/fdopendir (Depends-on): Likewise.
16301         * modules/fflush (Depends-on): Likewise.
16302         * modules/floor (Depends-on): Likewise.
16303         * modules/floorf (Depends-on): Likewise.
16304         * modules/floorl (Depends-on): Likewise.
16305         * modules/fnmatch (Depends-on): Likewise.
16306         * modules/fopen (Depends-on): Likewise.
16307         * modules/fprintf-posix (Depends-on): Likewise.
16308         * modules/frexp (Depends-on): Likewise.
16309         * modules/frexp-nolibm (Depends-on): Likewise.
16310         * modules/frexpl (Depends-on): Likewise.
16311         * modules/frexpl-nolibm (Depends-on): Likewise.
16312         * modules/fseek (Depends-on): Likewise.
16313         * modules/fsusage (Depends-on): Likewise.
16314         * modules/ftell (Depends-on): Likewise.
16315         * modules/ftello (Depends-on): Likewise.
16316         * modules/futimens (Depends-on): Likewise.
16317         * modules/getcwd (Depends-on): Likewise.
16318         * modules/getcwd-lgpl (Depends-on): Likewise.
16319         * modules/getdelim (Depends-on): Likewise.
16320         * modules/getdomainname (Depends-on): Likewise.
16321         * modules/getgroups (Depends-on): Likewise.
16322         * modules/gethostname (Depends-on): Likewise.
16323         * modules/getline (Depends-on): Likewise.
16324         * modules/getlogin_r (Depends-on): Likewise.
16325         * modules/getopt-posix (Depends-on): Likewise.
16326         * modules/getpeername (Depends-on): Likewise.
16327         * modules/getsockname (Depends-on): Likewise.
16328         * modules/getsockopt (Depends-on): Likewise.
16329         * modules/getsubopt (Depends-on): Likewise.
16330         * modules/getusershell (Depends-on): Likewise.
16331         * modules/glob (Depends-on): Likewise.
16332         * modules/grantpt (Depends-on): Likewise.
16333         * modules/iconv_open (Depends-on): Likewise.
16334         * modules/iconv_open-utf (Depends-on): Likewise.
16335         * modules/inet_ntop (Depends-on): Likewise.
16336         * modules/inet_pton (Depends-on): Likewise.
16337         * modules/ioctl (Depends-on): Likewise.
16338         * modules/isapipe (Depends-on): Likewise.
16339         * modules/isfinite (Depends-on): Likewise.
16340         * modules/isinf (Depends-on): Likewise.
16341         * modules/lchown (Depends-on): Likewise.
16342         * modules/ldexpl (Depends-on): Likewise.
16343         * modules/link (Depends-on): Likewise.
16344         * modules/linkat (Depends-on): Likewise.
16345         * modules/listen (Depends-on): Likewise.
16346         * modules/logl (Depends-on): Likewise.
16347         * modules/lstat (Depends-on): Likewise.
16348         * modules/mbrlen (Depends-on): Likewise.
16349         * modules/mbrtowc (Depends-on): Likewise.
16350         * modules/mbsinit (Depends-on): Likewise.
16351         * modules/mbsnrtowcs (Depends-on): Likewise.
16352         * modules/mbsrtowcs (Depends-on): Likewise.
16353         * modules/mbtowc (Depends-on): Likewise.
16354         * modules/memcmp (Depends-on): Likewise.
16355         * modules/mkdir (Depends-on): Likewise.
16356         * modules/mkdtemp (Depends-on): Likewise.
16357         * modules/mkfifo (Depends-on): Likewise.
16358         * modules/mkfifoat (Depends-on): Likewise.
16359         * modules/mknod (Depends-on): Likewise.
16360         * modules/mkostemp (Depends-on): Likewise.
16361         * modules/mkostemps (Depends-on): Likewise.
16362         * modules/mkstemp (Depends-on): Likewise.
16363         * modules/mkstemps (Depends-on): Likewise.
16364         * modules/mktime (Depends-on): Likewise.
16365         * modules/nanosleep (Depends-on): Likewise.
16366         * modules/open (Depends-on): Likewise.
16367         * modules/openat (Depends-on): Likewise.
16368         * modules/perror (Depends-on): Likewise.
16369         * modules/poll (Depends-on): Likewise.
16370         * modules/popen (Depends-on): Likewise.
16371         * modules/posix_spawn (Depends-on): Likewise.
16372         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16373         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16374         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16375         * modules/posix_spawnp (Depends-on): Likewise.
16376         * modules/pread (Depends-on): Likewise.
16377         * modules/printf-posix (Depends-on): Likewise.
16378         * modules/ptsname (Depends-on): Likewise.
16379         * modules/putenv (Depends-on): Likewise.
16380         * modules/pwrite (Depends-on): Likewise.
16381         * modules/readline (Depends-on): Likewise.
16382         * modules/readlink (Depends-on): Likewise.
16383         * modules/readlinkat (Depends-on): Likewise.
16384         * modules/recv (Depends-on): Likewise.
16385         * modules/recvfrom (Depends-on): Likewise.
16386         * modules/regex (Depends-on): Likewise.
16387         * modules/remove (Depends-on): Likewise.
16388         * modules/rename (Depends-on): Likewise.
16389         * modules/renameat (Depends-on): Likewise.
16390         * modules/rmdir (Depends-on): Likewise.
16391         * modules/round (Depends-on): Likewise.
16392         * modules/roundf (Depends-on): Likewise.
16393         * modules/roundl (Depends-on): Likewise.
16394         * modules/rpmatch (Depends-on): Likewise.
16395         * modules/select (Depends-on): Likewise.
16396         * modules/send (Depends-on): Likewise.
16397         * modules/sendto (Depends-on): Likewise.
16398         * modules/setenv (Depends-on): Likewise.
16399         * modules/setlocale (Depends-on): Likewise.
16400         * modules/setsockopt (Depends-on): Likewise.
16401         * modules/shutdown (Depends-on): Likewise.
16402         * modules/sigaction (Depends-on): Likewise.
16403         * modules/signbit (Depends-on): Likewise.
16404         * modules/sigprocmask (Depends-on): Likewise.
16405         * modules/sinl (Depends-on): Likewise.
16406         * modules/sleep (Depends-on): Likewise.
16407         * modules/snprintf (Depends-on): Likewise.
16408         * modules/snprintf-posix (Depends-on): Likewise.
16409         * modules/socket (Depends-on): Likewise.
16410         * modules/sprintf-posix (Depends-on): Likewise.
16411         * modules/sqrtl (Depends-on): Likewise.
16412         * modules/stat (Depends-on): Likewise.
16413         * modules/strchrnul (Depends-on): Likewise.
16414         * modules/strdup-posix (Depends-on): Likewise.
16415         * modules/strerror (Depends-on): Likewise.
16416         * modules/strerror_r-posix (Depends-on): Likewise.
16417         * modules/strndup (Depends-on): Likewise.
16418         * modules/strnlen (Depends-on): Likewise.
16419         * modules/strptime (Depends-on): Likewise.
16420         * modules/strsep (Depends-on): Likewise.
16421         * modules/strsignal (Depends-on): Likewise.
16422         * modules/strstr-simple (Depends-on): Likewise.
16423         * modules/strtod (Depends-on): Likewise.
16424         * modules/strtoimax (Depends-on): Likewise.
16425         * modules/strtok_r (Depends-on): Likewise.
16426         * modules/strtoumax (Depends-on): Likewise.
16427         * modules/symlink (Depends-on): Likewise.
16428         * modules/symlinkat (Depends-on): Likewise.
16429         * modules/tanl (Depends-on): Likewise.
16430         * modules/tcgetsid (Depends-on): Likewise.
16431         * modules/tmpfile (Depends-on): Likewise.
16432         * modules/trunc (Depends-on): Likewise.
16433         * modules/truncf (Depends-on): Likewise.
16434         * modules/truncl (Depends-on): Likewise.
16435         * modules/uname (Depends-on): Likewise.
16436         * modules/unlink (Depends-on): Likewise.
16437         * modules/unlockpt (Depends-on): Likewise.
16438         * modules/unsetenv (Depends-on): Likewise.
16439         * modules/usleep (Depends-on): Likewise.
16440         * modules/utimensat (Depends-on): Likewise.
16441         * modules/vasprintf (Depends-on): Likewise.
16442         * modules/vdprintf (Depends-on): Likewise.
16443         * modules/vdprintf-posix (Depends-on): Likewise.
16444         * modules/vfprintf-posix (Depends-on): Likewise.
16445         * modules/vprintf-posix (Depends-on): Likewise.
16446         * modules/vsnprintf (Depends-on): Likewise.
16447         * modules/vsnprintf-posix (Depends-on): Likewise.
16448         * modules/vsprintf-posix (Depends-on): Likewise.
16449         * modules/wcrtomb (Depends-on): Likewise.
16450         * modules/wcscasecmp (Depends-on): Likewise.
16451         * modules/wcscspn (Depends-on): Likewise.
16452         * modules/wcsdup (Depends-on): Likewise.
16453         * modules/wcsncasecmp (Depends-on): Likewise.
16454         * modules/wcsnrtombs (Depends-on): Likewise.
16455         * modules/wcspbrk (Depends-on): Likewise.
16456         * modules/wcsrtombs (Depends-on): Likewise.
16457         * modules/wcsspn (Depends-on): Likewise.
16458         * modules/wcsstr (Depends-on): Likewise.
16459         * modules/wcstok (Depends-on): Likewise.
16460         * modules/wcswidth (Depends-on): Likewise.
16461         * modules/wctob (Depends-on): Likewise.
16462         * modules/wctomb (Depends-on): Likewise.
16463         * modules/wctype (Depends-on): Likewise.
16464         * modules/wcwidth (Depends-on): Likewise.
16465         * modules/write (Depends-on): Likewise.
16466
16467 2011-05-03  Bruno Haible  <bruno@clisp.org>
16468
16469         Support for conditional dependencies.
16470         * doc/gnulib.texi (Module description): Document the syntax of
16471         conditional dependencies.
16472         * gnulib-tool: New option --conditional-dependencies.
16473         (func_usage): Document it.
16474         (cond_dependencies): New variable.
16475         (func_get_automake_snippet_conditional,
16476         func_get_automake_snippet_unconditional): New functions, extracted from
16477         func_get_automake_snippet.
16478         (func_get_automake_snippet): Use them.
16479         (sed_first_32_chars): New variable.
16480         (func_module_shellfunc_name): New function.
16481         (func_module_shellvar_name): New function.
16482         (func_module_conditional_name): New function.
16483         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16484         func_cond_module_condition): New functions.
16485         (func_modules_transitive_closure): Add support for conditional
16486         dependencies.
16487         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16488         conditional automake snippet in an automake conditional.
16489         (func_emit_autoconf_snippets): Emit shell functions that contain the
16490         code for conditional modules.
16491         (func_import, func_create_testdir): Update specification.
16492
16493 2011-05-03  Eric Blake  <eblake@redhat.com>
16494
16495         test-getaddrinfo: report error information
16496         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16497
16498 2011-05-03  Jim Meyering  <meyering@redhat.com>
16499
16500         bootstrap: avoid build failure when $GZIP is set
16501         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16502         program name.  If defined at all, it is supposed to list gzip options.
16503         Reported by Alan Curry in http://debbugs.gnu.org/8609
16504
16505 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16506
16507         readme-release: new module with release instructions
16508         * modules/readme-release: New module.
16509         * top/README-release: New file, from coreutils, grep, diffutils.
16510         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16511
16512 2011-05-02  Eric Blake  <eblake@redhat.com>
16513
16514         fflush: also replace fclose when fixing fflush
16515         * modules/fflush (Depends-on): Add fclose.
16516         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16517         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16518         memstreams with no backing fd.
16519         * doc/posix-functions/fclose.texi (fclose): Document the use of
16520         fflush module to fix the bug.
16521         * tests/test-fclose.c (main): Relax test when fclose is used in
16522         isolation.
16523
16524         fclose: add some tests
16525         * modules/fclose-tests: New test module.
16526         * tests/test-fclose.c: New file.
16527         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16528
16529         fclose: reduced dependencies
16530         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16531         simpler lseek.
16532         * lib/fclose.c (rpl_fclose): Likewise.
16533         Reported by Simon Josefsson.
16534
16535         exit: drop remaining clients
16536         * modules/argmatch (Depends-on): Replace exit with stdlib.
16537         * modules/copy-file (Depends-on): Likewise.
16538         * modules/execute (Depends-on): Likewise.
16539         * modules/exitfail (Depends-on): Likewise.
16540         * modules/obstack (Depends-on): Likewise.
16541         * modules/pagealign_alloc (Depends-on): Likewise.
16542         * modules/pipe-filter-gi (Depends-on): Likewise.
16543         * modules/pipe-filter-ii (Depends-on): Likewise.
16544         * modules/savewd (Depends-on): Likewise.
16545         * modules/spawn-pipe (Depends-on): Likewise.
16546         * modules/wait-process (Depends-on): Likewise.
16547         * modules/xsetenv (Depends-on): Likewise.
16548         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16549         * modules/git-merge-changelog (Depends-on): Likewise.
16550         * modules/long-options (Depends-on): Likewise.
16551         * modules/pt_chown (Depends-on): Likewise.
16552         * modules/sysexits (Depends-on): Likewise.
16553
16554         freading: relax license from LGPLv3+ to LGPLv2+
16555         * modules/freading (License): Relax LGPL version.
16556
16557 2011-05-02  Bruno Haible  <bruno@clisp.org>
16558
16559         fchdir: Remove unused dependencies.
16560         * modules/fchdir (Depends-on): Remove include_next.
16561
16562 2011-05-02  Bruno Haible  <bruno@clisp.org>
16563
16564         gnulib-tool: Refactor.
16565         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16566         from func_emit_autoconf_snippets.
16567         (func_emit_autoconf_snippets): Use it.
16568
16569 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16570
16571         * NEWS: Document removal of 'exit'.
16572         * modules/exit: Remove file.
16573
16574 2011-05-01  Bruno Haible  <bruno@clisp.org>
16575
16576         Update DEPENDENCIES.
16577         * DEPENDENCIES (gettext): Recommend the newest release.
16578         Reported by Simon Josefsson.
16579
16580 2011-05-01  Bruno Haible  <bruno@clisp.org>
16581
16582         gnulib-tool: Reduce code duplication.
16583         * gnulib-tool (func_emit_autoconf_snippets): New function.
16584         (func_import, func_create_testdir): Use it.
16585
16586 2011-04-30  Eric Blake  <eblake@redhat.com>
16587
16588         fclose: don't fail on non-seekable input stream
16589         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16590         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16591         since fflush is allowed to fail in that case.
16592
16593 2011-04-30  Bruno Haible  <bruno@clisp.org>
16594
16595         dup3: cleanup
16596         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16597
16598 2011-04-30  Bruno Haible  <bruno@clisp.org>
16599
16600         netdb: Make it work in C++ mode.
16601         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16602         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16603         module.
16604         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16605         gl_MODULE_INDICATOR_FOR_TESTS.
16606         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16607         * modules/netdb-c++-tests: New file.
16608         * tests/test-netdb-c++.cc: New file.
16609
16610 2011-04-30  Bruno Haible  <bruno@clisp.org>
16611
16612         New modules 'vfscanf', 'vscanf'.
16613         * modules/vfscanf: New file.
16614         * modules/vscanf: New file.
16615         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16616         here.
16617         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16618         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16619
16620 2011-04-30  Bruno Haible  <bruno@clisp.org>
16621
16622         passfd: Add comments.
16623         * lib/passfd.c: Add comments about platforms.
16624
16625 2011-04-30  Bruno Haible  <bruno@clisp.org>
16626
16627         sys_uio: Make <sys/uio.h> self-contained.
16628         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16629         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16630
16631 2011-04-30  Bruno Haible  <bruno@clisp.org>
16632
16633         sys_socket: Ensure 'struct iovec' definition.
16634         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16635         <sys/socket.h>.
16636         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16637
16638 2011-04-30  Bruno Haible  <bruno@clisp.org>
16639
16640         sys_uio: Protect definition of 'struct iovec'.
16641         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16642         it as a C struct.
16643
16644 2011-04-30  Bruno Haible  <bruno@clisp.org>
16645
16646         manywarnings: fix indentation
16647         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16648
16649 2011-04-30  Pádraig Brady <P@draigBrady.com>
16650
16651         manywarnings: add -Wno-missing-field-initializers if needed.
16652         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16653         option if it's needed to allow initialization with { 0, }
16654
16655 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16656
16657         announce-gen: cosmetic improvement
16658         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16659
16660 2011-04-29  Jim Meyering  <meyering@redhat.com>
16661
16662         vc-list-files: indent with spaces, not TABs
16663         * build-aux/vc-list-files: Convert leading TABs to spaces,
16664         to match the style of most other files in gnulib.
16665
16666         announce-gen: indent with spaces, not TABs
16667         * build-aux/announce-gen: Convert all TABs to spaces, to match
16668         the style of most other files in gnulib.
16669
16670 2011-04-29  Eric Blake  <eblake@redhat.com>
16671
16672         quotearg: avoid uninitialized variable use
16673         * lib/quotearg.c (quoting_options_from_style): Initialize
16674         remaining fields, and ensure that custom styles are only used via
16675         quoting_options rather than quoting_style.
16676
16677 2011-04-29  Jim Meyering  <meyering@redhat.com>
16678
16679         maint.mk: remove unused VC-tag variable
16680         * top/maint.mk (VC-tag): Remove unused variable.
16681
16682 2011-04-29  Bruno Haible  <bruno@clisp.org>
16683
16684         netdb: fix gai_strerror replacements
16685         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16686         * modules/netdb: Substitute it.
16687
16688 2011-04-29  Jim Meyering  <meyering@redhat.com>
16689
16690         test-getcwd.c: avoid new set-but-not-used warning
16691         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16692         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16693         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16694         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16695
16696         test-hash.c: avoid a new shadowing warning
16697         * tests/test-hash.c (main): Don't shadow "dup".
16698
16699 2011-04-28  Eric Blake  <eblake@redhat.com>
16700
16701         getaddrinfo: fix gai_strerror signature
16702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16703         and work around mingw with UNICODE defined.
16704         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16705         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16706         * modules/netdb (Makefile.am): Substitute it.
16707         * lib/netdb.in.h (gai_strerror): Declare replacement.
16708         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16709         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16710         the fix.
16711
16712         getsockopt: avoid compiler warning
16713         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16714         Reported by Matthias Bolte.
16715
16716         tests: drop unused link dependency
16717         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16718         * modules/dirent-safer-tests (Makefile.am): Likewise.
16719         * modules/fdopendir-tests (Makefile.am): Likewise.
16720         * modules/mkfifoat-tests (Makefile.am): Likewise.
16721         * modules/openat-safer-tests (Makefile.am): Likewise.
16722         * modules/openat-tests (Makefile.am): Likewise.
16723         * modules/readlinkat-tests (Makefile.am): Likewise.
16724         * modules/symlinkat-tests (Makefile.am): Likewise.
16725         * modules/linkat-tests (Makefile.am): Likewise.
16726         (Depends-on): Switch to filenamecat-lgpl.
16727         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16728         LIBINTL.
16729         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16730         * tests/test-linkat.c (main): Don't require xalloc.
16731
16732         hash, mgetgroups: drop xalloc dependency
16733         * lib/hash.c (includes): Adjust includes.
16734         * lib/mgetgroups.c (includes): Likewise.
16735         (xgetgroups): Move...
16736         * lib/xgetgroups.c: ...to new file.
16737         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16738         * modules/xgetgroups: New file, split from...
16739         * modules/mgetgroups: ...here.
16740         (Depends-on): Add xalloc-oversized.
16741         * modules/hash (Depends-on): Likewise.
16742         * modules/hash-tests (Depends-on): Drop xalloc.
16743         (test_hash_LDADD): Drop unused library.
16744         * tests/test-hash.c (main): Break xalloc dependency.
16745         (includes): Drop unused include.
16746
16747         xalloc-oversized: new module
16748         * modules/xalloc-oversized: New module.
16749         * modules/xalloc (Depends-on): Add it.
16750         * lib/xalloc.h (xalloc_oversized): Move...
16751         * lib/xalloc-oversized.h: ...into new file.
16752
16753         utimecmp: drop dependency on xmalloc
16754         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16755         due to memory pressure.
16756         * modules/utimecmp (Depends-on): Drop xalloc.
16757
16758 2011-04-27  Eric Blake  <eblake@redhat.com>
16759
16760         getcwd: fix mingw bugs
16761         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16762         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16763         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16764
16765 2011-04-27  Bruno Haible  <bruno@clisp.org>
16766
16767         mkstemps: Ensure declaration on MacOS X 10.5.
16768         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16769         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16770         MacOS X.
16771
16772 2011-04-27  Bruno Haible  <bruno@clisp.org>
16773
16774         mkstemp: More documentation.
16775         * doc/posix-functions/mkstemp.texi: Document header file problem on
16776         MacOS X.
16777
16778 2011-04-27  Bruno Haible  <bruno@clisp.org>
16779
16780         mkstemp: Tweak configure message when cross-compiling.
16781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16782         result as a guess.
16783
16784 2011-04-27  Bruno Haible  <bruno@clisp.org>
16785
16786         clean-temp: Clarify what it does.
16787         * lib/clean-temp.h: Add more comments.
16788         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16789         module.
16790         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16791         * doc/glibc-functions/mkstemps.texi: Likewise.
16792         * doc/glibc-functions/mkostemps.texi: Likewise.
16793
16794 2011-04-27  Eric Blake  <eblake@redhat.com>
16795
16796         fchdir: avoid extra chdir and fix test
16797         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16798         getcwd-lgpl.
16799         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16800         have to be canonical.
16801         (canonicalize_file_name): Drop unused macro.
16802         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16803
16804         filenamecat-lgpl: fix licence
16805         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16806         when it was first created.
16807
16808         linkat, renameat: add missing dependency
16809         * modules/linkat (Depends-on): Require getcwd-lgpl.
16810         * modules/renameat (Depends-on): Likewise.
16811
16812         tests: reduce dependencies
16813         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16814         * tests/test-renameat.c (main): Likewise.
16815         * modules/linkat-tests (Depends-on): Relax dependency.
16816         * modules/renameat-tests (Depends-on): Likewise.
16817         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16818         dependency explicit.
16819
16820         save-cwd: reduce default dependency
16821         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16822         * lib/save-cwd.c: Update comments.
16823         * NEWS: Document the semantic change.
16824
16825         getcwd: enhance tests
16826         * tests/test-getcwd-lgpl.c: New file, taken from...
16827         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16828         repeat long path stress tests from m4 probe.
16829         * modules/getcwd-lgpl-tests: New module.
16830         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16831         * m4/getcwd-abort-bug.m4: Update comment.
16832         * m4/getcwd-path-max.m4: Likewise.
16833
16834         getcwd-lgpl: new module
16835         * modules/getcwd-lgpl: New module.
16836         * lib/getcwd-lgpl.c: New file.
16837         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16838         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16839         * modules/getcwd (configure.ac): Set C witness.
16840         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16841
16842         getcwd: tweak comments
16843         * m4/getcwd-abort-bug.m4: Fix comments.
16844         * m4/getcwd-path-max.m4: Likewise.
16845         * m4/getcwd.m4: Likewise.
16846
16847 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16848         and Eric Blake  <eblake@redhat.com>
16849
16850         mkstemp: replace if system version uses wrong permissions
16851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16852         read/write mode bits set in file created by mkstemp.
16853         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16854
16855 2011-04-27  Eric Blake  <eblake@redhat.com>
16856
16857         passfd: avoid compiler warning
16858         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16859         Reported by Laine Stump.
16860
16861 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16862
16863         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16864         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16865
16866 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16867         and Eric Blake  <eblake@redhat.com>
16868
16869         mkstemp: mention clean-temp module
16870         * lib/mkstemp.c: Add comment.
16871         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16872
16873 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16874
16875         inttypes: also provide default values for 32-bit tests
16876         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16877         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16878
16879 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16880
16881         strtoumax: remove dependency on strtoimax
16882         This is like the strtoull change of yesterday.
16883         * modules/strtoumax (Files): Add lib/strtoimax.c.
16884         (Depends-on): Remove strtoimax and add verify.
16885
16886         inttypes-incomplete: new module
16887         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16888         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16889         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16890         of gl_INTTYPES_H.
16891         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16892         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16893         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16894         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16895         * modules/strtoumax, modules/xstrtol (Depends-on):
16896         Depend on inttypes-incomplete, not inttypes.
16897         * modules/inttypes-incomplete: New module, containing the contents
16898         of the old modules/inttypes module, except that the Files: section
16899         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16900         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16901         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16902         (Depends-on): Depend only on inttypes-incomplete.
16903         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16904
16905         inttypes: omit now-redundant strtoimax and strtoumax work
16906         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16907         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16908
16909         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16910         This supports apps that need pointers to strtoimax and strtoumax,
16911         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16912         nonexistent functions.  See
16913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16914         et seq.
16915         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16916         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16917         a macro.
16918         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16919
16920 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16921
16922         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16923
16924 2011-04-25  Bruno Haible  <bruno@clisp.org>
16925
16926         strtol, strtoul: Mark modules as obsolete.
16927         * modules/strtol (Status, Notice): New sections.
16928         * modules/strtoul (Status, Notice): New sections.
16929
16930 2011-04-25  Bruno Haible  <bruno@clisp.org>
16931
16932         strtod: Remove check for strtod, unless supporting old platforms.
16933         * modules/strtod-obsolete: New file.
16934         * m4/strtod-obsolete.m4: New file.
16935         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16936         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16937         * modules/strtod (Depends-on): Add strtod-obsolete.
16938         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16939
16940 2011-04-25  Bruno Haible  <bruno@clisp.org>
16941
16942         strcase: Make module obsolete.
16943         * modules/strcase (Status, Notice): New sections.
16944
16945 2011-04-25  Bruno Haible  <bruno@clisp.org>
16946
16947         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16948         * modules/dup2-obsolete: New file.
16949         * m4/dup2-obsolete.m4: New file.
16950         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16951         gl_FUNC_DUP2_OBSOLETE is not also defined.
16952         * modules/dup2 (Depends-on): Add dup2-obsolete.
16953         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16954
16955 2011-04-25  Bruno Haible  <bruno@clisp.org>
16956
16957         strnlen: Avoid memchr related link error on old obsolete platforms.
16958         * modules/memchr-obsolete: New file.
16959         * m4/memchr-obsolete.m4: New file.
16960         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16961         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16962         * modules/memchr (Depends-on): Add memchr-obsolete.
16963         * modules/strnlen (Depends-on): Likewise.
16964         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16965
16966 2011-04-25  Jim Meyering  <meyering@redhat.com>
16967
16968         maint.mk: makefile_at_at_check extend and clean up
16969         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16970         in addition to */Makefile.am.
16971         Exempt legitimate uses of @VAR@ notation, e.g.,
16972         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16973         Remove obsolete coreutils-specific comment.
16974         Prompted by discussion here:
16975         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16976
16977 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16978
16979         strtoul: remove dependency on strtol
16980         This is so that 'configure' need not check for strtol merely because
16981         the application needs strtoul.
16982         * modules/strtoul (Files): Add lib/strtol.c.
16983         (Depends-on): Remove strtol.
16984
16985         strtoull: remove dependency on strtoul
16986         This is like the strtoll change.
16987         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16988         (Depends-on): Remove strtoul.
16989
16990         strtoll: remove dependency on strtol
16991         This is so that 'configure' need not check for strtol merely because
16992         the application needs strtoll.
16993         * modules/strtoll (Files): Add lib/strtol.c.
16994         (Depends-on): Remove strtol.
16995
16996 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16997
16998         inttypes: Move some configure check to module 'imaxdiv'.
16999         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17000         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17001         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17002
17003 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17004
17005         inttypes: Move some configure check to module 'imaxabs'.
17006         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17007         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17008         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17009
17010 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17011
17012         inttypes: Remove configure tests that are not needed since 2009-12-31.
17013         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17014         gl_cv_header_working_inttypes_h.
17015
17016 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17017
17018         * modules/strnlen (Depends-on): Remove memchr.
17019         The strnlen implementation doesn't need the memchr module's fixes; see
17020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17021
17022         strtol: remove dependency on wchar
17023         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17024         * modules/strtol (Depends-on): Remove wchar.
17025
17026 2011-04-21  Eric Blake  <eblake@redhat.com>
17027
17028         passfd: fix test regression on Linux
17029         * modules/passfd-tests (configure.ac): Correct socketpair check.
17030
17031         passfd: speed up configure and drop unused code
17032         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17033         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17034         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17035         Instead of probing at configure for unix_scm_rights_bsd44_way,
17036         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17037         check to a struct member probe.
17038         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17039         (sendfd, recvfd): Update preprocessor checks.
17040         * modules/passfd (Files): Reflect rename, and drop unused file.
17041         (Depends-on): Drop unused dependency.
17042
17043         passfd: allow compilation on mingw
17044         * modules/sys_socket (Depends-on): Add sys_uio.
17045         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17046         iovec and a minimal struct msghdr.
17047         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17048         * tests/test-sys_socket.c (main): Enhance test.
17049         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17050         guaranteed to provide what we need.
17051         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17052         * modules/passfd-tests (Depends-on): Add sys_wait.
17053         * tests/test-passfd.c (main): Skip test on mingw, for now.
17054         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17055         partial 'struct msghdr' implementation.
17056
17057         sys_uio: new module
17058         * modules/sys_uio: New module.
17059         * modules/sys_uio-tests: Likewise.
17060         * lib/sys_uio.in.h: New file.
17061         * m4/sys_uio_h.m4: Likewise.
17062         * tests/test-sys_uio.c: Likewise.
17063         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17064         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17065
17066 2011-04-20  Jim Meyering  <meyering@redhat.com>
17067
17068         useless-if-before-free: avoid false-positive
17069         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17070         disjunct so that it too requires a terminating ";".  Without that,
17071         this script would identify as useless one statement from gcc that
17072         was not:
17073           if (aligned_ptr)
17074             free (((void **) aligned_ptr) [-1]);
17075
17076 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17077
17078         doc: update users.txt.
17079         * users.txt: Add barcode.
17080
17081 2011-04-19  Bruno Haible  <bruno@clisp.org>
17082
17083         ioctl: Remove link dependency on native Windows.
17084         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17085         (gl_close_fn, gl_ioctl_fn): New types.
17086         (struct fd_hook): Renamed from struct close_hook. Change type of
17087         private_close_fn field. Add private_ioctl_fn field.
17088         (close_hook_fn): Add parameter for primary close method.
17089         (execute_close_hooks, execute_all_close_hooks): Likewise.
17090         (ioctl_hook_fn): New type.
17091         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17092         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17093         argument.
17094         (unregister_fd_hook): Renamed from unregister_close_hook.
17095         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17096         Don't include <unistd.h>.
17097         (close): Remove undef.
17098         (anchor): Update.
17099         (execute_close_hooks): Add argument for primary close method.
17100         (execute_all_close_hooks): Likewise.
17101         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17102         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17103         argument. Allow each argument to be NULL.
17104         (unregister_fd_hook): Renamed from unregister_close_hook.
17105         * lib/close.c (rpl_close): Pass 'close' function pointer to
17106         execute_all_close_hooks.
17107         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17108         (primary_ioctl): New function.
17109         (ioctl): Don't call ioctlsocket here. Instead, call
17110         execute_all_ioctl_hooks.
17111         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17112         close method.
17113         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17114         (fd_sockets_hook): Renamed from close_sockets_hook.
17115         (gl_sockets_startup, gl_sockets_cleanup): Update.
17116         * modules/fd-hook: Renamed from modules/close-hook. Update.
17117         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17118         * modules/sockets (Depends-on): Likewise.
17119         * modules/ioctl (Depends-on): Add fd-hook.
17120         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17121         GNULIB_SOCKET.
17122
17123 2011-04-19  Bruno Haible  <bruno@clisp.org>
17124
17125         Move the support of O_NONBLOCK in open() to the 'open' module.
17126         * modules/nonblocking (Depends-on): Remove 'open'.
17127         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17128         gl_cv_have_open_O_NONBLOCK.
17129         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17130         O_NONBLOCK support.
17131         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17132
17133 2011-04-17  Bruno Haible  <bruno@clisp.org>
17134
17135         pipe2: Simplify code.
17136         * lib/pipe2.c (pipe2): Reduce code duplication.
17137
17138 2011-04-17  Bruno Haible  <bruno@clisp.org>
17139
17140         nonblocking: Add comment.
17141         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17142
17143 2011-04-17  Bruno Haible  <bruno@clisp.org>
17144
17145         nonblocking: Add tests for sockets.
17146         * tests/test-nonblocking-socket.sh: New file.
17147         * tests/test-nonblocking-socket-main.c: New file.
17148         * tests/test-nonblocking-socket-child.c: New file.
17149         * tests/test-nonblocking-socket.h: New file.
17150         * tests/socket-server.h: New file.
17151         * tests/socket-client.h: New file.
17152         * modules/nonblocking-socket-tests: New file.
17153         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17154
17155 2011-04-17  Bruno Haible  <bruno@clisp.org>
17156
17157         nonblocking: Add tests for pipes.
17158         * tests/test-nonblocking-pipe.sh: New file.
17159         * tests/test-nonblocking-pipe-main.c: New file.
17160         * tests/test-nonblocking-pipe-child.c: New file.
17161         * tests/test-nonblocking-pipe.h: New file.
17162         * tests/test-nonblocking-writer.h: New file.
17163         * tests/test-nonblocking-reader.h: New file.
17164         * tests/test-nonblocking-misc.h: New file.
17165         * modules/nonblocking-pipe-tests: New file.
17166         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17167
17168 2011-04-16  Bruno Haible  <bruno@clisp.org>
17169
17170         gettext: Clarify the needed programmer actions.
17171         * modules/gettext (Notice): New field.
17172         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17173
17174 2011-04-16  Bruno Haible  <bruno@clisp.org>
17175
17176         strchrnul: Tweak last commit.
17177         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17178         bug.
17179         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17180         as in _GL_FUNCDECL_SYS.
17181         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17182         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17183
17184 2011-04-15  Eric Blake  <eblake@redhat.com>
17185
17186         strchrnul: work around cygwin bug
17187         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17188         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17190         * modules/string (Makefile.am): Substitute it.
17191         * lib/string.in.h (strchrnul): Use it.
17192
17193 2011-04-15  Bruno Haible  <bruno@clisp.org>
17194
17195         Don't require lib/stdio-write.c when only module 'stdio' is used.
17196         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17197         invocation.
17198         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17199
17200 2011-04-14  Bruno Haible  <bruno@clisp.org>
17201
17202         Support non-blocking pipe I/O in read() on native Windows.
17203         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17204         (read): New declaration.
17205         * lib/read.c: New file.
17206         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17207         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17208         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17209         vscanf): New declarations.
17210         * lib/stdio-read.c: New file.
17211         * m4/read.m4: New file.
17212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17213         REPLACE_READ.
17214         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17215         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17216         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17217         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17218         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17219         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17220         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17221         * modules/read: New file.
17222         * modules/nonblocking (Files): Add lib/stdio-read.c.
17223         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17224         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17225         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17226         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17227         * modules/pread (Depends-on): Add read.
17228         * modules/safe-read (Depends-on): Likewise.
17229         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17230         gets, scanf, vfscanf, vscanf): Verify signatures.
17231         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17232         problem with non-blocking pipes.
17233         * doc/posix-functions/fgetc.texi: Likewise.
17234         * doc/posix-functions/fgets.texi: Likewise.
17235         * doc/posix-functions/fread.texi: Likewise.
17236         * doc/posix-functions/fscanf.texi: Likewise.
17237         * doc/posix-functions/getc.texi: Likewise.
17238         * doc/posix-functions/getchar.texi: Likewise.
17239         * doc/posix-functions/gets.texi: Likewise.
17240         * doc/posix-functions/scanf.texi: Likewise.
17241         * doc/posix-functions/vfscanf.texi: Likewise.
17242         * doc/posix-functions/vscanf.texi: Likewise.
17243
17244 2011-04-14  Bruno Haible  <bruno@clisp.org>
17245
17246         Support non-blocking pipe I/O in write() on native Windows.
17247         * lib/write.c (rpl_write): Split a write request that failed merely
17248         because the byte count was larger than the pipe buffer's size.
17249         * doc/posix-functions/write.texi: Mention the problem with large byte
17250         counts.
17251
17252 2011-04-14  Bruno Haible  <bruno@clisp.org>
17253
17254         wchar: Ensure that wchar_t gets defined on uClibc.
17255         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17256         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17257
17258 2011-04-13  Bruno Haible  <bruno@clisp.org>
17259
17260         safe-write, full-read: Avoid unnecessary compilation units.
17261         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17262         (Depends-on): Remove safe-read. Add ssize_t.
17263         * modules/full-read (Files): Add lib/full-write.c.
17264         (Depends-on): Add full-write.
17265
17266 2011-04-13  Bruno Haible  <bruno@clisp.org>
17267
17268         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17269         * modules/pwrite (Depends-on): Add 'write'.
17270
17271 2011-04-13  Bruno Haible  <bruno@clisp.org>
17272
17273         Support non-blocking pipe I/O in write() on native Windows.
17274         * lib/unistd.in.h (write): Enable replacement also if
17275         GNULIB_UNISTD_H_NONBLOCKING is 1.
17276         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17277         (rpl_write): When failing to write on a non-blocking pipe, change
17278         errno from ENOSPC to EAGAIN.
17279         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17280         putchar, puts, vfprintf, vprintf): Enable replacement also if
17281         GNULIB_STDIO_H_NONBLOCKING is 1.
17282         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17283         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17284         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17285         CALL_WITH_SIGPIPE_EMULATION.
17286         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17287         * m4/nonblocking.m4: New file.
17288         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17289         for non-blocking I/O support.
17290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17291         GNULIB_UNISTD_H_NONBLOCKING.
17292         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17293         required for non-blocking I/O support.
17294         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17295         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17296         lib/stdio-write.c, m4/asm-underscore.m4.
17297         (Depends-on): Add stdio, unistd.
17298         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17299         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17300         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17301         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17302         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17303         problem with non-blocking pipes.
17304         * doc/posix-functions/fputc.texi: Likewise.
17305         * doc/posix-functions/fputs.texi: Likewise.
17306         * doc/posix-functions/fwrite.texi: Likewise.
17307         * doc/posix-functions/printf.texi: Likewise.
17308         * doc/posix-functions/putc.texi: Likewise.
17309         * doc/posix-functions/putchar.texi: Likewise.
17310         * doc/posix-functions/puts.texi: Likewise.
17311         * doc/posix-functions/vfprintf.texi: Likewise.
17312         * doc/posix-functions/vprintf.texi: Likewise.
17313         * doc/posix-functions/write.texi: Likewise.
17314
17315 2011-04-10  Jim Meyering  <meyering@redhat.com>
17316
17317         maint.mk: prohibit doubled words
17318         Detect them also when they're separated by a newline.
17319         There are 3 ways to customize it:
17320           - disable the test on a per file basis, as usual with rules using
17321             $(VC_LIST_EXCEPT)
17322           - replace the default doubled-word-selecting regexp (affects all files)
17323           - ignore a particular file-vs-doubled-word match
17324         I nearly used that last one to ignore the "is is" match in
17325         coreutils' NEWS file, since the text was "ls -is is ..."
17326         To do that, I would have added this line to cfg.mk:
17327           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17328         but it would have ignored any "is is" match in NEWS.
17329         Low probability, but still...
17330         Instead, I changed the text, slightly:
17331           -  ls -is is now consistent with ls -lis in ignoring values returned
17332           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17333         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17334         (prohibit_doubled_word_): Define.
17335         (sc_prohibit_doubled_word): New rule.
17336         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17337
17338 2011-04-10  Jim Meyering  <meyering@redhat.com>
17339
17340         maint: fix doubled-word typo in comment
17341         * m4/gethostname.m4: s/is is/it is/
17342         * m4/getdomainname.m4: Likewise.
17343
17344 2011-04-10  Jim Meyering  <meyering@redhat.com>
17345
17346         maint: remove doubled word: s/it it/it/
17347         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17348
17349 2011-04-10  Jim Meyering  <meyering@redhat.com>
17350
17351         maint.mk: remove useless semicolon and backslash
17352         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17353         semicolon and backslash.
17354
17355 2011-04-10  Bruno Haible  <bruno@clisp.org>
17356
17357         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17358         * modules/stdint-tests (Depends-on): Add wchar.
17359
17360 2011-04-10  Jim Meyering  <meyering@redhat.com>
17361
17362         maint: remove doubled words in comments, e.g., s/a a/a/
17363         * lib/strptime.c (day_of_the_week): s/the the/the/
17364         * tests/test-chown.h (test_chown): s/a a/a/
17365
17366         test-chown.h: correct a cast
17367         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17368         when the destination is a stat.st_gid.
17369
17370 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17371
17372         getaddrinfo: Fix test for sa_len member.
17373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17374         include <sys/types.h> before <sys/socket.h>.
17375
17376 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17377
17378         maint: change "can not" to "cannot"
17379         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17380         boundaries.
17381
17382 2011-04-09  Jim Meyering  <meyering@redhat.com>
17383
17384         maint: change "a a" to "a"
17385         * tests/test-lchown.h (test_lchown): s/a a/a/
17386
17387         maint.mk: prohibit \<the the\>
17388         * top/maint.mk (sc_prohibit_the_the): New rule.
17389
17390         maint: fix "the the" in comment
17391         * lib/count-one-bits.h: s/the the/the/
17392
17393         maint: change "can not" to "cannot"
17394         But do not change the occurrences in maintain.texi or in
17395         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17396         * doc/gnulib-tool.texi: s/can not/cannot/
17397         * doc/posix-functions/accept.texi (accept): Likewise.
17398         * doc/posix-functions/socket.texi (socket): Likewise.
17399         * lib/mbrtowc.c: Likewise.
17400
17401         maint.mk: prohibit use of "can not"
17402         * top/maint.mk (sc_prohibit_can_not): New rule.
17403         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17404
17405 2011-04-09  Bruno Haible  <bruno@clisp.org>
17406
17407         careadlinkat: Guard against misuse of careadlinkatcwd.
17408         * lib/careadlinkat.c: Include <stdlib.h>.
17409         (careadlinkatcwd): Check that the fd argument is as expected.
17410
17411 2011-04-09  Bruno Haible  <bruno@clisp.org>
17412
17413         careadlinkat: Use common coding style.
17414         * lib/careadlinkat.c: Move gnulib includes after system includes.
17415
17416 2011-04-09  Bruno Haible  <bruno@clisp.org>
17417
17418         careadlinkat: Clarify specification.
17419         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17420         (careadlinkatcwd): Add comment.
17421         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17422
17423 2011-04-09  Bruno Haible  <bruno@clisp.org>
17424
17425         areadlinkat: Avoid link error on many platforms.
17426         * modules/areadlinkat (Depends-on): Add areadlink.
17427
17428 2011-04-09  Bruno Haible  <bruno@clisp.org>
17429
17430         allocator, careadlinkat: Fix double-inclusion guard.
17431         * lib/allocator.h: Fix double-inclusion guard.
17432         * lib/careadlinkat.h: Likewise.
17433
17434 2011-04-09  Bruno Haible  <bruno@clisp.org>
17435
17436         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17437         * lib/relocwrapper.c: Update dependencies hierarchy.
17438         * build-aux/install-reloc: Update list of files to be compiled.
17439         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17440         lib/allocator.[hc].
17441
17442 2011-04-08  Eric Blake  <eblake@redhat.com>
17443
17444         strftime: silence gnulib-tool warning
17445         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17446
17447 2011-04-08  Bruno Haible  <bruno@clisp.org>
17448
17449         verify: Fix syntax error with GCC 4.6 in C++ mode.
17450         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17451         (HAVE_STATIC_ASSERT): New macro.
17452         (verify_true, verify): Use 'static_assert' if it is supported and
17453         '_Static_assert' is not supported.
17454
17455 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17456
17457         allocator: New module.
17458         * modules/allocator, lib/allocator.c: New files.
17459         * lib/allocator.h (stdlib_allocator): New decl.
17460         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17461         Remove.  Do not include <stdlib.h>.
17462         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17463         * modules/careadlinkat (Files): Remove lib/allocator.h.
17464         (Depends-on): Add allocator.
17465
17466         stdlib: let modules use system malloc, realloc
17467         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17468         if !_GL_USE_STDLIB_ALLOC.
17469         (malloc, realloc): Limit this change to a smaller scope.
17470
17471         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17472         (malloc, realloc): Don't #undef; no longer needed.
17473         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17474         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17475         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17476         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17477         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17478         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17479         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17480         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17481
17482         careadlinkat: rename members to avoid problem
17483         * lib/allocator.h (struct allocator): Rename members from
17484         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17485         and realloc are #define'd.  Reported by Eric Blake in
17486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17487         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17488
17489 2011-04-08  Eric Blake  <eblake@redhat.com>
17490
17491         nonblocking: reduce dependency
17492         * tests/test-nonblocking.c: Only test sockets when in use.
17493         * modules/nonblocking-tests (Depends-on): Drop socket.
17494         (Makefile.am): Link even if sockets are not present.
17495         * modules/pipe2-tests (Makefile.am): Likewise.
17496         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17497
17498         pipe2: fix O_NONBLOCK support on mingw
17499         * modules/pipe2 (Depends-on): Add nonblocking.
17500         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17501         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17502         * tests/test-nonblocking.c (main): Likewise.
17503         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17504
17505         fcntl-h: fix O_ACCMODE on cygwin
17506         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17507         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17508
17509         pipe-filter: drop O_NONBLOCK workarounds
17510         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17511         * modules/pipe-filter-ii (Depends-on): Likewise.
17512         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17513
17514         nonblocking: provide O_NONBLOCK for mingw
17515         * modules/nonblocking (Depends-on): Add open.
17516         (configure.ac): Set new witness macro.
17517         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17518         * modules/fcntl-h (Makefile.am): Substitute it.
17519         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17520         nonblocking module is in use.
17521         * lib/nonblocking.c: Adjust portability test.
17522         * lib/open.c (open): Don't let native open see gnulib flag.
17523         * tests/test-fcntl-h.c (main): Enhance test.
17524         * tests/test-open.h (test_open): Likewise.
17525         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17526
17527         careadlinkat: fix compilation error on mingw
17528         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17529         within struct allocator.
17530
17531 2011-04-06  Eric Blake  <eblake@redhat.com>
17532
17533         binary-io: relicense under LGPLv2+
17534         * modules/binary-io (License): Relax to LGPLv2+.
17535         Requested for libvirt, and required by pipe2.
17536
17537 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17538
17539         verify: use _Static_assert if available
17540         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17541         (verify_true, verify): Use it if available.  This generates better
17542         diagnostics with GCC 4.6.0 and later.
17543
17544 2011-04-05  Bruno Haible  <bruno@clisp.org>
17545
17546         Remove leftover generated .h files after config.status changed.
17547
17548         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17549         GL_GENERATE_ALLOCA_H.
17550         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17551         GL_GENERATE_ALLOCA_H evaluates to false.
17552
17553         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17554         GL_GENERATE_ARGZ_H.
17555         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17556         evaluates to false.
17557
17558         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17559         GL_GENERATE_BYTESWAP_H.
17560         * modules/byteswap (Makefile.am): Remove byteswap.h if
17561         GL_GENERATE_BYTESWAP_H evaluates to false.
17562
17563         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17564         GL_GENERATE_ERRNO_H.
17565         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17566         evaluates to false.
17567
17568         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17569         GL_GENERATE_FLOAT_H.
17570         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17571         evaluates to false.
17572
17573         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17574         GL_GENERATE_FNMATCH_H.
17575         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17576         GL_GENERATE_FNMATCH_H evaluates to false.
17577
17578         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17579         GL_GENERATE_GLOB_H.
17580         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17581         evaluates to false.
17582
17583         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17584         automake conditional GL_GENERATE_ICONV_H.
17585         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17586         evaluates to false.
17587
17588         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17589         GL_GENERATE_NETINET_IN_H.
17590         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17591         GL_GENERATE_NETINET_IN_H evaluates to false.
17592
17593         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17594         conditional GL_GENERATE_PTHREAD_H.
17595         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17596         * modules/pthread (Makefile.am): Remove pthread.h if
17597         GL_GENERATE_PTHREAD_H evaluates to false.
17598
17599         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17600         GL_GENERATE_SCHED_H.
17601         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17602         evaluates to false.
17603
17604         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17605         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17606         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17607         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17608
17609         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17610         GL_GENERATE_STDARG_H.
17611         * modules/stdarg (Makefile.am): Remove stdarg.h if
17612         GL_GENERATE_STDARG_H evaluates to false.
17613
17614         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17615         GL_GENERATE_STDBOOL_H.
17616         * modules/stdbool (Makefile.am): Remove stdbool.h if
17617         GL_GENERATE_STDBOOL_H evaluates to false.
17618
17619         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17620         conditional GL_GENERATE_STDDEF_H.
17621         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17622         * modules/stddef (Makefile.am): Remove stddef.h if
17623         GL_GENERATE_STDDEF_H evaluates to false.
17624
17625         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17626         GL_GENERATE_STDINT_H.
17627         * modules/stdint (Makefile.am): Remove stdint.h if
17628         GL_GENERATE_STDINT_H evaluates to false.
17629
17630         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17631         GL_GENERATE_SYSEXITS_H.
17632         * modules/sysexits (Makefile.am): Remove sysexits.h if
17633         GL_GENERATE_SYSEXITS_H evaluates to false.
17634
17635         Reported by Karl Berry and Ralf Wildenhues.
17636
17637 2011-04-05  Bruno Haible  <bruno@clisp.org>
17638
17639         Ensure to rebuild generated .h files when config.status has changed.
17640         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17641         config.status.
17642         * modules/ctype (Makefile.am): Likewise.
17643         * modules/dirent (Makefile.am): Likewise.
17644         * modules/errno (Makefile.am): Likewise.
17645         * modules/fcntl-h (Makefile.am): Likewise.
17646         * modules/float (Makefile.am): Likewise.
17647         * modules/getopt-posix (Makefile.am): Likewise.
17648         * modules/glob (Makefile.am): Likewise.
17649         * modules/iconv-h (Makefile.am): Likewise.
17650         * modules/inttypes (Makefile.am): Likewise.
17651         * modules/langinfo (Makefile.am): Likewise.
17652         * modules/locale (Makefile.am): Likewise.
17653         * modules/math (Makefile.am): Likewise.
17654         * modules/netdb (Makefile.am): Likewise.
17655         * modules/netinet_in (Makefile.am): Likewise.
17656         * modules/poll-h (Makefile.am): Likewise.
17657         * modules/pthread (Makefile.am): Likewise.
17658         * modules/pty (Makefile.am): Likewise.
17659         * modules/sched (Makefile.am): Likewise.
17660         * modules/search (Makefile.am): Likewise.
17661         * modules/selinux-h (Makefile.am): Likewise.
17662         * modules/signal (Makefile.am): Likewise.
17663         * modules/spawn (Makefile.am): Likewise.
17664         * modules/stdarg (Makefile.am): Likewise.
17665         * modules/stdbool (Makefile.am): Likewise.
17666         * modules/stddef (Makefile.am): Likewise.
17667         * modules/stdint (Makefile.am): Likewise.
17668         * modules/stdio (Makefile.am): Likewise.
17669         * modules/stdlib (Makefile.am): Likewise.
17670         * modules/string (Makefile.am): Likewise.
17671         * modules/strings (Makefile.am): Likewise.
17672         * modules/sys_file (Makefile.am): Likewise.
17673         * modules/sys_ioctl (Makefile.am): Likewise.
17674         * modules/sys_select (Makefile.am): Likewise.
17675         * modules/sys_socket (Makefile.am): Likewise.
17676         * modules/sys_stat (Makefile.am): Likewise.
17677         * modules/sys_time (Makefile.am): Likewise.
17678         * modules/sys_times (Makefile.am): Likewise.
17679         * modules/sys_utsname (Makefile.am): Likewise.
17680         * modules/sys_wait (Makefile.am): Likewise.
17681         * modules/sysexits (Makefile.am): Likewise.
17682         * modules/termios (Makefile.am): Likewise.
17683         * modules/time (Makefile.am): Likewise.
17684         * modules/unistd (Makefile.am): Likewise.
17685         * modules/wchar (Makefile.am): Likewise.
17686         * modules/wctype-h (Makefile.am): Likewise.
17687         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17688
17689 2011-04-05  Bruno Haible  <bruno@clisp.org>
17690
17691         pipe2: Relicense under LGPLv2+.
17692         * modules/pipe2 (License): Change to LGPLv2+.
17693         Requested by Eric Blake, for libvirt.
17694
17695 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17696
17697         bootstrap: compute gnulib_extra_files after updating build_aux
17698         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17699         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17700
17701 2011-04-05  Eric Blake  <eblake@redhat.com>
17702
17703         bootstrap: preserve git whitelist item sorting
17704         * build-aux/bootstrap (sort_patterns): New function.
17705         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17706
17707 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17708
17709         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17710         sc_space_tab check.
17711
17712 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17713
17714         areadlink, areadlinkat: rewrite in terms of careadlinkat
17715         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17716         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17717         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17718         (malloc, realloc): Remove #undefs.
17719         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17720         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17721         readlink, ssize_t, stdint, unistd.
17722         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17723         areadlink, stdint.
17724
17725         careadlinkat: new module
17726         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17727         * modules/careadlinkat: New files, written by me with
17728         a review and feedback from Ben Pfaff in
17729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17730
17731 2011-04-01  Bruno Haible  <bruno@clisp.org>
17732
17733         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17734         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17735         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17736         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17737         Reported by Bruce Korb <bruce.korb@gmail.com>.
17738
17739 2011-04-01  Bruno Haible  <bruno@clisp.org>
17740
17741         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17742         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17743         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17744         * modules/wcpcpy (Depends-on): Add extensions.
17745         * modules/wcpncpy (Depends-on): Likewise.
17746         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17747         systems.
17748         * doc/posix-functions/wcpncpy.texi: Likewise.
17749         * doc/posix-functions/wcwidth.texi: Likewise.
17750
17751 2011-03-31  Eric Blake  <eblake@redhat.com>
17752
17753         nonblocking: fix mingw test failures
17754         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17755         non-blocking flag on regular file.
17756         (get_nonblocking_flag): Set errno on invalid fd.
17757         * tests/test-nonblocking.c (main): Avoid test failure on
17758         directories if fchdir is not active.
17759         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17760
17761 2011-03-31  Bruno Haible  <bruno@clisp.org>
17762
17763         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17764         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17765         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17766         Reported by Simon Josefsson <simon@josefsson.org>.
17767
17768 2011-03-31  Bruno Haible  <bruno@clisp.org>
17769         and Eric Blake  <eblake@redhat.com>
17770
17771         nonblocking: new module
17772         * modules/nonblocking: New module.
17773         * modules/nonblocking-tests: Likewise.
17774         * lib/nonblocking.h: New file.
17775         * lib/nonblocking.c: Likewise.
17776         * tests/test-nonblocking.c: New test.
17777         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17778
17779 2011-03-30  Bruno Haible  <bruno@clisp.org>
17780
17781         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17782         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17783         instead of 'printf' format for GCC >= 4.4.
17784         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17785         (fprintf, printf, vfprintf, vprintf): Declare with
17786         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17787         the system's vfprintf() function.
17788         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17789
17790 2011-03-30  Eric Blake  <eblake@redhat.com>
17791
17792         passfd: fix scoping bug
17793         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17794         before sendmsg/recvmsg.
17795
17796         passfd: standardize coding conventions
17797         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17798         can be learned at compile time.
17799         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17800         ifdefs.
17801         (sendfd, recvfd): Follow gnulib code conventions.
17802
17803         passfd: fix incorrect sendmsg arguments
17804         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17805         incorrect msg_controllen value.
17806         * modules/passfd-tests (Depends-on): Check for alarm.
17807         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17808         Reported by Bastien ROUCARIES.
17809
17810 2011-03-30  Bruno Haible  <bruno@clisp.org>
17811
17812         c-strcasestr: Relicense under LGPLv2+.
17813         * modules/c-strcasestr (License): Change to LGPLv2+.
17814         Requested by Eric Blake, for libvirt.
17815
17816 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17817
17818         * users.txt: Add libidn2.  Fix libtasn1 link.
17819
17820 2011-03-30  Jim Meyering  <meyering@redhat.com>
17821
17822         tests: readlink* ("",... fails with EINVAL on newer kernels
17823         readlink and readlinkat have typically failed with ENOENT for
17824         the invalid, empty file name,  "".  However, with the advent
17825         of linux-2.6.39, they fail with EINVAL.
17826         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17827         when operating on the empty file name.
17828         * tests/test-readlink.h (test_readlink): Likewise.
17829
17830 2011-03-29  Bruno Haible  <bruno@clisp.org>
17831
17832         Relicense some modules under LGPLv2+, for libidn2.
17833         * modules/array-mergesort (License): Change to LGPLv2+.
17834         * modules/c-strcaseeq (License): Likewise.
17835         * modules/striconveh (License): Likewise.
17836         * modules/striconveha (License): Likewise.
17837         * modules/uniconv/base (License): Likewise.
17838         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17839         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17840         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17841         * modules/unictype/base (License): Likewise.
17842         * modules/unictype/bidiclass-of (License): Likewise.
17843         * modules/unictype/category-M (License): Likewise.
17844         * modules/unictype/category-none (License): Likewise.
17845         * modules/unictype/category-of (License): Likewise.
17846         * modules/unictype/category-test (License): Likewise.
17847         * modules/unictype/category-test-withtable (License): Likewise.
17848         * modules/unictype/combining-class (License): Likewise.
17849         * modules/unictype/joiningtype-of (License): Likewise.
17850         * modules/unictype/scripts (License): Likewise.
17851         * modules/uninorm/base (License): Likewise.
17852         * modules/uninorm/canonical-decomposition (License): Likewise.
17853         * modules/uninorm/composition (License): Likewise.
17854         * modules/uninorm/decompose-internal (License): Likewise.
17855         * modules/uninorm/decomposition-table (License): Likewise.
17856         * modules/uninorm/nfc (License): Likewise.
17857         * modules/uninorm/nfd (License): Likewise.
17858         * modules/uninorm/u32-normalize (License): Likewise.
17859         * modules/unistr/base (License): Likewise.
17860         * modules/unistr/u32-cpy (License): Likewise.
17861         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17862         * modules/unistr/u32-to-u8 (License): Likewise.
17863         * modules/unistr/u32-uctomb (License): Likewise.
17864         * modules/unistr/u8-check (License): Likewise.
17865         * modules/unistr/u8-mblen (License): Likewise.
17866         * modules/unistr/u8-mbtouc (License): Likewise.
17867         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17868         * modules/unistr/u8-mbtoucr (License): Likewise.
17869         * modules/unistr/u8-prev (License): Likewise.
17870         * modules/unistr/u8-strlen (License): Likewise.
17871         * modules/unistr/u8-to-u32 (License): Likewise.
17872         * modules/unistr/u8-uctomb (License): Likewise.
17873         * modules/unitypes (License): Likewise.
17874         Requested by Simon Josefsson.
17875
17876 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17877
17878         lib-symbol-visibility: Add a notice.
17879         * modules/lib-symbol-visibility (Notice): New field.
17880
17881 2011-03-29  Bruno Haible  <bruno@clisp.org>
17882
17883         getaddrinfo: Doc fix.
17884         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17885         section "fixed in Gnulib".
17886
17887 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17888
17889         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17890         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17891
17892 2011-03-26  Bruno Haible  <bruno@clisp.org>
17893
17894         unictype/property-byname: Reduce the number of load-time relocations.
17895         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17896         (UC_PROPERTY_INDEX_*): New enumeration values.
17897         (uc_property_byname): Convert an index from the lookup table to an
17898         uc_property_t.
17899         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17900         values.
17901
17902 2011-03-26  Bruno Haible  <bruno@clisp.org>
17903
17904         unictype/property-byname: Allow omitted word separators and aliases.
17905         * lib/unictype/pr_byname.gperf: Add property names without word
17906         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17907         for 'space'.
17908
17909 2011-03-26  Bruno Haible  <bruno@clisp.org>
17910
17911         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17912         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17913         also hyphens to space.
17914         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17915         without spaces.
17916         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17917
17918 2011-03-26  Bruno Haible  <bruno@clisp.org>
17919
17920         unictype/joiningtype-byname: Recognize long names as well.
17921         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17922         a long name.
17923         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17924         unictype/joiningtype_byname.h.
17925         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17926         * lib/unictype/joiningtype_byname.gperf: New file.
17927         * modules/unictype/joiningtype-byname (Files): Add
17928         lib/unictype/joiningtype_byname.gperf.
17929         (Depends-on): Add gperf.
17930         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17931         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17932         long names.
17933
17934         Tests for module 'unictype/joiningtype-longname'.
17935         * modules/unictype/joiningtype-longname-tests: New file.
17936         * tests/unictype/test-joiningtype_longname.c: New file.
17937
17938         New module 'unictype/joiningtype-longname'.
17939         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17940         * lib/unictype/joiningtype_longname.c: New file.
17941         * modules/unictype/joiningtype-longname: New file.
17942         * modules/unictype/joiningtype-all (Depends-on): Add
17943         unictype/joiningtype-longname.
17944
17945 2011-03-26  Bruno Haible  <bruno@clisp.org>
17946
17947         unictype/bidiclass-byname: Recognize long names as well.
17948         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17949         name.
17950         * lib/unictype/bidi_byname.c: Include <string.h>,
17951         unictype/bidi_byname.h.
17952         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17953         * lib/unictype/bidi_byname.gperf: New file.
17954         * modules/unictype/bidiclass-byname (Files): Add
17955         lib/unictype/bidi_byname.gperf.
17956         (Depends-on): Add gperf.
17957         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17958         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17959         long names.
17960
17961         Tests for module 'unictype/bidiclass-longname'.
17962         * modules/unictype/bidiclass-longname-tests: New file.
17963         * tests/unictype/test-bidi_longname.c: New file.
17964
17965         New module 'unictype/bidiclass-longname'.
17966         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17967         * lib/unictype/bidi_longname.c: New file.
17968         * modules/unictype/bidiclass-longname: New file.
17969         * modules/unictype/bidiclass-all (Depends-on): Add
17970         unictype/bidiclass-longname.
17971
17972 2011-03-26  Bruno Haible  <bruno@clisp.org>
17973
17974         unictype/bidi*: Rename modules.
17975         * modules/unictype/bidiclass-all: Renamed from
17976         modules/unictype/bidicategory-all.
17977         * modules/unictype/bidiclass-name: Renamed from
17978         modules/unictype/bidiclass-name.
17979         (Description): Update.
17980         * modules/unictype/bidiclass-name-tests: Renamed from
17981         modules/unictype/bidicategory-name-tests.
17982         * modules/unictype/bidiclass-byname: Renamed from
17983         modules/unictype/bidicategory-byname.
17984         (Description): Update.
17985         * modules/unictype/bidiclass-byname-tests: Renamed from
17986         modules/unictype/bidicategory-byname-tests.
17987         * modules/unictype/bidiclass-of: Renamed from
17988         modules/unictype/bidicategory-of.
17989         (Description): Update.
17990         * modules/unictype/bidiclass-of-tests: Renamed from
17991         modules/unictype/bidicategory-of-tests.
17992         * modules/unictype/bidiclass-test: Renamed from
17993         modules/unictype/bidicategory-test.
17994         (Description): Update.
17995         * modules/unictype/bidiclass-test-tests: Renamed from
17996         modules/unictype/bidicategory-test-tests.
17997         * modules/unictype/bidicategory-all: New file, a simple redirection.
17998         * modules/unictype/bidicategory-name: Likewise.
17999         * modules/unictype/bidicategory-byname: Likewise.
18000         * modules/unictype/bidicategory-of: Likewise.
18001         * modules/unictype/bidicategory-test: Likewise.
18002         * modules/unictype/property-bidi-* (Dependencies): Update.
18003         * lib/unictype/bidi_*.c: Update comment.
18004
18005 2011-03-26  Bruno Haible  <bruno@clisp.org>
18006
18007         unictype/bidi*: Rename functions, part 2.
18008         * modules/unictype/bidicategory-name (configure.ac): Update required
18009         libunistring version.
18010         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18011
18012 2011-03-25  Bruno Haible  <bruno@clisp.org>
18013
18014         New module 'unictype/combining-class-all'.
18015         * modules/unictype/combining-class-all: New file.
18016
18017         Tests for module 'unictype/combining-class-byname'.
18018         * modules/unictype/combining-class-byname-tests: New file.
18019         * tests/unictype/test-combiningclass_byname.c: New file.
18020
18021         New module 'unictype/combining-class-byname'.
18022         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18023         * lib/unictype/combiningclass_byname.c: New file.
18024         * lib/unictype/combiningclass_byname.gperf: New file.
18025         * modules/unictype/combining-class-byname: New file.
18026
18027         Tests for module 'unictype/combining-class-longname'.
18028         * modules/unictype/combining-class-longname-tests: New file.
18029         * tests/unictype/test-combiningclass_longname.c: New file.
18030
18031         New module 'unictype/combining-class-longname'.
18032         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18033         * lib/unictype/combiningclass_longname.c: New file.
18034         * modules/unictype/combining-class-longname: New file.
18035
18036         Tests for module 'unictype/combining-class-name'.
18037         * modules/unictype/combining-class-name-tests: New file.
18038         * tests/unictype/test-combiningclass_name.c: New file.
18039
18040         New module 'unictype/combining-class-name'.
18041         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18042         * lib/unictype/combiningclass_name.c: New file.
18043         * modules/unictype/combining-class-name: New file.
18044
18045 2011-03-25  Bruno Haible  <bruno@clisp.org>
18046
18047         unictype/combining-class: Rename source files.
18048         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18049         of unictype/combining.h.
18050         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18051         Update.
18052         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18053         * modules/unictype/combining-class (Description): Fix.
18054         (Files, Makefile.am): Update.
18055         * tests/unictype/test-combiningclass.c: Renamed from
18056         tests/unictype/test-combining.c.
18057         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18058
18059 2011-03-25  Bruno Haible  <bruno@clisp.org>
18060
18061         unictype: Update list of canonical combining classes.
18062         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18063
18064 2011-03-25  Bruno Haible  <bruno@clisp.org>
18065
18066         unictype/category-byname: Recognize long names as well.
18067         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18068         a long name.
18069         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18070         unictype/categ_byname.h.
18071         (UC_CATEGORY_INDEX_*): New enumeration values.
18072         (uc_general_category_byname): Use uc_general_category_lookup and
18073         convert from index to value.
18074         * lib/unictype/categ_byname.gperf: New file.
18075         * modules/unictype/category-byname (Files): Add
18076         lib/unictype/categ_byname.gperf.
18077         (Depends-on): Add gperf.
18078         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18079         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18080         long names.
18081
18082         Tests for module 'unictype/category-longname'.
18083         * modules/unictype/category-longname-tests: New file.
18084         * tests/unictype/test-categ_longname.c: New file.
18085
18086         New module 'unictype/category-longname'.
18087         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18088         * lib/unictype/categ_longname.c: New file.
18089         * modules/unictype/category-longname: New file.
18090         * modules/unictype/category-all (Depends-on): Add it.
18091
18092 2011-03-25  Bruno Haible  <bruno@clisp.org>
18093
18094         Tests for module 'unictype/category-LC'.
18095         * modules/unictype/category-LC-tests: New file.
18096         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18097
18098         New module 'unictype/category-LC'.
18099         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18100         (UC_CATEGORY_LC): New declaration.
18101         (UC_CASED_LETTER): New macro.
18102         * lib/gen-uni-tables.c (is_category_LC): New function.
18103         (output_categories): Also handle category LC.
18104         (UC_CATEGORY_MASK_LC): New enumeration value.
18105         (general_category_byname): Also handle category LC.
18106         * lib/unictype/categ_LC.c: New file.
18107         * lib/unictype/categ_LC.h: New file, automatically generated.
18108         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18109         category LC.
18110         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18111         * modules/unictype/category-LC: New file.
18112         * modules/unictype/category-byname (Depends-on): Add
18113         unictype/category-LC.
18114         * modules/unictype/category-all (Depends-on): Likewise.
18115
18116 2011-03-25  Eric Blake  <eblake@redhat.com>
18117
18118         xmalloc: revert yesterday's regression
18119         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18120         realloc's underlying behavior (allowing allocation of zero-size
18121         objects, especially if malloc-gnu is also in use).
18122
18123 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18124
18125         maint.mk: add missing version to VC-tag
18126         * top/maint.mk: git tag was missing actual tag name; add it.
18127
18128         valgrind: do leak checking, and exit with code 1 on error (not 0)
18129         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18130         to VALGRIND.
18131
18132 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18133
18134         posix-modules: say what it does.
18135         * posix-modules: Add a line to the --help output saying what it does.
18136
18137 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18138
18139         xmalloc: Do not leak if underlying realloc is C99 compatible.
18140         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18141         This avoids a leak on C99-based systems.  See
18142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18143
18144 2011-03-24  Eric Blake  <eblake@redhat.com>
18145
18146         realloc: document portability problem
18147         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18148         passing 0 size to realloc.
18149
18150 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18151
18152         doc: update users.txt
18153         * users.txt: Add cvsps, tmpwatch
18154
18155 2011-03-23  Matt Rice  <ratmice@gmail.com>
18156
18157         doc: update users.txt
18158         * users.txt: Add gdb.
18159
18160 2011-03-23  Jim Meyering  <meyering@redhat.com>
18161
18162         doc: update users.txt
18163         Looking through matches up to the following URL (there are still
18164         several more pages), I found several projects that use gnulib:
18165         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18166         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18167         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18168
18169 2011-03-22  Bruno Haible  <bruno@clisp.org>
18170
18171         unictype/bidi*: Rename functions.
18172         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18173         uc_bidi_class, uc_is_bidi_class): New declarations.
18174         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18175         uc_bidi_category_byname.
18176         (uc_bidi_category_byname): New function.
18177         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18178         u_bidi_category_name.
18179         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18180         (uc_bidi_category_name): New function.
18181         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18182         uc_bidi_category.
18183         (uc_bidi_category): New function.
18184         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18185         uc_is_bidi_category. Invoke uc_bidi_class.
18186         (uc_is_bidi_category): New function.
18187         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18188         instead of uc_bidi_category_byname.
18189         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18190         instead of uc_bidi_category_name.
18191         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18192         uc_bidi_category.
18193         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18194         instead of uc_is_bidi_category.
18195
18196 2011-03-21  Bruno Haible  <bruno@clisp.org>
18197
18198         New module 'unictype/joininggroup-all'.
18199         * modules/unictype/joininggroup-all: New file.
18200
18201         Tests for module 'unictype/joininggroup-of'.
18202         * modules/unictype/joininggroup-of-tests: New file.
18203         * tests/unictype/test-joininggroup_of.c: New file.
18204         * tests/unictype/test-joininggroup_of.h: New file, automatically
18205         generated by gen-uni-tables.
18206
18207         New module 'unictype/joininggroup-of'.
18208         * modules/unictype/joininggroup-of: New file.
18209         * lib/unictype/joininggroup_of.c: New file.
18210         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18211         gen-uni-tables.
18212
18213         Tests for module 'unictype/joininggroup-byname'.
18214         * modules/unictype/joininggroup-byname-tests: New file.
18215         * tests/unictype/test-joininggroup_byname.c: New file.
18216
18217         New module 'unictype/joininggroup-byname'.
18218         * modules/unictype/joininggroup-byname: New file.
18219         * lib/unictype/joininggroup_byname.c: New file.
18220         * lib/unictype/joininggroup_byname.gperf: New file.
18221
18222         Tests for module 'unictype/joininggroup-name'.
18223         * modules/unictype/joininggroup-name-tests: New file.
18224         * tests/unictype/test-joininggroup_name.c: New file.
18225
18226         New module 'unictype/joininggroup-name'.
18227         * modules/unictype/joininggroup-name: New file.
18228         * lib/unictype/joininggroup_name.c: New file.
18229         * lib/unictype/joininggroup_name.h: New file.
18230
18231         New module 'unictype/joiningtype-all'.
18232         * modules/unictype/joiningtype-all: New file.
18233
18234         Tests for module 'unictype/joiningtype-of'.
18235         * modules/unictype/joiningtype-of-tests: New file.
18236         * tests/unictype/test-joiningtype_of.c: New file.
18237         * tests/unictype/test-joiningtype_of.h: New file, automatically
18238         generated by gen-uni-tables.
18239
18240         New module 'unictype/joiningtype-of'.
18241         * modules/unictype/joiningtype-of: New file.
18242         * lib/unictype/joiningtype_of.c: New file.
18243         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18244         gen-uni-tables.
18245
18246         Tests for module 'unictype/joiningtype-byname'.
18247         * modules/unictype/joiningtype-byname-tests: New file.
18248         * tests/unictype/test-joiningtype_byname.c: New file.
18249
18250         New module 'unictype/joiningtype-byname'.
18251         * modules/unictype/joiningtype-byname: New file.
18252         * lib/unictype/joiningtype_byname.c: New file.
18253
18254         Tests for module 'unictype/joiningtype-name'.
18255         * modules/unictype/joiningtype-name-tests: New file.
18256         * tests/unictype/test-joiningtype_name.c: New file.
18257
18258         New module 'unictype/joiningtype-name'.
18259         * modules/unictype/joiningtype-name: New file.
18260         * lib/unictype/joiningtype_name.c: New file.
18261
18262         unictype: Add support for Arabic shaping properties.
18263         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18264         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18265         declarations.
18266         (UC_JOINING_GROUP_*): New enumeration values.
18267         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18268         declarations.
18269         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18270         (unicode_joining_type): New variable.
18271         (UC_JOINING_GROUP_*): New enumeration values.
18272         (unicode_joining_group): New variable.
18273         (fill_arabicshaping, joining_type_as_c_identifier,
18274         output_joining_type_test, output_joining_type,
18275         joining_group_as_c_identifier, output_joining_group_test,
18276         output_joining_group): New functions.
18277         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18278         fill_arabicshaping and output_joining_type_test, output_joining_type,
18279         output_joining_group_test, output_joining_group.
18280         Reported by Simon Josefsson.
18281
18282 2011-03-21  Jim Meyering  <meyering@redhat.com>
18283
18284         strftime: fix a bug in yesterday's change
18285         * lib/strftime.c (add): Accommodate width's initial value of -1.
18286         Otherwise, nstrftime would copy uninitialized data into
18287         the result buffer.
18288
18289 2011-03-21  Jim Meyering  <meyering@redhat.com>
18290
18291         tests: add strftime-tests module
18292         * tests/test-strftime.c: New file.
18293         * modules/strftime-tests: New module.
18294
18295 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18296
18297         strftime: don't assume a byte count fits in 'int'
18298         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18299         found this problem by static analysis, using gcc -Wstrict-overflow
18300         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18301         on an integer overflow having undefined behavior, but it turns out
18302         that the argument is a size, which might not fit in 'int' anyway,
18303
18304 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18305
18306         stdio: don't require ignore_value around fwrite
18307
18308         This patch works around libc bug 11959
18309         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18310         Without this patch, applications must often write
18311         ignore_value (fwrite (...)) even though the ignore_value is
18312         not helpful here.  It's common to write many objects, using
18313         fwrite/printf/etc., and then use ferror to detect output error.
18314
18315         I considered making this patch optional, but decided against it,
18316         because libc is obviously being inconsistent here: there is no
18317         reason libc should insist that user code must inspect fwrite
18318         return's value without also insisting that it inspect printf's,
18319         putchar's, etc.  If user code wants to have a strict style where
18320         all these functions' values are checked (so that ferror need not
18321         be checked), we could add support for that style in a new gnulib
18322         module, but in the meantime it's better to be consistent and to
18323         support common usage.
18324
18325         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18326         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18327         that we are compiling in checking mode, and if not C++, and
18328         if not already wrapping fwrite for some other reason.
18329         (fwrite): #define to rpl_fwrite if the latter is defined.
18330
18331 2011-03-20  Bruno Haible  <bruno@clisp.org>
18332
18333         verror: Fix compilation error introduced on 2011-02-13.
18334         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18335         instead of __attribute__.
18336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18337
18338 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18339             Bruno Haible  <bruno@clisp.org>
18340
18341         socklen: do not depend on sys_socket
18342         While trying to modify Emacs to use gnulib's socklen module,
18343         I discovered a circular dependency: socklen depends on sys_socket
18344         and vice versa.  Emacs can use socklen, but it does not need
18345         sys_socket because it has its own substitute for sys/socket.h.
18346         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18347         gl_TYPE_SOCKLEN_T.
18348         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18349         gl_PREREQ_SYS_H_SOCKET.
18350         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18351         gl_PREREQ_SYS_H_SOCKET.
18352         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18353         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18354         * modules/socklen (Depends-on): Do not depend on sys_socket.
18355         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18356
18357 2011-03-20  Jim Meyering  <meyering@redhat.com>
18358
18359         maint.mk: sort file names *after* new transformation
18360         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18361         prefix would have led to an unwarranted failure in GNU parted.
18362         Sort after that transformation.
18363
18364 2011-03-19  Jim Meyering  <meyering@redhat.com>
18365
18366         maint.mk: fix po-file syntax-check rule
18367         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18368         Patch by Bruno Haible.
18369
18370 2011-03-19  Bruno Haible  <bruno@clisp.org>
18371
18372         socklen: Update comment.
18373         * m4/socklen.m4: Update comment about platforms.
18374
18375 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18376             Bruno Haible  <bruno@clisp.org>
18377
18378         inet_ntop, inet_pton: Simplify.
18379         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18380         documented to provide socklen_t and we already depend on sys_socket.
18381         * modules/inet_pton (Depends-on): Likewise.
18382         * lib/arpa_inet.in.h: Adjust comment.
18383
18384 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18385             Bruno Haible  <bruno@clisp.org>
18386
18387         netdb: Simplify.
18388         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18389         documented to provide socklen_t and we already depend on sys_socket.
18390         * lib/netdb.in.h: Adjust comment.
18391
18392 2011-03-19  Bruno Haible  <bruno@clisp.org>
18393
18394         sys_socket, netdb: Document problem with socklen_t.
18395         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18396         platforms.
18397         * doc/posix-headers/netdb.texi: Likewise.
18398
18399 2011-03-18  Eric Blake  <eblake@redhat.com>
18400
18401         maint.mk: let po check work in VPATH build
18402         * top/maint.mk (po_file): Allow cfg.mk override.
18403         (sc_po_check): Allow VPATH use.
18404         Reported by Jiri Denemark.
18405
18406 2011-03-16  Jim Meyering  <meyering@redhat.com>
18407
18408         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18409         Before, you would have had to create one .x-sc_ file per rule in order
18410         to exempt offending files.  Now, you may instead use a Make variable --
18411         usually defined in cfg.mk -- whose name identifies the affected rule.
18412         * top/maint.mk (_sc_excl): Define.
18413         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18414         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18415
18416 2011-03-13  Bruno Haible  <bruno@clisp.org>
18417
18418         ignore-value tests: Avoid warnings.
18419         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18420         empty for gcc < 3.4.
18421
18422 2011-03-13  Bruno Haible  <bruno@clisp.org>
18423
18424         passfd: Fix link error on Solaris.
18425         * modules/passfd (Description): Correct.
18426         (Depends-on): Add socketlib.
18427         (Link): New section.
18428         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18429
18430 2011-03-13  Bruno Haible  <bruno@clisp.org>
18431
18432         passfd: Fix link error on AIX 5.2.
18433         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18434
18435 2011-03-13  Bruno Haible  <bruno@clisp.org>
18436
18437         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18438         * lib/sys_socket.in.h: Include <stddef.h>.
18439         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18440         CMSG_FIRSTHDR. Remove unused variable.
18441
18442 2011-03-13  Bruno Haible  <bruno@clisp.org>
18443
18444         passfd: Fix compilation error on OpenBSD.
18445         * lib/passfd.c: Include <sys/uio.h>.
18446
18447 2011-03-13  Bruno Haible  <bruno@clisp.org>
18448
18449         passfd test: Fix warnings.
18450         * tests/test-passfd.c: Include <sys/wait.h>.
18451         (main): Fix typo.
18452
18453 2011-03-13  Bruno Haible  <bruno@clisp.org>
18454
18455         passfd module, part 4, tweaks.
18456         * tests/test-passfd.c: Reorder includes.
18457         (main): Fix perror and printf calls.
18458
18459 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18460
18461         passfd module, part 4.
18462         * modules/passfd-tests: New file.
18463         * tests/test-passfd.c: New file.
18464
18465 2011-03-13  Jim Meyering  <meyering@redhat.com>
18466
18467         Makefile: rely on GNU make; derive syntax-check rule names
18468         Rather than requiring that each sc_ rule be listed as a dependent
18469         of "check", use features of GNU make to derive the list.
18470         * Makefile (syntax-check-rules): Define.
18471         (check): Depend on the new variable, not the hard-coded list.
18472
18473 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18474             Bruno Haible  <bruno@clisp.org>
18475
18476         passfd module, part 3.
18477         * lib/passfd.h (recvfd): Add a flags argument.
18478         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18479         (recvfd): Add a flags argument.
18480         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18481         exists.
18482         * modules/passfd (Depends-on): Add cloexec.
18483         Suggested by Eric Blake.
18484
18485 2011-03-13  Bruno Haible  <bruno@clisp.org>
18486
18487         passfd module, part 2, tweaks.
18488         * modules/passfd (Files): Reorder.
18489         (Depends-on): Remove errno.
18490         (Include): Remove <sys/socket.h>, <sys/un.h>.
18491         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18492         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18493         specification header. Include <sys/socket.h> always. Don't include
18494         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18495         (sendfd): Clarify that it sets errno when it fails.
18496         (recvfd): Fix specification.
18497
18498 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18499
18500         passfd module, part 2.
18501         * modules/passfd: New file.
18502         * lib/passfd.h: New file.
18503         * lib/passfd.c: New file.
18504
18505 2011-03-12  Bruno Haible  <bruno@clisp.org>
18506
18507         wcswidth, mbswidth: Avoid integer overflow.
18508         * lib/wcswidth.c: Include <limits.h>.
18509         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18510         * lib/mbswidth.c: Include <limits.h>.
18511         (mbsnwidth): Avoid 'int' overflow.
18512         Reported by Jim Meyering.
18513
18514 2011-03-12  Bruno Haible  <bruno@clisp.org>
18515
18516         futimens, utimensat: Avoid endless recursion on Solaris 10.
18517         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18518         Solaris.
18519         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18520         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18521
18522 2011-03-11  Jim Meyering  <meyering@redhat.com>
18523
18524         maint.mk: relax a regexp to accommodate other formatting styles
18525         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18526         between "ngettext" and the following "(".
18527
18528 2011-03-11  Pádraig Brady <P@draigBrady.com>
18529
18530         maint.mk: suppress a false positive warning
18531         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18532         diagnostics are marked with ngettext.
18533
18534 2011-03-10  Eric Blake  <eblake@redhat.com>
18535
18536         wchar: add explicit dependencies, for Tru64
18537         * modules/mbmemcasecoll (Depends-on): Add wchar.
18538         * modules/mbtowc (Depends-on): Likewise.
18539         * modules/vasnprintf (Depends-on): Likewise.
18540         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18541         * modules/wctomb (Depends-on): Likewise.
18542         Reported by Peter O'Gorman.
18543
18544 2011-03-08  Bruno Haible  <bruno@clisp.org>
18545
18546         passfd module, part 1, tweaks.
18547         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18548         Improve indentation. Improve AC_MSG_CHECKING messages.
18549         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18550         gl_SOCKET_FAMILIES.
18551
18552 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18553
18554         passfd module, part 1.
18555         * m4/afunix.m4: New file.
18556         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18557         sockets.
18558
18559 2011-03-08  Bruno Haible  <bruno@clisp.org>
18560
18561         regex-quote: New API.
18562         * lib/regex-quote.h: Include <stdbool.h>.
18563         (struct regex_quote_spec): New type.
18564         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18565         New declarations.
18566         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18567         'const struct regex_quote_spec *' argument.
18568         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18569         (pcre_special): New constant.
18570         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18571         New functions.
18572         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18573         'const struct regex_quote_spec *' argument.
18574         * modules/regex-quote (Depends-on): Add stdbool.
18575         * tests/test-regex-quote.c (check): Update for new API. Add test for
18576         anchored results.
18577         * NEWS: Mention the API change.
18578         Reported by Reuben Thomas and Eric Blake.
18579
18580 2011-03-06  Bruno Haible  <bruno@clisp.org>
18581
18582         regex-quote: Fix creation of POSIX extended regular expressions.
18583         * lib/regex-quote.c (ere_special): Add grouping and alternation
18584         operators.
18585
18586 2011-03-05  Bruno Haible  <bruno@clisp.org>
18587
18588         doc: Improve doc regarding autopoint vs. gnulib.
18589         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18590         disable autopoint while running autoreconf.
18591         Suggested by Ralf Wildenhues.
18592
18593 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18594
18595         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18596         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18597
18598 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18599
18600         parse-duration: remove xalloc.h dependency
18601         * lib/parse-duration.c (parse_period): handle NULL return from
18602         strdup instead of calling xstrdup().
18603         * modules/parse-duration: remove "xalloc" dependency
18604
18605 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18606
18607         bootstrap: honor m4_base when running aclocal
18608         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18609
18610 2011-03-02  Jim Meyering  <meyering@redhat.com>
18611
18612         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18613         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18614         on request from Matt Booth.
18615
18616 2011-03-01  Eric Blake  <eblake@redhat.com>
18617
18618         test-link: work on Hurd
18619         * tests/test-link.h (test_link): Hurd rejects linking directories
18620         with EISDIR instead of the POSIX-mandated EPERM.
18621
18622 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18623
18624         stdio: simplify by moving files to printf-posix, sigpipe
18625         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18626         since this symbol is needed only if printf is replaced.
18627         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18628         Require gl_ASM_SYMBOL_PREFIX.
18629         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18630         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18631         (Depends-on): Add 'raise'.
18632         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18633         * modules/stdio (Files): Remove lib/stdio-write.c,
18634         m4/asm-underscore.m4.
18635         (Depends-on): Remove 'raise'.
18636
18637         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18638         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18639         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18640         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18641
18642 2011-02-28  Bruno Haible  <bruno@clisp.org>
18643
18644         localcharset: Assume ANSI C behaviour of free().
18645         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18646         calling free().
18647         Suggested by Simon Josefsson <simon@josefsson.org>.
18648
18649 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18650             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18651             Bruno Haible  <bruno@clisp.org>  (tiny change)
18652
18653         On Cygwin, use /proc file system instead of win32 API.
18654         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18655         Win32 file names.
18656         (DllMain): Simplify by removing Cygwin specific code.
18657         (find_shared_library_fullname): Use Linux specific implementation also
18658         for Cygwin.
18659         (get_shared_library_fullname): Update accordingly.
18660         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18661         Win32 file names.
18662         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18663         Cygwin specific code.
18664
18665 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18666             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18667
18668         Fix OpenMP flag detection for various Fortran compilers.
18669         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18670         OpenMP-conditional compilation construct, to force compile
18671         failure with missing OpenMP flag.
18672         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18673
18674 2011-02-25  Eric Blake  <eblake@redhat.com>
18675
18676         strstr: expand test coverage
18677         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18678         compilation.
18679         * tests/test-memmem.c (main): Duplicate tests.
18680         * tests/test-strcasestr.c (main): Likewise.
18681         * tests/test-c-strcasestr.c (main): Likewise.
18682
18683 2011-02-25  Jim Meyering  <meyering@redhat.com>
18684
18685         maint.mk: detect missing-NL-at-EOF, too
18686         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18687         it also detects when a file lacks a newline at EOF.
18688         (require_exactly_one_NL_at_EOF_): Renamed from
18689         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18690         since people may well have .x-sc_... file names tied to the
18691         existing name.  Suggested by Eric Blake.
18692
18693 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18694
18695         dirname: move m4/dos.m4 functionality into lib/dosname.h
18696
18697         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18698         extracts symbols from it, puts them into config.h; but it's much
18699         easier to use the symbols directly.  filename.h already does this,
18700         but it disagrees with dos.m4 in some respects.  This patch
18701         introduces a different include file dosname.h that packages up
18702         dos.m4, and then later we can work on merging filename.h and
18703         dosname.h.  Applications that need only the easy-to-configure
18704         symbols should consider including dosname.h rather than dirname.h.
18705         * NEWS: Mention incompatible changes.
18706         * m4/dos.m4: Remove.
18707         * lib/dosname.h, modules/dosname: New files.
18708         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18709         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18710         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18711         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18712         Include dosname.h, not dirname.h.
18713         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18714         Include dosname.h, for definitions of symbols like ISSLASH
18715         that used to be in config.h.
18716         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18717         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18718         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18719         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18720         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18721         * modules/rmdir (Files): Likewise.
18722         * modules/stat (Files): Likewise.
18723         * modules/unlink (Files): Likewise.
18724         * modules/dirname-lgpl (Depends-on): Add dosname.
18725         * modules/lstat (Depends-on): Likewise.
18726         * modules/openat (Depends-on): Likewise.
18727         * modules/rmdir (Depends-on): Likewise.
18728         * modules/savewd (Depends-on): Likewise.
18729         * modules/stat (Depends-on): Likewise.
18730         * modules/unlink (Depends-on): Likewise.
18731         * modules/openat (Depends-on): Remove dirname-lgpl.
18732         * modules/savewd (Depends-on): Likewise.
18733         * tests/test-dirname.c: Do not use removed symbols like
18734         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18735         the remaining symbols, e.g., ISSLASH ('\\').
18736
18737 2011-02-25  Eric Blake  <eblake@redhat.com>
18738
18739         strstr: revert patches that introduced bug and pessimization
18740         * lib/str-two-way.h: Add another reference.
18741         (two_way_short_needle, two_way_long_needle): Revert changes from
18742         2011-02-24; they pessimize search speed.
18743         (critical_factorization): Partially revert changes from
18744         2010-06-22; they violate the requirement that the left half of the
18745         needle be smaller than the period of the needle.
18746
18747 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18748
18749         filenamecat: remove unnecessary dependency on dirname-lgpl
18750         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18751         is no direct dependency, just an indirect one via filenamecat-lgpl.
18752
18753         remove: remove unnecessary use of m4/dos.m4
18754         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18755         * modules/remove (FILES): Remove m4/dos.m4.
18756
18757         * lib/openat-proc.c: Don't include dirname.h; not needed.
18758
18759         backupfile: remove unnecessary use of m4/dos.m4
18760         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18761         of its symbols are used by the backupfile code.  backupfile.c does
18762         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18763         for the rare case of programs that want all their backup file
18764         names to live within 8+3 limits, and dos.m4 doesn't address that.
18765         * modules/backupfile (Files): Remove m4/dos.m4.
18766
18767 2011-02-24  Jim Meyering  <meyering@redhat.com>
18768
18769         strstr: fix a bug whereby strstr would mistakenly return NULL
18770         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18771         in period calculation.
18772         (two_way_long_needle): Likewise.
18773         The original problem was reported by Mike Stump in
18774         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18775         Ralf Wildenhues provided the short needle and haystack.
18776         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18777         Add a more involved test to trigger the bug in two_way_long_needle.
18778
18779 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18780
18781         gnulib-tool: remove use of bold display in help screen
18782         * gnulib-tool (func_usage): Do not use bold display anymore in the
18783         help screen.  That was just meant to be a temporary emphasis for a
18784         backward-incompatible change.
18785
18786 2011-02-23  Bruno Haible  <bruno@clisp.org>
18787
18788         Fix misindentation of preprocessor directives.
18789         * lib/argp-namefrob.h: Reindent preprocessor directives.
18790         * lib/getopt_int.h (struct _getopt_data): Likewise.
18791         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18792         * lib/vasnprintf.c (decode_long_double): Likewise.
18793         * tests/test-argmatch.c: Insert blank lines, for clarity.
18794         * tests/test-exclude.c: Likewise.
18795
18796 2011-02-22  Bruno Haible  <bruno@clisp.org>
18797
18798         ioctl: Fix for MacOS X in 64-bit mode.
18799         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18800         value.
18801         Suggested by Eric Blake.
18802         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18803
18804 2011-02-22  Jim Meyering  <meyering@redhat.com>
18805
18806         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18807         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18808         in lib/.
18809
18810 2011-02-22  Eric Blake  <eblake@redhat.com>
18811
18812         maint: avoid any CDPATH issue
18813         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18814
18815         maint: adjust cpp indentation for my modules, as well
18816         * Makefile (sc_cpp_indent_check): Add my name.
18817         * lib/fbufmode.c: Filter through cppi.
18818         * lib/fpurge.c: Likewise.
18819         * lib/freadable.c: Likewise.
18820         * lib/freading.c: Likewise.
18821         * lib/fwritable.c: Likewise.
18822         * lib/fwriting.c: Likewise.
18823         * lib/sigaction.c: Likewise.
18824
18825 2011-02-22  Jim Meyering  <meyering@redhat.com>
18826
18827         maint: adjust cpp indentation to reflect nesting depth
18828         I.e., in a block of code that begins with an unnested "#if",
18829         put one space between the "#" in column 1 and following token.
18830         For example,
18831         -#include <sys/vfs.h>
18832         +# include <sys/vfs.h>
18833         Do this only in .c files that are part of a module I maintain.
18834         * lib/linkat.c: Filter through cppi.
18835         * lib/nanosleep.c: Likewise.
18836         * lib/openat.c: Likewise.
18837         * lib/openat-die.c: Likewise.
18838         * lib/dup3.c: Likewise.
18839         * lib/fchownat.c: Likewise.
18840         * lib/flock.c: Likewise.
18841         * lib/fsync.c: Likewise.
18842         * lib/fts.c: Likewise.
18843         * lib/getpass.c: Likewise.
18844         * lib/gettimeofday.c: Likewise.
18845         * lib/userspec.c: Likewise.
18846         * Makefile (sc_cpp_indent_check): New rule, to check this.
18847
18848 2011-02-22  Bruno Haible  <bruno@clisp.org>
18849
18850         New module 'wctomb'.
18851         * lib/stdlib.in.h (wctomb): New declaration.
18852         * lib/wctomb.c: New file.
18853         * lib/wctomb-impl.h: New file.
18854         * m4/wctomb.m4: New file.
18855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18856         REPLACE_WCTOMB.
18857         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18858         REPLACE_WCTOMB.
18859         * modules/wctomb: New file.
18860         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18861         * doc/posix-functions/wctomb.texi: Mention the new module.
18862         * modules/wctob (Depends-on): Add wctomb.
18863
18864 2011-02-22  Bruno Haible  <bruno@clisp.org>
18865
18866         New module 'mbtowc'.
18867         * lib/stdlib.in.h (mbtowc): New declaration.
18868         * lib/mbtowc.c: New file.
18869         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18870         * m4/mbtowc.m4: New file.
18871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18872         REPLACE_MBTOWC.
18873         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18874         REPLACE_MBTOWC.
18875         * modules/mbtowc: New file.
18876         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18877         * doc/posix-functions/mbtowc.texi: Mention the new module.
18878         * modules/btowc (Depends-on): Add mbtowc.
18879
18880 2011-02-22  Bruno Haible  <bruno@clisp.org>
18881
18882         wcrtomb: Add more tests for native Windows platforms.
18883         * tests/test-wcrtomb-w32-1.sh: New file.
18884         * tests/test-wcrtomb-w32-2.sh: New file.
18885         * tests/test-wcrtomb-w32-3.sh: New file.
18886         * tests/test-wcrtomb-w32-4.sh: New file.
18887         * tests/test-wcrtomb-w32-5.sh: New file.
18888         * tests/test-wcrtomb-w32.c: New file.
18889         * modules/wcrtomb-tests (Files): Add them.
18890         (Makefile.am): Arrange to run these tests.
18891         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18892         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18893
18894 2011-02-20  Bruno Haible  <bruno@clisp.org>
18895
18896         wcrtomb: Enhance test.
18897         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18898
18899 2011-02-20  Bruno Haible  <bruno@clisp.org>
18900
18901         mbrtowc: Tiny optimization.
18902         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18903
18904 2011-02-20  Jim Meyering  <meyering@redhat.com>
18905
18906         test-exclude.c: remove unmatched #endif
18907         * tests/test-exclude.c: Remove stray #endif, left over from
18908         the change of a week ago.
18909
18910 2011-02-19  Jim Meyering  <meyering@redhat.com>
18911
18912         git-version-gen: skip "-dirty" check when appropriate
18913         * build-aux/git-version-gen: Don't run any git commands when the
18914         version string comes from .tarball-version.  Prior to this, we
18915         would run git update-index --refresh even from a just-unpacked
18916         tarball directory, and that could affect a .git/ directory in a
18917         parent of the build directory.  Reported by Mike Frysinger.
18918
18919 2011-02-19  Bruno Haible  <bruno@clisp.org>
18920
18921         unictype/property-byname: Reduce the size of the 'data' segment.
18922         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18923
18924 2011-02-19  Bruno Haible  <bruno@clisp.org>
18925
18926         unictype/scripts: Reduce the size of the 'data' segment.
18927         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18928         '%pic'.
18929         * lib/unictype/scripts_byname.gperf: Regenerated.
18930
18931 2011-02-19  Bruno Haible  <bruno@clisp.org>
18932
18933         stdint: Update documentation.
18934         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18935
18936 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18937
18938         stdint: omit redundant check for wchar.h
18939         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18940         always tests whether wchar.h exists, so remove the now-redundant test.
18941
18942 2011-02-18  Bruno Haible  <bruno@clisp.org>
18943
18944         stdint: Cut dependency to module 'wchar'.
18945         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18946         include the necessary prerequisites.
18947         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18948         * modules/stdint (Depends-on): Remove wchar.
18949         (Makefile.am): Substitute HAVE_WCHAR_H.
18950         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18951
18952 2011-02-18  Eric Blake  <eblake@redhat.com>
18953
18954         longlong: skip, rather than fail, on cross-compilation
18955         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18956         when cross-compiling; regression from 2011-02-16.
18957
18958 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18959
18960         * NEWS: Mention 2011-02-08 change to stdlib.
18961
18962 2011-02-17  Bruno Haible  <bruno@clisp.org>
18963
18964         getloadavg: Add comments about platforms.
18965         * m4/getloadavg.m4: Add comment.
18966         * lib/getloadavg.c: Likewise.
18967
18968 2011-02-17  Bruno Haible  <bruno@clisp.org>
18969
18970         getloadavg: Fix link error on Solaris 2.6.
18971         * modules/getloadavg (Link): New section.
18972         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18973         linking test-getloadavg.
18974         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18975         getloadavg.
18976
18977 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18978
18979         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18980         It was 'int', but this doesn't match the IRIX 6.5 manual.
18981         Suggested by Bruno Haible in
18982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18983
18984 2011-02-17  Bruno Haible  <bruno@clisp.org>
18985
18986         havelib: Fix comments.
18987         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18988         change.
18989
18990 2011-02-17  Bruno Haible  <bruno@clisp.org>
18991
18992         havelib: Update config.rpath.
18993         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18994
18995 2011-02-17  Bruno Haible  <bruno@clisp.org>
18996
18997         getloadavg test: Add some plausibility checks.
18998         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18999         is improbable.
19000
19001 2011-02-16  Eric Blake  <eblake@redhat.com>
19002
19003         maintainer-makefile: make syntax-check a no-op from tarballs
19004         * top/maint.mk (no-vc-detected): New rule.
19005         (local-checks-available): Use it to avoid hanging if someone tries
19006         'make syntax-check' from a tarball.  Also append to any non-syntax
19007         checks already defined in cfg.mk.
19008
19009 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19010
19011         longlong: tune, particularly for common case of c99
19012
19013         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19014         or running anything if c99, or if unsigned long long int does not
19015         work.  In either case, we know the answer without further tests.
19016         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19017         it at most once, and use its results for both long long int and
19018         unsigned long long int.  This is more likely to be efficient in
19019         the common case where the program wants to check for both long
19020         long int and unsigned long long int.
19021         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19022         since the answer is already known.
19023
19024 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19025
19026         getloadavg: set errno
19027         * lib/getloadavg.c: Set errno when returning -1.  If no other
19028         error number looks appropriate, set it to ENOSYS if the getloadavg
19029         looks like it can't possibly ever work, ENOTSUP otherwise.
19030         Suggested by Bruno Haible in
19031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19032
19033         getloadavg: trim unused parts and speed up 'configure'
19034         * NEWS: Document this.
19035         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19036         always compiled if getloadavg is absent.
19037         Move test code to ...
19038         * tests/test-getloadavg.c: New file, containing previous
19039         contents of test from lib/getloadavg.c.  It also contains
19040         suggestions by Bruno Haible in
19041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19042         * modules/getloadavg-tests: New file.
19043         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19044         Do tests in the same order as they're needed for getloadavg.c.
19045         Omit setgid-related tests that generate symbols KMEM_GROUP,
19046         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19047         Do only the tests that are needed to see whether the system has
19048         getloadavg, moving the other tests into ...
19049         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19050         NLIST_NAME_UNION; nobody should be using it.  Do not define
19051         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19052         relevant, as the user of this module shouldn't care how getloadavg
19053         is implemented.
19054
19055         getloadavg: omit unused var
19056         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19057
19058 2011-02-15  Jim Meyering  <meyering@redhat.com>
19059
19060         doc: update users.txt
19061         * users.txt: Update iwhd's URL.
19062
19063 2011-02-13  Bruno Haible  <bruno@clisp.org>
19064
19065         Consistent macro naming for macros that use GCC __attribute__.
19066         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19067         _ATTRIBUTE_NONNULL_.
19068         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19069         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19070         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19071         ATTRIBUTE_DEPRECATED.
19072         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19073         ATTRIBUTE_NORETURN.
19074         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19075         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19076         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19077         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19078         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19079         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19080         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19081         ATTRIBUTE_SENTINEL.
19082         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19083         ATTRIBUTE_RETURN_CHECK.
19084         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19085         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19086         ATTRIBUTE_NORETURN.
19087         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19088         Reported by Paul Eggert.
19089
19090 2011-02-13  Bruno Haible  <bruno@clisp.org>
19091
19092         Don't interfere with a program's definition of __attribute__.
19093         * lib/argp.h (__attribute__): Remove definition.
19094         (_GL_ATTRIBUTE_FORMAT): New macro.
19095         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19096         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19097         (_GL_ATTRIBUTE_FORMAT): New macro.
19098         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19099         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19100         GCC 3 or newer.
19101         * lib/error.h (__attribute__): Remove definition.
19102         (_GL_ATTRIBUTE_FORMAT): New macro.
19103         (error, error_at_line): Use it.
19104         * lib/hash.h (__attribute__): Remove definition.
19105         (ATTRIBUTE_WUR): Update definition. Define always.
19106         * lib/openat.h (__attribute__): Remove definition.
19107         (ATTRIBUTE_NORETURN): Update definition. Define always.
19108         * lib/sigpipe-die.h (__attribute__): Remove definition.
19109         (ATTRIBUTE_NORETURN): Update definition. Define always.
19110         * lib/vasnprintf.h (__attribute__): Remove definition.
19111         (_GL_ATTRIBUTE_FORMAT): New macro.
19112         (asnprintf, vasnprintf): Use it.
19113         * lib/xalloc.h (__attribute__): Remove definition.
19114         (ATTRIBUTE_NORETURN): Update definition. Define always.
19115         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19116         * lib/xmemdup0.h (__attribute__): Remove definition.
19117         (ATTRIBUTE_NORETURN): Update definition. Define always.
19118         * lib/xprintf.h (__attribute__): Remove definition.
19119         (_GL_ATTRIBUTE_FORMAT): New macro.
19120         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19121         * lib/xstrtol.h (__attribute__): Remove definition.
19122         (ATTRIBUTE_NORETURN): Update definition. Define always.
19123         * lib/xvasprintf.h (__attribute__): Remove definition.
19124         (_GL_ATTRIBUTE_FORMAT): New macro.
19125         (xasprintf, xvasprintf): Use it.
19126         * tests/test-argmatch.c (__attribute__): Remove definition.
19127         (ATTRIBUTE_NORETURN): Update definition. Define always.
19128         * tests/test-exclude.c (__attribute__): Remove definition.
19129         (ATTRIBUTE_NORETURN): Update definition. Define always.
19130         Reported by Paul Eggert.
19131
19132 2011-02-13  Bruno Haible  <bruno@clisp.org>
19133
19134         mbrtowc: Add more tests for native Windows platforms.
19135         * tests/test-mbrtowc-w32-1.sh: New file.
19136         * tests/test-mbrtowc-w32-2.sh: New file.
19137         * tests/test-mbrtowc-w32-3.sh: New file.
19138         * tests/test-mbrtowc-w32-4.sh: New file.
19139         * tests/test-mbrtowc-w32-5.sh: New file.
19140         * tests/test-mbrtowc-w32.c: New file.
19141         * modules/mbrtowc-tests (Files): Add them.
19142         (Makefile.am): Arrange to run these tests.
19143         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19144         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19145
19146 2011-02-13  Bruno Haible  <bruno@clisp.org>
19147
19148         mbrtowc: Work around native Windows bug.
19149         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19150         guess when no suitable locale for testing was found.
19151         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19152
19153 2011-02-13  Bruno Haible  <bruno@clisp.org>
19154
19155         mbsinit: Work around mingw bug.
19156         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19157         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19158         Windows.
19159         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19160
19161 2011-02-13  Bruno Haible  <bruno@clisp.org>
19162
19163         mbsinit: Don't crash for a NULL argument.
19164         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19165         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19166
19167 2011-02-13  Bruno Haible  <bruno@clisp.org>
19168
19169         Don't interfere with a program's definition of __attribute__.
19170         * lib/stdio.in.h (__attribute__): Remove definition.
19171         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19172         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19173         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19174         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19175         * lib/string.in.h (__attribute__): Remove definition.
19176         Reported by Paul Eggert.
19177
19178 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19179
19180         stdlib: don't get in the way of non-GCC __attribute__
19181         See thread starting at
19182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19183         Revert previous stdlib change, installing the following instead:
19184         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19185         to get in the way of a non-GCC compiler that supports __attribute__.
19186         (_GL_ATTRIBUTE_RETURN): New macro.
19187         (_Exit): Use it instead of __attribute__.
19188
19189 2011-02-12  Bruno Haible  <bruno@clisp.org>
19190
19191         quotearg test: Avoid test failure on mingw.
19192         * tests/test-quotearg.sh: Convert the locale identifier from native
19193         Windows syntax to Unix syntax.
19194
19195 2011-02-12  Bruno Haible  <bruno@clisp.org>
19196
19197         setlocale: Prefer gnulib's override over libintl's override.
19198         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19199         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19200         GNULIB_defined_setlocale is set.
19201
19202 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19203
19204         stdlib: support non-GCC __attribute__
19205
19206         Fix a serious and tricky problem encountered when attempting to
19207         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19208         5.5, but it crashed due to memory corruption on Solaris 10 with
19209         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19210         bits that are otherwise zero.  This tagging is optional inside
19211         Emacs but is preferred and is used when __attribute__ ((__aligned
19212         (8))) works, as it does with both recent-enough GCC and with Sun C
19213         5.11.  However, Sun C 5.11 is not GCC and does not #define
19214         __GNUC__ and __GNUC_MINOR__.
19215
19216         When I added the getloadavg module to Emacs, it brought in
19217         stdlib.in.h, which contained this fragment:
19218
19219            #ifndef __attribute__
19220            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19221            #  define __attribute__(Spec)   /* empty */
19222            # endif
19223            #endif
19224
19225         When files that include <stdlib.h> were compiled with Sun C 5.11,
19226         the above code disabled __attribute__ ((__aligned (8))), which
19227         caused variables to not be properly aligned, which eventually led
19228         to the pointer corruption mentioned above.  (This was a bit hard
19229         to diagnose, unfortunately.)
19230
19231         Several "#define __attribute__(X) /* empty */" code snippets need
19232         to be eradicated from Gnulib to work with non-GCC compilers that
19233         support __attribute__.  The Autoconf way to do this is to test for
19234         each kind of attribute that we want support for, and selectively
19235         enable that in source code.
19236
19237         Fix this problem just for stdlib.h, by adding a test for the
19238         __noreturn__ attribute, and change stdlib.in.h to use that test
19239         when needed.  This technique can be easily generalized to the
19240         other *.in.h files and attributes, and a similar technique can be
19241         used for *.h and *.c files.  This patch is enough to solve the
19242         problem for Emacs + getloadavg, and I thought I'd publish it for
19243         feedback before undertaking further, similar fixes in other
19244         modules.
19245
19246         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19247         because it's not needed for stdlib.h.  It merely substitutes the
19248         value directly into stdlib.h.  We may well need to #define it, or
19249         similar symbols, for other modules, but it's nice to also have an
19250         option to not #define it for applications like Emacs that do not
19251         need it.
19252
19253         * lib/stdlib.in.h (__attribute__): Do not #define.
19254         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19255         be defined only if the _Exit module is also used.
19256         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19258         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19259         platforms.
19260         * modules/_Exit (Files): Add m4/attribute.m4.
19261         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19262         * m4/attribute.m4: New file.
19263
19264 2011-02-12  Bruno Haible  <bruno@clisp.org>
19265
19266         wcsrtombs: Work around bug on native Windows.
19267         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19268         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19269         instead of len.
19270         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19271
19272 2011-02-12  Bruno Haible  <bruno@clisp.org>
19273
19274         mbsrtowcs: Work around bug on native Windows.
19275         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19276         against mingw bug.
19277         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19278
19279 2011-02-12  Bruno Haible  <bruno@clisp.org>
19280
19281         Avoid setlocale bugs in tests.
19282         * modules/btowc (Dependencies): Add setlocale.
19283         * modules/c-strcase (Dependencies): Likewise.
19284         * modules/mbmemcasecmp (Dependencies): Likewise.
19285         * modules/mbmemcasecoll (Dependencies): Likewise.
19286         * modules/mbrtowc (Dependencies): Likewise.
19287         * modules/mbscasecmp (Dependencies): Likewise.
19288         * modules/mbscasestr (Dependencies): Likewise.
19289         * modules/mbschr (Dependencies): Likewise.
19290         * modules/mbscspn (Dependencies): Likewise.
19291         * modules/mbsinit (Dependencies): Likewise.
19292         * modules/mbsncasecmp (Dependencies): Likewise.
19293         * modules/mbsnrtowcs (Dependencies): Likewise.
19294         * modules/mbspbrk (Dependencies): Likewise.
19295         * modules/mbspcasecmp (Dependencies): Likewise.
19296         * modules/mbsrchr (Dependencies): Likewise.
19297         * modules/mbsrtowcs (Dependencies): Likewise.
19298         * modules/mbsspn (Dependencies): Likewise.
19299         * modules/mbsstr (Dependencies): Likewise.
19300         * modules/nl_langinfo (Dependencies): Likewise.
19301         * modules/quotearg (Dependencies): Likewise.
19302         * modules/unicase/locale-language (Dependencies): Likewise.
19303         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19304         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19305         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19306         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19307         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19308         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19309         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19310         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19311         * modules/vasnprintf-posix (Dependencies): Likewise.
19312         * modules/wcrtomb (Dependencies): Likewise.
19313         * modules/wcsnrtombs (Dependencies): Likewise.
19314         * modules/wcsrtombs (Dependencies): Likewise.
19315
19316 2011-02-12  Bruno Haible  <bruno@clisp.org>
19317
19318         setlocale: Workaround native Windows bug.
19319         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19320         succeeds but sets LC_CTYPE to "C", report a failure.
19321         * tests/test-setlocale2.sh: New file.
19322         * tests/test-setlocale2.c: New file.
19323         * modules/setlocale-tests (Files): Add the new files.
19324         (Makefile.am): Enable test-setlocale2.sh test.
19325         * doc/posix-functions/setlocale.texi: Mention workaround.
19326
19327 2011-02-11  Bruno Haible  <bruno@clisp.org>
19328
19329         Tests for module 'setlocale'.
19330         * modules/setlocale-tests: New file.
19331         * tests/test-setlocale1.sh: New file.
19332         * tests/test-setlocale1.c: New file.
19333
19334         New module 'setlocale'.
19335         * lib/locale.in.h (setlocale): New declaration.
19336         * lib/setlocale.c: New file, based on
19337         gettext/gettext-runtime/intl/setlocale.c.
19338         * m4/setlocale.m4: New file.
19339         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19340         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19341         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19342         REPLACE_SETLOCALE.
19343         * modules/setlocale: New file.
19344         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19345         * doc/posix-functions/setlocale.texi: Mention the new module.
19346
19347 2011-02-11  Bruno Haible  <bruno@clisp.org>
19348
19349         Prepare for locale dependent tests on mingw.
19350         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19351         because it has the wrong locale encoding.
19352         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19353         French_France.1252 instead of "fr".
19354         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19355         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19356         because it has the wrong locale encoding.
19357         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19358         native Windows, try Turkish_Turkey.65001.
19359         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19360         Chinese_China.54936.
19361
19362         Prepare for locale dependent tests on mingw.
19363         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19364         differently.
19365         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19366         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19367         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19368         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19369
19370 2011-02-11  Eric Blake  <eblake@redhat.com>
19371
19372         strptime: avoid compiler warnings
19373         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19374         compiler warnings about dead code.
19375         Reported by Daniel P. Berrange.
19376
19377 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19378
19379         doc: update users.txt
19380         * users.txt: Add rcs.
19381
19382 2011-02-10  John W. Eaton  <jwe@gnu.org>
19383
19384         doc: update users.txt
19385         * users.txt: Add octave.
19386
19387 2011-02-10  Jim Meyering  <meyering@redhat.com>
19388
19389         doc: update users.txt
19390         * users.txt: Add iwhd.
19391
19392 2011-02-09  Bruno Haible  <bruno@clisp.org>
19393
19394         gnulib-tool: Make copyright notice adjustment more robust.
19395         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19396         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19397         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19398         License".
19399         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19400
19401 2011-02-06  Bruno Haible  <bruno@clisp.org>
19402
19403         New module 'towctrans'.
19404         * modules/towctrans: New file.
19405         * lib/wctype.in.h (towctrans): New declaration.
19406         * lib/towctrans.c: New file.
19407         * lib/towctrans-impl.h: New file.
19408         * m4/towctrans.m4: New file.
19409         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19410         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19411         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19412         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19413         * doc/posix-functions/towctrans.texi: Mention the new module.
19414
19415 2011-02-06  Bruno Haible  <bruno@clisp.org>
19416
19417         New module 'wctrans'.
19418         * modules/wctrans: New file.
19419         * lib/wctype.in.h (wctrans): New declaration.
19420         * lib/wctrans.c: New file.
19421         * lib/wctrans-impl.h: New file.
19422         * m4/wctrans.m4: New file.
19423         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19424         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19425         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19426         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19427         * doc/posix-functions/wctrans.texi: Mention the new module.
19428
19429 2011-02-06  Bruno Haible  <bruno@clisp.org>
19430
19431         New module 'iswctype'.
19432         * modules/iswctype: New file.
19433         * lib/wctype.in.h (iswctype): New declaration.
19434         * lib/iswctype.c: New file.
19435         * lib/iswctype-impl.h: New file.
19436         * m4/iswctype.m4: New file.
19437         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19438         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19439         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19440         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19441         * doc/posix-functions/iswctype.texi: Mention the new module and the
19442         HP-UX 11.00 problem.
19443
19444 2011-02-06  Bruno Haible  <bruno@clisp.org>
19445
19446         New module 'wctype'.
19447         * modules/wctype: Change to represent the wctype() substitute.
19448         * lib/wctype.in.h (wctype): New declaration.
19449         * lib/wctype.c: New file.
19450         * lib/wctype-impl.h: New file.
19451         * m4/wctype.m4: New file.
19452         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19453         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19454         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19455         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19456         * doc/posix-functions/wctype.texi: Mention the new module and the
19457         HP-UX 11.00 problem.
19458
19459 2011-02-06  Bruno Haible  <bruno@clisp.org>
19460
19461         wctype-h: Ensure wctype_t and wctrans_t are defined.
19462         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19463         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19464         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19465         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19466         HAVE_WCTRANS_T.
19467         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19468
19469 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19470
19471         flock: fix license typo
19472
19473         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19474         omitted.
19475
19476 2011-02-08  Bruno Haible  <bruno@clisp.org>
19477
19478         Split large sed scripts, for HP-UX sed.
19479         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19480         to avoid HP-UX limit of 99 commands, in the near future.
19481         * modules/stdlib (Makefile.am): Likewise.
19482         * modules/unistd (Makefile.am): Likewise.
19483         * modules/wchar (Makefile.am): Likewise.
19484         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19485         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19486         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19487
19488 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19489             Bruno Haible  <bruno@clisp.org>
19490
19491         stdlib: improve random_r modularization
19492         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19493         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19494         you also need the random_r module to get this material right.
19495         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19496         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19497         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19498
19499 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19500
19501         stdlib: don't depend on stdint
19502         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19503         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19504         be independent of whether stdint.h is needed.
19505         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19506         here, instead of ...
19507         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19508         struct random_data should be using the random_r module, not just
19509         the stdlib module (which wouldn't make sense: what package needs
19510         just struct random_data without also needing random_r?).
19511         * modules/stdlib (Depends-on): Remove stdint.
19512
19513         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19514         See the thread rooted at
19515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19516         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19517         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19518         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19519         __VMS)); previously it was always included (via fcntl--.h).
19520         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19521         hand; this is good enough for load averages.  Also, do not use
19522         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19523         flags directly if available and don't bother otherwise.  (Packages
19524         that need the extra reliability should use the modules that define
19525         these flags on older platforms that lack them.)
19526         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19527         fcntl-safer.
19528
19529 2011-02-08  Jim Meyering  <meyering@redhat.com>
19530
19531         di-set.h, ino-map.h: add multiple-inclusion guard
19532         Technically, the guard is required only for ino-map.h, due to its
19533         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19534         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19535         * lib/ino-map.h: Likewise.
19536
19537 2011-02-06  Bruno Haible  <bruno@clisp.org>
19538
19539         iswblank: Ensure declaration on glibc systems.
19540         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19541         * modules/iswblank (Dependencies): Add 'extensions'.
19542         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19543
19544 2011-02-06  Bruno Haible  <bruno@clisp.org>
19545
19546         New module 'iswblank'.
19547         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19548         * modules/iswblank: New file.
19549         * modules/wctype-h (Files): Remove lib/iswblank.c.
19550         (Makefile.am): Substitute GNULIB_ISWBLANK.
19551         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19552         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19553         (gl_WCTYPE_H_DEFAULTS): New macro.
19554         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19555         * modules/iswblank-tests: New file.
19556         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19557         * tests/test-wctype-h.c (main): Remove iswblank tests.
19558         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19559         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19560         of 'wctype-h'.
19561         * NEWS: Mention the change.
19562         * modules/mbchar (Depends-on): Add iswblank.
19563
19564 2011-02-08  Bruno Haible  <bruno@clisp.org>
19565
19566         di-set tests: Refactor.
19567         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19568         unnecessary includes.
19569         (ASSERT): Remove macro.
19570         (main): Make C90 compliant by avoiding variable declaration after
19571         statement.
19572         * modules/di-set-tests (Files): Add tests/macros.h.
19573
19574 2011-02-08  Bruno Haible  <bruno@clisp.org>
19575
19576         ino-map tests: Refactor.
19577         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19578         unnecessary includes.
19579         (ASSERT): Remove macro.
19580         (main): Make C90 compliant by avoiding variable declaration after
19581         statement.
19582         * modules/ino-map-tests (Files): Add tests/macros.h.
19583
19584 2011-02-08  Jim Meyering  <meyering@redhat.com>
19585
19586         di-set: add "const" to a cast
19587         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19588         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19589
19590 2011-02-06  Bruno Haible  <bruno@clisp.org>
19591
19592         Rename module 'wctype' to 'wctype-h'.
19593         * modules/wctype-h: Renamed from modules/wctype.
19594         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19595         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19596         (Files, Depends-on, Makefile.am): Update.
19597         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19598         (Files, Makefile.am): Update.
19599         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19600         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19601         * doc/posix-headers/wctype.texi: Update.
19602         * doc/posix-functions/iswalnum.texi: Update.
19603         * doc/posix-functions/iswalpha.texi: Update.
19604         * doc/posix-functions/iswblank.texi: Update.
19605         * doc/posix-functions/iswcntrl.texi: Update.
19606         * doc/posix-functions/iswdigit.texi: Update.
19607         * doc/posix-functions/iswgraph.texi: Update.
19608         * doc/posix-functions/iswlower.texi: Update.
19609         * doc/posix-functions/iswprint.texi: Update.
19610         * doc/posix-functions/iswpunct.texi: Update.
19611         * doc/posix-functions/iswspace.texi: Update.
19612         * doc/posix-functions/iswupper.texi: Update.
19613         * doc/posix-functions/iswxdigit.texi: Update.
19614         * doc/posix-functions/towlower.texi: Update.
19615         * doc/posix-functions/towupper.texi: Update.
19616         * NEWS: Mention the change.
19617         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19618         * modules/mbchar (Dependencies): Likewise.
19619         * modules/mbswidth (Dependencies): Likewise.
19620         * modules/quotearg (Dependencies): Likewise.
19621         * modules/regex (Dependencies): Likewise.
19622         * modules/wcscasecmp (Dependencies): Likewise.
19623         * modules/wcsncasecmp (Dependencies): Likewise.
19624         * modules/wcwidth (Dependencies): Likewise.
19625
19626 2011-02-06  Bruno Haible  <bruno@clisp.org>
19627
19628         New module 'wcswidth'.
19629         * modules/wcswidth: New file.
19630         * lib/wchar.in.h (wcswidth): New declaration.
19631         * lib/wcswidth.c: New file.
19632         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19633         * m4/wcswidth.m4: New file.
19634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19636         REPLACE_WCSWIDTH.
19637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19638         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19639         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19640         * doc/posix-functions/wcswidth.texi: Mention the new module.
19641
19642 2011-02-06  Bruno Haible  <bruno@clisp.org>
19643
19644         New module 'wcstok'.
19645         * modules/wcstok: New file.
19646         * lib/wchar.in.h (wcstok): New declaration.
19647         * lib/wcstok.c: New file.
19648         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19649         * m4/wcstok.m4: New file.
19650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19653         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19654         * doc/posix-functions/wcstok.texi: Mention the new module.
19655
19656 2011-02-06  Bruno Haible  <bruno@clisp.org>
19657
19658         New module 'wcsstr'.
19659         * modules/wcsstr: New file.
19660         * lib/wchar.in.h (wcsstr): New declaration.
19661         * lib/wcsstr.c: New file.
19662         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19663         * m4/wcsstr.m4: New file.
19664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19667         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19668         * doc/posix-functions/wcsstr.texi: Mention the new module.
19669
19670 2011-02-06  Bruno Haible  <bruno@clisp.org>
19671
19672         New module 'wcspbrk'.
19673         * modules/wcspbrk: New file.
19674         * lib/wchar.in.h (wcspbrk): New declaration.
19675         * lib/wcspbrk.c: New file.
19676         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19677         * m4/wcspbrk.m4: New file.
19678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19681         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19682         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19683
19684 2011-02-06  Bruno Haible  <bruno@clisp.org>
19685
19686         New module 'wcsspn'.
19687         * modules/wcsspn: New file.
19688         * lib/wchar.in.h (wcsspn): New declaration.
19689         * lib/wcsspn.c: New file.
19690         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19691         * m4/wcsspn.m4: New file.
19692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19695         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19696         * doc/posix-functions/wcsspn.texi: Mention the new module.
19697
19698 2011-02-06  Bruno Haible  <bruno@clisp.org>
19699
19700         New module 'wcscspn'.
19701         * modules/wcscspn: New file.
19702         * lib/wchar.in.h (wcscspn): New declaration.
19703         * lib/wcscspn.c: New file.
19704         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19705         * m4/wcscspn.m4: New file.
19706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19709         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19710         * doc/posix-functions/wcscspn.texi: Mention the new module.
19711
19712 2011-02-06  Bruno Haible  <bruno@clisp.org>
19713
19714         New module 'wcsrchr'.
19715         * modules/wcsrchr: New file.
19716         * lib/wchar.in.h (wcsrchr): New declaration.
19717         * lib/wcsrchr.c: New file.
19718         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19719         * m4/wcsrchr.m4: New file.
19720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19723         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19724         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19725
19726 2011-02-06  Bruno Haible  <bruno@clisp.org>
19727
19728         New module 'wcschr'.
19729         * modules/wcschr: New file.
19730         * lib/wchar.in.h (wcschr): New declaration.
19731         * lib/wcschr.c: New file.
19732         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19733         * m4/wcschr.m4: New file.
19734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19737         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19738         * doc/posix-functions/wcschr.texi: Mention the new module.
19739
19740 2011-02-06  Bruno Haible  <bruno@clisp.org>
19741
19742         New module 'wcsdup'.
19743         * modules/wcsdup: New file.
19744         * lib/wchar.in.h (wcsdup): New declaration.
19745         * lib/wcsdup.c: New file.
19746         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19747         * m4/wcsdup.m4: New file.
19748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19751         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19752         * doc/posix-functions/wcsdup.texi: Mention the new module.
19753
19754 2011-02-06  Bruno Haible  <bruno@clisp.org>
19755
19756         New module 'wcsxfrm'.
19757         * modules/wcsxfrm: New file.
19758         * lib/wchar.in.h (wcsxfrm): New declaration.
19759         * lib/wcsxfrm.c: New file.
19760         * lib/wcsxfrm-impl.h: New file.
19761         * m4/wcsxfrm.m4: New file.
19762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19765         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19766         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19767
19768 2011-02-06  Bruno Haible  <bruno@clisp.org>
19769
19770         New module 'wcscoll'.
19771         * modules/wcscoll: New file.
19772         * lib/wchar.in.h (wcscoll): New declaration.
19773         * lib/wcscoll.c: New file.
19774         * lib/wcscoll-impl.h: New file.
19775         * m4/wcscoll.m4: New file.
19776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19779         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19780         * doc/posix-functions/wcscoll.texi: Mention the new module.
19781
19782 2011-02-06  Bruno Haible  <bruno@clisp.org>
19783
19784         New module 'wcsncasecmp'.
19785         * modules/wcsncasecmp: New file.
19786         * lib/wchar.in.h (wcsncasecmp): New declaration.
19787         * lib/wcsncasecmp.c: New file.
19788         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19789         * m4/wcsncasecmp.m4: New file.
19790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19792         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19793         HAVE_WCSNCASECMP.
19794         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19795         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19796
19797 2011-02-06  Bruno Haible  <bruno@clisp.org>
19798
19799         New module 'wcscasecmp'.
19800         * modules/wcscasecmp: New file.
19801         * lib/wchar.in.h (wcscasecmp): New declaration.
19802         * lib/wcscasecmp.c: New file.
19803         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19804         * m4/wcscasecmp.m4: New file.
19805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19808         HAVE_WCSCASECMP.
19809         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19810         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19811
19812 2011-02-05  Bruno Haible  <bruno@clisp.org>
19813
19814         New module 'wcsncmp'.
19815         * modules/wcsncmp: New file.
19816         * lib/wchar.in.h (wcsncmp): New declaration.
19817         * lib/wcsncmp.c: New file.
19818         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19819         * m4/wcsncmp.m4: New file.
19820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19823         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19824         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19825
19826 2011-02-05  Bruno Haible  <bruno@clisp.org>
19827
19828         New module 'wcscmp'.
19829         * modules/wcscmp: New file.
19830         * lib/wchar.in.h (wcscmp): New declaration.
19831         * lib/wcscmp.c: New file.
19832         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19833         * m4/wcscmp.m4: New file.
19834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19837         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19838         * doc/posix-functions/wcscmp.texi: Mention the new module.
19839
19840 2011-02-05  Bruno Haible  <bruno@clisp.org>
19841
19842         New module 'wcsncat'.
19843         * modules/wcsncat: New file.
19844         * lib/wchar.in.h (wcsncat): New declaration.
19845         * lib/wcsncat.c: New file.
19846         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19847         * m4/wcsncat.m4: New file.
19848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19851         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19852         * doc/posix-functions/wcsncat.texi: Mention the new module.
19853
19854 2011-02-05  Bruno Haible  <bruno@clisp.org>
19855
19856         New module 'wcscat'.
19857         * modules/wcscat: New file.
19858         * lib/wchar.in.h (wcscat): New declaration.
19859         * lib/wcscat.c: New file.
19860         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19861         * m4/wcscat.m4: New file.
19862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19865         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19866         * doc/posix-functions/wcscat.texi: Mention the new module.
19867
19868 2011-02-05  Bruno Haible  <bruno@clisp.org>
19869
19870         New module 'wcpncpy'.
19871         * modules/wcpncpy: New file.
19872         * lib/wchar.in.h (wcpncpy): New declaration.
19873         * lib/wcpncpy.c: New file.
19874         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19875         * m4/wcpncpy.m4: New file.
19876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19878         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19879         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19880         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19881
19882 2011-02-05  Bruno Haible  <bruno@clisp.org>
19883
19884         New module 'wcsncpy'.
19885         * modules/wcsncpy: New file.
19886         * lib/wchar.in.h (wcsncpy): New declaration.
19887         * lib/wcsncpy.c: New file.
19888         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19889         * m4/wcsncpy.m4: New file.
19890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19893         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19894         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19895
19896 2011-02-05  Bruno Haible  <bruno@clisp.org>
19897
19898         New module 'wcpcpy'.
19899         * modules/wcpcpy: New file.
19900         * lib/wchar.in.h (wcpcpy): New declaration.
19901         * lib/wcpcpy.c: New file.
19902         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19903         * m4/wcpcpy.m4: New file.
19904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19906         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19907         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19908         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19909
19910 2011-02-05  Bruno Haible  <bruno@clisp.org>
19911
19912         New module 'wcscpy'.
19913         * modules/wcscpy: New file.
19914         * lib/wchar.in.h (wcscpy): New declaration.
19915         * lib/wcscpy.c: New file.
19916         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19917         * m4/wcscpy.m4: New file.
19918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19921         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19922         * doc/posix-functions/wcscpy.texi: Mention the new module.
19923
19924 2011-02-05  Bruno Haible  <bruno@clisp.org>
19925
19926         New module 'wcsnlen'.
19927         * modules/wcsnlen: New file.
19928         * lib/wchar.in.h (wcsnlen): New declaration.
19929         * lib/wcsnlen.c: New file.
19930         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19931         * m4/wcsnlen.m4: New file.
19932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19935         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19936         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19937
19938 2011-02-05  Bruno Haible  <bruno@clisp.org>
19939
19940         New module 'wcslen'.
19941         * modules/wcslen: New file.
19942         * lib/wchar.in.h (wcslen): New declaration.
19943         * lib/wcslen.c: New file.
19944         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19945         * m4/wcslen.m4: New file.
19946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19949         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19950         * doc/posix-functions/wcslen.texi: Mention the new module.
19951
19952 2011-02-05  Bruno Haible  <bruno@clisp.org>
19953
19954         New module 'wmemset'.
19955         * modules/wmemset: New file.
19956         * lib/wchar.in.h (wmemset): New declaration.
19957         * lib/wmemset.c: New file.
19958         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19959         * m4/wmemset.m4: New file.
19960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19962         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19963         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19964         * doc/posix-functions/wmemset.texi: Mention the new module.
19965
19966 2011-02-05  Bruno Haible  <bruno@clisp.org>
19967
19968         New module 'wmemmove'.
19969         * modules/wmemmove: New file.
19970         * lib/wchar.in.h (wmemmove): New declaration.
19971         * lib/wmemmove.c: New file.
19972         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19973         * m4/wmemmove.m4: New file.
19974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19976         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19977         HAVE_WMEMMOVE.
19978         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19979         * doc/posix-functions/wmemmove.texi: Mention the new module.
19980
19981 2011-02-05  Bruno Haible  <bruno@clisp.org>
19982
19983         New module 'wmemcpy'.
19984         * modules/wmemcpy: New file.
19985         * lib/wchar.in.h (wmemcpy): New declaration.
19986         * lib/wmemcpy.c: New file.
19987         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19988         * m4/wmemcpy.m4: New file.
19989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19991         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19992         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19993         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19994
19995 2011-02-05  Bruno Haible  <bruno@clisp.org>
19996
19997         New module 'wmemcmp'.
19998         * modules/wmemcmp: New file.
19999         * lib/wchar.in.h (wmemcmp): New declaration.
20000         * lib/wmemcmp.c: New file.
20001         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20002         * m4/wmemcmp.m4: New file.
20003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20005         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20006         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20007         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20008
20009 2011-02-07  Jim Meyering  <meyering@redhat.com>
20010
20011         di-set, ino-map: new modules, from coreutils
20012         * lib/di-set.c: New file.
20013         * lib/di-set.h: Likewise.
20014         * lib/ino-map.c: Likewise.
20015         * lib/ino-map.h: Likewise.
20016         * modules/di-set: Likewise.
20017         * modules/di-set-tests: Likewise.
20018         * modules/ino-map: Likewise.
20019         * modules/ino-map-tests: Likewise.
20020         * tests/test-di-set.c: Likewise.
20021         * tests/test-ino-map.c: Likewise.
20022
20023 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20024
20025         getloadavg: merge minor changes from Emacs
20026
20027         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20028         (getloadavg): Use memset, not bzero.
20029
20030         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20031         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20032         clash (bug#86).
20033
20034 2010-11-14  Bruno Haible  <bruno@clisp.org>
20035
20036         Allow multiple gnulib generated replacements to coexist.
20037         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20038         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20039         * lib/langinfo.in.h (nl_item): Likewise.
20040         * lib/math.in.h (_NaN, NAN): Likewise.
20041         * lib/netdb.in.h (struct addrinfo): Likewise.
20042         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20043         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20044         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20045         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20046         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20047         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20048         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20049         pthread_mutexattr_init, pthread_mutexattr_settype,
20050         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20051         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20052         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20053         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20054         * lib/sched.in.h (struct sched_param): Likewise.
20055         * lib/se-selinux.in.h (security_class_t, security_context_t,
20056         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20057         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20058         lsetfilecon, fsetfilecon, security_check_context,
20059         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20060         Likewise.
20061         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20062         Likewise.
20063         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20064         _gl_function_taking_int_returning_void_t, union sigval,
20065         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20066         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20067         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20068         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20069         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20070         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20071         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20072         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20073         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20074         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20075         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20076         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20077         socklen_t, rpl_fd_isset): Likewise.
20078         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20079         * lib/sys_time.in.h (struct timeval): Likewise.
20080         * lib/sys_times.in.h (struct tms): Likewise.
20081         * lib/sys_utsname.in.h (struct utsname):
20082         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20083         * lib/unistd.in.h (getpagesize): Likewise.
20084         * lib/wchar.in.h (mbstate_t): Likewise.
20085         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20086         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20087         towlower, towupper): Likewise.
20088         Reported by Sam Steingold <sds@gnu.org>.
20089
20090 2011-02-05  Eric Blake  <eblake@redhat.com>
20091
20092         unsetenv: work around Haiku issues
20093         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20094         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20095
20096 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20097
20098         libposix: avoid calling error() within libposix
20099         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20100         is defined.
20101
20102 2011-02-05  Eric Blake  <eblake@redhat.com>
20103
20104         strerror_r-posix: port to cygwin
20105         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20106         implementation.
20107         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20108         * tests/test-strerror_r.c (main): Fix test.
20109         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20110         issue.
20111
20112 2011-02-05  Bruno Haible  <bruno@clisp.org>
20113
20114         New module 'wmemchr'.
20115         * modules/wmemchr: New file.
20116         * lib/wchar.in.h (wmemchr): New declaration.
20117         * lib/wmemchr.c: New file.
20118         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20119         * m4/wmemchr.m4: New file.
20120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20122         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20123         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20124         * doc/posix-functions/wmemchr.texi: Mention the new module.
20125
20126 2011-02-04  Eric Blake  <eblake@redhat.com>
20127
20128         fdopendir: detect FreeBSD bug
20129         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20130         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20131
20132 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20133
20134         stdbool: do not define HAVE_STDBOOL_H
20135         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20136         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20137         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20138         imported from the latest Autoconf git.  It was motivated by Emacs,
20139         which uses gnulib but does not need HAVE_STDBOOL_H.
20140
20141 2011-02-04  Bruno Haible  <bruno@clisp.org>
20142
20143         wcsnrtombs: Prepare for new module wwcsnrtombs.
20144         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20145         * lib/wcsnrtombs.c: Include it.
20146         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20147
20148         wcsrtombs: Prepare for new module wwcsrtombs.
20149         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20150         * lib/wcsrtombs.c: Include it.
20151         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20152
20153         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20154         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20155         * lib/mbsnrtowcs.c: Include it.
20156         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20157
20158         mbsrtowcs: Prepare for new module mbsrtowwcs.
20159         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20160         * lib/mbsrtowcs.c: Include it.
20161         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20162
20163 2011-02-04  Bruno Haible  <bruno@clisp.org>
20164
20165         vasnprintf: Reduce use of malloc for small format strings.
20166         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20167         (arguments): Add room for the first 7 arguments.
20168         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20169         (char_directives, u8_directives, u16_directives, u32_directives): Add
20170         room for the first 7 directives.
20171         * lib/printf-parse.c: Include <string.h>.
20172         (PRINTF_PARSE): Change memory handling code so that it uses the first
20173         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20174         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20175         Reported by Pádraig Brady <P@draigbrady.com>.
20176
20177 2011-01-31  Eric Blake  <eblake@redhat.com>
20178
20179         dup2: work around Haiku bug
20180         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20181         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20182         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20183         * tests/test-dup2.c (main): Enhance test.
20184
20185 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20186
20187         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20188         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20189         declared by eglibc 2.11.2.
20190         * lib/stdio.in.h: Likewise.
20191
20192 2011-01-31  Eric Blake  <eblake@redhat.com>
20193
20194         ignore-value: add missing test dependency
20195         * tests/test-ignore-value.c: Revert previous change; stdio.h
20196         provides off_t.
20197         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20198
20199 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20200
20201         mktime: clarify long_int width checking
20202         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20203         the top level, to make it clearer that the assumption about
20204         long_int width is being checked.  See
20205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20206
20207 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20208
20209         ignore-value: Fix self-test.
20210         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20211
20212 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20213
20214         TYPE_MAXIMUM: avoid theoretically undefined behavior
20215         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20216         negative number, which the C Standard says has undefined behavior.
20217         In practice this is not a problem, but might as well do it by the book.
20218         Reported by Rich Felker and Eric Blake; see
20219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20220         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20221         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20223         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20224         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20225         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20226
20227         mktime: #undef mktime before #defining it
20228         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20229
20230         mktime: systematically normalize tm_isdst comparisons
20231         * lib/mktime.c (isdst_differ): New function.
20232         (__mktime_internal): Use it systematically for all isdst comparisons.
20233         This completes the fix for libc BZ #6723, and removes the need for
20234         normalizing tm_isdst.  See
20235         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20236         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20237
20238         mktime: fix some integer overflow issues and sidestep the rest
20239
20240         This was prompted by a bug report by Benjamin Lindner for MinGW
20241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20242         His bug is due to signed integer overflow (0 - INT_MIN), and I
20243         I scanned through mktime.c looking for other integer overflow
20244         problems, fixing all the bugs I found.
20245
20246         Although the C Standard says the resulting code is still not safe
20247         in the presence of integer overflow, in practice it should be good
20248         enough for all real-world two's-complement implementations, except
20249         for debugging environments that deliberately trap on integer
20250         overflow (e.g., gcc -ftrapv).
20251
20252         * lib/mktime.c (WRAPV): New macro.
20253         (SHR): Also check that long_int and time_t shift right in the
20254         usual way, before using the fast-but-unportable method.
20255         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20256         used.  The code already assumed two's complement, so there's
20257         no need to test for alternatives.  All uses removed.
20258         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20259         the C standard.  Problem reported by Rich Felker in
20260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20261         (twos_complement_arithmetic): Also check long_int and time_t.
20262         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20263         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20264         (__mktime_internal): Avoid integer overflow with unary subtraction
20265         in two instances where -1 - X is an adequate replacement for -X,
20266         since the calculations are approximate.
20267
20268 2011-01-29  Eric Blake  <eblake@redhat.com>
20269
20270         mktime: avoid infinite loop
20271         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20272         type; behavior is still undefined but portable to all known targets.
20273         Reported by Rich Felker.
20274
20275 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20276
20277         rename, unlink, same-inode: Relicense.
20278         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20279         * modules/unlink (License): Likewise.
20280         * modules/same-inode (License): Likewise.
20281
20282 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20283
20284         mktime: avoid problems on NetBSD 5 / i386
20285         * lib/mktime.c (long_int): New type.  This works around a problem
20286         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20287         but time_t is 64 bits, and where I expect the existing code is
20288         wrong in some cases.
20289         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20290         (ydhms_diff): Bring back the compile-time check for wide-enough
20291         year and yday.
20292
20293         mktime: fix misspelling in comment
20294         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20295         This merges all recent glibc changes of importance.
20296
20297 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20298
20299         move-if-change: cope with concurrent mv of identical file.
20300         * build-aux/move-if-change (CMPPROG): Accept environment
20301         variable as an override for `cmp'.
20302         (usage): Document CMPPROG.
20303         Adjust comparison to drop stdout.  Cope with failure of mv if
20304         the target file exists and is identical to the source, for
20305         parallel builds.
20306         Report from H.J. Lu against binutils in PR binutils/12283.
20307
20308 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20309
20310         * users.txt: Mention sharutils.
20311
20312 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20313
20314         * users.txt: Mention OATH Toolkit.
20315
20316 2011-01-27  Bruno Haible  <bruno@clisp.org>
20317
20318         Prepare for supporting FreeBSD 10.
20319         * build-aux/config.libpath: Remove handling of freebsd1*.
20320
20321 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20322
20323         Prepare for supporting FreeBSD 10.
20324         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20325         match FreeBSD 10.0.
20326
20327 2011-01-27  Bruno Haible  <bruno@clisp.org>
20328
20329         vma-iter, get-rusage-as: Add OpenBSD support.
20330         * modules/vma-iter (configure.ac): Test for mquery.
20331         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20332         * lib/vma-iter.c: Include <sys/mman.h>.
20333         (vma_iterate): Add an implementation based on mquery().
20334         * lib/resource-ext.h (get_rusage_as): Update comments.
20335         * lib/get-rusage-as.c: Likewise.
20336         * lib/get-rusage-data.c: Likewise.
20337
20338 2011-01-26  Karl Berry  <karl@gnu.org>
20339
20340         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20341         variables to make it easier to override the makeinfo program used.
20342
20343 2011-01-26  Eric Blake  <eblake@redhat.com>
20344
20345         fcntl: work around Haiku F_DUPFD bugs
20346         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20347         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20348         cloexec bit on duplication.
20349         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20350
20351 2011-01-26  Bruno Haible  <bruno@clisp.org>
20352
20353         Enable memory leak tests on AIX.
20354         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20355         * tests/test-fprintf-posix3.c (main): Likewise.
20356
20357 2011-01-26  Bruno Haible  <bruno@clisp.org>
20358
20359         Tests for module 'get-rusage-data'.
20360         * modules/get-rusage-data-tests: New file.
20361         * tests/test-get-rusage-data.c: New file.
20362
20363         New module 'get-rusage-data'.
20364         * lib/resource-ext.h (get_rusage_data): New declaration.
20365         * lib/get-rusage-data.c: New file.
20366         * modules/get-rusage-data: New file.
20367
20368 2011-01-25  Bruno Haible  <bruno@clisp.org>
20369
20370         get-rusage-as: Allow for easier testing.
20371         * lib/resource-ext.h (get_rusage_as): Add comment.
20372         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20373         (main): New function for interactive testing.
20374
20375 2011-01-25  Bruno Haible  <bruno@clisp.org>
20376
20377         vma-iter: Treat Haiku like BeOS.
20378         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20379         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20380
20381 2011-01-25  Eric Blake  <eblake@redhat.com>
20382
20383         c-stack: fix regression on cygwin when libsigsegv is present
20384         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20385
20386 2011-01-24  Bruno Haible  <bruno@clisp.org>
20387
20388         vma-iter: Avoid empty intervals.
20389         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20390         on an empty interval.
20391
20392 2011-01-24  Jim Meyering  <meyering@redhat.com>
20393
20394         u64: remove unnecessary #include
20395         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20396
20397 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20398
20399         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20400         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20401
20402 2011-01-23  Bruno Haible  <bruno@clisp.org>
20403
20404         New module 'vma-iter'.
20405         * lib/vma-iter.h: New file.
20406         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20407         * modules/vma-iter: New file.
20408         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20409         for get_rusage_as_via_iterator.
20410         (vma_iterate_callback): New function.
20411         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20412         * modules/get-rusage-as (Depends-on): Add vma-iter.
20413
20414 2011-01-23  Bruno Haible  <bruno@clisp.org>
20415
20416         uninorm: Tweak includes.
20417         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20418         Reported by Jim Meyering.
20419
20420 2011-01-23  Bruno Haible  <bruno@clisp.org>
20421
20422         get-rusage-as: Improve on NetBSD.
20423         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20424         /proc, like on FreeBSD.
20425
20426 2011-01-23  Jim Meyering  <meyering@redhat.com>
20427
20428         xreadlink.h: remove unnecessary #include
20429         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20430
20431         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20432         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20433
20434 2011-01-23  Bruno Haible  <bruno@clisp.org>
20435
20436         get-rusage-as: Fix bug.
20437         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20438         original limit when aborting the first loop.
20439
20440 2011-01-23  Bruno Haible  <bruno@clisp.org>
20441
20442         wctype: Ensure valid C syntax.
20443         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20444         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20445
20446 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20447
20448         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20450         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20451         as they are needed only for configure's test case.
20452         This removes two unnecessary symbols from config.h.
20453
20454         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20455         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20457         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20458         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20459         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20460         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20461         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20462         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20463         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20464         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20465         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20466         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20467         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20468         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20469         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20470         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20471         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20472
20473 2011-01-21  Eric Blake  <eblake@redhat.com>
20474
20475         maintainer-makefile: work with older git for submodule check
20476         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20477         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20478         Reported by Matthias Bolte.
20479
20480         bootstrap: minor portability fixes
20481         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20482         (usage): Omit leading capital and trailing . on help phrases, per
20483         GNU Coding Standards.
20484         (check_versions, top level): Prefix messages with script name.
20485
20486 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20487
20488         bootstrap: support --no-git option
20489         * build-aux/bootstrap: Add --no-git option, to be used when
20490         --gnulib-srcdir points to the exact desired checkout.
20491
20492 2011-01-21  Eric Blake  <eblake@redhat.com>
20493
20494         strerror_r-posix: work with glibc 2.13
20495         * lib/strerror_r.c (strerror_r): Fix return type.
20496
20497 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20498             Bruno Haible  <bruno@clisp.org>
20499
20500         uN_strstr: New unit tests.
20501         * modules/unistr/u8-strstr-tests: New file.
20502         * modules/unistr/u16-strstr-tests: New file.
20503         * modules/unistr/u32-strstr-tests: New file.
20504         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20505         * tests/unistr/test-u8-strstr.c: New file.
20506         * tests/unistr/test-u16-strstr.c: New file.
20507         * tests/unistr/test-u32-strstr.c: New file.
20508
20509 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20510             Bruno Haible  <bruno@clisp.org>
20511
20512         Make uN_strstr functions O(n) worst-case.
20513         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20514         16-bit and 32-bit unit cases, use the unibyte algorithm from
20515         lib/mbsstr.c.
20516         * lib/unistr/u8-strstr.c: Include <string.h>.
20517         (UNIT_IS_UINT8_T): New macro.
20518         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20519         (U_STRLEN, U_STRNLEN): New macros.
20520         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20521         (U_STRLEN, U_STRNLEN): New macros.
20522         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20523         (configure.ac): Update required libunistring version.
20524         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20525         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20526         malloca.
20527         (configure.ac): Update required libunistring version.
20528         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20529         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20530         malloca.
20531         (configure.ac): Update required libunistring version.
20532
20533 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20534             Bruno Haible  <bruno@clisp.org>
20535
20536         Prepare for faster uN_strstr functions.
20537         * lib/str-kmp.h: Support definable UNITs.
20538         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20539         needle_len argument.
20540         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20541         * lib/mbscasestr.c (mbscasestr): Likewise.
20542
20543 2011-01-21  Pádraig Brady <P@draigBrady.com>
20544
20545         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20546         * tests/test-malloca.c (main): Unset the environment variable
20547         to greatly speed up the test.
20548         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20549         * modules/malloca-tests: Depend on unsetenv.
20550
20551 2011-01-21  Pádraig Brady <P@draigBrady.com>
20552
20553         ignore-value: remove stdint dependency
20554         * lib/ignore-value.h: Remove <stdint.h>
20555         * modules/ignore-value: Remove stdint dependency.
20556
20557 2011-01-21  Jim Meyering  <meyering@redhat.com>
20558
20559         maint.mk: adjust variable name to be consistent with other gl_ vars
20560         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20561         to be lower case.
20562
20563 2011-01-20  Jim Meyering  <meyering@redhat.com>
20564
20565         maint.mk: make "check" depend on public-submodule-commit by default
20566         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20567
20568 2011-01-20  Bruno Haible  <bruno@clisp.org>
20569
20570         mbfile, mbiter: Complete change from 2008-12-21.
20571         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20572         * m4/mbiter.m4 (gl_MBITER): Likewise.
20573
20574 2011-01-20  Jim Meyering  <meyering@redhat.com>
20575
20576         init.sh: insert space between each function name and "()"
20577         * tests/init.sh: Make it a little easier to see that a function's
20578         name is "warn_", and not "warn" when looking at the first part of
20579         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20580
20581 2011-01-20  Jim Meyering  <meyering@redhat.com>
20582
20583         mountlist: clean up code formatting
20584         * lib/mountlist.c (read_file_system_list): Split a long line,
20585         correct bracing style, use NULL in place of "(struct statfs *)0",
20586         don't parenthesize return value, add spaces around "=" and after
20587         ";-in-for-stmt".
20588
20589 2011-01-14  Markus Duft <mduft@gentoo.org>
20590
20591         mountlist: add support for Interix
20592         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20593         Apply statvfs to all entries of /dev/fs.
20594         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20595         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20596
20597 2011-01-20  Jim Meyering  <meyering@redhat.com>
20598
20599         maint.mk: improve the public-submodule-commit rule
20600         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20601         to suppress printing of its commands... unless V=1.
20602         Add git submodule's --quiet option to suppress printing of e.g.,
20603         "Entering gnulib" output.
20604         "cd" into $(srcdir) before running git submodule.
20605
20606 2011-01-20  Bruno Haible  <bruno@clisp.org>
20607
20608         include_next: Fix bug introduced on 2011-01-18.
20609         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20610         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20611         ac_cv_header_... variable if the second argument is not 'check'.
20612         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20613         gl_NEXT_HEADERS_INTERNAL.
20614
20615 2011-01-20  Bruno Haible  <bruno@clisp.org>
20616
20617         Allow the user to avoid the GNULIB_TEST_* macros.
20618         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20619         Suggested by Paul Eggert.
20620
20621 2011-01-14  Jim Meyering  <meyering@redhat.com>
20622
20623         bootstrap: avoid failure when there is no .gitmodules file
20624         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20625         has been assigned to, even when its value is the empty string.
20626         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20627         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20628         Reported by John W. Eaton <jwe@gnu.org>.
20629
20630 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20631
20632         assume <ctype.h>, ..., <time.h> exist
20633         For years gnulib has been assuming the existence of the headers
20634         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20635         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20636         them, since they don't appear to be needed.
20637         * README (Portability guidelines): Document this.
20638         * lib/flock.c: Assume <fcntl.h> exists.
20639         * lib/regex_internal.h: Assume <locale.h> exists.
20640         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20642         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20643         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20644         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20645         * m4/regex.m4 (gl_REGEX): Likewise.
20646         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20647         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20648         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20649         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20650         * tests/test-argp.c: Likewise.
20651         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20652
20653         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20654         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20655         AA_APPLE_UNIVERSAL_BUILD.  See
20656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20657         * NEWS: Document this.
20658
20659 2011-01-19  Eric Blake  <eblake@redhat.com>
20660
20661         c-stack: assume stack overflow if SA_SIGINFO unsupported
20662         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20663         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20664         sigaction will work.
20665         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20666         behavior match Linux.
20667         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20668
20669         stdbool-tests: accomodate Haiku
20670         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20671
20672         binary-io: fix O_TEXT on Haiku
20673         * modules/binary-io (Depends-on): Add fcntl-h.
20674         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20675         than blindly undefining O_TEXT.
20676         Reported by Scott McCreary.
20677
20678 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20679
20680         include_next: do not check for standard headers like stddef.h
20681
20682         I found this problem when modifying Emacs to use gnulib.
20683         I noticed that it added HAVE_STDDEF_H to config.h, even though
20684         gnulib always assumes <stddef.h> exists as per README and this
20685         symbol is unnecessary.
20686         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20687         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20688         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20689         faster for headers like stddef.h that are known to exist.
20690         (gl_CHECK_NEXT_HEADERS): Use it.
20691         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20692         rather than gl_CHECK_NEXT_HEADERS.
20693         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20694         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20695
20696 2011-01-18  Eric Blake  <eblake@redhat.com>
20697
20698         ansi-c++-opt: skip C++ dependency style if C++ is unused
20699         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20700         tests when we know C++ compilation is not desired.
20701         Reported by Scott McCreary.
20702
20703 2011-01-18  Bruno Haible  <bruno@clisp.org>
20704
20705         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20706         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20707         (main): Perform test also when getrlimit and setrlimit don't exist or
20708         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20709         limiting the address space size using setrlimit, compare the address
20710         space size before and after the the test.
20711         * tests/test-dprintf-posix2.c: Likewise.
20712         * tests/test-fprintf-posix3.sh: Update skip messages.
20713         * tests/test-dprintf-posix2.sh: Likewise.
20714         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20715         * modules/dprintf-posix-tests (Depends-on): Likewise.
20716         Reported by Bruce Korb <bkorb@gnu.org> and
20717         Gary V. Vaughan <gary@gnu.org>.
20718
20719 2011-01-18  Bruno Haible  <bruno@clisp.org>
20720
20721         get-rusage-as: Improvement for Cygwin.
20722         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20723         areas that are merely reserved.
20724
20725 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20726
20727         strftime: remove dependencies on multibyte modules
20728
20729         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20730         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20731         only if __osf__ is defined, and I suspect OSF doesn't need these
20732         other modules.  If my guess is wrong, we'll need to come up with a
20733         variant of strftime that doesn't need the multibyte modules.
20734
20735         I discovered this problem when attempting modify Emacs to use the
20736         strftime module.  With the previous gnulib, this caused Emacs to
20737         need 31 new files, ranging from lib/config.charset to
20738         m4/wint_t.m4.  This was overkill and I expect would be offputting
20739         to the Emacs maintainers.  After this change, only 6 new files are
20740         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20741         stdbool.m4, and tm_gmtoff.m4.
20742
20743         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20744         Suggested by Bruno Haible in
20745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20746         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20747         and do not check for wchar.h.
20748         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20749         (Depends-on): Remove mbrlen, mbsinit, wchar.
20750
20751 2011-01-18  Bruno Haible  <bruno@clisp.org>
20752
20753         Tests for module 'get-rusage-as'.
20754         * modules/get-rusage-as-tests: New file.
20755         * tests/test-get-rusage-as.c: New file.
20756
20757         New module 'get-rusage-as'.
20758         * modules/get-rusage-as: New file.
20759         * lib/resource-ext.h: New file.
20760         * lib/get-rusage-as.c: New file.
20761
20762 2011-01-17  Eric Blake  <eblake@redhat.com>
20763
20764         sigaction: relax license from LGPLv3+ to LGPLv2+
20765         * modules/sigaction (License): Relax to LGPLv2+.
20766
20767 2011-01-14  Bruno Haible  <bruno@clisp.org>
20768
20769         filemode: Make function declarations usable in C++ mode.
20770         * lib/filemode.h: Enclose function declarations in extern "C" block.
20771         Reported by John W. Eaton <jwe@gnu.org>.
20772
20773 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20774
20775         save-cwd: no longer include "xgetcwd.h"
20776         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20777         This avoids a compilation failure in projects that use save-cwd
20778         without also using the xgetcwd module.
20779
20780 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20781
20782         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20783         This is so that a program like Emacs, which needs only dtoastr,
20784         does not have to bother with distributing and compiling ftoastr
20785         and ldtoastr.
20786         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20787         * modules/dtoastr, modules/ldtoastr: New files.
20788         * modules/ftoastr: Now works just for 'float'.
20789         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20790         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20791         dtoastr.c, ldtoastr.c.
20792
20793 2011-01-11  Jim Meyering  <meyering@redhat.com>
20794
20795         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20796         There is no need to work around the lack of the fchdir function,
20797         since gnulib can now provide a replacement when required.
20798         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20799         * modules/save-cwd (Depends-on): Add fchdir.
20800
20801 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20802
20803         openat, save-cwd: avoid xmalloc
20804
20805         This removes a direct (but undocumented) dependency of openat on
20806         xalloc, along with an indirect dependency via save-cwd.  It also
20807         removes a dependency of save-cwd on xgetcwd, and thereby
20808         indirectly on xalloc.  This change causes the openat substitute
20809         to fall back on save_cwd when memory is tight, and for save_cwd to
20810         fail instead of dying when memory is tight, but that's good enough.
20811         Problem and initial idea for fix reported by Bastien Roucaries in
20812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20813
20814         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20815         xalloc.h (for xmalloc).
20816         (openat_proc_name): Use malloc, not xmalloc.
20817         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20818         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20819
20820         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20821         This avoids heap allocation for file names whose lengths are in
20822         the range 512..1023, with the upper bound increasing to at most
20823         4031 depending on the platform's PATH_MAX.  (We do not want
20824         pathmax.h here as it might supply a non-constant PATH_MAX.)
20825         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20826         Perhaps they should be moved to malloca.h?
20827         (OPENAT_BUFFER_SIZE): Use them.
20828
20829 2011-01-10  Bruno Haible  <bruno@clisp.org>
20830
20831         doc: Update users.txt.
20832         * users.txt: Add recutils.
20833
20834 2011-01-09  Karl Berry  <karl@gnu.org>
20835
20836         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20837
20838         * doc/configmake.texi: New file.
20839         * doc/gnulib.texi: Include it.
20840         * modules/configmake: Move documentation from here.
20841
20842 2011-01-09  Bruno Haible  <bruno@clisp.org>
20843
20844         Update to Unicode 6.0.0.
20845         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20846         (get_lbp): Update for Unicode 6.0.0.
20847         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20848         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20849         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20850         U+11001, U+11038..U+11046. Remove U+06DE.
20851         (uc_width): Fix bounds of planes.
20852         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20853         lib/uniwidth/width.c.
20854         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20855         trailing whitespace removed.
20856         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20857         without comments, but with the original copyright notice.
20858         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20859         * lib/unicase/ignorable.h: Likewise.
20860         * lib/unicase/tocasefold.h: Likewise.
20861         * lib/unicase/tolower.h: Likewise.
20862         * lib/unicase/totitle.h: Likewise.
20863         * lib/unicase/toupper.h: Likewise.
20864         * lib/unictype/bidi_of.h: Likewise.
20865         * lib/unictype/blocks.h: Likewise.
20866         * lib/unictype/categ_C.h: Likewise.
20867         * lib/unictype/categ_Cn.h: Likewise.
20868         * lib/unictype/categ_L.h: Likewise.
20869         * lib/unictype/categ_Ll.h: Likewise.
20870         * lib/unictype/categ_Lm.h: Likewise.
20871         * lib/unictype/categ_Lo.h: Likewise.
20872         * lib/unictype/categ_Lu.h: Likewise.
20873         * lib/unictype/categ_M.h: Likewise.
20874         * lib/unictype/categ_Mc.h: Likewise.
20875         * lib/unictype/categ_Me.h: Likewise.
20876         * lib/unictype/categ_Mn.h: Likewise.
20877         * lib/unictype/categ_N.h: Likewise.
20878         * lib/unictype/categ_Nd.h: Likewise.
20879         * lib/unictype/categ_No.h: Likewise.
20880         * lib/unictype/categ_P.h: Likewise.
20881         * lib/unictype/categ_Po.h: Likewise.
20882         * lib/unictype/categ_S.h: Likewise.
20883         * lib/unictype/categ_Sc.h: Likewise.
20884         * lib/unictype/categ_Sk.h: Likewise.
20885         * lib/unictype/categ_Sm.h: Likewise.
20886         * lib/unictype/categ_So.h: Likewise.
20887         * lib/unictype/categ_of.h: Likewise.
20888         * lib/unictype/combining.h: Likewise.
20889         * lib/unictype/ctype_alnum.h: Likewise.
20890         * lib/unictype/ctype_alpha.h: Likewise.
20891         * lib/unictype/ctype_graph.h: Likewise.
20892         * lib/unictype/ctype_lower.h: Likewise.
20893         * lib/unictype/ctype_print.h: Likewise.
20894         * lib/unictype/ctype_punct.h: Likewise.
20895         * lib/unictype/ctype_upper.h: Likewise.
20896         * lib/unictype/decdigit.h: Likewise.
20897         * lib/unictype/digit.h: Likewise.
20898         * lib/unictype/numeric.h: Likewise.
20899         * lib/unictype/pr_alphabetic.h: Likewise.
20900         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20901         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20902         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20903         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20904         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20905         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20906         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20907         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20908         * lib/unictype/pr_case_ignorable.h: Likewise.
20909         * lib/unictype/pr_cased.h: Likewise.
20910         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20911         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20912         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20913         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20914         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20915         * lib/unictype/pr_combining.h: Likewise.
20916         * lib/unictype/pr_composite.h: Likewise.
20917         * lib/unictype/pr_currency_symbol.h: Likewise.
20918         * lib/unictype/pr_decimal_digit.h: Likewise.
20919         * lib/unictype/pr_deprecated.h: Likewise.
20920         * lib/unictype/pr_format_control.h: Likewise.
20921         * lib/unictype/pr_grapheme_base.h: Likewise.
20922         * lib/unictype/pr_grapheme_extend.h: Likewise.
20923         * lib/unictype/pr_grapheme_link.h: Likewise.
20924         * lib/unictype/pr_id_continue.h: Likewise.
20925         * lib/unictype/pr_id_start.h: Likewise.
20926         * lib/unictype/pr_ideographic.h: Likewise.
20927         * lib/unictype/pr_lowercase.h: Likewise.
20928         * lib/unictype/pr_math.h: Likewise.
20929         * lib/unictype/pr_numeric.h: Likewise.
20930         * lib/unictype/pr_other_alphabetic.h: Likewise.
20931         * lib/unictype/pr_other_id_continue.h: Likewise.
20932         * lib/unictype/pr_other_math.h: Likewise.
20933         * lib/unictype/pr_punctuation.h: Likewise.
20934         * lib/unictype/pr_sentence_terminal.h: Likewise.
20935         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20936         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20937         * lib/unictype/pr_unified_ideograph.h: Likewise.
20938         * lib/unictype/pr_uppercase.h: Likewise.
20939         * lib/unictype/pr_xid_continue.h: Likewise.
20940         * lib/unictype/pr_xid_start.h: Likewise.
20941         * lib/unictype/scripts.h: Likewise.
20942         * lib/unictype/scripts_byname.gperf: Likewise.
20943         * lib/unictype/sy_java_ident.h: Likewise.
20944         * lib/unigbrk/gbrkprop.h: Likewise.
20945         * lib/unilbrk/lbrkprop1.h: Likewise.
20946         * lib/unilbrk/lbrkprop2.h: Likewise.
20947         * lib/uninorm/decomposition-table2.h: Likewise.
20948         * lib/uniwbrk/wbrkprop.h: Likewise.
20949         * tests/unicase/test-cased.c: Likewise.
20950         * tests/unicase/test-ignorable.c: Likewise.
20951         * tests/unicase/test-uc_tolower.c: Likewise.
20952         * tests/unicase/test-uc_totitle.c: Likewise.
20953         * tests/unicase/test-uc_toupper.c: Likewise.
20954         * tests/unictype/test-categ_C.c: Likewise.
20955         * tests/unictype/test-categ_Cn.c: Likewise.
20956         * tests/unictype/test-categ_L.c: Likewise.
20957         * tests/unictype/test-categ_Ll.c: Likewise.
20958         * tests/unictype/test-categ_Lm.c: Likewise.
20959         * tests/unictype/test-categ_Lo.c: Likewise.
20960         * tests/unictype/test-categ_Lu.c: Likewise.
20961         * tests/unictype/test-categ_M.c: Likewise.
20962         * tests/unictype/test-categ_Mc.c: Likewise.
20963         * tests/unictype/test-categ_Me.c: Likewise.
20964         * tests/unictype/test-categ_Mn.c: Likewise.
20965         * tests/unictype/test-categ_N.c: Likewise.
20966         * tests/unictype/test-categ_Nd.c: Likewise.
20967         * tests/unictype/test-categ_No.c: Likewise.
20968         * tests/unictype/test-categ_P.c: Likewise.
20969         * tests/unictype/test-categ_Po.c: Likewise.
20970         * tests/unictype/test-categ_S.c: Likewise.
20971         * tests/unictype/test-categ_Sc.c: Likewise.
20972         * tests/unictype/test-categ_Sk.c: Likewise.
20973         * tests/unictype/test-categ_Sm.c: Likewise.
20974         * tests/unictype/test-categ_So.c: Likewise.
20975         * tests/unictype/test-ctype_alnum.c: Likewise.
20976         * tests/unictype/test-ctype_alpha.c: Likewise.
20977         * tests/unictype/test-ctype_graph.c: Likewise.
20978         * tests/unictype/test-ctype_lower.c: Likewise.
20979         * tests/unictype/test-ctype_print.c: Likewise.
20980         * tests/unictype/test-ctype_punct.c: Likewise.
20981         * tests/unictype/test-ctype_upper.c: Likewise.
20982         * tests/unictype/test-decdigit.h: Likewise.
20983         * tests/unictype/test-digit.h: Likewise.
20984         * tests/unictype/test-numeric.h: Likewise.
20985         * tests/unictype/test-pr_alphabetic.c: Likewise.
20986         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20987         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20988         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20989         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20990         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20991         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20992         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20993         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20994         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20995         * tests/unictype/test-pr_cased.c: Likewise.
20996         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20997         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20998         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20999         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21000         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21001         * tests/unictype/test-pr_combining.c: Likewise.
21002         * tests/unictype/test-pr_composite.c: Likewise.
21003         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21004         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21005         * tests/unictype/test-pr_deprecated.c: Likewise.
21006         * tests/unictype/test-pr_format_control.c: Likewise.
21007         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21008         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21009         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21010         * tests/unictype/test-pr_id_continue.c: Likewise.
21011         * tests/unictype/test-pr_id_start.c: Likewise.
21012         * tests/unictype/test-pr_ideographic.c: Likewise.
21013         * tests/unictype/test-pr_lowercase.c: Likewise.
21014         * tests/unictype/test-pr_math.c: Likewise.
21015         * tests/unictype/test-pr_numeric.c: Likewise.
21016         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21017         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21018         * tests/unictype/test-pr_other_math.c: Likewise.
21019         * tests/unictype/test-pr_punctuation.c: Likewise.
21020         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21021         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21022         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21023         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21024         * tests/unictype/test-pr_uppercase.c: Likewise.
21025         * tests/unictype/test-pr_xid_continue.c: Likewise.
21026         * tests/unictype/test-pr_xid_start.c: Likewise.
21027         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21028         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21029         changes.
21030         * lib/unictype/categ_Cc.h: Likewise.
21031         * lib/unictype/categ_Cf.h: Likewise.
21032         * lib/unictype/categ_Co.h: Likewise.
21033         * lib/unictype/categ_Cs.h: Likewise.
21034         * lib/unictype/categ_Lt.h: Likewise.
21035         * lib/unictype/categ_Nl.h: Likewise.
21036         * lib/unictype/categ_Pc.h: Likewise.
21037         * lib/unictype/categ_Pd.h: Likewise.
21038         * lib/unictype/categ_Pe.h: Likewise.
21039         * lib/unictype/categ_Pf.h: Likewise.
21040         * lib/unictype/categ_Pi.h: Likewise.
21041         * lib/unictype/categ_Ps.h: Likewise.
21042         * lib/unictype/categ_Z.h: Likewise.
21043         * lib/unictype/categ_Zl.h: Likewise.
21044         * lib/unictype/categ_Zp.h: Likewise.
21045         * lib/unictype/categ_Zs.h: Likewise.
21046         * lib/unictype/ctype_blank.h: Likewise.
21047         * lib/unictype/ctype_cntrl.h: Likewise.
21048         * lib/unictype/ctype_digit.h: Likewise.
21049         * lib/unictype/ctype_space.h: Likewise.
21050         * lib/unictype/ctype_xdigit.h: Likewise.
21051         * lib/unictype/mirror.h: Likewise.
21052         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21053         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21054         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21055         * lib/unictype/pr_bidi_control.h: Likewise.
21056         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21057         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21058         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21059         * lib/unictype/pr_bidi_pdf.h: Likewise.
21060         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21061         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21062         * lib/unictype/pr_dash.h: Likewise.
21063         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21064         * lib/unictype/pr_diacritic.h: Likewise.
21065         * lib/unictype/pr_extender.h: Likewise.
21066         * lib/unictype/pr_hex_digit.h: Likewise.
21067         * lib/unictype/pr_hyphen.h: Likewise.
21068         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21069         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21070         * lib/unictype/pr_ignorable_control.h: Likewise.
21071         * lib/unictype/pr_iso_control.h: Likewise.
21072         * lib/unictype/pr_join_control.h: Likewise.
21073         * lib/unictype/pr_left_of_pair.h: Likewise.
21074         * lib/unictype/pr_line_separator.h: Likewise.
21075         * lib/unictype/pr_logical_order_exception.h: Likewise.
21076         * lib/unictype/pr_non_break.h: Likewise.
21077         * lib/unictype/pr_not_a_character.h: Likewise.
21078         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21079         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21080         * lib/unictype/pr_other_id_start.h: Likewise.
21081         * lib/unictype/pr_other_lowercase.h: Likewise.
21082         * lib/unictype/pr_other_uppercase.h: Likewise.
21083         * lib/unictype/pr_paired_punctuation.h: Likewise.
21084         * lib/unictype/pr_paragraph_separator.h: Likewise.
21085         * lib/unictype/pr_pattern_syntax.h: Likewise.
21086         * lib/unictype/pr_pattern_white_space.h: Likewise.
21087         * lib/unictype/pr_private_use.h: Likewise.
21088         * lib/unictype/pr_quotation_mark.h: Likewise.
21089         * lib/unictype/pr_radical.h: Likewise.
21090         * lib/unictype/pr_soft_dotted.h: Likewise.
21091         * lib/unictype/pr_space.h: Likewise.
21092         * lib/unictype/pr_titlecase.h: Likewise.
21093         * lib/unictype/pr_variation_selector.h: Likewise.
21094         * lib/unictype/pr_white_space.h: Likewise.
21095         * lib/unictype/pr_zero_width.h: Likewise.
21096         * lib/unictype/sy_c_ident.h: Likewise.
21097         * lib/unictype/sy_c_whitespace.h: Likewise.
21098         * lib/unictype/sy_java_whitespace.h: Likewise.
21099         * lib/uninorm/composition-table.gperf: Likewise.
21100         * lib/uninorm/decomposition-table1.h: Likewise.
21101         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21102         LB8.
21103         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21104         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21105         * modules/unictype/*: Bump version number of expected libunistring
21106         version.
21107
21108 2011-01-09  Bruno Haible  <bruno@clisp.org>
21109
21110         Update to Unicode 5.2.0.
21111         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21112         trailing whitespace removed.
21113
21114 2011-01-09  Bruno Haible  <bruno@clisp.org>
21115
21116         New Unicode character properties, from Unicode 5.2.0.
21117         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21118         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21119         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21120         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21121         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21122         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21123         uc_is_property_cased, uc_is_property_case_ignorable,
21124         uc_is_property_changes_when_lowercased,
21125         uc_is_property_changes_when_uppercased,
21126         uc_is_property_changes_when_titlecased,
21127         uc_is_property_changes_when_casefolded,
21128         uc_is_property_changes_when_casemapped): New declarations.
21129         * lib/unictype/pr_byname.gperf: Add the new properties.
21130         * modules/unictype/property-byname (Depends-on): Depend on the new
21131         properties modules.
21132         * modules/unictype/property-all (Depends-on): Likewise.
21133         * MODULES.html.sh (Unicode string functions): Add
21134         unictype/property-case-ignorable, unictype/property-cased,
21135         unictype/property-changes-when-casefolded,
21136         unictype/property-changes-when-casemapped,
21137         unictype/property-changes-when-lowercased,
21138         unictype/property-changes-when-titlecased,
21139         unictype/property-changes-when-uppercased.
21140
21141         New module 'unictype/property-changes-when-casemapped'.
21142         * modules/unictype/property-changes-when-casemapped: New file.
21143         * lib/unictype/pr_changes_when_casemapped.c: New file.
21144         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21145         generated by gen-uni-tables.
21146         * modules/unictype/property-changes-when-casemapped-tests: New file.
21147         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21148         automatically generated by gen-uni-tables.
21149
21150         New module 'unictype/property-changes-when-casefolded'.
21151         * modules/unictype/property-changes-when-casefolded: New file.
21152         * lib/unictype/pr_changes_when_casefolded.c: New file.
21153         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21154         generated by gen-uni-tables.
21155         * modules/unictype/property-changes-when-casefolded-tests: New file.
21156         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21157         automatically generated by gen-uni-tables.
21158
21159         New module 'unictype/property-changes-when-titlecased'.
21160         * modules/unictype/property-changes-when-titlecased: New file.
21161         * lib/unictype/pr_changes_when_titlecased.c: New file.
21162         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21163         generated by gen-uni-tables.
21164         * modules/unictype/property-changes-when-titlecased-tests: New file.
21165         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21166         automatically generated by gen-uni-tables.
21167
21168         New module 'unictype/property-changes-when-uppercased'.
21169         * modules/unictype/property-changes-when-uppercased: New file.
21170         * lib/unictype/pr_changes_when_uppercased.c: New file.
21171         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21172         generated by gen-uni-tables.
21173         * modules/unictype/property-changes-when-uppercased-tests: New file.
21174         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21175         automatically generated by gen-uni-tables.
21176
21177         New module 'unictype/property-changes-when-lowercased'.
21178         * modules/unictype/property-changes-when-lowercased: New file.
21179         * lib/unictype/pr_changes_when_lowercased.c: New file.
21180         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21181         generated by gen-uni-tables.
21182         * modules/unictype/property-changes-when-lowercased-tests: New file.
21183         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21184         automatically generated by gen-uni-tables.
21185
21186         New module 'unictype/property-case-ignorable'.
21187         * modules/unictype/property-case-ignorable: New file.
21188         * lib/unictype/pr_case_ignorable.c: New file.
21189         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21190         by gen-uni-tables.
21191         * modules/unictype/property-case-ignorable-tests: New file.
21192         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21193         generated by gen-uni-tables.
21194
21195         New module 'unictype/property-cased'.
21196         * modules/unictype/property-cased: New file.
21197         * lib/unictype/pr_cased.c: New file.
21198         * lib/unictype/pr_cased.h: New file, automatically generated by
21199         gen-uni-tables.
21200         * modules/unictype/property-cased-tests: New file.
21201         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21202         gen-uni-tables.
21203
21204 2011-01-09  Bruno Haible  <bruno@clisp.org>
21205
21206         Update to Unicode 5.2.0.
21207         * lib/gen-uni-tables.c (output_predicate, output_category,
21208         output_combclass, output_bidi_category, output_decimal_digit_test,
21209         output_decimal_digit, output_digit_test, output_digit,
21210         output_numeric_test, output_numeric, output_mirror, output_scripts,
21211         output_scripts_byname, output_blocks, output_ident_category): Fix
21212         comment header.
21213         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21214         get_wbp.
21215         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21216         items.
21217         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21218         Changes_When_Lowercased, Changes_When_Uppercased,
21219         Changes_When_Titlecased, Changes_When_Casefolded,
21220         Changes_When_Casemapped.
21221         (is_property_alphabetic, is_property_default_ignorable_code_point):
21222         Update for Unicode 5.2.0.
21223         (is_property_cased, is_property_case_ignorable,
21224         is_property_changes_when_lowercased,
21225         is_property_changes_when_uppercased,
21226         is_property_changes_when_titlecased,
21227         is_property_changes_when_casefolded,
21228         is_property_changes_when_casemapped): New functions.
21229         (output_properties): Output also the properties cased, case_ignorable,
21230         changes_when_lowercased, changes_when_uppercased,
21231         changes_when_titlecased, changes_when_casefolded,
21232         changes_when_casemapped.
21233         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21234         Unicode TR#11 revision 17 -> 19.
21235         (LBP_CP): New enumeration value.
21236         (LBP_*): Adjust values accordingly.
21237         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21238         TR#14 revision 22 -> 24.
21239         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21240         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21241         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21242         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21243         is_WBP_MIDLETTER.
21244         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21245         the code1 and code2 of each composition rule.
21246         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21247         * lib/unicase/ignorable.h: Likewise.
21248         * lib/unicase/tocasefold.h: Likewise.
21249         * lib/unicase/tolower.h: Likewise.
21250         * lib/unicase/totitle.h: Likewise.
21251         * lib/unicase/toupper.h: Likewise.
21252         * lib/unictype/bidi_of.h: Likewise.
21253         * lib/unictype/blocks.h: Likewise.
21254         * lib/unictype/categ_C.h: Likewise.
21255         * lib/unictype/categ_Cf.h: Likewise.
21256         * lib/unictype/categ_Cn.h: Likewise.
21257         * lib/unictype/categ_L.h: Likewise.
21258         * lib/unictype/categ_Ll.h: Likewise.
21259         * lib/unictype/categ_Lm.h: Likewise.
21260         * lib/unictype/categ_Lo.h: Likewise.
21261         * lib/unictype/categ_Lu.h: Likewise.
21262         * lib/unictype/categ_M.h: Likewise.
21263         * lib/unictype/categ_Mc.h: Likewise.
21264         * lib/unictype/categ_Mn.h: Likewise.
21265         * lib/unictype/categ_N.h: Likewise.
21266         * lib/unictype/categ_Nd.h: Likewise.
21267         * lib/unictype/categ_Nl.h: Likewise.
21268         * lib/unictype/categ_No.h: Likewise.
21269         * lib/unictype/categ_P.h: Likewise.
21270         * lib/unictype/categ_Pd.h: Likewise.
21271         * lib/unictype/categ_Po.h: Likewise.
21272         * lib/unictype/categ_S.h: Likewise.
21273         * lib/unictype/categ_Sc.h: Likewise.
21274         * lib/unictype/categ_So.h: Likewise.
21275         * lib/unictype/categ_of.h: Likewise.
21276         * lib/unictype/combining.h: Likewise.
21277         * lib/unictype/ctype_alnum.h: Likewise.
21278         * lib/unictype/ctype_alpha.h: Likewise.
21279         * lib/unictype/ctype_graph.h: Likewise.
21280         * lib/unictype/ctype_lower.h: Likewise.
21281         * lib/unictype/ctype_print.h: Likewise.
21282         * lib/unictype/ctype_punct.h: Likewise.
21283         * lib/unictype/ctype_upper.h: Likewise.
21284         * lib/unictype/decdigit.h: Likewise.
21285         * lib/unictype/digit.h: Likewise.
21286         * lib/unictype/numeric.h: Likewise.
21287         * lib/unictype/pr_alphabetic.h: Likewise.
21288         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21289         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21290         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21291         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21292         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21293         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21294         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21295         * lib/unictype/pr_combining.h: Likewise.
21296         * lib/unictype/pr_composite.h: Likewise.
21297         * lib/unictype/pr_currency_symbol.h: Likewise.
21298         * lib/unictype/pr_dash.h: Likewise.
21299         * lib/unictype/pr_decimal_digit.h: Likewise.
21300         * lib/unictype/pr_deprecated.h: Likewise.
21301         * lib/unictype/pr_diacritic.h: Likewise.
21302         * lib/unictype/pr_extender.h: Likewise.
21303         * lib/unictype/pr_grapheme_base.h: Likewise.
21304         * lib/unictype/pr_grapheme_extend.h: Likewise.
21305         * lib/unictype/pr_grapheme_link.h: Likewise.
21306         * lib/unictype/pr_id_continue.h: Likewise.
21307         * lib/unictype/pr_id_start.h: Likewise.
21308         * lib/unictype/pr_ideographic.h: Likewise.
21309         * lib/unictype/pr_ignorable_control.h: Likewise.
21310         * lib/unictype/pr_logical_order_exception.h: Likewise.
21311         * lib/unictype/pr_lowercase.h: Likewise.
21312         * lib/unictype/pr_numeric.h: Likewise.
21313         * lib/unictype/pr_other_alphabetic.h: Likewise.
21314         * lib/unictype/pr_punctuation.h: Likewise.
21315         * lib/unictype/pr_sentence_terminal.h: Likewise.
21316         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21317         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21318         * lib/unictype/pr_unified_ideograph.h: Likewise.
21319         * lib/unictype/pr_uppercase.h: Likewise.
21320         * lib/unictype/pr_xid_continue.h: Likewise.
21321         * lib/unictype/pr_xid_start.h: Likewise.
21322         * lib/unictype/pr_zero_width.h: Likewise.
21323         * lib/unictype/scripts.h: Likewise.
21324         * lib/unictype/scripts_byname.gperf: Likewise.
21325         * lib/unictype/sy_java_ident.h: Likewise.
21326         * lib/unigbrk/gbrkprop.h: Likewise.
21327         * lib/unilbrk/lbrkprop1.h: Likewise.
21328         * lib/unilbrk/lbrkprop2.h: Likewise.
21329         * lib/unilbrk/lbrktables.h: Likewise.
21330         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21331         LBP_CP. Implement rule LB30.
21332         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21333         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21334         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21335         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21336         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21337         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21338         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21339         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21340         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21341         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21342         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21343         bits instead of 16 bits in the code1 and code2 of each composition
21344         rule.
21345         (uc_composition): Update for Unicode 5.2.0.
21346         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21347         * lib/uninorm/decomposition-table2.h: Likewise.
21348         * lib/uniwbrk/wbrkprop.h: Likewise.
21349         * tests/unicase/test-cased.c: Likewise.
21350         * tests/unicase/test-ignorable.c: Likewise.
21351         * tests/unicase/test-uc_tolower.c: Likewise.
21352         * tests/unicase/test-uc_totitle.c: Likewise.
21353         * tests/unicase/test-uc_toupper.c: Likewise.
21354         * tests/unictype/test-categ_C.c: Likewise.
21355         * tests/unictype/test-categ_Cf.c: Likewise.
21356         * tests/unictype/test-categ_Cn.c: Likewise.
21357         * tests/unictype/test-categ_L.c: Likewise.
21358         * tests/unictype/test-categ_Ll.c: Likewise.
21359         * tests/unictype/test-categ_Lm.c: Likewise.
21360         * tests/unictype/test-categ_Lo.c: Likewise.
21361         * tests/unictype/test-categ_Lu.c: Likewise.
21362         * tests/unictype/test-categ_M.c: Likewise.
21363         * tests/unictype/test-categ_Mc.c: Likewise.
21364         * tests/unictype/test-categ_Mn.c: Likewise.
21365         * tests/unictype/test-categ_N.c: Likewise.
21366         * tests/unictype/test-categ_Nd.c: Likewise.
21367         * tests/unictype/test-categ_Nl.c: Likewise.
21368         * tests/unictype/test-categ_No.c: Likewise.
21369         * tests/unictype/test-categ_P.c: Likewise.
21370         * tests/unictype/test-categ_Pd.c: Likewise.
21371         * tests/unictype/test-categ_Po.c: Likewise.
21372         * tests/unictype/test-categ_S.c: Likewise.
21373         * tests/unictype/test-categ_Sc.c: Likewise.
21374         * tests/unictype/test-categ_So.c: Likewise.
21375         * tests/unictype/test-ctype_alnum.c: Likewise.
21376         * tests/unictype/test-ctype_alpha.c: Likewise.
21377         * tests/unictype/test-ctype_graph.c: Likewise.
21378         * tests/unictype/test-ctype_lower.c: Likewise.
21379         * tests/unictype/test-ctype_print.c: Likewise.
21380         * tests/unictype/test-ctype_punct.c: Likewise.
21381         * tests/unictype/test-ctype_upper.c: Likewise.
21382         * tests/unictype/test-decdigit.h: Likewise.
21383         * tests/unictype/test-digit.h: Likewise.
21384         * tests/unictype/test-numeric.h: Likewise.
21385         * tests/unictype/test-pr_alphabetic.c: Likewise.
21386         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21387         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21388         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21389         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21390         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21391         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21392         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21393         * tests/unictype/test-pr_combining.c: Likewise.
21394         * tests/unictype/test-pr_composite.c: Likewise.
21395         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21396         * tests/unictype/test-pr_dash.c: Likewise.
21397         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21398         * tests/unictype/test-pr_deprecated.c: Likewise.
21399         * tests/unictype/test-pr_diacritic.c: Likewise.
21400         * tests/unictype/test-pr_extender.c: Likewise.
21401         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21402         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21403         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21404         * tests/unictype/test-pr_id_continue.c: Likewise.
21405         * tests/unictype/test-pr_id_start.c: Likewise.
21406         * tests/unictype/test-pr_ideographic.c: Likewise.
21407         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21408         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21409         * tests/unictype/test-pr_lowercase.c: Likewise.
21410         * tests/unictype/test-pr_numeric.c: Likewise.
21411         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21412         * tests/unictype/test-pr_punctuation.c: Likewise.
21413         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21414         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21415         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21416         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21417         * tests/unictype/test-pr_uppercase.c: Likewise.
21418         * tests/unictype/test-pr_xid_continue.c: Likewise.
21419         * tests/unictype/test-pr_xid_start.c: Likewise.
21420         * tests/unictype/test-pr_zero_width.c: Likewise.
21421         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21422         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21423         changed behaviour: line breaking is now disallowed between a letter
21424         or '=' and '('.
21425         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21426         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21427         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21428         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21429         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21430         lib/uniwidth/width.c.
21431         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21432         without comments, but with the original copyright notice.
21433         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21434         changes.
21435         * lib/unictype/categ_Cc.h: Likewise.
21436         * lib/unictype/categ_Co.h: Likewise.
21437         * lib/unictype/categ_Cs.h: Likewise.
21438         * lib/unictype/categ_Lt.h: Likewise.
21439         * lib/unictype/categ_Me.h: Likewise.
21440         * lib/unictype/categ_Pc.h: Likewise.
21441         * lib/unictype/categ_Pe.h: Likewise.
21442         * lib/unictype/categ_Pf.h: Likewise.
21443         * lib/unictype/categ_Pi.h: Likewise.
21444         * lib/unictype/categ_Ps.h: Likewise.
21445         * lib/unictype/categ_Sk.h: Likewise.
21446         * lib/unictype/categ_Sm.h: Likewise.
21447         * lib/unictype/categ_Z.h: Likewise.
21448         * lib/unictype/categ_Zl.h: Likewise.
21449         * lib/unictype/categ_Zp.h: Likewise.
21450         * lib/unictype/categ_Zs.h: Likewise.
21451         * lib/unictype/ctype_blank.h: Likewise.
21452         * lib/unictype/ctype_cntrl.h: Likewise.
21453         * lib/unictype/ctype_digit.h: Likewise.
21454         * lib/unictype/ctype_space.h: Likewise.
21455         * lib/unictype/ctype_xdigit.h: Likewise.
21456         * lib/unictype/mirror.h: Likewise.
21457         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21458         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21459         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21460         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21461         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21462         * lib/unictype/pr_bidi_control.h: Likewise.
21463         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21464         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21465         * lib/unictype/pr_bidi_pdf.h: Likewise.
21466         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21467         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21468         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21469         * lib/unictype/pr_format_control.h: Likewise.
21470         * lib/unictype/pr_hex_digit.h: Likewise.
21471         * lib/unictype/pr_hyphen.h: Likewise.
21472         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21473         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21474         * lib/unictype/pr_iso_control.h: Likewise.
21475         * lib/unictype/pr_join_control.h: Likewise.
21476         * lib/unictype/pr_left_of_pair.h: Likewise.
21477         * lib/unictype/pr_line_separator.h: Likewise.
21478         * lib/unictype/pr_math.h: Likewise.
21479         * lib/unictype/pr_non_break.h: Likewise.
21480         * lib/unictype/pr_not_a_character.h: Likewise.
21481         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21482         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21483         * lib/unictype/pr_other_id_continue.h: Likewise.
21484         * lib/unictype/pr_other_id_start.h: Likewise.
21485         * lib/unictype/pr_other_lowercase.h: Likewise.
21486         * lib/unictype/pr_other_math.h: Likewise.
21487         * lib/unictype/pr_other_uppercase.h: Likewise.
21488         * lib/unictype/pr_paired_punctuation.h: Likewise.
21489         * lib/unictype/pr_paragraph_separator.h: Likewise.
21490         * lib/unictype/pr_pattern_syntax.h: Likewise.
21491         * lib/unictype/pr_pattern_white_space.h: Likewise.
21492         * lib/unictype/pr_private_use.h: Likewise.
21493         * lib/unictype/pr_quotation_mark.h: Likewise.
21494         * lib/unictype/pr_radical.h: Likewise.
21495         * lib/unictype/pr_soft_dotted.h: Likewise.
21496         * lib/unictype/pr_space.h: Likewise.
21497         * lib/unictype/pr_titlecase.h: Likewise.
21498         * lib/unictype/pr_variation_selector.h: Likewise.
21499         * lib/unictype/pr_white_space.h: Likewise.
21500         * lib/unictype/sy_c_ident.h: Likewise.
21501         * lib/unictype/sy_c_whitespace.h: Likewise.
21502         * lib/unictype/sy_java_whitespace.h: Likewise.
21503         * modules/uni*/*: Bump version number of expected libunistring version.
21504         Reported by Simon Josefsson.
21505
21506 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21507
21508         useless-if-before-free: fix typo in --help and make the internal,
21509         automatic version date update process work once again.
21510         --help output contained a NUL character instead of the
21511         backslash-zero that was intended.  Also, the "must lie within
21512         the first 8 lines" line is on line 9, and hence not getting
21513         automatically updated.
21514         * build-aux/useless-if-before-free: Fix the former by adding a
21515         backslash, and the latter by condensing the three lines of what-it-does
21516         to a single line, leaving one line of slack for the future.
21517
21518 2011-01-09  Bruno Haible  <bruno@clisp.org>
21519
21520         uniwidth/width: Fix width of U+1D173..U+1D17A.
21521         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21522         symbolic_width, output_width_property_test): New functions.
21523         (main): Invoke output_nonspacing_property, output_width_property_test.
21524         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21525         U+1D173..U+1D17A.
21526         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21527         1.
21528         * modules/uniwidth/*: Bump version number of expected libunistring
21529         version.
21530         * modules/unilbrk/*: Likewise.
21531
21532 2011-01-08  Bruno Haible  <bruno@clisp.org>
21533
21534         uninorm tests: Preserve copyright of Unicode data file.
21535         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21536         Mention modifications.
21537
21538 2011-01-08  Bruno Haible  <bruno@clisp.org>
21539
21540         gen-uni-tables: Prepare for Unicode 5.2.0.
21541         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21542         (debug_output_lbp, output_lbp): Update.
21543
21544 2011-01-08  Bruno Haible  <bruno@clisp.org>
21545
21546         unilbrk: Clarify gen-uni-tables.c code.
21547         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21548         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21549         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21550
21551 2011-01-07  Bruno Haible  <bruno@clisp.org>
21552
21553         strtod: Restore errno when successfully parsing Infinity or NaN.
21554         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21555         restore the original errno.
21556
21557 2011-01-07  Bruno Haible  <bruno@clisp.org>
21558
21559         remove test: Avoid failure on HP-UX 11.
21560         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21561
21562 2011-01-07  Bruno Haible  <bruno@clisp.org>
21563
21564         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21565         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21566         error code.
21567
21568 2011-01-07  Pádraig Brady <P@draigBrady.com>
21569
21570         ignore-value: fixup comments, and add Eric Blake
21571         as an author since he rewrote the macros.
21572         * lib/ignore-value.h (ignore_value):  State that
21573         we now support aggregates.  Also specify exactly
21574         when the GCC warn_unused_result feature was added.
21575
21576 2011-01-06  Eric Blake  <eblake@redhat.com>
21577
21578         ignore-value: support aggregate types
21579         * lib/ignore-value.h (ignore_value): Provide separate gcc
21580         definition.
21581         * modules/ignore-value-tests: New test module.
21582         * tests/test-ignore-value.c: New test.
21583
21584         maint.mk: improve sc_prohibit_strcmp regex
21585         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21586         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21587         definition of STRNEQ.
21588
21589         signal: work around Haiku issue with SIGBUS
21590         * lib/siglist.h: Add comment.
21591         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21592         strsignal's favoring of SIGSEGV.
21593         * tests/test-signal.c (main): Avoid test failure.
21594         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21595         Reported by Scott McCreary.
21596
21597         maint.mk: add pre-release check to ensure submodule commits are public
21598         * top/maint.mk (public-submodule-commit): New rule.
21599         (submodule-checks): New variable.
21600         (alpha beta stable): Depend on the variable.
21601
21602 2011-01-05  Pádraig Brady <P@draigBrady.com>
21603         and Jim Meyering  <meyering@redhat.com>
21604
21605         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21606         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21607         (ATTRIBUTE_DEPRECATED): Define.
21608         (_ignore_case): New function.
21609         (ignore_value): New macro, to replace the old function.
21610         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21611         * modules/ignore-value (Depends-on): Add stdint.
21612
21613 2011-01-04  Eric Blake  <eblake@redhat.com>
21614
21615         doc: regenerate INSTALL
21616         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21617         @firstparagraphindent support, now that autoconf dropped it.
21618         (INSTALL_PRELUDE): Reinstate old macro.
21619         * doc/install.texi: Resync from autoconf.
21620         * doc/INSTALL: Reflect recent autoconf update.
21621         * doc/INSTALL.ISO: Likewise.
21622         * doc/INSTALL.UTF-8: Likewise.
21623         Reported by Karl Berry.
21624
21625 2011-01-04  Bruce Korb  <address@hidden>
21626
21627         git-version-gen: avoid a sub-shell
21628         * build-aux/git-version-gen: Redirect stderr in `...` via
21629         "exec 2>...", rather than via an added sub-shell.
21630
21631 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21632
21633         git-version-gen: use (...) rather than sh -c '...'
21634         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21635         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21636
21637 2011-01-03  Jim Meyering  <meyering@redhat.com>
21638
21639         git-version-gen: convert leading TABs to spaces
21640         * build-aux/git-version-gen: Expand leading TABs.
21641
21642         git-version-gen: handle failed "git rev-list"
21643         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21644         from git and proceeding as if it had succeeded but printed no SHA1
21645         checksums, suppress the diagnostic and handle the failure.
21646         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21647
21648         git-version-gen: include command name in one more diagnostic
21649         * build-aux/git-version-gen: When the required .tarball-version file
21650         was missing or unreadable, you might see the diagnostic from "cat",
21651         but no trace of the name of the invoking script.  Now, you still see
21652         the diagnostic from cat, but also get one from "git-version-gen: ".
21653         Inspired by a patch from Bruce Korb.
21654
21655         update-copyright: adjust test to match changed code
21656         * tests/test-update-copyright.sh: Change test's expected output
21657         to match new actual output.
21658
21659 2011-01-02  Bruno Haible  <bruno@clisp.org>
21660
21661         getlogin_r: Avoid test failure on HP-UX 11.
21662         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21663         ERANGE when the second argument is zero.
21664         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21665         portability problem.
21666
21667 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21668
21669         * build-aux/update-copyright: doc Simon's changes
21670
21671 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21672
21673         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21674         environment variable.
21675
21676 2011-01-02  Bruno Haible  <bruno@clisp.org>
21677
21678         unigbrk: Avoid gcc warnings.
21679         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21680         unused variable.
21681         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21682         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21683         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21684         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21685         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21686         Change type of first argument to 'const char *'.
21687         (main): Remove unused variable.
21688         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21689         type of first argument to 'const char *'.
21690         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21691         Likewise.
21692         (main): Change type of variable 's'.
21693         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21694         to 'int'.
21695
21696 2011-01-02  Bruno Haible  <bruno@clisp.org>
21697
21698         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21699         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21700         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21701         bug.
21702         * lib/pwrite.c: Undo 2010-12-31 patch.
21703         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21704
21705 2011-01-02  Bruno Haible  <bruno@clisp.org>
21706
21707         pread: Fix test whether it works.
21708         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21709
21710 2011-01-02  Bruno Haible  <bruno@clisp.org>
21711
21712         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21713         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21714         ends in "6". Don't require a specific month name. Try also the locale
21715         names found on HP-UX 11 and Solaris 7.
21716
21717 2011-01-02  Bruno Haible  <bruno@clisp.org>
21718
21719         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21720         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21721         C linkage.
21722         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21723
21724 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21725
21726         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21727         for consistency, since the "cluster" term is not used elsewhere.
21728         * lib/unigbrk.in.h: Update name.
21729         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21730         * lib/unigbrk/u16-grapheme-next.c: Update name.
21731         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21732         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21733         * lib/unigbrk/u32-grapheme-next.c: Update name.
21734         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21735         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21736         * lib/unigbrk/u8-grapheme-next.c: Update name.
21737         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21738         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21739         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21740         Suggested by Bruno Haible.
21741
21742 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21743
21744         Remove module 'u8-grapheme-len' as too redundant with
21745         'u8-grapheme-next'.
21746         * modules/unigbrk/u8-grapheme-len: Delete file.
21747         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21748         * lib/unigbrk.in.h: Remove prototype for deleted function.
21749         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21750         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21751
21752         Remove module 'u16-grapheme-len' as too redundant with
21753         'u16-grapheme-next'.
21754         * modules/unigbrk/u16-grapheme-len: Delete file.
21755         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21756         * lib/unigbrk.in.h: Remove prototype for deleted function.
21757         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21758         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21759
21760         Remove module 'u32-grapheme-len' as too redundant with
21761         'u32-grapheme-next'.
21762         * modules/unigbrk/u32-grapheme-len: Delete file.
21763         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21764         * lib/unigbrk.in.h: Remove prototype for deleted function.
21765         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21766         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21767
21768         Suggested by Bruno Haible.
21769
21770 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21771
21772         * unigbrk.in.h: Fix typo: "ben" => "been".
21773         Reported by Bruno Haible.
21774
21775 2011-01-01  Jim Meyering  <meyering@redhat.com>
21776
21777         maint: update almost all copyright ranges to include 2011
21778         Run the new "make update-copyright" rule.
21779
21780 2011-01-01  Jim Meyering  <meyering@redhat.com>
21781
21782         maint: update-copyright: exempt doc/INSTALL*
21783         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21784         since they are generated.  Suggested by Bruno Haible.
21785
21786 2011-01-01  Jim Meyering  <meyering@redhat.com>
21787
21788         maint: refine the update-copyright rule
21789         * Makefile (update-copyright): Also exclude any file that includes
21790         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21791         code that merely generates the comment.
21792
21793 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21794
21795         New module 'u8-grapheme-len'.
21796         * modules/unigbrk/u8-grapheme-len: New file.
21797         * modules/unigbrk/u8-grapheme-len-tests: New file.
21798         * lib/unigbrk.in.h: Add prototype for new function.
21799         * lib/unigbrk/u8-grapheme-len.c: New file.
21800         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21801
21802         New module 'u16-grapheme-len'.
21803         * modules/unigbrk/u16-grapheme-len: New file.
21804         * modules/unigbrk/u16-grapheme-len-tests: New file.
21805         * lib/unigbrk.in.h: Add prototype for new function.
21806         * lib/unigbrk/u16-grapheme-len.c: New file.
21807         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21808
21809         New module 'u32-grapheme-len'.
21810         * modules/unigbrk/u32-grapheme-len: New file.
21811         * modules/unigbrk/u32-grapheme-len-tests: New file.
21812         * lib/unigbrk.in.h: Add prototype for new function.
21813         * lib/unigbrk/u32-grapheme-len.c: New file.
21814         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21815
21816         New module 'u8-grapheme-next'.
21817         * modules/unigbrk/u8-grapheme-next: New file.
21818         * modules/unigbrk/u8-grapheme-next-tests: New file.
21819         * lib/unigbrk.in.h: Add prototype for new function.
21820         * lib/unigbrk/u8-grapheme-next.c: New file.
21821         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21822
21823         New module 'u16-grapheme-next'.
21824         * modules/unigbrk/u16-grapheme-next: New file.
21825         * modules/unigbrk/u16-grapheme-next-tests: New file.
21826         * lib/unigbrk.in.h: Add prototype for new function.
21827         * lib/unigbrk/u16-grapheme-next.c: New file.
21828         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21829
21830         New module 'u32-grapheme-next'.
21831         * modules/unigbrk/u32-grapheme-next: New file.
21832         * modules/unigbrk/u32-grapheme-next-tests: New file.
21833         * lib/unigbrk.in.h: Add prototype for new function.
21834         * lib/unigbrk/u32-grapheme-next.c: New file.
21835         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21836
21837         New module 'u8-grapheme-prev'.
21838         * modules/unigbrk/u8-grapheme-prev: New file.
21839         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21840         * lib/unigbrk.in.h: Add prototype for new function.
21841         * lib/unigbrk/u8-grapheme-prev.c: New file.
21842         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21843
21844         New module 'u16-grapheme-prev'.
21845         * modules/unigbrk/u16-grapheme-prev: New file.
21846         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21847         * lib/unigbrk.in.h: Add prototype for new function.
21848         * lib/unigbrk/u16-grapheme-prev.c: New file.
21849         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21850
21851         New module 'u32-grapheme-prev'.
21852         * modules/unigbrk/u32-grapheme-prev: New file.
21853         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21854         * lib/unigbrk.in.h: Add prototype for new function.
21855         * lib/unigbrk/u32-grapheme-prev.c: New file.
21856         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21857
21858         New module 'u8-grapheme-breaks'.
21859         * modules/unigbrk/u8-grapheme-breaks: New file.
21860         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21861         * lib/unigbrk.in.h: Add prototype for new function.
21862         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21863         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21864
21865         New module 'u16-grapheme-breaks'.
21866         * modules/unigbrk/u16-grapheme-breaks: New file.
21867         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21868         * lib/unigbrk.in.h: Add prototype for new function.
21869         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21870         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21871
21872         New module 'u32-grapheme-breaks'.
21873         * modules/unigbrk/u32-grapheme-breaks: New file.
21874         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21875         * lib/unigbrk.in.h: Add prototype for new function.
21876         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21877         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21878
21879         New module 'ulc-grapheme-breaks'.
21880         * modules/unigbrk/ulc-grapheme-breaks: New file.
21881         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21882         * m4/locale-ar.m4: New file.
21883         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21884         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21885         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21886
21887 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21888
21889         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21890         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21891         modified how this file was generated before I initially submitted
21892         the module, but failed to regenerate it.  This meant that several
21893         of the level2 entries were wrong.
21894         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21895         Remove the division-by-2 that is folded into the table now that
21896         gbrkprop.h has been regenerated properly.  Now -1 entries are
21897         handled correctly.
21898
21899         New module 'unigbrk/uc-gbrk-prop-tests'.
21900         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21901         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21902         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21903         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21904
21905 2011-01-01  Bruno Haible  <bruno@clisp.org>
21906
21907         Avoid use of hexadecimal escapes.
21908         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21909         instead of hexadecimal escapes.
21910
21911 2011-01-01  Jim Meyering  <meyering@redhat.com>
21912
21913         maint: new rule to update copyright year ranges
21914         * Makefile (update-copyright): New rule.
21915
21916         maint: indent with TABs in Makefile
21917         * Makefile: Expand leading sequences of spaces to TABs
21918
21919         version-etc: update the copyright year it reports
21920         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21921
21922 2010-12-31  Bruno Haible  <bruno@clisp.org>
21923
21924         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21925         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21926         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21927         zero.
21928
21929 2010-12-31  Bruno Haible  <bruno@clisp.org>
21930
21931         pwrite: Work around HP-UX 11.11 bug.
21932         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21933         works and set REPLACE_PWRITE if not.
21934         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21935         function.
21936         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21937
21938 2010-12-31  Bruno Haible  <bruno@clisp.org>
21939
21940         pread: Work around HP-UX 11 bugs.
21941         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21942         and set REPLACE_PREAD if not.
21943         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21944
21945 2010-12-31  Eric Blake  <eblake@redhat.com>
21946
21947         nl_langinfo: fix YESEXPR on Irix 6.5
21948         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21949         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21950         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21951         it.
21952
21953 2010-12-31  Bruno Haible  <bruno@clisp.org>
21954
21955         iconv: Document HP-UX 11 bug.
21956         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21957
21958 2010-12-31  Bruno Haible  <bruno@clisp.org>
21959
21960         ldexpl: Fix link error on HP-UX 11.
21961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21962         LDEXPL_LIBM, using $ISNANL_LIBM.
21963
21964 2010-12-31  Eric Blake  <eblake@redhat.com>
21965
21966         ftello: avoid compilation failure with SunStudio c89
21967         * lib/ftello.c (ftello): Use lseek, not llseek.
21968
21969         tests: avoid failing coreutils tests on cygwin
21970         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21971         (create_exe_shims_): Return 0 when skipping.
21972
21973 2010-12-31  Bruno Haible  <bruno@clisp.org>
21974
21975         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21976         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21977
21978 2010-12-31  Bruno Haible  <bruno@clisp.org>
21979
21980         waitpid: Fix link error in C++ mode.
21981         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21982
21983 2010-12-31  Bruno Haible  <bruno@clisp.org>
21984
21985         isnan: Use GCC built-ins when possible.
21986         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21987         __builtin_isnan.
21988         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21989         (isnan): Define using GCC built-ins for GCC >= 4.0.
21990
21991 2010-12-31  Bruno Haible  <bruno@clisp.org>
21992
21993         isnand: Fix mistake.
21994         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21995         __builtin_isnand.
21996
21997 2010-12-31  Bruno Haible  <bruno@clisp.org>
21998
21999         open: Avoid C++ error on HP-UX 11.
22000         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22001
22002 2010-12-31  Bruno Haible  <bruno@clisp.org>
22003
22004         time_r: Add missing declarations on HP-UX 11.
22005         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22006         instead of HAVE_LOCALTIME_R.
22007         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22008         HAVE_LOCALTIME_R always.
22009         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22010         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22011         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22012         HAVE_LOCALTIME_R.
22013         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22014         * doc/posix-functions/localtime_r.texi: Likewise.
22015
22016 2010-12-29  Eric Blake  <eblake@redhat.com>
22017
22018         mountlist: tweak previous commit
22019         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22020         Reported by Paul Eggert.
22021
22022         mountlist: fix local drive detection on cygwin
22023         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22024         that works for cygwin.
22025
22026 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22027
22028         ftoastr, snprintf: ftoastr + snprintf module
22029         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22030         since the snprintf module now should be good enough here.
22031         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22032         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22033         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22034         GNULIB_SNPRINTF only for the test directory, and the latter
22035         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22036         seems to suffice by itself.
22037
22038 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22039
22040         alloca: one step towards thread-safety
22041         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22042         need for a static variable.  All callers changed.  This does not
22043         make the alloca replacement thread-safe, but it's one step.
22044
22045         tests: minor indenting change
22046         * tests/init.sh: Sync from coreutils housekeeping patch
22047         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22048         to keep lines within 80 columns.
22049
22050 2010-12-28  Jim Meyering  <meyering@redhat.com>
22051
22052         regex: don't infloop on persistent failing calloc
22053         * lib/regexec.c (build_trtable): Return failure indication upon
22054         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22055         In glibc, this was fixed for version 2.13:
22056         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22057
22058 2010-12-28  Bruno Haible  <bruno@clisp.org>
22059             Paul Eggert <eggert@cs.ucla.edu>
22060
22061         linkat: Make implementation robust against system behaviour variations.
22062         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22063         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22064         way, and to -2 if it needs a generic runtime test.
22065         * lib/linkat.c (solaris_optimized_link_immediate,
22066         solaris_optimized_link_follow): New functions.
22067         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22068         (check_same_link): Use it.
22069
22070 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22071
22072         New module 'unigbrk/base'.
22073         * modules/unigbrk/base: New file.
22074         * lib/unigbrk.in.h: New file.
22075
22076         New module 'unigbrk/uc-gbrk-prop'.
22077         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22078         * modules/unigbrk/uc-gbrk-prop: New file.
22079         * lib/unigbrk/gbrkprop.h: New file.
22080         * lib/unigbrk/uc-gbrk-prop.c: New file.
22081
22082         New module 'unigbrk/uc-is-grapheme-break'.
22083         * modules/unigbrk/uc-is-grapheme-break: New file.
22084         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22085         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22086         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22087         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22088         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22089
22090         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22091
22092 2010-12-27  Bruno Haible  <bruno@clisp.org>
22093
22094         linkat test: Avoid failure on Solaris 11 2010-11.
22095         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22096
22097 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22098
22099         utimens: work around glibc rounding bug on more platforms
22100         * lib/utimens.c (fdutimens): Work around rounding bug even if
22101         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22102         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22103
22104 2010-12-27  Bruno Haible  <bruno@clisp.org>
22105
22106         select tests: Improve comments.
22107         * tests/test-select.c (do_select): Add comments.
22108
22109 2010-12-27  Bruno Haible  <bruno@clisp.org>
22110
22111         select tests: Safer way of handling timeout.
22112         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22113         at every invocation.
22114
22115 2010-12-27  Bruno Haible  <bruno@clisp.org>
22116
22117         select tests: Use 'bool' where appropriate.
22118         * tests/test-select.c (connect_to_socket): Change argument type to
22119         'bool'.
22120
22121 2010-12-27  Bruno Haible  <bruno@clisp.org>
22122
22123         select tests: Use existing modules.
22124         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22125         (configure.ac): Don't test for unistd.h.
22126         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22127         declared in <unistd.h>.
22128
22129 2010-12-27  Bruno Haible  <bruno@clisp.org>
22130
22131         mbrtowc: Work around a Solaris 7 bug.
22132         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22133         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22134         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22135         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22136         MBRTOWC_NULL_ARG1_BUG.
22137         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22138         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22139         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22140         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22141
22142 2010-12-27  Jim Meyering  <meyering@redhat.com>
22143
22144         read-file.c: tweak syntax
22145         * lib/read-file.c (fread_file): Remove space after "*" in function
22146         definitions.
22147
22148 2010-12-27  Bruno Haible  <bruno@clisp.org>
22149
22150         times test: Avoid gcc warnings on OSF/1.
22151         * tests/test-times.c (main): Cast printf arguments from clock_t to
22152         'long int'.
22153
22154 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22155
22156         utimens: work around glibc rounding bug on older Linux kernels
22157         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22158         on Linux with a glibc whose utimes might not work, then work
22159         around a longstanding glibc bug involving rounding rather than
22160         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22162
22163 2010-12-26  Bruno Haible  <bruno@clisp.org>
22164
22165         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22166         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22167         _GL_CXXALIAS_SYS.
22168         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22169
22170 2010-12-26  Bruno Haible  <bruno@clisp.org>
22171
22172         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22173         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22174         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22175         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22176         looking for the declaration.
22177         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22178         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22179         problem.
22180         * doc/posix-functions/inet_pton.texi: Likewise.
22181
22182 2010-12-26  Bruno Haible  <bruno@clisp.org>
22183
22184         arpa_inet: Use the common idioms with C++ support.
22185         * lib/arpa_inet.in.h: Include c++defs.h.
22186         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22187         support.
22188         * modules/arpa_inet (Depends-on): Add c++defs.
22189         (Makefile.am): Substitute the contents of c++defs.h.
22190         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22191         * modules/arpa_inet-c++-tests: New file.
22192         * tests/test-arpa_inet-c++.cc: New file.
22193
22194 2010-12-25  Bruno Haible  <bruno@clisp.org>
22195
22196         Fix more C++ link errors on Solaris 8.
22197         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22198         $(LIB_EACCESS).
22199         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22200         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22201         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22202         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22203         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22204
22205 2010-12-25  Bruno Haible  <bruno@clisp.org>
22206
22207         printf-posix: Fix link error when a non-GCC compiler is used.
22208         * lib/stdio.in.h (printf): When not using GCC, override printf
22209         correctly.
22210         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22211
22212 2010-12-25  Bruno Haible  <bruno@clisp.org>
22213
22214         strerror_r-posix: Update doc.
22215         * doc/posix-functions/strerror_r.texi: Update doc about the return
22216         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22217
22218 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22219
22220         utimens: simplify the logic of the previous change
22221         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22222         This should not affect whether the test succeeds or fails.
22223
22224         utimens: configure better on hosts with NFS clock skew
22225         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22226         uses the clock of the local host.  It might use the clock of the
22227         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22228         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22229
22230 2010-12-25  Bruno Haible  <bruno@clisp.org>
22231
22232         ptsname test: Avoid failure on Solaris.
22233         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22234         open a pseudo-terminal; don't use BSD-style ptys.
22235         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22236
22237 2010-12-25  Bruno Haible  <bruno@clisp.org>
22238
22239         ptsname: Avoid ERANGE failure on some systems.
22240         * lib/ptsname.c (buffer): Increase size.
22241
22242 2010-12-25  Bruno Haible  <bruno@clisp.org>
22243
22244         rename, renameat: Avoid test failures at NFS mounted locations.
22245         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22246         so that subsequent mkdir calls succeed.
22247
22248 2010-12-25  Bruno Haible  <bruno@clisp.org>
22249
22250         iswblank: Fix C++ link error on Solaris 8.
22251         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22252         _GL_FUNCDECL_SYS.
22253
22254 2010-12-25  Bruno Haible  <bruno@clisp.org>
22255
22256         unistd: Fix C++ link error on Solaris 8.
22257         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22258
22259 2010-12-25  Bruno Haible  <bruno@clisp.org>
22260
22261         readlink doc: Mention an old glibc bug.
22262         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22263
22264 2010-12-25  Bruno Haible  <bruno@clisp.org>
22265
22266         fcntl-h: Fix for use of C++ on glibc systems.
22267         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22268         also on glibc systems in C++ mode.
22269         Reported by Gary V. Vaughan <gary@gnu.org>.
22270
22271 2010-12-25  Bruno Haible  <bruno@clisp.org>
22272
22273         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22274         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22275
22276 2010-12-25  Bruno Haible  <bruno@clisp.org>
22277
22278         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22279         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22280         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22281         test whether truncl works according to ISO C 99 with IEC 60559.
22282         * m4/truncl-ieee.m4: New file.
22283         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22284         m4/signbit.m4.
22285         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22286
22287 2010-12-25  Bruno Haible  <bruno@clisp.org>
22288
22289         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22290         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22291         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22292         test whether ceill works according to ISO C 99 with IEC 60559.
22293         * m4/ceill-ieee.m4: New file.
22294         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22295         m4/signbit.m4.
22296         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22297
22298 2010-12-25  Bruno Haible  <bruno@clisp.org>
22299
22300         Ensure all prerequisites of <wchar.h> are included.
22301         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22302         before <wchar.h>.
22303         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22304         gl_MBRLEN_NUL_RETVAL): Likewise.
22305         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22306         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22307         AC_FUNC_MBRTOWC): Likewise.
22308         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22309         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22310         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22311         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22312         Likewise.
22313         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22314         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22315         (gl_WCHAR_H): Improve comments.
22316         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22317
22318 2010-12-25  Bruno Haible  <bruno@clisp.org>
22319
22320         strtok_r: Fix C syntax error in autoconf macro.
22321         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22322         characters in test program.
22323
22324 2010-12-24  Bruno Haible  <bruno@clisp.org>
22325
22326         ceil, trunc, round: Fix gcc warnings.
22327         * lib/ceil.c (MIN): Undefine before redefining.
22328         * lib/trunc.c (MIN): Likewise.
22329         * lib/round.c (MIN): Likewise.
22330         Include <math.h> first.
22331
22332 2010-12-24  Bruno Haible  <bruno@clisp.org>
22333
22334         select tests: Avoid failures on OSF/1 5.1.
22335         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22336         failure of closing the last socket; it may fail with ECONNRESET.
22337
22338 2010-12-24  Eric Blake  <eblake@redhat.com>
22339
22340         stdint: avoid HP-UX 10.20 preprocessor bug
22341         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22342         than #if.
22343         * tests/test-floor2.c (main): Likewise.
22344         Reported by Peter O'Gorman.
22345
22346         pipe: make obsoletion transition easier
22347         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22348         * modules/pipe (Files): Include revived file.
22349         (Include): Drop reference, to mirror getdate's behavior.
22350
22351 2010-12-24  Bruno Haible  <bruno@clisp.org>
22352
22353         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22354         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22355         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22356         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22357
22358 2010-12-24  Bruno Haible  <bruno@clisp.org>
22359
22360         gethostname: Ensure declaration on NonStop Kernel.
22361         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22363
22364 2010-12-24  Bruno Haible  <bruno@clisp.org>
22365
22366         sys_select: Ensure all necessary types on NonStop Kernel.
22367         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22368         include <sys/time.h>.
22369         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22370         NonStop Kernel.
22371         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22372
22373 2010-12-24  Bruno Haible  <bruno@clisp.org>
22374
22375         sys_select: Remove unneeded include.
22376         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22377         have <sys/select.h>.
22378
22379 2010-12-24  Bruno Haible  <bruno@clisp.org>
22380
22381         gethostname: Provide a fallback for HOST_NAME_MAX.
22382         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22383         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22384         instead.
22385         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22386
22387 2010-12-24  Bruno Haible  <bruno@clisp.org>
22388
22389         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22390         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22391         (SA_RESTART): Likewise.
22392         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22393
22394 2010-12-24  Bruno Haible  <bruno@clisp.org>
22395
22396         signal: Define NSIG.
22397         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22398         * tests/test-signal.c (nsig): New variable.
22399         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22400
22401 2010-12-24  Bruno Haible  <bruno@clisp.org>
22402
22403         rename, renameat: Avoid test failures on OSF/1 5.1.
22404         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22405         alternative error codes.
22406         * tests/test-renameat.c (main): Likewise.
22407
22408 2010-12-24  Bruno Haible  <bruno@clisp.org>
22409
22410         *printf: Detect large precisions bug on Solaris 10/SPARC.
22411         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22412         by Paul Eggert.
22413         * tests/test-snprintf-posix.h (test_function): Add this test code here
22414         too.
22415         * tests/test-sprintf-posix.h (test_function): Likewise.
22416         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22417         * tests/test-vasprintf-posix.c (test_function): Likewise.
22418         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22419         around by gnulib.
22420         * doc/posix-functions/printf.texi: Likewise.
22421         * doc/posix-functions/snprintf.texi: Likewise.
22422         * doc/posix-functions/sprintf.texi: Likewise.
22423         * doc/posix-functions/vfprintf.texi: Likewise.
22424         * doc/posix-functions/vprintf.texi: Likewise.
22425         * doc/posix-functions/vsnprintf.texi: Likewise.
22426         * doc/posix-functions/vsprintf.texi: Likewise.
22427         * doc/posix-functions/dprintf.texi: Undo last commit.
22428         * doc/posix-functions/vdprintf.texi: Likewise.
22429
22430 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22431
22432         tests: port test-fdutimensat.c to Solaris 8
22433         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22434         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22435         On Solaris 8, it fails with errno == ENOSYS, because there is no
22436         futimens (so it can't use the fd), and there is no lutimens (so it
22437         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22438
22439         vsnprintf: make more consistent with snprintf; doc fixes
22440
22441         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22442         the byte count return problem was promoted from the snprintf-posix
22443         to the snprintf module.
22444         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22445         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22446         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22447         * tests/test-snprintf.c (main): Check the byte count returned.
22448         * tests/test-vsnprintf.c (main): Likewise.
22449
22450 2010-12-23  Eric Blake  <eblake@redhat.com>
22451
22452         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22453         * modules/sigpipe (License): Relax license.
22454
22455 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22456
22457         doc: document Solaris printf bug with large float precisions
22458         * doc/posix-functions/dprintf.texi (dprintf):
22459         * doc/posix-functions/fprintf.texi (fprintf):
22460         * doc/posix-functions/printf.texi (printf):
22461         * doc/posix-functions/snprintf.texi (snprintf):
22462         * doc/posix-functions/sprintf.texi (sprintf):
22463         * doc/posix-functions/vdprintf.texi (vdprintf):
22464         * doc/posix-functions/vfprintf.texi (vfprintf):
22465         * doc/posix-functions/vprintf.texi (vprintf):
22466         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22467         * doc/posix-functions/vsprintf.texi (vsprintf):
22468         Mention that these functions mishandle large floating point
22469         precisions on Solaris 10.  The same bug is also present in Solaris
22470         8, and I assume earlier.  This causes "cd gnulib-tests; make
22471         check" to fail on Solaris 8 (and I assume, later) when building
22472         the latest coreutils, in test-vasprintf-posix's call to
22473         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22474         the wide flavors (e.g., wprintf) so this patch just updates the
22475         documentation for the narrow ones.
22476
22477         test-posixtm.c: add two tests
22478         * tests/test-posixtm.c: Add two tests, to highlight the
22479         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22480         around this bug; this is merely to document it.
22481
22482 2010-12-22  Bruno Haible  <bruno@clisp.org>
22483
22484         getlogin_r: Work around portability problem on OSF/1.
22485         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22486         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22487         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22488         test for a truncated result.
22489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22490         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22491         * modules/getlogin_r (Depends-on): Add memchr.
22492         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22493
22494 2010-12-22  Bruno Haible  <bruno@clisp.org>
22495
22496         ptsname: Avoid test failure on OSF/1 5.1.
22497         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22498         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22499         (same_slave): New function.
22500         (main): Use it to compare ptsname's result with the expected file name.
22501
22502 2010-12-22  Bruno Haible  <bruno@clisp.org>
22503
22504         Port extended stdio modules to HP NonStop Kernel.
22505         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22506         macros.
22507         * lib/fbufmode.c: Update comments.
22508         * lib/fflush.c: Likewise.
22509         * lib/fpurge.c: Likewise.
22510         * lib/freadable.c: Likewise.
22511         * lib/freadahead.c: Likewise.
22512         * lib/freading.c: Likewise.
22513         * lib/freadptr.c: Likewise.
22514         * lib/freadseek.c: Likewise.
22515         * lib/fseeko.c: Likewise.
22516         * lib/fseterr.c: Likewise.
22517         * lib/fwritable.c: Likewise.
22518         * lib/fwriting.c: Likewise.
22519         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22520
22521 2010-12-22  Bruno Haible  <bruno@clisp.org>
22522
22523         ttyname_r: Work around bug on OSF/1 5.1.
22524         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22525         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22526         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22527         present.
22528         * lib/ttyname_r.c (ttyname_r): Update comments.
22529
22530 2010-12-22  Bruno Haible  <bruno@clisp.org>
22531
22532         round: Implement result sign according to IEEE 754.
22533         * lib/round.c (MIN, MINUS_ZERO): New macros.
22534         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22535         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22536         * tests/test-round-ieee.c (main): Likewise.
22537         * tests/test-roundl-ieee.c (main): Likewise.
22538
22539         trunc: Implement result sign according to IEEE 754.
22540         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22541         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22542         * tests/test-trunc2.c: Include minus-zero.h.
22543         (MINUS_ZERO): New macro.
22544         (trunc_reference): Keep in sync with lib/trunc.c.
22545         * tests/test-truncf2.c: Include minus-zero.h.
22546         (MINUS_ZERO): New macro.
22547         (truncf_reference): Keep in sync with lib/trunc.c.
22548         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22549         * tests/test-trunc-ieee.c (main): Likewise.
22550         * tests/test-truncl-ieee.c (main): Likewise.
22551
22552         ceil: Implement result sign according to IEEE 754.
22553         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22554         (FUNC): Return -0.0 for -1 < x < 0.
22555         * tests/test-ceil2.c: Include minus-zero.h.
22556         (MINUS_ZERO): New macro.
22557         (ceil_reference): Keep in sync with lib/ceil.c.
22558         * tests/test-ceilf2.c: Include minus-zero.h.
22559         (MINUS_ZERO): New macro.
22560         (ceilf_reference): Keep in sync with lib/ceil.c.
22561         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22562         * tests/test-ceil-ieee.c (main): Likewise.
22563         * tests/test-ceill-ieee.c (main): Likewise.
22564
22565         floor: Implement result sign according to IEEE 754.
22566         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22567         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22568         * tests/test-floorf2.c (floorf_reference): Likewise.
22569         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22570         * tests/test-floor-ieee.c (main): Likewise.
22571         * tests/test-floorl-ieee.c (main): Likewise.
22572
22573 2010-12-22  Bruno Haible  <bruno@clisp.org>
22574
22575         getaddrinfo: Update doc.
22576         * doc/posix-functions/gai_strerror.texi: Return type is also different
22577         on AIX and HP-UX.
22578
22579 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22580
22581         getaddrinfo, inet_ntop: Update doc for Solaris.
22582         * doc/posix-functions/gai_strerror.texi: Return type is also an
22583         issue on Solaris 9 and earlier.
22584         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22585         on Solaris 10 and earlier.
22586
22587 2010-12-21  Bruno Haible  <bruno@clisp.org>
22588
22589         New module 'roundl-ieee'.
22590         * modules/roundl-ieee: New file.
22591         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22592         test whether roundl works according to ISO C 99 with IEC 60559.
22593         * m4/roundl-ieee.m4: New file.
22594         * modules/roundl-ieee-tests: New file.
22595         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22596         * tests/test-roundl.c (main): Remove signbit tests.
22597         * modules/roundl-tests (Depends-on): Remove signbit.
22598         * doc/posix-functions/roundl.texi: Mention the new module.
22599
22600 2010-12-21  Bruno Haible  <bruno@clisp.org>
22601
22602         New module 'truncl-ieee'.
22603         * modules/truncl-ieee: New file.
22604         * modules/truncl-ieee-tests: New file.
22605         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22606         * tests/test-truncl.c (main): Remove signbit tests.
22607         * modules/truncl-tests (Depends-on): Remove signbit.
22608         * doc/posix-functions/truncl.texi: Mention the new module.
22609
22610 2010-12-21  Bruno Haible  <bruno@clisp.org>
22611
22612         New module 'ceill-ieee'.
22613         * modules/ceill-ieee: New file.
22614         * modules/ceill-ieee-tests: New file.
22615         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22616         * tests/test-ceill.c (main): Remove signbit tests.
22617         * modules/ceill-tests (Depends-on): Remove signbit.
22618         * doc/posix-functions/ceill.texi: Mention the new module.
22619
22620 2010-12-21  Bruno Haible  <bruno@clisp.org>
22621
22622         New module 'floorl-ieee'.
22623         * modules/floorl-ieee: New file.
22624         * modules/floorl-ieee-tests: New file.
22625         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22626         * tests/test-floorl.c (main): Remove signbit tests.
22627         * modules/floorl-tests (Depends-on): Remove signbit.
22628         * doc/posix-functions/floorl.texi: Mention the new module.
22629
22630 2010-12-21  Bruno Haible  <bruno@clisp.org>
22631
22632         New module 'round-ieee'.
22633         * modules/round-ieee: New file.
22634         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22635         whether round works according to ISO C 99 with IEC 60559.
22636         * m4/round-ieee.m4: New file.
22637         * modules/round-ieee-tests: New file.
22638         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22639         * tests/test-round1.c (main): Remove signbit tests.
22640         * modules/round-tests (Depends-on): Remove 'signbit'.
22641         * doc/posix-functions/round.texi: Mention the new module.
22642
22643 2010-12-21  Bruno Haible  <bruno@clisp.org>
22644
22645         New module 'trunc-ieee'.
22646         * modules/trunc-ieee: New file.
22647         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22648         whether trunc works according to ISO C 99 with IEC 60559.
22649         * m4/trunc-ieee.m4: New file.
22650         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22652         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22653         * modules/trunc-ieee-tests: New file.
22654         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22655         * tests/test-trunc1.c (main): Remove signbit tests.
22656         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22657         * doc/posix-functions/trunc.texi: Mention the new module.
22658
22659 2010-12-21  Bruno Haible  <bruno@clisp.org>
22660
22661         New module 'ceil-ieee'.
22662         * modules/ceil-ieee: New file.
22663         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22664         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22665         ISO C 99 with IEC 60559.
22666         * m4/ceil-ieee.m4: New file.
22667         * modules/ceil (Files): Add lib/ceil.c.
22668         (Depends-on): Add 'float'.
22669         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22670         * lib/math.in.h (ceil): New declaration.
22671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22672         REPLACE_CEIL.
22673         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22674         * modules/ceil-ieee-tests: New file.
22675         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22676         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22677         * doc/posix-functions/ceil.texi: Mention the new module.
22678
22679 2010-12-21  Bruno Haible  <bruno@clisp.org>
22680
22681         New module 'floor-ieee'.
22682         * modules/floor-ieee: New file.
22683         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22684         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22685         ISO C 99 with IEC 60559.
22686         * m4/floor-ieee.m4: New file.
22687         * modules/floor (Files): Add lib/floor.c.
22688         (Depends-on): Add 'float'.
22689         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22690         * lib/math.in.h (floor): New declaration.
22691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22692         REPLACE_FLOOR.
22693         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22694         * modules/floor-ieee-tests: New file.
22695         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22696         * tests/test-math-c++.cc: Check the signature of 'floor'.
22697         * doc/posix-functions/floor.texi: Mention the new module.
22698
22699 2010-12-21  Bruno Haible  <bruno@clisp.org>
22700
22701         New module 'roundf-ieee'.
22702         * modules/roundf-ieee: New file.
22703         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22704         test whether roundf works according to ISO C 99 with IEC 60559.
22705         * m4/roundf-ieee.m4: New file.
22706         * modules/roundf-ieee-tests: New file.
22707         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22708         * tests/test-roundf1.c (main): Remove signbit tests.
22709         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22710         * doc/posix-functions/roundf.texi: Mention the new module.
22711
22712 2010-12-21  Bruno Haible  <bruno@clisp.org>
22713
22714         New module 'truncf-ieee'.
22715         * modules/truncf-ieee: New file.
22716         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22717         test whether truncf works according to ISO C 99 with IEC 60559.
22718         * m4/truncf-ieee.m4: New file.
22719         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22721         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22722         * modules/truncf-ieee-tests: New file.
22723         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22724         * tests/test-truncf1.c (main): Remove signbit tests.
22725         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22726         * doc/posix-functions/truncf.texi: Mention the new module.
22727
22728 2010-12-21  Bruno Haible  <bruno@clisp.org>
22729
22730         New module 'ceilf-ieee'.
22731         * modules/ceilf-ieee: New file.
22732         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22733         test whether ceilf works according to ISO C 99 with IEC 60559.
22734         * m4/ceilf-ieee.m4: New file.
22735         * modules/ceilf-ieee-tests: New file.
22736         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22737         * tests/test-ceilf1.c (main): Remove signbit tests.
22738         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22739         * doc/posix-functions/ceilf.texi: Mention the new module.
22740
22741 2010-12-21  Bruno Haible  <bruno@clisp.org>
22742
22743         New module 'floorf-ieee'.
22744         * modules/floorf-ieee: New file.
22745         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22746         test whether floorf works according to ISO C 99 with IEC 60559.
22747         * m4/floorf-ieee.m4: New file.
22748         * modules/floorf-ieee-tests: New file.
22749         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22750         * tests/test-floorf1.c (main): Remove signbit tests.
22751         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22752         * doc/posix-functions/floorf.texi: Mention the new module.
22753
22754 2010-12-21  Bruno Haible  <bruno@clisp.org>
22755
22756         Support for minus zero in autoconf macros.
22757         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22758         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22759         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22760         * tests/minus-zero.h: Update comments.
22761
22762 2010-12-21  Bruno Haible  <bruno@clisp.org>
22763
22764         Tests for module 'ceil'.
22765         * modules/ceil-tests: New file.
22766         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22767         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22768
22769 2010-12-21  Bruno Haible  <bruno@clisp.org>
22770
22771         Tests for module 'floor'.
22772         * modules/floor-tests: New file.
22773         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22774         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22775
22776 2010-12-21  Bruno Haible  <bruno@clisp.org>
22777
22778         math: Fix indentation.
22779         * lib/math.in.h (floorf): Fix indentation.
22780
22781 2010-12-21  Bruno Haible  <bruno@clisp.org>
22782
22783         Fix cross-compilation guesses on Solaris.
22784         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22785         not match "solaris2.10".
22786         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22787         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22788         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22789
22790 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22791
22792         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22793         This fixes a problem observed with the latest coreutils snapshot
22794         that caused a test to fail on Solaris 8.  src/csplit.c's call
22795         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22796         earlier, instead of returning the number of bytes that would have
22797         been generated; this causes csplit to incorrectly report memory
22798         exhaustion.
22799         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22800         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22801         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22802         comments to match.
22803         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22804         Fix typo in matching older versions of Solaris: "solaris2.10"
22805         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22806         only for guessing while cross-compiling.
22807         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22808
22809 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22810
22811         ftoastr: fix comment again
22812         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22813         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22814         Also, simplify example a bit by using flags = 0.
22815
22816 2010-12-20  Bruno Haible  <bruno@clisp.org>
22817
22818         round*, trunc*: Update documentation regarding glibc.
22819         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22820         * doc/posix-functions/round.texi: Likewise.
22821         * doc/posix-functions/roundl.texi: Likewise.
22822         * doc/posix-functions/truncf.texi: Likewise.
22823         * doc/posix-functions/trunc.texi: Likewise.
22824         * doc/posix-functions/truncl.texi: Likewise.
22825
22826 2010-12-20  Bruno Haible  <bruno@clisp.org>
22827
22828         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22829         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22830         * doc/posix-functions/round.texi: Likewise.
22831         * doc/posix-functions/roundl.texi: Likewise.
22832
22833 2010-12-20  Bruno Haible  <bruno@clisp.org>
22834
22835         ttyname_r: Add missing declaration on HP-UX 11.
22836         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22837         HAVE_TTYNAME_R.
22838         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22839         declared. Set HAVE_TTYNAME_R always.
22840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22841         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22842         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22843         HAVE_TTYNAME_R.
22844         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22845
22846 2010-12-20  Bruno Haible  <bruno@clisp.org>
22847
22848         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22849         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22850         * doc/posix-functions/getlogin_r.texi: Likewise.
22851         * tests/test-getlogin.c: Include <errno.h>.
22852         (main): Avoid test failure on HP-UX 11.11.
22853         * tests/test-getlogin_r.c (main): Likewise.
22854
22855 2010-12-20  Bruno Haible  <bruno@clisp.org>
22856
22857         getlogin_r: Add missing declaration on HP-UX 11.
22858         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22859         declared also when it exists as a function.
22860         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22861
22862 2010-12-20  Bruno Haible  <bruno@clisp.org>
22863
22864         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22865         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22866         through wcrtomb.
22867
22868 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22869
22870         ftoastr: fix comment
22871         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22873
22874 2010-12-19  Bruno Haible  <bruno@clisp.org>
22875
22876         isnan: Ensure it is a macro.
22877         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22878         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22879         Solaris.
22880
22881 2010-12-19  Bruno Haible  <bruno@clisp.org>
22882
22883         ldexpl test: Fix link error on OSF/1 5.1.
22884         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22885
22886 2010-12-19  Bruno Haible  <bruno@clisp.org>
22887
22888         wctype: Make it work in C++ mode on OSF/1 5.1.
22889         * lib/wctype.in.h (iswblank): Declare but not define here.
22890         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22891         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22892         * modules/wctype (Files): Add lib/iswblank.c.
22893
22894 2010-12-19  Bruno Haible  <bruno@clisp.org>
22895
22896         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22897         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22898         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22899
22900 2010-12-19  Bruno Haible  <bruno@clisp.org>
22901
22902         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22903         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22904         _POSIX_PII_SOCKET.
22905         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22906         * doc/posix-functions/recvfrom.texi: Likewise.
22907         * doc/posix-functions/send.texi: Likewise.
22908         * doc/posix-functions/sendto.texi: Likewise.
22909
22910 2010-12-19  Bruno Haible  <bruno@clisp.org>
22911
22912         tcgetsid: Add missing declaration on OSF/1 5.1.
22913         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22914         HAVE_TCGETSID.
22915         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22916         Don't set HAVE_TCGETSID.
22917         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22918         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22919         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22920         HAVE_TCGETSID.
22921         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22922
22923 2010-12-19  Bruno Haible  <bruno@clisp.org>
22924
22925         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22926         * lib/stdio.in.h: During the include_next statement, let recursive
22927         includes of this file include only the system header file.
22928
22929 2010-12-19  Bruno Haible  <bruno@clisp.org>
22930
22931         iconv_open: Fix regression from 2010-12-04.
22932         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22933         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22934
22935 2010-12-19  Bruno Haible  <bruno@clisp.org>
22936
22937         stdbool test: Avoid a gcc warning.
22938         * tests/test-stdbool.c (main): Fail if e1 is false.
22939         Reported by Jim Meyering.
22940
22941 2010-12-19  Jim Meyering  <meyering@redhat.com>
22942
22943         setenv: restore to working order
22944         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22945         mistakenly removed.
22946         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22947         HAVE_SETENV.
22948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22949         HAVE_SETENV.
22950
22951 2010-12-19  Bruno Haible  <bruno@clisp.org>
22952
22953         Document some different function declarations on OSF/1 5.1.
22954         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22955         * doc/posix-functions/inet_ntop.texi: Likewise.
22956         * doc/posix-functions/gethostname.texi: Likewise.
22957         * lib/unistd.in.h (gethostname): Update comment.
22958
22959 2010-12-19  Bruno Haible  <bruno@clisp.org>
22960
22961         doc: Mention vasprintf-posix module.
22962         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22963         the 'vasprintf-posix' module.
22964         * doc/glibc-functions/vasprintf.texi: Likewise.
22965
22966 2010-12-19  Bruno Haible  <bruno@clisp.org>
22967
22968         unsetenv: Add missing declaration on OSF/1 5.1.
22969         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22970         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22971         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22973         not HAVE_UNSETENV.
22974         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22975         HAVE_UNSETENV.
22976         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22977
22978 2010-12-19  Bruno Haible  <bruno@clisp.org>
22979
22980         setenv: Add missing declaration on OSF/1 5.1.
22981         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22982         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22983         declared. Don't set HAVE_SETENV.
22984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22985         not HAVE_SETENV.
22986         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22987         HAVE_SETENV.
22988         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22989
22990 2010-12-19  Bruno Haible  <bruno@clisp.org>
22991
22992         nl_langinfo tests: Avoid gcc warning.
22993         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22994
22995 2010-12-19  Bruno Haible  <bruno@clisp.org>
22996
22997         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22998         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22999         _GL_CXXALIAS_SYS.
23000
23001 2010-12-19  Bruno Haible  <bruno@clisp.org>
23002
23003         stdbool: Relax test.
23004         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23005         address to 'bool' work in static initializer, for compilers other than
23006         GCC.
23007
23008 2010-12-19  Bruno Haible  <bruno@clisp.org>
23009
23010         ftello: Add missing declaration on OSF/1 5.1.
23011         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23012         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23014         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23015         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23016
23017 2010-12-19  Bruno Haible  <bruno@clisp.org>
23018
23019         fseeko: Add missing declaration on OSF/1 5.1.
23020         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23023         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23024         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23025
23026 2010-12-19  Bruno Haible  <bruno@clisp.org>
23027
23028         fchdir: Add missing declaration on OSF/1 5.1.
23029         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23032         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23033         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23034
23035 2010-12-19  Bruno Haible  <bruno@clisp.org>
23036
23037         relocatable-prog-wrapper: Separate from relocatable-prog.
23038         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23039         uninstall-relocwrapper rule here.
23040         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23041         Reported by Ian Beckwith <ianb@erislabs.net>.
23042
23043 2010-12-19  Bruno Haible  <bruno@clisp.org>
23044
23045         unistr/u8-mbsnlen: Add missing dependency.
23046         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23047         Reported by Ian Beckwith <ianb@erislabs.net>.
23048
23049 2010-12-19  Bruno Haible  <bruno@clisp.org>
23050
23051         iconv: Make it possible again to use this module without 'iconv-h'.
23052         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23053         if it is not defined.
23054         Reported by Ian Beckwith <ianb@erislabs.net>.
23055
23056 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23057
23058         acl: port to Solaris 8 when copying from tmpfs to ufs
23059         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23060         error number.  Problem observed on Solaris 8 with latest
23061         coreutils, with "mv A B", where A is on a tmpfs file system and B
23062         is on a ufs file system.  This caused coreutils' mv/part-symlink
23063         test to fail.
23064
23065         tests: set fail=0 at start
23066         * tests/init.sh (setup_): Move fail=0 initialization here ...
23067         (mktempd_): ... from here, so that tests can rely on fail being
23068         set to 0 initially.  This fixes a problem in coreutils; see:
23069         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23070
23071 2010-12-18  Bruno Haible  <bruno@clisp.org>
23072
23073         memmem-simple: Stylistic changes.
23074         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23075         Fix preprocessor directive indentation.
23076
23077 2010-12-15  Pádraig Brady <P@draigBrady.com>
23078
23079         memmem, memmem-simple: reorganize and expand empty needle check
23080         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23081         functional checks to memmem-simple so that one has a fully functional
23082         memmem by using just this module.
23083         Restrict the performance only check to the memmem module.
23084         Also expand the empty needle check to ensure the correct
23085         pointer is returned, not just a non NULL pointer.
23086         * doc/glibc-functions/memmem.texi: Rearrange the portability
23087         documentation to correlate with the rearranged checks.
23088         Clarify exactly how the memmem and memmem-simple modules
23089         relate to each other.
23090
23091 2010-12-15  Pádraig Brady <P@draigBrady.com>
23092             Bruno Haible  <bruno@clisp.org>
23093
23094         Improve cross-compilation guesses for uClibc.
23095         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23096         that uClibc does not have the glibc bug.
23097         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23098         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23099
23100 2010-12-14  Eric Blake  <eblake@redhat.com>
23101
23102         configmake: provide fallbacks for oldest supported autotools
23103         * m4/configmake.m4: New file.
23104         * modules/configmake (Files): Ship it.
23105         (configure.ac): Use it to guarantee fallbacks.
23106
23107 2010-12-13  Pádraig Brady <P@draigBrady.com>
23108
23109         read-file: Improve handling of large files
23110         * lib/read-file.c (fread_file): Minimize realloc()s
23111         for regular files, and better manage sizes around SIZE_MAX.
23112
23113 2010-12-13  Eric Blake  <eblake@redhat.com>
23114
23115         cloexec, fcntl: relax license
23116         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23117         consent from all contributors.
23118         * modules/fcntl (License): Likewise.
23119
23120 2010-12-10  Bruno Haible  <bruno@clisp.org>
23121
23122         Tests for module 'pipe-posix'.
23123         * modules/pipe-posix-tests: New file.
23124         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23125
23126 2010-12-10  Bruno Haible  <bruno@clisp.org>
23127
23128         pipe-posix: Make it work in C++ mode.
23129         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23130         (pipe): Use common idiom, not a macro definition.
23131         * lib/pipe.c: New file.
23132         * m4/pipe.m4: New file.
23133         * modules/pipe-posix (Description): Enhance.
23134         (Files): Add lib/pipe.c, m4/pipe.m4.
23135         (configure.ac): Invoke gl_FUNC_PIPE.
23136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23137         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23138         * tests/test-unistd-c++.cc: Check the signature of pipe.
23139
23140 2010-12-10  Bruno Haible  <bruno@clisp.org>
23141
23142         Rename module 'pipe' to 'spawn-pipe'.
23143         * modules/spawn-pipe: New file, renamed from modules/pipe.
23144         (Files, configure.ac, Makefile.am): Update.
23145         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23146         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23147         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23148         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23149         "spawn-pipe.h" instead of "pipe.h".
23150         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23151         to gl_SPAWN_PIPE.
23152         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23153         (Files, Makefile.am): Update.
23154         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23155         Update.
23156         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23157         Include "spawn-pipe.h" instead of "pipe.h".
23158         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23159         * lib/javacomp.c: Likewise.
23160         * lib/javaversion.c: Likewise.
23161         * lib/pipe-filter-gi.c: Likewise.
23162         * lib/pipe-filter-ii.c: Likewise.
23163         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23164         * modules/javacomp (Depends-on): Likewise.
23165         * modules/javaversion (Depends-on): Likewise.
23166         * modules/pipe-filter-gi (Depends-on): Likewise.
23167         * modules/pipe-filter-ii (Depends-on): Likewise.
23168         * MODULES.html.sh (Executing programs): Update.
23169         * NEWS: Mention the change.
23170
23171 2010-12-10  Eric Blake  <eblake@redhat.com>
23172
23173         pipe-posix: new module
23174         * modules/pipe-posix: New file.
23175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23176         (gl_UNISTD_H): Check for declaration.
23177         * modules/unistd (Makefile.am): Substitute it.
23178         * lib/unistd.in.h (pipe): Provide it for mingw.
23179         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23180         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23181
23182 2010-12-07  Bruno Haible  <bruno@clisp.org>
23183
23184         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23185         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23186         u8_strcmp_gnu.
23187         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23188
23189 2010-12-06  Bruno Haible  <bruno@clisp.org>
23190
23191         Update internal documentation.
23192         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23193
23194 2010-12-04  Bruno Haible  <bruno@clisp.org>
23195
23196         Put more information about failed tests into the test return codes.
23197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23198         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23199         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23200         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23201         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23203         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23204         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23205         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23208         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23209         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23210         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23211         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23212         returns a bit mask.
23213         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23214         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23215         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23216         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23217         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23218         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23221         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23222         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23223         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23224         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23225         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23227         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23228         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23229         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23230         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23231         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23232         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23234         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23235         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23236         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23237         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23238         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23239         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23240         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23241         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23242         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23243         gl_PRINTF_PRECISION): Likewise.
23244         * m4/regex.m4 (gl_REGEX): Likewise.
23245         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23246         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23247         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23248         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23249         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23251         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23252         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23253         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23254         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23255         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23256         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23257         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23258         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23259         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23260         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23261         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23264         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23265         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23266         enumerated value.
23267         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23268
23269 2010-12-04  Bruno Haible  <bruno@clisp.org>
23270
23271         Update for Solaris 11 2010-11.
23272         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23273         Express, released in November 2010.
23274
23275 2010-12-04  Bruno Haible  <bruno@clisp.org>
23276
23277         nproc: Relax license.
23278         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23279         and Paul Eggert.
23280         Requested by Ludovic Courtès <ludo@gnu.org>.
23281
23282 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23283
23284         utimecmp: fine-grained src to nearby coarse-grained dest
23285
23286         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23287         and the source is on a file system with higher-resolution time
23288         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23289         not work, and the time stamps are close together, the algorithm to
23290         determine the exact resolution from the read-back mtime was buggy:
23291         it had a "!=" where it should have had an "==".  This bug has been
23292         in the code ever since it was introduced to gnulib.
23293         Problem reported by Dan Jacobson in
23294         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23295
23296 2010-11-30  Bruno Haible  <bruno@clisp.org>
23297
23298         strerror_r-posix: Fix autoconf test.
23299         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23300
23301 2010-11-28  Bruno Haible  <bruno@clisp.org>
23302             Paul Eggert  <eggert@cs.ucla.edu>
23303
23304         Tests for module 'getdomainname'.
23305         * modules/getdomainname-tests: New file.
23306         * tests/test-getdomainname.c: New file, based on
23307         tests/test-gethostname.c.
23308
23309 2010-11-28  Bruno Haible  <bruno@clisp.org>
23310             Paul Eggert  <eggert@cs.ucla.edu>
23311
23312         getdomainname: Use the system function when possible.
23313         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23314         (getdomainname): Replace if needed. Provide the declaration if it is
23315         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23316         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23317         (getdomainname): When the system has getdomainname, call the system
23318         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23319         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23320         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23321         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23322         the function if its second argument is of type 'int' or if it is found
23323         in libnsl.
23324         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23325         <sys/systeminfo.h> and sysinfo().
23326         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23328         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23329         HAVE_GETDOMAINNAME.
23330         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23331         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23332         * doc/glibc-functions/getdomainname.texi: Document the problems with
23333         the getdomainname declaration.
23334
23335 2010-11-28  Bruno Haible  <bruno@clisp.org>
23336
23337         sys_socket: Ensure ss_family field on AIX.
23338         * lib/sys_socket.in.h (ss_family): New macro definition.
23339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23340         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23341         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23342         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23343         * modules/sys_socket (Makefile.am): Substitute
23344         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23345         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23346
23347 2010-11-27  Bruno Haible  <bruno@clisp.org>
23348
23349         readline: Improve configure output.
23350         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23351         "checking for readline..." result understandable.
23352
23353 2010-11-27  Bruno Haible  <bruno@clisp.org>
23354
23355         *printf-posix: Detect a bug on Solaris 10/x86.
23356         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23357         for floating-point output.
23358         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23359         directive.
23360         * tests/test-snprintf-posix.h (test_function): Likewise.
23361         * tests/test-sprintf-posix.h (test_function): Likewise.
23362         * tests/test-vasprintf-posix.c (test_function): Likewise.
23363         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23364         * doc/posix-functions/printf.texi: Likewise.
23365         * doc/posix-functions/snprintf.texi: Likewise.
23366         * doc/posix-functions/sprintf.texi: Likewise.
23367         * doc/posix-functions/vfprintf.texi: Likewise.
23368         * doc/posix-functions/vprintf.texi: Likewise.
23369         * doc/posix-functions/vsnprintf.texi: Likewise.
23370         * doc/posix-functions/vsprintf.texi: Likewise.
23371         * doc/glibc-functions/obstack_printf.texi: Likewise.
23372         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23373
23374 2010-11-27  Bruno Haible  <bruno@clisp.org>
23375
23376         Fix link error when module libunistring-optional is in use.
23377         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23378         * modules/striconveha-tests (Makefile.am): Likewise.
23379
23380 2010-11-27  Bruno Haible  <bruno@clisp.org>
23381
23382         regex: Mention link dependencies.
23383         * modules/regex (Link): New section.
23384         * modules/rpmatch (Link): Likewise.
23385         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23386
23387 2010-11-27  Bruno Haible  <bruno@clisp.org>
23388
23389         ftoastr: Fix compilation error on Solaris.
23390         * lib/ftoastr.c: Include <config.h>.
23391
23392 2010-11-27  Bruno Haible  <bruno@clisp.org>
23393
23394         getloadavg: Update documentation.
23395         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23396
23397 2010-11-27  Bruno Haible  <bruno@clisp.org>
23398
23399         sys_socket: Fix test whether the functions are declared.
23400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23401         not <sys/select.h>.
23402
23403 2010-11-27  Bruno Haible  <bruno@clisp.org>
23404
23405         getpass: Make sure to get system declaration on some platforms.
23406         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23407         gl_USE_SYSTEM_EXTENSIONS.
23408         * modules/getpass (Depends-on): Add extensions.
23409
23410 2010-11-26  Bruno Haible  <bruno@clisp.org>
23411
23412         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23413         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23414         'iconv' module is present.
23415         (ICONV_CONST): New macro.
23416         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23417         ICONV_CONST.
23418         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23419         set ICONV_CONST.
23420         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23421         here.
23422         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23423         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23424         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23425         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23426         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23427         present.
23428
23429 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23430
23431         ftoastr: comment fix
23432         * lib/ftoastr.c: "little" -> "little or no" in comment
23433
23434 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23435
23436         stdint: port to GCC 4.3 + OSX + Octave
23437         On this platform, stdint.h is buggy and defines int64_t to long
23438         long int.  The replacement defined it to long int, causing
23439         problems with C++ style name mangling.  Instead, trust the system
23440         definition if INT64_MAX is defined, and likewise for the unsigned
23441         variant.   Problem reported by Jarno Rajahalme in
23442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23443         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23444         and don't mess with int64_t and INT64_MAX in this case.
23445         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23446
23447 2010-11-24  Bruno Haible  <bruno@clisp.org>
23448
23449         doc: Corrections regarding MacOS X 10.4 and 10.5.
23450         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23451         MacOS X.
23452         Reported by Simon Josefsson.
23453
23454 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23455
23456         Uninstall ".bin" files installed by relocwrapper.
23457         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23458         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23459         unless it is already there.
23460
23461 2010-11-21  Bruno Haible  <bruno@clisp.org>
23462
23463         Update for NetBSD 5.0.
23464         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23465         NetBSD; the test fails on NetBSD 5.0.
23466         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23467         about NetBSD.
23468
23469 2010-11-21  Bruno Haible  <bruno@clisp.org>
23470
23471         Update for HP-UX 11.23 and HP-UX 11.31.
23472         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23473         HP-UX.
23474
23475 2010-11-21  Bruno Haible  <bruno@clisp.org>
23476
23477         Update for MacOS X 10.5.
23478         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23479         MacOS X; the test fails on MacOS X 10.5.8.
23480         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23481         about MacOS X.
23482
23483 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23484
23485         bootstrap: add bootstrap_sync option.
23486         See discussion at
23487         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23488         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23489         * build-aux/bootstrap: Accept --bootstrap-sync to update
23490         bootstrap if it is not identical to the local gnulib's
23491         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23492         enable this by default.  Accept --no-bootstrap-sync to disable
23493         it.
23494
23495 2010-11-20  Bruno Haible  <bruno@clisp.org>
23496
23497         Ensure that <features.h> is included before __GLIBC__ is tested.
23498         * lib/printf-parse.h: Include <features.h>.
23499         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23500         Reported by Mike Frysinger <vapier@gentoo.org>.
23501
23502         Ensure that <features.h> is included before __GLIBC__ is tested.
23503         * lib/wchar.in.h: Include <features.h>.
23504         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23505         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23506         Reported by Mike Frysinger <vapier@gentoo.org>.
23507
23508         Ensure that <features.h> is included before __GLIBC__ is tested.
23509         * lib/arpa_inet.in.h: Include <features.h>.
23510         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23511         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23512         Reported by Mike Frysinger <vapier@gentoo.org>.
23513
23514         Ensure that <features.h> is included before __GLIBC__ is tested.
23515         * build-aux/link-warning.h: Include <features.h>.
23516         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23517         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23518         Reported by Mike Frysinger <vapier@gentoo.org>.
23519
23520         Ensure that <features.h> is included before __GLIBC__ is tested.
23521         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23522         Reported by Mike Frysinger <vapier@gentoo.org>.
23523
23524 2010-11-20  Bruno Haible  <bruno@clisp.org>
23525
23526         memmem: Fix autoconf test.
23527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23528
23529 2010-11-20  Bruno Haible  <bruno@clisp.org>
23530
23531         Port to uClibc.
23532         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23533         * lib/fcntl.in.h: Likewise.
23534         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23535         * lib/mbrtowc.c (mbrtowc): Likewise.
23536         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23537         * lib/strerror_r.c: Likewise.
23538         * lib/unistr/u8-strnlen.c: Likewise.
23539         * lib/vasnprintf.c (decimal_point_char): Likewise.
23540         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23541         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23542         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23543         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23544         * tests/test-sigaction.c (handler, main): Likewise.
23545         * lib/freading.h: Treat uClibc like a non-glibc platform.
23546         * lib/freading.c: Likewise.
23547         * lib/gettext.h: Likewise.
23548         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23549         Likewise.
23550         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23551         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23552         * lib/propername.c (proper_name_utf8): Likewise.
23553         * lib/spawn.in.h: Likewise.
23554         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23555         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23556         mem_cd_iconveh_internal): Likewise.
23557         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23558         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23559         strstr, strcasestr): Likewise.
23560         * lib/unicodeio.c (unicode_to_mb): Likewise.
23561         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23562         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23563         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23564         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23565         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23566         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23567         * lib/unistr/u8-stpncpy.c: Likewise.
23568         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23569         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23571         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23572         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23573         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23574         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23577         Likewise.
23578         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23579         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23580         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23583         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23584         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23585         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23586         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23587         * tests/test-striconveha.c (main): Likewise.
23588         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23589         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23590         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23591         * doc/posix-functions/getline.texi: Likewise.
23592         Reported by Mike Frysinger <vapier@gentoo.org>.
23593
23594 2010-11-20  Bruno Haible  <bruno@clisp.org>
23595
23596         nproc: Fix condition.
23597         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23598         HAVE_PTHREAD_AFFINITY_NP.
23599
23600 2010-11-20  Bruno Haible  <bruno@clisp.org>
23601
23602         Fix a comment.
23603         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23604
23605 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23606
23607         ftoastr: don't assume snprintf
23608         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23609         Implement a subset of snprintf here, by using sprintf safely.
23610         * modules/ftoastr (Depends-on): Remove snprintf.
23611
23612 2010-11-19  Jim Meyering  <meyering@redhat.com>
23613
23614         test-rename.h: fix compilation failure
23615         * tests/test-rename.h (test_rename): Add omitted "}".
23616
23617 2010-11-17  Jim Meyering  <meyering@redhat.com>
23618
23619         maint.mk: add a URL discussing the no-@acronym policy
23620         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23621
23622 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23623
23624         ftoastr: depend on snprintf, improve comments
23625         * lib/ftoastr.c: Also mention Loitsch's draft.
23626         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23627         needed in the current implementation, but it might simplify
23628         speeding up the code later.
23629         * modules/ftoastr: Depend on snprintf; this improves portability.
23630         Suggested by Bruno Haible in the same email.
23631
23632         ftoastr: port to hosts lacking strtof and strtold
23633         Problem reported by Bruno Haible in
23634         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23635         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23636         environment and strtold (and presumably strtof) are not available.
23637         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23638         (configure.ac): Require gl_C99_STRTOLD.
23639
23640 2010-11-18  Bruno Haible  <bruno@clisp.org>
23641
23642         c-strtold: Avoid link error on AIX 7.
23643         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23644         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23645         (gl_C_STRTOLD): Test whether strtold_l exists.
23646         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23647
23648 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23649
23650         intprops: new macro INT_BITS_STRLEN_BOUND
23651         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23652         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23653         not exposed.  Also, it uses a slightly tighter bound than before;
23654         though this makes no practical difference, we might as well be as
23655         tight as we easily can.
23656
23657         ftoastr: new module, for lossless conversion of floats to short strings
23658         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23659         * modules/ftoastr: New files.
23660
23661 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23662
23663         bootstrap: port to Solaris sed
23664         * build-aux/bootstrap (get_version): Port to Solaris sed.
23665         See Ralf Wildenhues's note in
23666         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23667
23668 2010-11-14  Jim Meyering  <meyering@redhat.com>
23669
23670         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23671         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23672         and move definition closer to sole use.
23673
23674 2010-11-13  Jim Meyering  <meyering@redhat.com>
23675
23676         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23677         Now we require at least autoconf-2.59, which means the work-around
23678         is no longer needed.
23679         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23680         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23681         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23682         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23683         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23684
23685 2010-11-13  Bruno Haible  <bruno@clisp.org>
23686
23687         rename, renameat: Avoid test failures at NFS mounted locations.
23688         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23689         functions.
23690         (test_rename): Use assert_nonexistent.
23691         * tests/test-rename.c: Include <dirent.h>.
23692         * tests/test-renameat.c: Likewise.
23693         Reported by Gary V. Vaughan <gary@gnu.org>.
23694
23695         rename, renameat: Document Linux bug with NFS
23696         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23697         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23698         * doc/posix-functions/renameat.texi: Likewise.
23699         Suggested by Eric Blake.
23700
23701 2010-11-13  Bruno Haible  <bruno@clisp.org>
23702
23703         rename test: Add comments.
23704         * tests/test-rename.h (test_rename): Add structure and comments.
23705
23706 2010-11-13  Eric Blake  <eblake@redhat.com>
23707
23708         maintainer-makefile: cover a few more files
23709         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23710         scripts generated within C files, for libvirt.
23711
23712 2010-11-13  Bruno Haible  <bruno@clisp.org>
23713
23714         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23715         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23716         character, return the number of bytes that belong together, not always
23717         1.
23718         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23719         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23720         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23721         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23722         number of bytes of an invalid character.
23723         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23724         (main): Invoke it.
23725         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23726         results.
23727         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23728         malformed byte sequences.
23729         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23730         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23731         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23732         Reported by Ben Pfaff and Paolo Bonzini.
23733
23734 2010-11-13  Bruno Haible  <bruno@clisp.org>
23735
23736         openat: Work around glibc bug with fchownat() and empty file names.
23737         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23738         (gl_FUNC_FCHOWNAT): Invoke it.
23739         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23740         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23741         Reported by Gary V. Vaughan <gary@gnu.org>.
23742
23743 2010-11-13  Bruno Haible  <bruno@clisp.org>
23744
23745         openat: Ensure autoconf macro ordering.
23746         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23747         gl_USE_SYSTEM_EXTENSIONS.
23748         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23749
23750 2010-11-13  Bruno Haible  <bruno@clisp.org>
23751
23752         Update comments.
23753         * lib/unistr/u8-check.c: Update file name in comments.
23754         * lib/unistr/u8-mblen.c: Likewise.
23755         * lib/unistr/u8-prev.c: Likewise.
23756         * lib/unistr/u8-strmblen.c: Likewise.
23757         * lib/unistr/u8-strmbtouc.c: Likewise.
23758
23759 2010-11-13  Jim Meyering  <meyering@redhat.com>
23760
23761         tests: avoid test failure on Solaris 10 due to lack of PATH export
23762         * tests/test-update-copyright.sh: Don't forget to export PATH.
23763
23764         init.sh: ensure that IFS is defined, just in case...
23765         * tests/init.sh (setup_): Ensure that IFS is defined,
23766         so that saving and restoring it works as expected.  This
23767         appears to be useful at least for an old version of dash
23768         from a long time ago (RH 6).  See here for details:
23769         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23770
23771         maint.mk: tighten "test a == b" check
23772         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23773         test to files that contain something like #!/bin/sh.
23774         Without this, coreutils would get two false positives in
23775         the comments of C source files.
23776
23777 2010-11-12  Eric Blake  <eblake@redhat.com>
23778
23779         bootstrap: fix typo in previous attempt
23780         * build-aux/bootstrap (buildreq): Correct the grouping.
23781         Reported by Paul Eggert.
23782
23783         maintainer-makefile: prohibit test x == x
23784         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23785         Based on a report by Matthias Bolte.
23786
23787         bootstrap: allow FreeBSD gzip
23788         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23789         which has no '.' and goes to stderr.
23790         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23791         Reported by Matthias Bolte.
23792
23793         maintainer-makefile: check for i18n setup
23794         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23795         will likely work.
23796
23797 2010-11-12  Bruno Haible  <bruno@clisp.org>
23798
23799         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23800         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23801         * lib/nanosleep.c (nanosleep): Likewise.
23802
23803 2010-11-11  Bruno Haible  <bruno@clisp.org>
23804
23805         fcntl-h: Fix for use of C++ on glibc systems.
23806         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23807         also on glibc systems in C++ mode.
23808         Reported by Gary V. Vaughan <gary@gnu.org>.
23809
23810 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23811
23812         mknod: avoid false failure with dash
23813         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23814
23815 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23816
23817         unlink: Fix "is it should" typo in diagnostic.
23818         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23819         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23820
23821 2010-11-11  Bruno Haible  <bruno@clisp.org>
23822
23823         Tests for module 'strerror_r-posix'.
23824         * modules/strerror_r-posix-tests: New file.
23825         * tests/test-strerror_r.c: New file.
23826         * tests/test-string-c++.cc: Check the signature of strerror_r.
23827
23828         New module 'strerror_r-posix'.
23829         * lib/string.in.h (strerror_r): New declaration.
23830         * lib/strerror_r.c: New file.
23831         * m4/strerror_r.m4: New file.
23832         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23833         of strerror_r.
23834         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23835         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23836         * modules/strerror_r-posix: New file.
23837         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23838         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23839         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23840         portability problems.
23841
23842 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23843
23844         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23845         line is also considered for output. Quoted function name in shell
23846         command, so temporary files for functions like MyClass::operator()
23847         are removed correctly without errors.
23848
23849 2010-11-09  Bruno Haible  <bruno@clisp.org>
23850
23851         * doc/posix-functions/strerror.texi: List more failing platforms.
23852
23853         * doc/posix-functions/strerror.texi: Add a comment.
23854
23855 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23856
23857         fdopendir: fix bug on MacOS X when low on file descriptors
23858
23859         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23860         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23861         All callers changed.
23862         (fdopendir): Invoke save_cwd at the top level, not after using
23863         multiple dup() calls to use up file descriptors.  Then retry
23864         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23865         less than the maximum number of open file descriptors, because
23866         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23867         on Mac OS X 10.6.4 for tar 1.24
23868         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23869         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23870         and for tar 1.25
23871         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23872
23873 2010-11-07  Bruno Haible  <bruno@clisp.org>
23874
23875         vasnprintf: Support I flag on glibc systems.
23876         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23877         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23878         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23879         snprintf function.
23880         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23881         glibc systems.
23882         * tests/test-vasnprintf-posix3.c: New file.
23883         * modules/vasnprintf-posix-tests (Files): Add it.
23884         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23885
23886 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23887
23888         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23889         * MODULES.html.sh: For compiler warnings, use name
23890         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23891
23892 2010-11-05  Eric Blake  <eblake@redhat.com>
23893
23894         ceil, floor: avoid spurious failure with icc
23895         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23896         [denormals-as-zero] when optimizing without -mieee-fp option.
23897         * tests/test-floorf2.c (floorf_reference): Likewise.
23898         * tests/test-ceilf1.c (dummy): New function.
23899         (main): Use it to outsmart icc's optimization.
23900         * tests/test-floorf1.c (dummy, main): Likewise.
23901
23902         tests: require working signbit
23903         * modules/ceilf-tests (Depends-on): Add signbit.
23904         * modules/ceill-tests (Depends-on): Likewise.
23905         * modules/floorf-tests (Depends-on): Likewise.
23906         * modules/floorl-tests (Depends-on): Likewise.
23907         * modules/round-tests (Depends-on): Likewise.
23908         * modules/roundf-tests (Depends-on): Likewise.
23909         * modules/roundl-tests (Depends-on): Likewise.
23910         * modules/trunc-tests (Depends-on): Likewise.
23911         * modules/truncf-tests (Depends-on): Likewise.
23912         * modules/truncl-tests (Depends-on): Likewise.
23913
23914         strtod: work around icc bug
23915         * lib/strtod.c (minus_zero): Define to working value.
23916         (strtod): Use it to avoid icc bug.
23917
23918         copysign: enhance tests
23919         * modules/copysign-tests (Files): Add minus-zero.h.
23920         * tests/test-copysign.c (main): Also test zeros.
23921
23922 2010-11-04  Eric Blake  <eblake@redhat.com>
23923
23924         ceil, floor, round, trunc: enhance tests of -0
23925         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23926         * tests/test-ceill.c (main): Likewise.
23927         * tests/test-floorf1.c (main): Likewise.
23928         * tests/test-floorl.c (main): Likewise.
23929         * tests/test-round1.c (main): Likewise.
23930         * tests/test-roundf1.c (main): Likewise.
23931         * tests/test-roundl.c (main): Likewise.
23932         * tests/test-trunc1.c (main): Likewise.
23933         * tests/test-truncf1.c (main): Likewise.
23934         * tests/test-truncl.c (main): Likewise.
23935
23936 2010-11-04  Eric Blake  <eblake@redhat.com>
23937
23938         frexp, tests: work around ICC bug with -zero
23939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23940         works with more compilers.
23941         * tests/minus-zero.h: New file.
23942         * modules/ceilf-tests (Files): Include it.
23943         * modules/ceill-tests (Files): Likewise.
23944         * modules/floorf-tests (Files): Likewise.
23945         * modules/floorl-tests (Files): Likewise.
23946         * modules/frexp-nolibm-tests (Files): Likewise.
23947         * modules/frexp-tests (Files): Likewise.
23948         * modules/frexpl-nolibm-tests (Files): Likewise.
23949         * modules/frexpl-tests (Files): Likewise.
23950         * modules/isnan-tests (Files): Likewise.
23951         * modules/isnand-nolibm-tests (Files): Likewise.
23952         * modules/isnand-tests (Files): Likewise.
23953         * modules/isnanf-nolibm-tests (Files): Likewise.
23954         * modules/isnanf-tests (Files): Likewise.
23955         * modules/isnanl-nolibm-tests (Files): Likewise.
23956         * modules/isnanl-tests (Files): Likewise.
23957         * modules/round-tests (Files): Likewise.
23958         * modules/roundf-tests (Files): Likewise.
23959         * modules/roundl-tests (Files): Likewise.
23960         * modules/ldexpl-tests (Files): Likewise.
23961         * modules/signbit-tests (Files): Likewise.
23962         * modules/snprintf-posix-tests (Files): Likewise.
23963         * modules/sprintf-posix-tests (Files): Likewise.
23964         * modules/strtod-tests (Files): Likewise.
23965         * modules/trunc-tests (Files): Likewise.
23966         * modules/truncf-tests (Files): Likewise.
23967         * modules/truncl-tests (Files): Likewise.
23968         * modules/vsnprintf-posix-tests (Files): Likewise.
23969         * modules/vsprintf-posix-tests (Files): Likewise.
23970         * modules/vasnprintf-posix-tests (Files): Likewise.
23971         * modules/vasprintf-posix-tests (Files): Likewise.
23972         * tests/test-ceilf1.c (main): Use it.
23973         * tests/test-ceill.c (main): Likewise.
23974         * tests/test-floorf1.c (main): Likewise.
23975         * tests/test-floorl.c (main): Likewise.
23976         * tests/test-frexp.c (main): Likewise.
23977         * tests/test-frexpl.c (main): Likewise.
23978         * tests/test-isnan.c (main): Likewise.
23979         * tests/test-isnand.h (main): Likewise.
23980         * tests/test-isnanf.h (main): Likewise.
23981         * tests/test-isnanl.h (main): Likewise.
23982         * tests/test-ldexpl.c (main): Likewise.
23983         * tests/test-round.c (main): Likewise.
23984         * tests/test-roundf.c (main): Likewise.
23985         * tests/test-roundl.c (main): Likewise.
23986         * tests/test-signbit.c (test_signbitf, test_signbitd)
23987         (test_signbitl): Likewise.
23988         * tests/test-snprintf-posix.h (test_function): Likewise.
23989         * tests/test-sprintf-posix.h (test_function): Likewise.
23990         * tests/test-strtod.c (main): Likewise.
23991         * tests/test-trunc1.c (main): Likewise.
23992         * tests/test-truncf1.c (main): Likewise.
23993         * tests/test-truncl.c (main): Likewise.
23994
23995         isnanl: work around icc bug
23996         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23997
23998 2010-11-03  Eric Blake  <eblake@redhat.com>
23999
24000         tests: fix compiler warnings
24001         * tests/test-getopt.h (test_getopt): Fix condition.
24002         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24003         * tests/test-pipe2.c (main): Likewise.
24004         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24005
24006         utimens: fix broken m4 test
24007         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24008
24009 2010-10-28  Bruno Haible  <bruno@clisp.org>
24010
24011         posix_spawn*, getdtablesize: Relax license.
24012         * modules/posix_spawn (License): Change to LGPLv2+.
24013         * modules/posix_spawnp (License): Likewise.
24014         * modules/posix_spawn-internal (License): Likewise.
24015         * modules/posix_spawnattr_init (License): Likewise.
24016         * modules/posix_spawnattr_getflags (License): Likewise.
24017         * modules/posix_spawnattr_setflags (License): Likewise.
24018         * modules/posix_spawnattr_getpgroup (License): Likewise.
24019         * modules/posix_spawnattr_setpgroup (License): Likewise.
24020         * modules/posix_spawnattr_getschedparam (License): Likewise.
24021         * modules/posix_spawnattr_setschedparam (License): Likewise.
24022         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24023         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24024         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24025         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24026         * modules/posix_spawnattr_getsigmask (License): Likewise.
24027         * modules/posix_spawnattr_setsigmask (License): Likewise.
24028         * modules/posix_spawnattr_destroy (License): Likewise.
24029         * modules/posix_spawn_file_actions_init (License): Likewise.
24030         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24031         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24032         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24033         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24034         * modules/getdtablesize (License): Likewise.
24035         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24036
24037 2010-10-26  Bruno Haible  <bruno@clisp.org>
24038
24039         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24040         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24041         Cygwin and mingw.
24042         Suggested by Eric Blake.
24043
24044 2010-10-26  Bruno Haible  <bruno@clisp.org>
24045
24046         stdio: Work around compilation error due to renameat() on Solaris 10.
24047         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24048         * lib/renameat.c: Don't include <unistd.h> here.
24049         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24050         Reported by Paul Eggert and Eric Blake.
24051
24052 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24053
24054         renameat: port to Solaris 10, which declares renameat in unistd.h
24055
24056         * lib/renameat.c: Include unistd.h before stdio.h, because
24057         Solaris 10 declares renameat in unistd.h.  Problem encountered
24058         when building GNU tar 1.24 on Solaris 10.
24059
24060 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24061
24062         fdopendir: fix C89 compilation
24063         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24064         compilers.
24065
24066 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24067
24068         inttostr: simplify by removing unnecessary redundancy
24069         * lib/anytostr.c: Don't include verify.h.
24070         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24071         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24072         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24073         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24074         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24075         Likewise.
24076         * modules/inttostr (Depends-on): Remove 'verify'.
24077
24078 2010-10-23  Bruno Haible  <bruno@clisp.org>
24079
24080         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24081         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24082         Reported by Eric Blake.
24083
24084 2010-10-23  Bruno Haible  <bruno@clisp.org>
24085
24086         Tests: Fix LOCALE_JA on MirBSD 10.
24087         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24088         to an UTF-8 locale.
24089         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24091         Reported by Eric Blake.
24092
24093 2010-10-21  Bruno Haible  <bruno@clisp.org>
24094
24095         nl_langinfo test: Avoid test failure on NetBSD 5.
24096         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24097         Reported by Eric Blake.
24098
24099 2010-10-21  Eric Blake  <eblake@redhat.com>
24100
24101         c-stack: work around libsigsegv 2.8 bug
24102         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24103         overflow on at least PowerPC64.
24104
24105 2010-10-17  Bruno Haible  <bruno@clisp.org>
24106
24107         userspec: Drop redundant file.
24108         * modules/userspec (Files): Remove lib/inttostr.h.
24109
24110 2010-10-17  Bruno Haible  <bruno@clisp.org>
24111
24112         nl_langinfo tests: Silence some warnings.
24113         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24114         Reported by Jim Meyering.
24115
24116 2010-10-17  Bruno Haible  <bruno@clisp.org>
24117
24118         Make use of GCC's attribute __alloc_size__.
24119         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24120         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24121         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24122         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24123         __alloc_size__.
24124         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24125         Suggested by Jim Meyering.
24126
24127 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24128
24129         bootstrap: anchor .gitignore entries.
24130         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24131         with...
24132         (insert_vc_ignore): ... this new function, which prepends `/' to
24133         all .gitignore entries before passing them to
24134         insert_sorted_if_absent.
24135
24136 2010-10-16  Bruno Haible  <bruno@clisp.org>
24137
24138         nextafter: Fix configure check.
24139         * modules/nextafter (configure.ac): Correct expected prototype.
24140
24141 2010-10-16  Bruno Haible  <bruno@clisp.org>
24142
24143         termios: Update documentation.
24144         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24145
24146 2010-10-16  Bruno Haible  <bruno@clisp.org>
24147
24148         tests: Make them compile with TinyCC.
24149         * tests/test-strstr.c (main): Remove parentheses around array
24150         initializer.
24151
24152 2010-10-15  Eric Blake  <eblake@redhat.com>
24153
24154         ignore-value: make header idempotent
24155         * lib/ignore-value.h: Add double-inclusion guards.
24156         Reported by Stefan Berger.
24157
24158 2010-10-15  Jim Meyering  <meyering@redhat.com>
24159
24160         GNUmakefile: handle "stable" target, not "major"
24161         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24162         lists in maint.mk and announce-gen.  Without this, "make stable"
24163         would fail to ensure that $(VERSION) is up to date.
24164
24165 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24166
24167         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24168         & co.
24169
24170 2010-10-14  Bruno Haible  <bruno@clisp.org>
24171
24172         vasnprintf: Don't set errno to 0.
24173         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24174         block that sets it to 0.
24175         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24176
24177 2010-10-14  Bruno Haible  <bruno@clisp.org>
24178
24179         socketlib: Fix.
24180         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24181         gl_PREREQ_SYS_H_WINSOCK2.
24182         Reported by Ian Beckwith <ianb@erislabs.net>.
24183
24184 2010-10-13  Jim Meyering  <meyering@redhat.com>
24185
24186         test-select-stdin.c: avoid warn_unused_result warnings
24187         * tests/test-select-stdin.c: Include "macros.h".
24188         ASSERT that read and fflush succeed.
24189
24190 2010-10-13  Jim Meyering  <meyering@redhat.com>
24191
24192         git-version-gen: do require git-VC'd files in cwd
24193         * build-aux/git-version-gen: Reject a git version string
24194         if there are no commits associated with the current directory.
24195         This avoids an unlikely false-positive (unrelated dir whose parent
24196         repository also contains a tag matching v*), as pointed out
24197         by Giuseppe Scrivano in
24198         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24199
24200 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24201
24202         argv-iter: omit nonconforming declaration
24203         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24204         enum arg_iter_err declaration, which doesn't conform to C99.
24205         Solaris 10 cc warns about this.
24206
24207 2010-10-13  Eric Blake  <eblake@redhat.com>
24208
24209         termios: fix compilation on mingw
24210         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24211         (gl_TERMIOS_H): Adjust it on mingw.
24212         * modules/termios (Makefile.am): Substitute new key.
24213         * lib/termios.in.h (includes): Make include_next conditional.
24214         * doc/posix-headers/termios.texi (termios.h): Update
24215         documentation.
24216         Reported by Daniel P. Berrange.
24217
24218 2010-10-13  Jim Meyering  <meyering@redhat.com>
24219
24220         git-version-gen: don't require that .git/ be in the current dir
24221         * build-aux/git-version-gen: Adjust this script so that it works
24222         when run from any working directory beneath the top-level .git/-
24223         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24224         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24225
24226         test-select: avoid warn_unused_result warnings
24227         * tests/test-select.c: Include "macros.h".
24228         ASSERT that each call to read, write, and pipe succeeds.
24229         While not technically required, also check each "close".
24230         * modules/select-tests (Files): Add tests/macros.h.
24231
24232         test-symlinkat: remove declaration of unused local
24233         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24234
24235         test-inttostr: avoid shadowing warnings
24236         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24237         and use malloc rather than the stack for the same reason as
24238         mentioned in the comment justifying the other allocation.
24239
24240 2010-10-11  Bruno Haible  <bruno@clisp.org>
24241
24242         stdlib: Allow multiple gnulib generated replacements to coexist.
24243         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24244         Reported by Sam Steingold <sds@gnu.org>.
24245
24246 2010-10-11  Jim Meyering  <meyering@redhat.com>
24247
24248         fix a documentation typo
24249         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24250
24251 2010-10-11  Eric Blake  <eblake@redhat.com>
24252
24253         futimens: work around Solaris 11 bug
24254         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24255         * tests/test-futimens.h (test_futimens): Enhance, rather than
24256         weaken test.
24257         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24258
24259 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24260
24261         Indentation.
24262         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24263         higher-level operators more to the left.
24264
24265 2010-10-11  Jim Meyering  <meyering@redhat.com>
24266
24267         test-futimens: avoid unwarranted test failure on Solaris 5.11
24268         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24269         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24270         because it tries to dereference the NULL name argument.
24271
24272 2010-10-11  Bruno Haible  <bruno@clisp.org>
24273
24274         Indentation.
24275         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24276         indentation.
24277
24278 2010-10-11  Jim Meyering  <meyering@redhat.com>
24279
24280         spawn.in.h: make indentation consistent with parentheses
24281         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24282         Make indentation consistent with parentheses.
24283
24284 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24285
24286         Fix mismatched parens in previous commit
24287         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24288         parens.
24289
24290 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24291
24292         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24293
24294         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24295         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24296         * lib/malloca.c: Include "verify.h".
24297         (verify1): Remove, replacing with a verify call.
24298         * lib/relocwrapper.c (verify1): Likewise.
24299         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24300         Likewise.
24301         * modules/malloca (Depends-on): Add 'verify'.
24302         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24303         * modules/vasnprintf (Depends-on): Add 'verify'.
24304         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24305         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24306         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24307         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24309         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24310         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24311
24312         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24313
24314         Formerly the style was sometimes 2*X - 1, because the C standard
24315         was wrongly thought to disallow ?: in integral constant expressions.
24316         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24317         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24318         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24319         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24320         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24321         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24322         verify that time_t cannot be floating.
24323
24324 2010-10-08  Eric Blake  <eblake@redhat.com>
24325
24326         time: enforce recent POSIX ruling that time_t is integral
24327         * lib/time.in.h (__time_t_must_be_integral): Detect any
24328         problematic systems, allowing the rest of gnulib to assume POSIX.
24329
24330 2010-10-08  Jim Meyering  <meyering@redhat.com>
24331
24332         fdopendir: fix a bug on systems lacking openat and /proc support
24333         OpenBSD 4.7 is one such system.  The most noticeable effect was
24334         failure of any application making nontrivial use of fts: rm, du,
24335         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24336           ./rm: traversal failed: `a': Bad file descriptor
24337         Debugging that, you see that even though FD 6 was closed just
24338         prior to the opendir call in fd_clone_opendir, its resulting
24339         dir->dd_fd was 8, rather than the expected value of 6:
24340
24341         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24342         93                close (fd);
24343         (gdb) n
24344         94                dir = fd_clone_opendir (dupfd);
24345         (gdb) n
24346         95                saved_errno = errno;
24347         (gdb) p dir->dd_fd
24348         $11 = 8
24349
24350         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24351         The problem is that on OpenBSD, fd_clone_opendir has to resort
24352         to using the old-style save/restore CWD mechanism, due to its
24353         lack of openat/proc support, and *that* would steal the FD (6)
24354         that opendir was supposed to use.
24355
24356         The fix is to squirrel away the desired FD so that save_cwd uses a
24357         different one, and then free the dest FD right before calling opendir.
24358         That guarantees opendir will use the required file descriptor.
24359
24360         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24361
24362 2010-10-08  Bruno Haible  <bruno@clisp.org>
24363
24364         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24365         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24366
24367 2010-10-08  Bruno Haible  <bruno@clisp.org>
24368
24369         nanosleep: Make replacement POSIX compliant.
24370         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24371         is out of range.
24372         Reported by Jim Meyering.
24373
24374 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24375
24376         bootstrap: add hook for altering gnulib.mk, for Bison
24377         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24378         the Bison bootstrapping process can rewrite file names and variables
24379         in this file before later parts of 'bootstrap' use the file.
24380         Bison wants to include lib/gnulib.mk from the top-level makefile,
24381         so it needs the file names in this file to be relative to the top
24382         level, not relative to lib; plus it needs variable names to be
24383         rewritten.
24384         (slurp): Use the new function.
24385
24386         bootstrap: reformat for readability
24387         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24388
24389 2010-10-08  Eric Blake  <eblake@redhat.com>
24390
24391         docs: update cygwin progress
24392         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24393         1.7.7.
24394         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24395         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24396         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24397         * doc/posix-functions/carg.texi (carg): Likewise.
24398         * doc/posix-functions/cargf.texi (cargf): Likewise.
24399         * doc/posix-functions/casin.texi (casin): Likewise.
24400         * doc/posix-functions/casinf.texi (casinf): Likewise.
24401         * doc/posix-functions/casinh.texi (casinh): Likewise.
24402         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24403         * doc/posix-functions/catan.texi (catan): Likewise.
24404         * doc/posix-functions/catanf.texi (catanf): Likewise.
24405         * doc/posix-functions/catanh.texi (catanh): Likewise.
24406         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24407         * doc/posix-functions/ccos.texi (ccos): Likewise.
24408         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24409         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24410         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24411         * doc/posix-functions/cexp.texi (cexp): Likewise.
24412         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24413         * doc/posix-functions/cimag.texi (cimag): Likewise.
24414         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24415         * doc/posix-functions/clog.texi (clog): Likewise.
24416         * doc/posix-functions/clogf.texi (clogf): Likewise.
24417         * doc/posix-functions/conj.texi (conj): Likewise.
24418         * doc/posix-functions/conjf.texi (conjf): Likewise.
24419         * doc/posix-functions/cpow.texi (cpow): Likewise.
24420         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24421         * doc/posix-functions/cproj.texi (cproj): Likewise.
24422         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24423         * doc/posix-functions/creal.texi (creal): Likewise.
24424         * doc/posix-functions/crealf.texi (crealf): Likewise.
24425         * doc/posix-functions/csin.texi (csin): Likewise.
24426         * doc/posix-functions/csinf.texi (csinf): Likewise.
24427         * doc/posix-functions/csinh.texi (csinh): Likewise.
24428         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24429         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24430         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24431         * doc/posix-functions/ctan.texi (ctan): Likewise.
24432         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24433         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24434         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24435         * doc/posix-headers/complex.texi (complex.h): Likewise.
24436
24437 2010-10-07  Jim Meyering  <meyering@redhat.com>
24438
24439         parse-datetime: avoid compilation failure on OpenBSD 4.7
24440         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24441         This works around a compilation failure on OpenBSD 4.7:
24442         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24443
24444 2010-10-07  Eric Blake  <eblake@redhat.com>
24445
24446         docs: update cygwin progress
24447         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24448         1.7.6.
24449         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24450         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24451         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24452         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24453         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24454         Likewise.
24455         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24456         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24457         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24458         Likewise.
24459         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24460         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24461         Likewise.
24462         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24463         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24464         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24465         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24466         Likewise.
24467         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24468         Likewise.
24469         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24470
24471         docs: update parse-datetime history
24472         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24473         documentation of this function's history and alternatives.
24474
24475         cygwin: use more robust version check
24476         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24477         exclude an eventual cygwin 1.9.1.
24478         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24480         (gl_FUNC_STRCASESTR): Likewise.
24481         Reported by Bruno Haible.
24482
24483 2010-10-06  Bruno Haible  <bruno@clisp.org>
24484
24485         string, sys_select: Avoid #including large headers unless necessary.
24486         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24487         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24488         OSF/1, BeOS, Haiku.
24489         Reported by Jim Meyering.
24490
24491 2010-10-05  Eric Blake  <eblake@redhat.com>
24492
24493         memmem, strstr, strcasestr: fix bug with long periodic needle
24494         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24495         periodic needle having false positive.
24496         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24497         and cygwin 1.7.7.
24498         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24500         (gl_FUNC_STRCASESTR): Likewise.
24501         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24502         * tests/test-memmem.c (main): Expose the bug.
24503         * tests/test-strcasestr.c (main): Likewise.
24504         * tests/test-strstr.c (main): Likewise.
24505         * tests/test-c-strcasestr.c (main): Likewise.
24506         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24507         * doc/posix-functions/strstr.texi (strstr): Likewise.
24508         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24509         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24510
24511 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24512
24513         parse-datetime: do some more renaming
24514         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24515         parse_datetime, not get_date.  Mention the renaming.
24516         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24517         in comments.
24518         * m4/bison.m4: Likewise.
24519
24520 2010-10-05  Eric Blake  <eblake@redhat.com>
24521
24522         parse-datetime: better name than get_date
24523         * NEWS: Reword the deprecation notice.
24524         * modules/get_date: Rename to modules/parse-datetime.
24525         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24526         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24527         * lib/get_date.y: Rename to lib/parse-datetime.y.
24528         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24529         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24530         * doc/getdate.texi: Provide fallback wrapper.
24531         * lib/getdate.h: Move guts, and wrap...
24532         * lib/parse-datetime.h: ...new file.
24533         * lib/parse-datetime.y (get_date): Rename...
24534         (parse_datetime): ...to this.
24535         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24536         (gl_PARSE_DATETIME): ...to this.
24537         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24538         documentation.
24539         * modules/getdate (Files): Provide fallback docs and header.
24540         (Notice, Depends-on): Update references.
24541         * tests/test-parse-datetime.c: Likewise.
24542         * DEPENDENCIES: Likewise.
24543         * MODULES.html.sh (Date and time <time.h>): Likewise.
24544         * doc/parse-datetime.texi (Date input formats)
24545         (Authors of parse_datetime): Likewise.
24546         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24547         (Include): Likewise.
24548         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24549         * gnulib-tool: Likewise.
24550         * m4/bison.m4 (gl_BISON): Likewise.
24551         Suggested by Bruno Haible.
24552
24553 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24554
24555         more ports to Solaris tr, which needs [] around ranges
24556         * gnulib-tool: Solaris tr needs [] around ranges.
24557         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24558         * tests/test-pipe-filter-gi1.c (main): Likewise.
24559         * tests/test-pipe-filter-ii1.c (main): Likewise.
24560
24561 2010-10-05  Eric Blake  <eblake@redhat.com>
24562
24563         bootstrap: fix Solaris regression
24564         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24565         around ranges.
24566         Reported by Pádraig Brady.
24567
24568         bootstrap: work with pkg-config
24569         * build-aux/bootstrap (check_versions): Also transliterate - in
24570         prerequisite name.
24571         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24572         prerequisites that were already found, to avoid confusion.
24573         Reported by Justin Clift.
24574
24575         faccessat: remove unused wrappers
24576         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24577         presence of these wrappers dragged in -lgen on Solaris.
24578         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24579
24580 2010-10-05  Jim Meyering  <meyering@redhat.com>
24581
24582         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24583         * Makefile (sc_pragma_columns): New syntax-check rule.
24584
24585 2010-10-04  Bruno Haible  <bruno@clisp.org>
24586
24587         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24588         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24589         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24590         Reported by Bruce Korb and Eric Blake.
24591
24592 2010-10-04  Bruno Haible  <bruno@clisp.org>
24593
24594         threadlib: Make option --with-libpth-prefix work.
24595         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24596         use $LIBPTH, not just -lpth.
24597
24598 2010-10-04  Bruno Haible  <bruno@clisp.org>
24599
24600         Avoid line length limitation from HP NonStop system header files.
24601         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24602         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24603         * lib/ctype.in.h: Likewise.
24604         * lib/dirent.in.h: Likewise.
24605         * lib/errno.in.h: Likewise.
24606         * lib/fcntl.in.h: Likewise.
24607         * lib/float.in.h: Likewise.
24608         * lib/getopt.in.h: Likewise.
24609         * lib/iconv.in.h: Likewise.
24610         * lib/inttypes.in.h: Likewise.
24611         * lib/langinfo.in.h: Likewise.
24612         * lib/locale.in.h: Likewise.
24613         * lib/math.in.h: Likewise.
24614         * lib/netdb.in.h: Likewise.
24615         * lib/netinet_in.in.h: Likewise.
24616         * lib/poll.in.h: Likewise.
24617         * lib/pthread.in.h: Likewise.
24618         * lib/pty.in.h: Likewise.
24619         * lib/sched.in.h: Likewise.
24620         * lib/se-selinux.in.h: Likewise.
24621         * lib/search.in.h: Likewise.
24622         * lib/signal.in.h: Likewise.
24623         * lib/spawn.in.h: Likewise.
24624         * lib/stdarg.in.h: Likewise.
24625         * lib/stddef.in.h: Likewise.
24626         * lib/stdint.in.h: Likewise.
24627         * lib/stdio.in.h: Likewise.
24628         * lib/stdlib.in.h: Likewise.
24629         * lib/string.in.h: Likewise.
24630         * lib/strings.in.h: Likewise.
24631         * lib/sys_file.in.h: Likewise.
24632         * lib/sys_ioctl.in.h: Likewise.
24633         * lib/sys_select.in.h: Likewise.
24634         * lib/sys_socket.in.h: Likewise.
24635         * lib/sys_stat.in.h: Likewise.
24636         * lib/sys_time.in.h: Likewise.
24637         * lib/sys_times.in.h: Likewise.
24638         * lib/sys_utsname.in.h: Likewise.
24639         * lib/sys_wait.in.h: Likewise.
24640         * lib/sysexits.in.h: Likewise.
24641         * lib/termios.in.h: Likewise.
24642         * lib/time.in.h: Likewise.
24643         * lib/unistd.in.h: Likewise.
24644         * lib/wchar.in.h: Likewise.
24645         * lib/wctype.in.h: Likewise.
24646         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24647         * modules/ctype (Makefile.am): Likewise.
24648         * modules/dirent (Makefile.am): Likewise.
24649         * modules/errno (Makefile.am): Likewise.
24650         * modules/fcntl-h (Makefile.am): Likewise.
24651         * modules/float (Makefile.am): Likewise.
24652         * modules/getopt-posix (Makefile.am): Likewise.
24653         * modules/iconv-h (Makefile.am): Likewise.
24654         * modules/inttypes (Makefile.am): Likewise.
24655         * modules/langinfo (Makefile.am): Likewise.
24656         * modules/locale (Makefile.am): Likewise.
24657         * modules/math (Makefile.am): Likewise.
24658         * modules/netdb (Makefile.am): Likewise.
24659         * modules/netinet_in (Makefile.am): Likewise.
24660         * modules/poll-h (Makefile.am): Likewise.
24661         * modules/pthread (Makefile.am): Likewise.
24662         * modules/pty (Makefile.am): Likewise.
24663         * modules/sched (Makefile.am): Likewise.
24664         * modules/search (Makefile.am): Likewise.
24665         * modules/selinux-h (Makefile.am): Likewise.
24666         * modules/signal (Makefile.am): Likewise.
24667         * modules/spawn (Makefile.am): Likewise.
24668         * modules/stdarg (Makefile.am): Likewise.
24669         * modules/stddef (Makefile.am): Likewise.
24670         * modules/stdint (Makefile.am): Likewise.
24671         * modules/stdio (Makefile.am): Likewise.
24672         * modules/stdlib (Makefile.am): Likewise.
24673         * modules/string (Makefile.am): Likewise.
24674         * modules/strings (Makefile.am): Likewise.
24675         * modules/sys_file (Makefile.am): Likewise.
24676         * modules/sys_ioctl (Makefile.am): Likewise.
24677         * modules/sys_select (Makefile.am): Likewise.
24678         * modules/sys_socket (Makefile.am): Likewise.
24679         * modules/sys_stat (Makefile.am): Likewise.
24680         * modules/sys_time (Makefile.am): Likewise.
24681         * modules/sys_times (Makefile.am): Likewise.
24682         * modules/sys_utsname (Makefile.am): Likewise.
24683         * modules/sys_wait (Makefile.am): Likewise.
24684         * modules/sysexits (Makefile.am): Likewise.
24685         * modules/termios (Makefile.am): Likewise.
24686         * modules/time (Makefile.am): Likewise.
24687         * modules/unistd (Makefile.am): Likewise.
24688         * modules/wchar (Makefile.am): Likewise.
24689         * modules/wctype (Makefile.am): Likewise.
24690
24691 2010-10-04  Bruno Haible  <bruno@clisp.org>
24692
24693         read-file tests: Avoid a test failure on NonStop Kernel.
24694         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24695         a regular file.
24696         Reported by Joachim Schmitz <schmitz@hp.com>.
24697
24698 2010-10-03  Bruno Haible  <bruno@clisp.org>
24699
24700         gnulib-tool: Fixes for --create-testdir with --libtool.
24701         * gnulib-tool (func_get_automake_snippet): Don't augment
24702         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24703         an executable.
24704         (func_create_testdir): Handle module 'alloca' like func_import.
24705         Reported by Bruce Korb <bruce.korb@gmail.com>.
24706
24707 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         Avoid some lines longer than 80 characters.
24710         * lib/stdint.in.h: Break long comment lines.
24711         * lib/math.in.h: Likewise.
24712         (_GL_NUM_UINT_WORDS): New macro, for readability.
24713         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24714         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24715         * lib/stdlib.in.h: Likewise.
24716         * lib/spawn.in.h: Likewise.
24717         * lib/sys_socket.in.h: Update an URL.
24718         * lib/sys_stat.in.h: Break long line.
24719
24720 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24721
24722         Improve pmccabe2html.
24723         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24724         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24725         when the sources change. Remove the line in the HTML about "Used
24726         ranges" (which implied that there might be other unused ranges),
24727         rename "Resume" to "Summary" (easier to understand for more users).
24728         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24729         styles, and some unnecessary blank lines.
24730
24731 2010-10-03  Bruno Haible  <bruno@clisp.org>
24732             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24733
24734         acl: Add support for ACLs on NonStop Kernel.
24735         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24736         Check whether the function aclsort() exists.
24737         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24738         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24739         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24740         (acl_nontrivial [HAVE_ACLSORT]: New function.
24741         (file_has_acl): Implement for NonStop Kernel.
24742         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24743         (qset_acl): Implement for NonStop Kernel.
24744         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24745         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24746         (main): Implement for NonStop Kernel.
24747         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24748         Kernel. Handle this flavor.
24749         * tests/test-set-mode-acl.sh: Likewise.
24750         * tests/test-copy-acl.sh: Likewise.
24751         * tests/test-copy-file.sh: Likewise.
24752
24753 2010-10-03  Bruno Haible  <bruno@clisp.org>
24754
24755         Info about ACLs on NonStop Kernel.
24756         * doc/acl-resources.txt: Add info about NonStop Kernel.
24757         References by Joachim Schmitz <schmitz@hp.com>.
24758
24759 2010-10-02  Bruno Haible  <bruno@clisp.org>
24760
24761         Define missing EDQUOT on NonStop Kernel.
24762         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24763         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24765         missing.
24766         * doc/posix-headers/errno.texi: Mention the NSK bug.
24767         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24768         Reported by Joachim Schmitz <schmitz@hp.com>.
24769
24770 2010-10-02  Bruno Haible  <bruno@clisp.org>
24771
24772         Update doc for POSIX:2008.
24773         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24774         Update URL of POSIX specification.
24775
24776 2010-10-02  Bruno Haible  <bruno@clisp.org>
24777
24778         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24779         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24780         from gnulib, not from Automake.
24781
24782 2010-10-02  Bruno Haible  <bruno@clisp.org>
24783
24784         New module 'system-posix'.
24785         * modules/system-posix: New file.
24786         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24787         module is present.
24788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24789         GNULIB_SYSTEM_POSIX.
24790         * modules/stdlib (Depends-on): Remove sys_wait.
24791         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24792         * doc/posix-functions/system.texi: Mention the new module.
24793         * doc/posix-headers/stdlib.texi: Likewise.
24794         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24795         define test_sys_wait_macros to a no-op.
24796         Reported by Sam Steingold <sds@gnu.org>.
24797
24798 2010-09-30  Bruno Haible  <bruno@clisp.org>
24799
24800         More renaming from 'getdate' to 'get_date'.
24801         * doc/get_date.texi: Renamed from doc/getdate.texi.
24802         * modules/get_date (Files): Update.
24803         * MODULES.html.sh (Date and time <time.h>): Update.
24804         * DEPENDENCIES: Update.
24805         * gnulib-tool: Update comment.
24806         * m4/bison.m4 (gl_BISON): Likewise.
24807         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24808
24809 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24810
24811         bootstrap: support ACLOCAL_FLAGS during aclocal
24812         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24813         can add additional -I dir for third-party .m4 files.
24814
24815 2010-09-30  Eric Blake  <eblake@redhat.com>
24816
24817         bootstrap: use glibtoolize on MacOS
24818         * build-aux/bootstrap (check_versions): Convert libtool into
24819         libtoolize.
24820         (tool search): Move libtool check earlier, and look for
24821         glibtoolize for MacOS.
24822         (gnulib_tool_options): Auto-add --libtool when appropriate.
24823         Reported by Justin Clift.
24824
24825         poll: fix typo that broke test on MacOS
24826         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24827         Reported by Justin Clift.
24828
24829         getdate: rename to get_date
24830         Note: getdate.h is not renamed, to minimize client impact.
24831         * modules/getdate: Mark obsolete.  Move old contents...
24832         * modules/get_date: ...to new module name.
24833         * modules/getdate-tests: Move...
24834         * modules/get_date-tests: ...here.
24835         * m4/getdate.m4: Move...
24836         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24837         * lib/getdate.y: Move...
24838         * lib/get_date.y: ...here.
24839         * tests/test-getdate.c: Move...
24840         * tests/test-get_date.c: ...here.
24841         * doc/posix-functions/getdate.texi (getdate): Update name.
24842         * NEWS: Mention the change.
24843
24844 2010-09-29  Bruno Haible  <bruno@clisp.org>
24845
24846         Separate the module 'waitpid' from the module 'sys_wait'.
24847         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24848         present.
24849         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24850         gl_MODULE_INDICATOR_FOR_TESTS.
24851         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24852         * modules/sys_wait (Depends-on): Remove waitpid.
24853         (Makefile.am): Substitute GNULIB_WAITPID.
24854         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24855         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24856         signature only if the 'waitpid' module is present.
24857         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24858         * NEWS: Mention the change.
24859         * modules/grantpt (Depends-on): Add waitpid.
24860         * modules/wait-process (Depends-on): Likewise.
24861
24862 2010-09-29  Bruno Haible  <bruno@clisp.org>
24863
24864         More tests for module 'sys_wait'.
24865         * modules/sys_wait-c++-tests: New file.
24866         * tests/test-sys_wait-c++.cc: New file.
24867         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24868         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24869
24870 2010-09-29  Bruno Haible  <bruno@clisp.org>
24871
24872         New module 'waitpid'.
24873         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24874         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24875         Don't include <process.h>.
24876         (waitpid): Declare only, using modern idiom.
24877         * m4/waitpid.m4: New file.
24878         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24879         * modules/waitpid: New file.
24880         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24881         (Makefile.am): Update.
24882         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24883
24884 2010-09-28  Bruno Haible  <bruno@clisp.org>
24885
24886         poll: Assume ANSI C.
24887         * lib/poll.c (poll): Use an ANSI C declaration.
24888
24889 2010-09-28  Bruno Haible  <bruno@clisp.org>
24890
24891         poll-h: Create poll.h on all platforms.
24892         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24893         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24894         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24895         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24896         (gl_REPLACE_POLL_H): Don't set POLL_H.
24897         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24898         * modules/poll-h (Depends-on): Add include_next.
24899         (Makefile.am): Create poll.h unconditionally. Substitute also
24900         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24901
24902 2010-09-28  Bruno Haible  <bruno@clisp.org>
24903
24904         Tests for module 'poll-h'.
24905         * modules/poll-h-c++-tests: New file.
24906         * tests/test-poll-h-c++.cc: New file.
24907
24908         Tests for module 'poll-h'.
24909         * modules/poll-h-tests: New file.
24910         * tests/test-poll-h.c: New file.
24911
24912 2010-09-28  Bruno Haible  <bruno@clisp.org>
24913
24914         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24915         * modules/poll-h (Depends-on): Add 'extensions'.
24916
24917 2010-09-28  Bruno Haible  <bruno@clisp.org>
24918
24919         New module 'poll-h'.
24920         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24921         (poll): Use modern idiom.
24922         * modules/poll-h: New file.
24923         * modules/poll (Files): Remove lib/poll.in.h.
24924         (Depends-on): Add poll-h.
24925         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24926         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24927         * m4/poll_h.m4: New file.
24928         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24929         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24930         and invoke gl_REPLACE_POLL_H.
24931         * lib/poll.c: Use common idiom.
24932         * tests/test-poll.c: Likewise.
24933         * doc/posix-headers/poll.texi: Mention the poll-h module.
24934         Suggested by Eric Blake.
24935
24936 2010-09-26  Bruno Haible  <bruno@clisp.org>
24937
24938         sys_wait: Implement WSTOPSIG.
24939         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24940         Reported by Simon Josefsson.
24941
24942 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24943
24944         stdlib, sys_wait: Avoid compilation error on mingw.
24945         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24946
24947 2010-09-26  Bruno Haible  <bruno@clisp.org>
24948
24949         stdlib tests: Avoid code duplication.
24950         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24951         * modules/sys_wait-tests (Files): Likewise.
24952         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24953         * tests/test-stdlib.c: Include test-sys_wait.h.
24954         (main): Invoke test_sys_wait_macros.
24955         * tests/test-sys_wait.c: Include test-sys_wait.h.
24956         (main): Invoke test_sys_wait_macros.
24957
24958 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24959
24960         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24961         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24962         sure Windows sockets are working before calling getaddrinfo.
24963         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24964         * doc/gnulib.texi (Windows sockets): Fix typo.
24965
24966 2010-09-25  Bruno Haible  <bruno@clisp.org>
24967
24968         Tests for module 'regex-quote'.
24969         * modules/regex-quote-tests: New file.
24970         * tests/test-regex-quote.c: New file.
24971
24972         New module 'regex-quote'.
24973         * lib/regex-quote.h: New file.
24974         * lib/regex-quote.c: New file.
24975         * modules/regex-quote: New file.
24976         Suggested by Reuben Thomas <rrt@sc3d.org>.
24977
24978 2010-09-24  Bruno Haible  <bruno@clisp.org>
24979
24980         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24981         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24982
24983 2010-09-23  Bruno Haible  <bruno@clisp.org>
24984
24985         setenv: Relax license.
24986         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24987         Blake.
24988         Requested by Eric Blake.
24989
24990 2010-09-22  Bruno Haible  <bruno@clisp.org>
24991
24992         termios: Relax license.
24993         * modules/termios (License): Change to LGPLv2+.
24994         Requested by Eric Blake.
24995
24996 2010-09-22  Bruno Haible  <bruno@clisp.org>
24997
24998         threadlib: Allow the package to change the default to 'no'.
24999         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25000         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25001         Reported by Paul Eggert.
25002
25003 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25004             Bruno Haible  <bruno@clisp.org>
25005
25006         Fix endless loop in mbmemcasecoll.
25007         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25008         byte.
25009         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25010
25011 2010-09-22  Bruno Haible  <bruno@clisp.org>
25012
25013         Tests for module 'memcoll'.
25014         * modules/memcoll-tests: New file.
25015         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25016
25017         memcoll, xmemcoll: Clarify size vs. length.
25018         * modules/memcoll.c (memcoll0): Clarify specification.
25019         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25020         passed to collate_error.
25021
25022 2010-09-22  Bruno Haible  <bruno@clisp.org>
25023
25024         Tests for module 'memcasecmp'.
25025         * modules/memcasecmp-tests: New file.
25026         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25027
25028 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25029
25030         * lib/pthread.in.h: Add split double-inclusion guard, and include
25031         system <pthread.h> if there is one.  Use @@-style as in other
25032         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25033         pthread.h doesn't.
25034         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25035         (pthread_mutexattr_settype, pthread_mutex_trylock):
25036         New static inline functions, if there's no system <pthread.h>.
25037         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25038         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25039         Approximate with mutexes if the system lacks spinlocks, as in
25040         MacOS.
25041         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25042         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25043         @@-style.  Check for spinlocks separately.
25044         (gl_PTHREAD_DEFAULTS): New macro.
25045         * modules/pthread: Redo to use a more typical style for in.h files.
25046
25047 2010-09-21  Eric Blake  <eblake@redhat.com>
25048
25049         net_if: enhance tests
25050         * tests/test-net_if.c (main): Move signature checks earlier.
25051         Print failures to stderr.
25052         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25053         Document the bug that we do not yet fix.
25054
25055 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25056
25057         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25058         about gnulib, not GSS.
25059
25060 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25061
25062         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25063         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25064         for Emacs.
25065         * build-aux/pmccabe2html: Make Makefile.am example code more
25066         cut-and-paste friendly.
25067
25068 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25069
25070         * tests/test-net_if.c: New file.
25071         * modules/net_if-tests: New file.
25072
25073 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25074
25075         pthread: add pthread_spin_destroy
25076         * lib/pthread.in.h (pthread_spin_destroy): New function.
25077
25078 2010-09-19  Bruno Haible  <bruno@clisp.org>
25079
25080         gnulib-tool: Fix --help output.
25081         * gnulib-tool (func_usage): Fix help message.
25082         Reported by Reuben Thomas <rrt@sc3d.org>.
25083
25084 2010-09-18  Jim Meyering  <meyering@redhat.com>
25085
25086         maint.mk: avoid unexpanded \n in two diagnostics
25087         * top/maint.mk (sc_prohibit_always_true_header_tests):
25088         Don't use a literal \n in a halt=... assignment.  It would not be
25089         expanded, and the two \n bytes would appear in the diagnostic output
25090         rather than the desired newline.  Use halt=$$(printf ... instead.
25091         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25092
25093 2010-09-18  Bruno Haible  <bruno@clisp.org>
25094
25095         netinet_in: Doc tweak.
25096         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25097         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25098
25099 2010-09-18  Jim Meyering  <meyering@redhat.com>
25100
25101         init.sh: correct an outdated comment
25102         * tests/init.sh (create_exe_shims_):  s/function/alias/
25103
25104         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25105         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25106         a file named "*.exe" is removed between the glob expansion and the
25107         processing of that oddly named file.
25108
25109 2010-09-17  Eric Blake  <eblake@redhat.com>
25110
25111         mirbsd: add some more support
25112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25113         in BSD family.
25114         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25115         devices as OpenBSD.
25116         * m4/host-os.m4 (mirbsd): Add MirBSD.
25117
25118         tests: fix unportable assumption on sys/wait.h
25119         * tests/test-sys_wait.c (main): Relax test.
25120         * tests/test-stdlib.c (main): Likewise.
25121
25122         init.sh: accomodate directory with no .exes
25123         * tests/init.sh: Accomodate directory containing only scripts.
25124
25125         tests: avoid compiler warning
25126         * tests/test-stdlib.c (main): Use the variable.
25127
25128         fdutimens, fdutimensat: update signature, again
25129         * lib/utimens.h (gl_futimens): Delete, and move signature...
25130         (fdutimens): ...here.
25131         (fdutimensat): Rearrange signature.
25132         (lutimensat): Rename variable for clarity.
25133         * lib/fdutimensat.c (fdutimensat): Update signature.
25134         * lib/utimens.c (fdutimens): Likewise.
25135         (gl_futimens): Delete.
25136         (utimens, lutimens): Update callers.
25137         * lib/futimens.c (futimens): Likewise.
25138         * tests/test-fdutimensat.c: Likewise.
25139         * tests/test-utimens.c: Likewise.
25140         * tests/test-futimens.h: Update comment.
25141         * NEWS: Mention this.
25142         Suggested by Paul Eggert.
25143
25144 2010-09-17  Bruno Haible  <bruno@clisp.org>
25145
25146         Take over the maintenance of some older macros from Autoconf.
25147         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25148         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25149         GNU Autoconf.
25150         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25151         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25152
25153 2010-09-17  Eric Blake  <eblake@redhat.com>
25154
25155         fdutimensat: drop atflag validation
25156         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25157         with valid fd, to close a race scenario where futimens is
25158         unsupported and FILE was replaced by a symlink.
25159         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25160         accordingly.
25161         Suggested by Paul Eggert.
25162
25163 2010-09-16  Bruno Haible  <bruno@clisp.org>
25164
25165         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25166         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25167
25168 2010-09-16  Bruno Haible  <bruno@clisp.org>
25169
25170         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25171         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25172         login_tty exists.
25173         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25174
25175 2010-09-16  Bruno Haible  <bruno@clisp.org>
25176
25177         login_tty: Make the replacement code work on BSD systems.
25178         * lib/login_tty.c: Include <sys/ioctl.h>.
25179         (login_tty): Use ioctl TIOCSCTTY when available.
25180         * modules/login_tty (Depends-on): Add sys_ioctl.
25181         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25182
25183 2010-09-16  Bruno Haible  <bruno@clisp.org>
25184
25185         login_tty: Stricter unit test.
25186         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25187         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25188         and tcgetsid() after login_tty.
25189         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25190
25191 2010-09-16  Bruno Haible  <bruno@clisp.org>
25192
25193         New module 'tcgetsid'.
25194         * lib/tcgetsid.c: New file.
25195         * m4/tcgetsid.m4: New file.
25196         * modules/tcgetsid: New file.
25197         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25198         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25199         GNULIB_TCGETSID, HAVE_TCGETSID.
25200         * lib/termios.in.h: Include <sys/types.h>.
25201         (tcgetsid): New declaration.
25202         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25203         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25204         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25205         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25206
25207 2010-09-16  Bruno Haible  <bruno@clisp.org>
25208
25209         Tests for module 'termios'.
25210         * modules/termios-c++-tests: New file.
25211         * modules/termios-tests: New file.
25212         * tests/test-termios-c++.cc: New file.
25213         * tests/test-termios.c: New file.
25214
25215         New module 'termios'.
25216         * modules/termios: New file.
25217         * lib/termios.in.h: New file.
25218         * m4/termios_h.m4: New file.
25219         * doc/posix-headers/termios.texi: Mention the new module.
25220
25221 2010-09-16  Eric Blake  <eblake@redhat.com>
25222
25223         fdutimensat: add an atflag parameter
25224         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25225         * lib/utimens.h (fdutimensat): Update prototype.
25226         * tests/test-fdutimensat.c: Adjust test to match.
25227         * NEWS: Document the change.
25228         Suggested by Paul Eggert.
25229
25230 2010-09-16  Bruno Haible  <bruno@clisp.org>
25231
25232         Fix typos in comments.
25233         * lib/striconveh.h: Fix typo in comment.
25234         * lib/login_tty.c (login_tty): Likewise.
25235
25236 2010-09-15  Bruno Haible  <bruno@clisp.org>
25237
25238         stdlib: clarify MirBSD WEXITSTATUS bug
25239         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25240         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25241
25242 2010-09-15  Eric Blake  <eblake@redhat.com>
25243
25244         stdlib: work around MirBSD WEXITSTATUS bug
25245         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25246         * modules/stdlib (Depends-on): Add sys_wait.
25247         * tests/test-sys_wait.c (main): Enhance test.
25248         * tests/test-stdlib.c (main): Likewise.
25249         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25250
25251         docs: mention MacOS issue with WEXITSTATUS(constant)
25252         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25253         issue.
25254         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25255
25256         strnlen: add tests
25257         * modules/strnlen-tests: New file.
25258         * tests/test-strnlen.c: Likewise.
25259
25260 2010-09-14  Bruno Haible  <bruno@clisp.org>
25261
25262         unistr/base: Avoid link errors when module 'libunistring' is also used.
25263         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25264         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25265         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25266         Declare also when HAVE_LIBUNISTRING is set.
25267         Reported by Pádraig Brady <P@draigbrady.com>.
25268
25269 2010-09-14  Eric Blake  <eblake@redhat.com>
25270
25271         test-rawmemchr: make more robust
25272         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25273         (Depends-on, configure.ac): Add needed prerequisites to use it.
25274         * modules/memchr-tests (Files, Depends-on, configure.ac):
25275         Likewise, to avoid implicit reliance on memchr module prereqs.
25276         * tests/test-memchr.c (main): Ensure proper masking.
25277         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25278         reads.
25279
25280         memchr: detect glibc Alpha bug
25281         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25282         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25283         Alpha.
25284         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25285         * tests/test-memchr.c (main): Enhance test.
25286         Reported by Nelson H. F. Beebe.
25287
25288 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25289
25290         fts, getcwd, glob: audit for dirfd returning -1
25291         * lib/fts.c (opendir): Remove #define; no longer used.
25292         (opendirat): New arg PDIR_FD.  All callers changed.
25293         (fts_build, _opendir2): Use new opendirat to avoid the need for
25294         dirfd, or for checking whether dirfd returns a negative value.
25295         Don't use opendir; always use openat followed by fdopendir.
25296         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25297         it.
25298         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25299         returns -1 here.
25300         * modules/fts (Depends-on): Remove dirfd.
25301         * modules/getcwd (Depends-on): Likewise.
25302
25303 2010-09-13  Eric Blake  <eblake@redhat.com>
25304
25305         float: fix broken MirBSD header
25306         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25307         * doc/posix-headers/float.texi (float.h): Document it.
25308
25309 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25310
25311         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25312         * lib/fts.c (opendirat): New arg extra_flags.
25313         (__opendir2): Use it to avoid following symlinks when opening
25314         a directory, if symlinks are not supposed to be followed.  See
25315         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25316
25317         fdopendir: preserve argument fd before returning
25318         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25319         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25320         (fdopendir): Use them, arranging for FD to be open to the same
25321         directory that it was when it started.  (It might be temporarily
25322         closed while fdopendir is running, so this not thread- or
25323         signal-safe.)  Be careful to do the right thing even when file
25324         descriptors are scarce and dup fails with errno == EMFILE.  See
25325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25326
25327 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25328
25329         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25330         * NEWS: Document change.
25331         * m4/regex.m4: Disable test for regoff_t size.
25332
25333 2010-09-13  Jim Meyering  <meyering@redhat.com>
25334
25335         fts: don't operate on an invalid file descriptor after failed dup
25336         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25337         negative file descriptor.
25338
25339 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25340
25341         savedir: add streamsavedir, deprecate fdsavedir
25342         * NEWS: Mention deprecation of fdsavedir.
25343         * lib/savedir.c (streamsavedir): New extern function, whose name
25344         ends in "savedir" to be consistent with the others.  This differs
25345         from savedirstream in that it doesn't close its argument.  The
25346         next version of GNU tar will use this instead of fdsavedir, to
25347         avoid some race conditions and conserve file descriptors.
25348         (savedirstream): Reimplement as a wrapper around streamsavedir.
25349         (fdsavedir): Add a comment deprecating this function.  As far as
25350         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25351         * lib/savedir.h (streamsavedir): New decl.
25352         (fdsavedir): Add a comment deprecating this.
25353
25354 2010-09-10  Bruno Haible  <bruno@clisp.org>
25355
25356         langinfo: Fix last commit.
25357         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25358         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25360
25361 2010-09-10  Bruno Haible  <bruno@clisp.org>
25362
25363         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25364         * lib/progreloc.c (O_EXEC): Define fallback.
25365
25366 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25367
25368         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25369         * NEWS: Document recent changes to fcntl-h.
25370         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25371         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25372         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25373         Similarly for O_SEARCH; this last was already true, but not documented.
25374         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25375         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25376         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25377         Likewise.
25378         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25379         is zero, not whether it is defined.
25380         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25381         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25382         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25383
25384 2010-09-10  Bruno Haible  <bruno@clisp.org>
25385
25386         langinfo, nl_langinfo: Fix for IRIX 5.3.
25387         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25388         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25389         HAVE_LANGINFO_YESEXPR.
25390         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25391         HAVE_LANGINFO_YESEXPR.
25392         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25393         HAVE_LANGINFO_T_FMT_AMPM is 0.
25394         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25395         HAVE_LANGINFO_YESEXPR is 0.
25396         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25397         NOEXPR.
25398         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25399         * doc/posix-functions/nl_langinfo.texi: Likewise.
25400         Reported by Eric Blake.
25401
25402 2010-09-10  Bruno Haible  <bruno@clisp.org>
25403
25404         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25405         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25406         on FreeBSD 8.0 and OpenBSD 4.6.
25407         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25408         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25409         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25410         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25411         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25412         ac_includes_default.
25413         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25414
25415 2010-09-09  Eric Blake  <eblake@redhat.com>
25416
25417         strsignal: work around NetBSD bug
25418         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25419         * lib/string.in.h (includes): Likewise.
25420         * doc/posix-functions/strsignal.texi (strsignal): Document the
25421         bug.
25422         Reported by Nelson H. F. Beebe.
25423
25424         gnulib-tool: work with NetBSD /bin/sh
25425         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25426         (func_get_description, func_get_comment, func_get_status)
25427         (func_get_notice, func_get_applicability, func_get_filelist)
25428         (func_get_dependencies, func_get_autoconf_early_snippet)
25429         (func_get_autoconf_snippet, func_get_automake_snippet)
25430         (func_get_include_directive, func_get_link_directive)
25431         (func_get_license, func_get_maintainer, func_import): Avoid
25432         shell syntax errors from parsing syntax extensions.
25433
25434 2010-09-09  Bruno Haible  <bruno@clisp.org>
25435
25436         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25437         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25438         a reliable way to determine whether the 'alias' command works.
25439
25440 2010-09-08  Jim Meyering  <meyering@redhat.com>
25441
25442         init.sh: penalize a set-x-impaired shell; don't disqualify it
25443         * tests/init.sh: Too many shells corrupt application stderr when
25444         you set -x, so we can't afford to disqualify them, since at least
25445         on Irix-6.5, that would disqualify all bourne shells.
25446         Instead, use a two-pass approach.
25447         On the first pass, try to find a shell that meets the stricter
25448         condition that set -x does not corrupt stderr.
25449         If no shell meets the stricter condition, retest each candidate
25450         shell, but without that extra condition.  Finally, when
25451         VERBOSE=yes is requested and set -x might cause trouble, simply
25452         issue a warning and refrain from enabling debug output.
25453
25454 2010-09-08  Eric Blake  <eblake@redhat.com>
25455
25456         unsetenv: fix OpenBSD bug
25457         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25458         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25459         documentation.
25460         Reported by Jim Meyering.
25461
25462         strtod: work around IRIX 6.5 bug
25463         * lib/strtod.c (strtod): Reparse number on shorter string if
25464         exponent parse was invalid.
25465         * tests/test-strtod.c (main): Add check for "0x1p 2".
25466         Reported by Tom G. Christensen.
25467
25468         getopt: optimize previous patch
25469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25470         empty variable.  Speed up awk script.
25471         Reported by Paolo Bonzini.
25472
25473 2010-09-08  Jim Meyering  <meyering@redhat.com>
25474
25475         test.sh: disqualify shells for which set -x corrupts stderr
25476         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25477         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25478         appear in stderr output.  For example, this command:
25479             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25480         prints "P=1" on those two systems:
25481
25482 2010-09-08  Bruno Haible  <bruno@clisp.org>
25483
25484         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25485         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25486         commands, because some shells ignore redirections when there is an
25487         error in the command lookup.
25488         Reported by Eric Blake.
25489
25490 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25491
25492         * lib/regex.h: Fix a mention of `regex_compile' (should be
25493         `re_compile_pattern').
25494         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25495         (re_set_registers): Correct name of parameter in comment.
25496
25497         * doc/regex.texi: Add documentation for missing syntax flags.
25498         Remove commented-out documentation of defunct syntax option
25499         RE_NO_EMPTY_ALTS.
25500         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25501         Add documentation of re_set_registers.
25502         Document trick to re-use a pattern buffer by setting fastmap manually.
25503         Update documentation of struct re_pattern_buffer per public members.
25504         Uncomment documentation of equivalence class operators and
25505         collating symbol operators, since they are now implemented,
25506         Explain leftmost-longest matching in relation to alternatives.
25507         Tidy documentation of substring matching.
25508         Remove POSIX documentation, which is done better in
25509         glibc, and refer the reader there. Keep BSD API documentation, as
25510         that is not readily available elsewhere.
25511
25512 2010-09-07  Eric Blake  <eblake@redhat.com>
25513
25514         getopt: handle POSIXLY_CORRECT set but not exported
25515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25516         export state of POSIXLY_CORRECT, due to bash set -o posix.
25517         Reported by Dustin J. Mitchell.
25518
25519 2010-09-05  Bruno Haible  <bruno@clisp.org>
25520
25521         gnulib-tool: Highlight the changed options.
25522         * gnulib-tool (func_usage): Display the --import, --add-import,
25523         --remove-import explanations in bold font.
25524
25525 2010-09-06  Karl Berry  <karl@gnu.org>
25526
25527         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25528
25529 2010-09-05  Bruno Haible  <bruno@clisp.org>
25530
25531         uniwidth/width: Update comment.
25532         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25533         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25534
25535 2010-09-05  Bruno Haible  <bruno@clisp.org>
25536
25537         isinf, isnan: Relax license.
25538         * modules/isinf (License): Change from GPL to LGPL, with consent from
25539         Ben Pfaff.
25540         * modules/isnan (License): Likewise.
25541         Requested by Ludovic Courtès.
25542
25543 2010-09-04  Bruno Haible  <bruno@clisp.org>
25544
25545         gnulib-tool: Help migration from --import to --add-import or --update.
25546         * gnulib-tool: Emit a verbose error message when --import is used
25547         without any module name.
25548
25549 2010-09-04  Bruno Haible  <bruno@clisp.org>
25550
25551         Update doc about gnulib-tool.
25552         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25553         'gnulib-tool --update' in more detail.
25554         Reported by Eric Blake.
25555
25556 2010-09-04  Bruno Haible  <bruno@clisp.org>
25557
25558         gnulib-tool: Change --import. New options --add/remove-import.
25559         * gnulib-tool: New options --add-import, --remove-import.
25560         (func_usage): Document them.
25561         (have_associative): Define always.
25562         (func_import): In import mode, don't merge the specified settings with
25563         the cached settings. Implement remove-import mode.
25564         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25565         Explain when to use them versus --import.
25566         (Simple update): Use --add-import instead of --import.
25567         * NEWS: Mention the change.
25568
25569 2010-09-04  Bruno Haible  <bruno@clisp.org>
25570
25571         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25572         separate gnulib.mk.
25573
25574 2010-09-04  Bruno Haible  <bruno@clisp.org>
25575
25576         gnulib-tool: Don't talk about CVS any more.
25577         * gnulib-tool (func_usage, func_import): Write "version control"
25578         instead of CVS.
25579
25580 2010-09-04  Jim Meyering  <meyering@redhat.com>
25581
25582         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25583         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25584         false positives (whose names may be ill-chosen) when searching
25585         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25586         would cause a false-positive.
25587
25588         avoid coreutils "make distcheck" failure
25589         Coreutils tests with an absolute build directory name that contains
25590         a space.  Not quoting this directory name caused a failure.
25591         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25592         * tests/test-vc-list-files-cvs.sh: Likewise.
25593
25594 2010-09-04  Bruno Haible  <bruno@clisp.org>
25595
25596         gnulib-tool: Avoid error when run in a package without Makefile.am.
25597         * gnulib-tool: When collecting the m4dirs in a package that does not
25598         have a Makefile.am, eliminate those directories that contain no
25599         gnulib-cache.m4. Fix expression that counts these directories.
25600
25601 2010-09-04  Bruno Haible  <bruno@clisp.org>
25602
25603         update-copyright test: Improve output when perl is missing or too old.
25604         * tests/test-update-copyright.sh: Move test of Perl version down after
25605         the test whether Perl exists. Provide an explanation relating Perl's
25606         error message to Automake's SKIP: message.
25607
25608 2010-09-04  Bruno Haible  <bruno@clisp.org>
25609
25610         Don't augment PATH in TESTS_ENVIRONMENT.
25611         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25612         set abs_aux_dir instead of augmenting PATH.
25613         * modules/vc-list-files-tests (Makefile.am): Likewise.
25614         * tests/test-update-copyright.sh: Augment PATH here.
25615         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25616         path_prepend_.
25617         * tests/test-vc-list-files-git.sh: Likewise.
25618
25619 2010-09-04  Jim Meyering  <meyering@redhat.com>
25620
25621         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25622         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25623
25624 2010-09-04  Bruno Haible  <bruno@clisp.org>
25625
25626         strdup: Fix compilation error in C++ mode.
25627         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25628         the macro.
25629
25630 2010-09-04  Bruno Haible  <bruno@clisp.org>
25631
25632         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25633         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25634         macro into a function.
25635         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25636
25637 2010-09-04  Bruno Haible  <bruno@clisp.org>
25638
25639         Set PATH_SEPARATOR the same way autoconf does.
25640         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25641         the value of PATH_SEPARATOR the same way autoconf-generated configure
25642         scripts do.
25643         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25644         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25645
25646 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25647
25648         Set PATH_SEPARATOR the same way autoconf does.
25649         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25650         the same way autoconf-generated configure scripts do.
25651         * posix-modules: Likewise.
25652
25653 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25654
25655         hash: fix safe_hasher const typo
25656         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25657         const; otherwise, there is a type error later.
25658
25659 2010-09-02  Jim Meyering  <meyering@redhat.com>
25660
25661         test-update-copyright.sh: require perl 5.8.0
25662         * tests/test-update-copyright.sh: Require 5.8.0,
25663         which Tom G. Christensen has confirmed is adequate,
25664         while 5.6.1 is not.
25665
25666 2010-09-02  Eric Blake  <eblake@redhat.com>
25667
25668         tests: init.sh improvements for re-exec'ing with zsh
25669         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25670         -vx through shell re-exec.
25671         Reported by Tom G. Christensen.
25672
25673         wctype: fix typo in previous commit
25674         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25675         Reported by Ludovic Courtès.
25676
25677 2010-09-02  Jim Meyering  <meyering@redhat.com>
25678
25679         test-update-copyright.sh: skip test if Perl is too old
25680         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25681         Reported by Tom G. Christensen.
25682
25683 2010-09-02  Bruno Haible  <bruno@clisp.org>
25684
25685         wctype: Avoid compilation error on IRIX 6.5.30.
25686         * lib/wctype.in.h (iswblank): Declare with a replacement if
25687         REPLACE_ISWBLANK is set.
25688         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25689         declared. Set REPLACE_ISWBLANK.
25690         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25691         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25692         * doc/posix-headers/wctype.texi: Likewise.
25693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25694
25695 2010-09-01  Bruno Haible  <bruno@clisp.org>
25696
25697         New module 'socketlib'.
25698         * modules/socketlib: New file.
25699         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25700         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25701         * modules/sockets (Depends-on): Add socketlib.
25702         Suggested by Sam Steingold <sds@gnu.org>.
25703
25704 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25705
25706         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25707
25708         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25709         when one needs search access to a directory but not read access.
25710         On systems where it is available, it works in some cases where
25711         O_RDONLY does not, namely on directories that are searchable but
25712         not readable, and which need only to be searchable.  If O_SEARCH
25713         is not available, fall back to the traditional method of using
25714         O_RDONLY.
25715
25716         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25717         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25718         when opening a directory that needs only to be searchable.
25719         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25720         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25721         * lib/openat-proc.c (openat_proc_name): Likewise.
25722         * lib/openat.c (openat_needs_fchdir): Likewise.
25723         * lib/save-cwd.c (save_cwd): Likewise.
25724         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25725
25726 2010-08-28  Bruno Haible  <bruno@clisp.org>
25727
25728         New module 'host-cpu-c-abi'.
25729         * modules/host-cpu-c-abi: New file.
25730         * m4/host-cpu-c-abi.m4: New file, based on part of
25731         clisp/src/m4/general.m4.
25732         Requested by Sam Steingold <sds@gnu.org>.
25733
25734 2010-08-31  Eric Blake  <eblake@redhat.com>
25735         and Jim Meyering  <meyering@redhat.com>
25736
25737         hash: factor, and guard against misbehaving hasher function
25738         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25739         of table->hasher's return value.  Also protect against a hash value
25740         so large that adding it to table->bucket results in a NULL pointer.
25741         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25742         Use it in place of open-coded check-and-abort.
25743
25744 2010-08-30  Bruno Haible  <bruno@clisp.org>
25745
25746         hash: silence spurious clang warning
25747         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25748         Reported by Eric Blake.
25749
25750 2010-08-30  Eric Blake  <eblake@redhat.com>
25751
25752         strstr, memmem, strcasestr: avoid leaked shell message
25753         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25754         FreeBSD.
25755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25756         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25757
25758         tests: silence clang warning
25759         * tests/test-malloca.c (do_allocation): Avoid dead store.
25760
25761 2010-08-29  Bruno Haible  <bruno@clisp.org>
25762
25763         gettext: Fix recent mistake.
25764         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25765
25766 2010-08-29  Bruno Haible  <bruno@clisp.org>
25767
25768         selinux-h: Offer a --without-selinux option.
25769         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25770         --without-selinux was specified, skip all tests and define
25771         HAVE_SELINUX_SELINUX_H to 0.
25772         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25773         set LIB_SELINUX to empty.
25774         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25775         gl_LIBSELINUX. If --without-selinux was specified, replace
25776         selinux/context.h.
25777         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25778
25779 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25780             Bruno Haible  <bruno@clisp.org>
25781
25782         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25783         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25784         of HAVE_REALLOC.
25785         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25786         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25787         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25788         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25789
25790 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25791             Bruno Haible  <bruno@clisp.org>
25792
25793         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25794         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25795         HAVE_CALLOC.
25796         * lib/xmalloc.c: Update accordingly.
25797         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25798         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25799         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25800
25801 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25802             Bruno Haible  <bruno@clisp.org>
25803
25804         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25805         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25806         HAVE_MALLOC.
25807         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25808         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25809         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25810
25811 2010-08-29  Bruno Haible  <bruno@clisp.org>
25812
25813         Update modules list.
25814         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25815         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25816         (String handling <string.h>): Add astrxfrm.
25817         (File system functions): Add readlinkat.
25818
25819 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25820
25821         Tests for module 'realloc-gnu'.
25822         * modules/realloc-gnu-tests: New file.
25823         * tests/test-realloc-gnu.c: New file.
25824
25825         Tests for module 'calloc-gnu'.
25826         * modules/calloc-gnu-tests: New file.
25827         * tests/test-calloc-gnu.c: New file.
25828
25829         Tests for module 'malloc-gnu'.
25830         * modules/malloc-gnu-tests: New file.
25831         * tests/test-malloc-gnu.c: New file.
25832
25833 2010-08-28  Bruno Haible  <bruno@clisp.org>
25834
25835         Rename module 'realloc' -> 'realloc-gnu'.
25836         * modules/realloc-gnu: New file, copied from modules/realloc.
25837         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25838         obsolete.
25839         * modules/mgetgroups (Depends-on): Update.
25840         * doc/posix-functions/realloc.texi: Update.
25841         * NEWS: Mention the change.
25842
25843         Rename module 'calloc' -> 'calloc-gnu'.
25844         * modules/calloc-gnu: New file, copied from modules/calloc.
25845         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25846         obsolete.
25847         * doc/posix-functions/calloc.texi: Update.
25848         * NEWS: Mention the change.
25849
25850         Rename module 'malloc' -> 'malloc-gnu'.
25851         * modules/malloc-gnu: New file, copied from modules/malloc.
25852         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25853         obsolete.
25854         * modules/argp (Depends-on): Update.
25855         * modules/regex (Depends-on): Update.
25856         * doc/posix-functions/malloc.texi: Update.
25857         * NEWS: Mention the change.
25858
25859 2010-08-28  Eric Blake  <eblake@redhat.com>
25860
25861         pread, pwrite: add missing dependency
25862         * modules/pread (Depends-on): Add extensions.
25863         * modules/pwrite (Depends-on): Likewise.
25864
25865 2010-08-28  Bruno Haible  <bruno@clisp.org>
25866
25867         unistr/u*-strchr: Fix tests dependencies.
25868         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25869         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25870         Reported by Ian Beckwith <ianb@erislabs.net>.
25871
25872 2010-08-28  Bruno Haible  <bruno@clisp.org>
25873
25874         read-file: Don't occupy too much unused memory.
25875         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25876
25877 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25878             Eric Blake  <eblake@redhat.com>
25879             Bruno Haible  <bruno@clisp.org>
25880
25881         read-file: Avoid memory reallocations with regular files.
25882         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25883         (fread_file): With regular files, use the remaining length as the
25884         initial buffer size.  Check against overflow.
25885         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25886         sys_stat.
25887
25888 2010-08-28  Bruno Haible  <bruno@clisp.org>
25889
25890         ftello: Relax license.
25891         * modules/ftello (License): Relax to LGPLv2+.
25892         Reported by Eric Blake.
25893
25894 2010-08-28  Bruno Haible  <bruno@clisp.org>
25895
25896         Avoid relocwrapper link errors due to gnulib replacement functions.
25897         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25898         function.
25899         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25900
25901 2010-08-28  Bruno Haible  <bruno@clisp.org>
25902
25903         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25904         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25905         defined.
25906         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25907         Suggested by Eric Blake.
25908
25909 2010-08-28  Bruno Haible  <bruno@clisp.org>
25910
25911         sys_socket, netdb: Ensure socklen_t gets defined.
25912         * modules/sys_socket (Depends-on): Add socklen.
25913         * modules/netdb (Depends-on): Likewise.
25914         * modules/getaddrinfo (Depends-on): Remove socklen.
25915         * modules/getsockopt (Depends-on): Likewise.
25916         * modules/setsockopt (Depends-on): Likewise.
25917         * tests/test-sys_socket.c: Check that socklen_t is defined.
25918         * tests/test-netdb.c: Likewise.
25919         * m4/socklen.m4: Update comments.
25920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25921
25922 2010-08-27  Eric Blake  <eblake@redhat.com>
25923
25924         login_tty: add missing dependency
25925         * modules/login_tty (Depends-on): Add pty.
25926
25927 2010-08-26  Eric Blake  <eblake@redhat.com>
25928
25929         lib-symbol-versions: fix m4 quoting
25930         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25931         format for AC_LINK_IFELSE.
25932
25933         glob: fix compile test
25934         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25935
25936         btowc: fix missing file
25937         * modules/btowc (Files): Also ship locale-fr.m4.
25938
25939         lseek: fix link test
25940         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25941         AC_LINK_IFELSE.
25942
25943         include_next: silence autoconf 2.68 warning
25944         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25945         AC_COMPILE_IFELSE as special.
25946         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25947         autoconf < 2.68.
25948
25949         acl: fix compilation test
25950         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25951         AC_COMPILE_IFELSE.
25952
25953 2010-08-26  Bruno Haible  <bruno@clisp.org>
25954
25955         Modernize AC_TRY_RUN invocations.
25956         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25957         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25958         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25959         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25960         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25961         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25962         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25964         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25965         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25967         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25968         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25971         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25972         gl_MBRLEN_NUL_RETVAL): Likewise.
25973         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25974         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25975         Likewise.
25976         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25977         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25978         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25979         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25980         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25981         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25982         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25983         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25984         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25985         Likewise.
25986         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25987         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25988         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25989         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25990         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25993         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25994         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25996
25997 2010-08-26  Bruno Haible  <bruno@clisp.org>
25998
25999         Modernize AC_TRY_LINK invocations.
26000         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26001         AC_TRY_LINK.
26002         * m4/argp.m4 (gl_ARGP): Likewise.
26003         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26004         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26005         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26006         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26007         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26008         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26009         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26010         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26011         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26012         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26013         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26014         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26015         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26016         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26017         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26018         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26019         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26020         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26021         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26022         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26023         Likewise.
26024         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26025         Likewise.
26026         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26027         Likewise.
26028         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26029         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26030         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26031         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26032         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26033         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26034         * m4/servent.m4 (gl_SERVENT): Likewise.
26035         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26036         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26037         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26038         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26039         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26040         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26041         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26042         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26043         * modules/tsearch-tests (configure.ac): Likewise.
26044
26045 2010-08-26  Bruno Haible  <bruno@clisp.org>
26046
26047         Modernize AC_TRY_COMPILE invocations.
26048         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26049         AC_TRY_COMPILE.
26050         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26051         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26052         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26053         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26054         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26055         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26056         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26057         * m4/lock.m4 (gl_LOCK): Likewise.
26058         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26059         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26060         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26061         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26062         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26063         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26064         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26065         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26066         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26067         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26068         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26069         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26070         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26071         extraneous semicolon.
26072
26073 2010-08-26  Jim Meyering  <meyering@redhat.com>
26074
26075         stat-time: relax license LGPL
26076         * modules/stat-time (License): Change from GPL to LGPL,
26077         with consent from all contributors, for use in libguile.
26078         Requested by Ludovic Courtès.
26079
26080 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26081
26082         poll: return immediately on POLLHUP.
26083         * lib/poll.c (poll): Always set timeout before wait_timeout is
26084         computed.
26085
26086 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26087
26088         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26089         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26090         rmdir ("dir/.//"), unlinkat.
26091
26092 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26093
26094         stdbool: avoid spurious failure with modern xlc
26095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26096
26097 2010-08-24  Bruno Haible  <bruno@clisp.org>
26098
26099         getloadavg: simplify code
26100         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26101         gl_have_func. Update comments.
26102
26103 2010-08-24  Eric Blake  <eblake@redhat.com>
26104
26105         getloadavg: don't define SVR4 on cygwin
26106         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26107         only define SVR4 when -lkvm is required.
26108         Reported by Yaakov Selkowitz.
26109
26110 2010-08-24  Bruno Haible  <bruno@clisp.org>
26111
26112         priv-set: fix comment
26113         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26114
26115 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26116
26117         priv-set: fix comments
26118         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26119         to match code, as suggested by David Bartley in:
26120         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26121
26122 2010-08-23  Eric Blake  <eblake@redhat.com>
26123
26124         stdbool: avoid rejecting clang
26125         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26126         * tests/test-stdbool.c: Enable more tests if using the system
26127         <stdbool.h> instead of the gnulib replacement.
26128         (main): Move xlc bug test to a runtime test for all compilers.
26129         Reported by Anders Kaseorg.
26130
26131         argz: fix shell quoting issue
26132         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26133         Reported by Charles Wilson.
26134
26135 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26136             Erik Faye-Lund <kusmabite@gmail.com>
26137
26138         poll, select: handle ERROR_BROKEN_PIPE.
26139         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26140         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26141         * lib/select.c (win32_compute_revents): Do not mark a pipe
26142         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26143
26144 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26145
26146         fts: allow compilation with C++
26147         * lib/fts_.h: Specify extern "C" linkage with C++.
26148
26149 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26150
26151         Fix gnulib-tool sed script de-commentation for AIX sed.
26152         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26153         sed.
26154
26155 2010-08-17  Eric Blake  <eblake@redhat.com>
26156
26157         test-stddef: test for (some) offsetof bugs
26158         * tests/test-stddef.c: Enhance test to ensure correct type of
26159         offsetof.
26160         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26161         that we are not fixing at this time.
26162
26163 2010-08-15  Bruno Haible  <bruno@clisp.org>
26164
26165         stpncpy: Allow stpncpy to be defined as a macro.
26166         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26167         if it's already correctly declared.
26168         * lib/string.in.h (stpncpy): Undefine before redefining.
26169         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26170
26171 2010-08-14  Bruno Haible  <bruno@clisp.org>
26172
26173         Rename module 'memxfrm' to 'amemxfrm'.
26174         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26175         (amemxfrm): Renamed from memxfrm.
26176         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26177         (amemxfrm): Renamed from memxfrm.
26178         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26179         * NEWS: Mention the change.
26180         * MODULES.html.sh (String handling <string.h>): Update.
26181         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26182         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26183         * lib/unicase/u16-casexfrm.c: Likewise.
26184         * lib/unicase/u32-casexfrm.c: Likewise.
26185         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26186         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26187         * lib/uninorm/u16-normxfrm.c: Likewise.
26188         * lib/uninorm/u32-normxfrm.c: Likewise.
26189         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26190         memxfrm.
26191         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26192         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26193         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26194         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26195         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26196         Suggested by Paul Eggert.
26197
26198 2010-08-14  Bruno Haible  <bruno@clisp.org>
26199
26200         Tests for module 'astrxfrm'.
26201         * modules/astrxfrm-tests: New file.
26202         * tests/test-astrxfrm.c: New file.
26203
26204         New module 'astrxfrm'.
26205         * lib/astrxfrm.h: New file.
26206         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26207         * modules/astrxfrm: New file.
26208
26209 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26210
26211         regex: Tweak doc.
26212         * doc/regex.texi (Overview): Don't mention regex.c.
26213         (GNU Regular Expression Compiling): Likewise.
26214         (Match-end-of-line Operator): Mention 'not_eol'.
26215
26216 2010-08-14  Brian Gough  <bjg@gnu.org>
26217             Bruno Haible  <bruno@clisp.org>
26218
26219         git-merge-changelog: add doc relating to use with bzr and hg.
26220         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26221
26222 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26223
26224         pthread: fix pthread.h creation for srcdir != builddir
26225         * modules/pthread (Makefile.am): Fix the rule to work also in a
26226         non-srcdir build.
26227
26228 2010-08-13  Karl Berry  <karl@gnu.org>
26229
26230         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26231         * doc/posix-*/*: force line break before @url of POSIX
26232         specifications.
26233         Suggested by Werner Lemberg.
26234
26235 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26236
26237         strtod: fix const diagnostic
26238         * lib/strtod.c (strtod): Don't assign const char * to char *,
26239         as this elicits a warning from GCC when warnings are enabled.
26240
26241 2010-08-10  Pádraig Brady <P@draigbrady.com>
26242         and Eric Blake  <eblake@redhat.com>
26243
26244         copy-acl: ignore ENOTSUP on HP-UX
26245         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26246         so that it is available for HP-UX.
26247         * lib/copy-acl.c (qcopy_acl): Use it.
26248         Reported by Patrick M. Callahan.
26249
26250 2010-08-10  Eric Blake  <eblake@redhat.com>
26251
26252         open, chown: relax license
26253         * modules/open (License): Change to LGPLv2+, with consent by all
26254         authors, for use in augeas.
26255         * modules/chown (License): Likewise.
26256         * modules/lchown (Likewise): Likewise.
26257         Requested by Adam Stokes.
26258
26259 2010-08-09  Karl Berry  <karl@gnu.org>
26260
26261         * build-aux/ar-lib: new file, import from Automake.
26262         * config/srclist.txt: autocheck for updates.
26263
26264 2010-08-09  Eric Blake  <eblake@redhat.com>
26265
26266         readlinkat: adjust client modules
26267         * modules/areadlinkat (Depends-on): Use readlinkat, not
26268         symlinkat.
26269         * modules/areadlinkat-with-size (Depends-on): Likewise.
26270
26271         mknod: be more vocal about danger of running tests as root
26272         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26273         root, since that is just asking for problems.
26274         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26275
26276         readlinkat: split into its own module
26277         * modules/symlinkat: Split readlinkat...
26278         * modules/readlinkat: ...into separate module.
26279         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26280         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26281         * lib/symlinkat.c (readlinkat): Move...
26282         * lib/readlinkat.c: ...into new file.
26283         * modules/symlinkat-tests: Split readlinkat test...
26284         * modules/readlinkat-tests: ...into separate module.
26285         * tests/test-symlinkat.c: Split...
26286         * tests/test-readlinkat.c: ...into new file.
26287         * NEWS: Document the split.
26288         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26289         * lib/unistd.in.h (readlinkat): Likewise.
26290         Suggested by Bruno Haible.
26291
26292 2010-08-08  Bruno Haible  <bruno@clisp.org>
26293
26294         memxfrm: Speed up.
26295         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26296         that usually only one call to strxfrm is necessary for each string
26297         part.
26298         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26299
26300 2010-08-07  Karl Berry  <karl@gnu.org>
26301
26302         * doc/posix-headers/limits.texi,
26303         * doc/posix-functions/malloc.texi,
26304         * doc/posix-functions/strsignal.texi: missing @item.
26305         * doc/ld-version-script.texi: spurious leading i.
26306         * doc/regex.texi (Interval Operators): no commas inside @var.
26307
26308 2010-08-01  Bruno Haible  <bruno@clisp.org>
26309
26310         Integrate the regex documentation.
26311         * doc/gnulib.texi: Define 'cn' index.
26312         (Regular expressions): New a chapter that includes regex.texi and
26313         regexprops-generic.texi.
26314         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26315         syntax.
26316
26317         Whitespace cleanup.
26318         * doc/regex.texi: Remove trailing spaces.
26319
26320         Add regex documentation.
26321         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26322         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26323         Written by Kathy A. Hargreaves and Karl Berry.
26324
26325 2010-08-01  Bruno Haible  <bruno@clisp.org>
26326
26327         link: Update documentation.
26328         * doc/posix-functions/link.texi: Update regarding Solaris.
26329
26330 2010-07-31  Bruno Haible  <bruno@clisp.org>
26331
26332         Update modules list.
26333         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26334         (String handling <string.h>): Add memcmp2, memxfrm.
26335         (Container data structures): Add xlist, xsublist, xoset.
26336         (Core language properties): Add alignof, unused-parameter.
26337         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26338         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26339         (Unibyte characters <ctype.h>): New section.
26340         (String handling <string.h>): New section.
26341         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26342         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26343         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26344         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26345         tan, tanh, tanl, y0, y1, yn.
26346         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26347         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26348         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26349         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26350         unlockpt, vdprintf, vdprintf-posix.
26351         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26352         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26353         xconcat-filename.
26354         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26355         getdtablesize, pipe2, pipe2-safer.
26356         (Security): New section.
26357         (Networking functions): Add accept4.
26358         (Signal handling): Add sigpipe.
26359         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26360         mbmemcasecoll.
26361         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26362         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26363         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26364         pipe-filter-ii.
26365         (Misc): Add argp-version-etc, login_tty, parse-duration.
26366
26367 2010-07-31  Bruno Haible  <bruno@clisp.org>
26368
26369         Improve doc in MODULES.html.
26370         * modules/linkat (Description): Add the word "function".
26371         * modules/mkfifo (Description): Likewise.
26372         * modules/mknod (Description): Likewise.
26373         * modules/remove (Description): Likewise.
26374         * modules/renameat (Description): Likewise.
26375         * modules/stat (Description): Likewise.
26376         * modules/symlink (Description): Likewise.
26377         * modules/unlink (Description): Likewise.
26378
26379 2010-07-31  Bruno Haible  <bruno@clisp.org>
26380
26381         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26382         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26383         option --enable/disable-c++ instead of --enable/disable-cxx.
26384         * NEWS: Mention the change.
26385
26386 2010-07-31  Bruno Haible  <bruno@clisp.org>
26387
26388         readlink, areadlink: Relax test a bit.
26389         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26390         alternative to ENOTDIR.
26391         * tests/test-areadlink.h (test_areadlink): Likewise.
26392         Reported by Rainer Tammer.
26393
26394 2010-07-31  Bruno Haible  <bruno@clisp.org>
26395
26396         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26397         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26398         character, perform the search using U_STRCHR.
26399         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26400         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26401         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26402         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26403         Suggested by Paolo Bonzini.
26404
26405 2010-07-31  Bruno Haible  <bruno@clisp.org>
26406
26407         unistr/u*-strstr: Fix dependencies.
26408         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26409         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26410         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26411
26412 2010-07-31  Bruno Haible  <bruno@clisp.org>
26413
26414         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26415         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26416         the beginning of the loop.
26417         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26418         cases in 'switch' statement.
26419
26420         unistr/u8-strchr: Fix several bugs.
26421         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26422         the string. When not found, return NULL, not a pointer near the end.
26423
26424         More tests for unistr/u8-strchr.
26425         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26426         that the function does not read past the first occurrence of the byte
26427         being searched.
26428         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26429         * tests/unistr/test-u16-strchr.c (main): New function.
26430         * tests/unistr/test-u32-strchr.c (main): New function.
26431
26432 2010-07-31  Bruno Haible  <bruno@clisp.org>
26433
26434         posix-modules: Ignore backup files of documentation files.
26435         * posix-modules: grep only through files named *.texi.
26436
26437 2010-07-31  Bruno Haible  <bruno@clisp.org>
26438
26439         symlinkat: Fix documentation.
26440         * doc/posix-functions/readlinkat.texi: Fix module name.
26441
26442 2010-07-31  Bruno Haible  <bruno@clisp.org>
26443
26444         fchownat: Replace also when chown has the trailing slash bug.
26445         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26446         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26447         introduced on 2010-04-10.
26448         Reported by Rainer Tammer.
26449
26450 2010-07-31  Bruno Haible  <bruno@clisp.org>
26451
26452         linkat: Work around AIX 7.1 bug.
26453         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26454         whether linkat handles trailing slash correctly. If not, replace linkat
26455         and define LINKAT_TRAILING_SLASH_BUG.
26456         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26457         check whether (fd1,file1) points to a directory if file1 or file2 ends
26458         in a slash. Code taken from lib/link.c.
26459         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26460         Reported by Rainer Tammer.
26461
26462 2010-07-31  Bruno Haible  <bruno@clisp.org>
26463
26464         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26465         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26466         This disables an xlc optimization that was causing wrong test results.
26467         Reported by Rainer Tammer.
26468
26469 2010-07-31  Bruno Haible  <bruno@clisp.org>
26470
26471         iconv: Work around AIX 6.1..7.1 bug.
26472         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26473         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26474         cross-compiling, guess no on all versions of AIX.
26475         Reported by Rainer Tammer.
26476
26477 2010-07-31  Bruno Haible  <bruno@clisp.org>
26478
26479         readlink: Relax test a bit.
26480         * tests/test-readlink.h (test_readlink): Allow different errno value
26481         when readlink is called with a file name that ends in / and refers to
26482         a file.
26483         Suggested by Eric Blake.
26484         Reported by Rainer Tammer.
26485
26486 2010-07-31  Bruno Haible  <bruno@clisp.org>
26487
26488         copysign: Does not require -lm on glibc systems.
26489         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26490         gl_COMMON_DOUBLE_MATHFUNC.
26491         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26492
26493 2010-07-31  Bruno Haible  <bruno@clisp.org>
26494
26495         duplocale: Work around AIX 7.1 bug.
26496         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26497         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26498         * lib/duplocale.c (rpl_duplocale): Update comment.
26499         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26500         Reported by Rainer Tammer.
26501
26502 2010-07-30  Bruno Haible  <bruno@clisp.org>
26503
26504         dirfd: Avoid link error on AIX 7.1.
26505         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26506         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26507         exist, set REPLACE_DIRFD.
26508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26509         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26510         * doc/posix-functions/dirfd.texi: Update.
26511         Reported by Rainer Tammer.
26512
26513 2010-07-30  Eric Blake  <eblake@redhat.com>
26514
26515         strtod: next round of AIX fixes
26516         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26517         exponent.
26518         * tests/test-strtod.c (main): Enhance tests.
26519         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26520         Reported by Rainer Tammer.
26521
26522         futimens: fix configure check
26523         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26524         Reported by Bruno Haible.
26525
26526 2010-07-30  Bruno Haible  <bruno@clisp.org>
26527
26528         getline: Update regarding AIX.
26529         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26530         Reported by Rainer Tammer.
26531
26532 2010-07-30  Bruno Haible  <bruno@clisp.org>
26533
26534         wcwidth: Drop replacement on AIX 7.
26535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26536         AIX 7.
26537         Reported by Rainer Tammer.
26538
26539 2010-07-30  Bruno Haible  <bruno@clisp.org>
26540
26541         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26542         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26543         a 'char *'.
26544         Reported by Rainer Tammer.
26545
26546 2010-07-30  Bruno Haible  <bruno@clisp.org>
26547
26548         unlink: Update regarding AIX.
26549         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26550         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26551         Reported by Rainer Tammer.
26552
26553 2010-07-30  Bruno Haible  <bruno@clisp.org>
26554
26555         symlink: Update regarding AIX.
26556         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26557         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26558         Reported by Rainer Tammer.
26559
26560 2010-07-30  Bruno Haible  <bruno@clisp.org>
26561
26562         strndup: Update regarding AIX.
26563         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26564         AIX 7.
26565         Reported by Rainer Tammer.
26566
26567 2010-07-30  Bruno Haible  <bruno@clisp.org>
26568
26569         stat: Update regarding AIX.
26570         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26571         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26572         Reported by Rainer Tammer.
26573
26574 2010-07-30  Bruno Haible  <bruno@clisp.org>
26575
26576         truncl: Fix autoconf test.
26577         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26578         whether truncl works.
26579         Reported by Rainer Tammer.
26580
26581 2010-07-30  Bruno Haible  <bruno@clisp.org>
26582
26583         round: Update regarding AIX.
26584         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26585         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26586         Reported by Rainer Tammer.
26587
26588 2010-07-30  Bruno Haible  <bruno@clisp.org>
26589
26590         rename: Update regarding AIX.
26591         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26592         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26593         Reported by Rainer Tammer.
26594
26595 2010-07-30  Bruno Haible  <bruno@clisp.org>
26596
26597         printf.m4: Update regarding AIX.
26598         * m4/printf.m4: Update comments regarding AIX.
26599         Reported by Rainer Tammer.
26600
26601 2010-07-30  Bruno Haible  <bruno@clisp.org>
26602
26603         iconv: Update regarding AIX.
26604         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26605         AIX 7.
26606         Reported by Rainer Tammer.
26607
26608 2010-07-30  Bruno Haible  <bruno@clisp.org>
26609
26610         getopt: Update regarding AIX.
26611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26612         no on AIX.
26613         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26614         Reported by Rainer Tammer.
26615
26616 2010-07-30  Bruno Haible  <bruno@clisp.org>
26617
26618         ldexpl; Update regarding AIX.
26619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26620         on AIX 7.
26621         Reported by Rainer Tammer.
26622
26623 2010-07-30  Bruno Haible  <bruno@clisp.org>
26624
26625         frexpl: Update regarding AIX.
26626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26627         on AIX 7.
26628         Reported by Rainer Tammer.
26629
26630 2010-07-30  Bruno Haible  <bruno@clisp.org>
26631
26632         open, fopen: Update regarding AIX.
26633         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26634         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26635         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26636         * doc/posix-functions/fopen.texi: Likewise.
26637         Reported by Rainer Tammer.
26638
26639 2010-07-30  Bruno Haible  <bruno@clisp.org>
26640
26641         chown: Update doc regarding AIX.
26642         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26643         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26644         Reported by Rainer Tammer.
26645
26646 2010-07-30  Eric Blake  <eblake@redhat.com>
26647
26648         strtod: fix bug in replacement function on AIX
26649         * lib/strtod.c (strtod): Special case broken "0x" parse in
26650         underlying strtod.
26651         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26652         * doc/posix-functions/strtod.texi (strtod): Likewise.
26653         Reported by Rainer Tammer.
26654
26655 2010-07-30  Bruno Haible  <bruno@clisp.org>
26656
26657         mbrlen: Fix cross-compilation guess for AIX.
26658         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26659         guess. Leftover from 2008-12-22.
26660
26661 2010-07-30  Bruno Haible  <bruno@clisp.org>
26662
26663         mbrtowc: Fix cross-compilation guess for AIX.
26664         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26665         guess. Leftover from 2008-12-21.
26666
26667 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26668
26669         init.sh: work around trap limitation of some shells
26670         * tests/init.sh (setup_): Move exit trap outside of shell function.
26671
26672 2010-07-29  Eric Blake  <eblake@redhat.com>
26673
26674         strtod: aid debugging
26675         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26676         understanding why strtod is rejected.
26677
26678 2010-07-28  Bruno Haible  <bruno@clisp.org>
26679
26680         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26681         * lib/unistr/u8-chr.c: Include <string.h>.
26682         * tests/unistr/test-u8-chr.c: Likewise.
26683         * tests/unistr/test-u16-chr.c: Likewise.
26684         * tests/unistr/test-u32-chr.c: Likewise.
26685         * tests/unistr/test-u8-strchr.c: Likewise.
26686         * tests/unistr/test-u16-strchr.c: Likewise.
26687         * tests/unistr/test-u32-strchr.c: Likewise.
26688         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26689         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26690         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26691         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26692
26693 2010-07-28  Bruno Haible  <bruno@clisp.org>
26694
26695         Use spaces for indentation, not tabs.
26696         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26697
26698 2010-07-27  Bruno Haible  <bruno@clisp.org>
26699
26700         mbspcasecmp: Fix function specification.
26701         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26702         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26703         Reported by Eric Blake <eblake@redhat.com>.
26704
26705 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26706
26707         timespec: use cast and not conditional, as truncation isn't possible
26708         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26709         instead of a conditional.  Comment about the situation in more detail.
26710         This undoes most of the 2009-10-29 patch.
26711
26712 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26713
26714         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26715         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26716         * lib/unistr/u8-strchr.c: Likewise.
26717         * modules/unistr/u8-chr: Depend on memchr.
26718
26719         unistr/u*-strchr: add tests
26720         * modules/unistr/u8-strchr-tests: New file.
26721         * modules/unistr/u16-strchr-tests: New file.
26722         * modules/unistr/u32-strchr-tests: New file.
26723         * tests/unistr/test-strchr.h: New file.
26724         * tests/unistr/test-u8-strchr.c: New file.
26725         * tests/unistr/test-u16-strchr.c: New file.
26726         * tests/unistr/test-u32-strchr.c: New file.
26727
26728         unistr/u*-chr: test multibyte sequences more
26729         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26730         test vector.
26731         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26732         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26733         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26734
26735         unistr/u*-chr: test multibyte sequences
26736         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26737
26738         unistr/u*-chr: prepare for multibyte tests
26739         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26740         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26741         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26742         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26743         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26744         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26745
26746 2010-07-18  Bruno Haible  <bruno@clisp.org>
26747
26748         unistr/u8-strchr: Optimize non-ASCII argument case.
26749         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26750         because the first byte often matches anyway.
26751         Reported by Pádraig Brady <P@draigbrady.com>.
26752
26753 2010-07-15  Karl Berry  <karl@gnu.org>
26754
26755         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26756
26757 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26758
26759         getcwd: on Solaris, work better if ancestors are inaccessible
26760         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26761         buffer and size, try again with a large buffer.  This works better
26762         on Solaris, since its getcwd succeeds even if the path to the root
26763         is inaccessible, and this is helpful in common cases such as .zfs
26764         hidden directories.  Problem reported by J Chapman Flack in
26765         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26766         Use system getcwd if it's declared, not merely if it's partly
26767         working; use the partly-working test only to avoid needless effort
26768         if the system getcwd fails.
26769         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26770         comment that was already obsolete and is now even more obsolete.
26771         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26772         now might call strdup.
26773
26774 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26775
26776         pthread: Add enough so that coreutils/src/sort.c compiles.
26777         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26778         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26779         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26780         Include <sys/types.h>, in case it defines pthread_t.
26781         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26782         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26783         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26784         (pthread_rwlockattr_t, pthread_spinlock_t):
26785         New typedefs, if HAVE_PTHREAD_T is not defined.
26786         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26787         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26788         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26789         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26790         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26791         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26792         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26793         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26794         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26795         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26796         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26797         New macros.
26798         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26799         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26800         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26801         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26802         (pthread_spin_unlock): New dummy functions.
26803         (pthread_create): Return EAGAIN; don't set errno.
26804         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26805         require AC_C_INLINE.
26806         * modules/pthread (Depends-on): Add sched, time.
26807         (pthread.h): Use AM_V_GEN.
26808
26809 2010-07-13  Bruno Haible  <bruno@clisp.org>
26810
26811         striconveh: Don't malloc memory if the result buffer is sufficient.
26812         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26813         buffer if its size is sufficient.
26814         Reported by Ludovic Courtès <ludo@gnu.org>.
26815
26816 2010-07-13  Bruno Haible  <bruno@clisp.org>
26817
26818         strtod: Add safety check.
26819         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26820
26821 2010-07-12  Bruno Haible  <bruno@clisp.org>
26822
26823         Unify tests that set gl_cv_func_ldexpl_no_libm.
26824         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26825         gl_FUNC_LDEXPL.
26826         (gl_FUNC_LDEXPL): Invoke it.
26827         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26828
26829 2010-07-12  Bruno Haible  <bruno@clisp.org>
26830
26831         Unify tests that set gl_cv_func_ldexp_no_libm.
26832         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26833         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26834         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26835         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26836         * modules/strtod (Files): Add m4/ldexp.m4.
26837
26838 2010-07-12  Bruno Haible  <bruno@clisp.org>
26839
26840         Unify tests that set gl_cv_func_frexpl_no_libm.
26841         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26842         gl_FUNC_FREXPL_NO_LIBM.
26843         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26844         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26845
26846 2010-07-12  Bruno Haible  <bruno@clisp.org>
26847
26848         Unify tests that set gl_cv_func_frexp_no_libm.
26849         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26850         gl_FUNC_FREXP_NO_LIBM.
26851         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26852         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26853
26854 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26855
26856         memcoll: clarify sizes versus lengths, document better, and tweak perf
26857         * lib/memcoll.c (strcoll_loop, memcoll0):
26858         Improve quality of descriptive comments.  Name variables
26859         consistently as to whether they are lengths (which do not include
26860         terminating null) versus sizes (which do).
26861         * lib/xmemcoll.c (xmemcoll0): Likewise.
26862         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26863         returned when s1size == 0; this is easier to compile and saves
26864         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26865
26866 2010-07-12  Bruno Haible  <bruno@clisp.org>
26867
26868         Tests for module '_Exit'.
26869         * modules/_Exit-tests: New file.
26870         * tests/test-_Exit.sh: New file.
26871         * tests/test-_Exit.c: New file.
26872
26873         New module '_Exit'.
26874         * lib/stdlib.in.h (__attribute__): New macro.
26875         (_Exit): New declaration.
26876         * lib/_Exit.c: New file.
26877         * m4/_Exit.m4: New file.
26878         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26879         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26880         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26881         * modules/_Exit: New file.
26882         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26883         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26884
26885 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26886
26887         strtod: make it more-accurate typically, and don't require libm
26888         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26889         Include limits.h.  Don't include string.h.
26890         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26891         (locale_isspace): New function, so that no casts are needed to
26892         check whether *s is a space.
26893         (ldexp): Provide an unused dummy if not available.
26894         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26895         (strtod): Use them.  This implementation prefers to use the
26896         underlying strtod if available, falling back on our own code
26897         only to fix known bugs.  This is more likely to produce an
26898         accurate result.  Also, it avoids the use of libm functions.
26899         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26900         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26901         was absent, but it caused a test failure with coreutils.
26902         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26903         with libm.
26904         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26905         * modules/strtod-tests (Makefile.am): Likewise.
26906
26907 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26908             Bruno Haible  <bruno@clisp.org>
26909
26910         unistr/u8-strchr: Optimize ASCII argument case.
26911         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26912
26913 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26914
26915         (x)memcoll: minor tweaks
26916         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26917         is after the type that it qualifies.
26918         (memcoll0): Likewise.
26919         * lib/memcoll.h (memcoll0): Likewise.
26920         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26921         * lib/xmemcoll.h (xmemcoll0): Likewise.
26922         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26923         differs from memcoll in that the NUL byte is part of the argument.
26924         Omit the abort-checks, as performance is a real issue here.  Plus,
26925         the checks were wrong anyway (an off-by-one error).  Omit local
26926         variable 'diff', as it's a bit clearer that way.
26927         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26928         no longer needed.
26929
26930 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26931
26932         (x)memcoll: speedup when input is known to be NUL delimited
26933         * lib/memcoll.c: Include stdlib.
26934         (memcoll0): New function.
26935         (strcoll_loop): New function, refactored for use in both memcoll
26936         and memcoll0.
26937         * lib/memcoll.h (memcoll0): Add prototype.
26938         * lib/xmemcoll.c (xmemcoll0): New function.
26939         (collate_error): New function, refactored for use in both xmemcoll
26940         and xmemcoll0.
26941         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26942         * m4/memcoll.m4: add inline invocation.
26943
26944 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26945
26946         * build-aux/bootstrap: Remove any local translations
26947         from the translation project synchronization directory,
26948         so that local only translations are not distributed.
26949
26950 2010-07-04  Bruno Haible  <bruno@clisp.org>
26951
26952         fsusage: Clarify which code applies to which platforms.
26953         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26954         platform.
26955         * lib/fsusage.c (get_fs_usage): Likewise.
26956
26957 2010-07-04  Bruno Haible  <bruno@clisp.org>
26958
26959         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26960         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26961         Reported by Martin Lambers <marlam@marlam.de>.
26962
26963 2010-07-04  Jim Meyering  <meyering@redhat.com>
26964
26965         hash: once again explicitly disallow insertion of NULL
26966         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26967         inserting a NULL pointer cannot work with these functions.
26968         Add a comment with details.
26969         This reverts part of the 2010-07-01 commit, 5bef1a35
26970         "hash: extend module to deal with non-pointer keys".
26971
26972 2010-07-01  Bruno Haible  <bruno@clisp.org>
26973
26974         stdbool: Update doc.
26975         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26976         Info from Christian Weisgerber <naddy@mips.inka.de>.
26977
26978 2010-07-01  Jim Meyering  <meyering@redhat.com>
26979
26980         hash: extend module to deal with non-pointer keys
26981         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26982         but that allows insertion of non-pointer entries.
26983         Do not disallow an ENTRY value of NULL.
26984         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26985         * lib/hash.h (hash_insert0): Declare.
26986
26987 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26988
26989         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26990         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26991         not present (i.e. with autoconf 2.59 and when using gettextize, not
26992         gnulib), require AC_GNU_SOURCE instead.
26993
26994 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26995
26996         idpriv-drop: Fix tests.
26997         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26998         not to the test-idpriv-droptemp program.
26999
27000 2010-06-29  Bruno Haible  <bruno@clisp.org>
27001
27002         string: Fix syntax error with g++ 2.96.
27003         * lib/string.in.h (__pure__): Remove definition.
27004         (_GL_ATTRIBUTE_PURE): New macro.
27005         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27006         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27007         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27008
27009 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27010
27011         unitypes: Fix bug introduced on 2010-05-18.
27012         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27013
27014 2010-06-22  Eric Blake  <eblake@redhat.com>
27015
27016         memmem: slight optimization
27017         * lib/str-two-way.h (critical_factorization): Update comments.
27018         Reduce work during factorization phase.
27019         Reported by Carlos Bueno <carlos@bueno.org>.
27020
27021 2010-06-21  Bruno Haible  <bruno@clisp.org>
27022
27023         Fix HAVE_CALLOC_POSIX misnomer.
27024         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27025         !HAVE_CALLOC_POSIX.
27026         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27027         HAVE_CALLOC_POSIX.
27028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27029         instead of HAVE_CALLOC_POSIX.
27030         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27031         HAVE_CALLOC_POSIX.
27032
27033         Use modern idiom for calloc() replacement.
27034         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27035         AC_FUNC_CALLOC.
27036         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27037         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27038         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27039         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27040         (gl_REPLACE_CALLOC): New macro.
27041
27042 2010-06-21  Bruno Haible  <bruno@clisp.org>
27043
27044         Fix HAVE_REALLOC_POSIX misnomer.
27045         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27046         !HAVE_REALLOC_POSIX.
27047         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27048         HAVE_REALLOC_POSIX.
27049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27050         instead of HAVE_REALLOC_POSIX.
27051         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27052         HAVE_REALLOC_POSIX.
27053
27054         Use modern idiom for realloc() replacement.
27055         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27056         AC_FUNC_REALLOC.
27057         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27058         Autoconf's AC_FUNC_REALLOC.
27059         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27060         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27061         (gl_REPLACE_REALLOC): New macro.
27062         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27063
27064 2010-06-21  Bruno Haible  <bruno@clisp.org>
27065
27066         Fix HAVE_MALLOC_POSIX misnomer.
27067         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27068         !HAVE_MALLOC_POSIX.
27069         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27070         HAVE_MALLOC_POSIX.
27071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27072         instead of HAVE_MALLOC_POSIX.
27073         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27074         HAVE_MALLOC_POSIX.
27075
27076         Use modern idiom for malloc() replacement.
27077         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27078         AC_FUNC_MALLOC.
27079         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27080         Autoconf's AC_FUNC_MALLOC.
27081         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27082         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27083         (gl_REPLACE_MALLOC): New macro.
27084         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27085
27086 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27087
27088         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27089         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27090         This macro takes 3 arguments, not 4.
27091
27092 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27093
27094         ipv6: fix detection under mingw
27095         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27096         in6_addr.
27097
27098 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27099
27100         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27101         that strtod() works when cross-compiling to a glibc version known
27102         to work.
27103
27104 2010-06-15  Bruno Haible  <bruno@clisp.org>
27105
27106         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27107
27108 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27109
27110         select: Correct timeout.
27111         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27112
27113 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27114
27115         git-version-gen: init shell var to avoid env var influence
27116         * build-aux/git-version-gen (v): Init shell var to empty.
27117
27118 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27119
27120         priv-set: Don't assume that priv.h exists merely because getppriv does.
27121         See Jan Andersen's bug report about AIX 5L in
27122         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27123         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27124         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27125         * lib/priv-set.h: Likewise.
27126         * tests/test-priv-set.c: Likewise.
27127
27128 2010-06-13  Bruno Haible  <bruno@clisp.org>
27129
27130         relocatable: Make it easier to test whether to install wrappers.
27131         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27132         RELOCATABLE_VIA_WRAPPER.
27133
27134 2010-06-13  Bruno Haible  <bruno@clisp.org>
27135
27136         gnulib-tool: Display specified modules and dependencies differently.
27137         * gnulib-tool (func_show_module_list): New function.
27138         (func_import, func_create_testdir): Invoke it.
27139         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27140
27141 2010-06-13  Bruno Haible  <bruno@clisp.org>
27142
27143         gnulib-tool: Align code of func_import and func_create_testdir.
27144         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27145         specified_modules.
27146
27147 2010-06-12  Jim Meyering  <meyering@redhat.com>
27148
27149         test-inttostr: avoid spurious failure on Solaris 9
27150         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27151         to accept "%ju".  Reported by Bruno Haible.
27152
27153 2010-06-11  Jim Meyering  <meyering@redhat.com>
27154
27155         test-sys_socket: mark variables as used more readably
27156         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27157         as "used" explicitly via (void) statement casts.  This is more
27158         readable than using them in an artificial return expression.
27159         Suggestion from Bruno Haible.
27160
27161 2010-06-11  Bruno Haible  <bruno@clisp.org>
27162
27163         Avoid some more warnings from "gcc -Wwrite-strings".
27164         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27165         to 'const char *'.
27166         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27167         * tests/test-c-strcasestr.c (main): Likewise.
27168         * tests/test-mbscasestr1.c (main): Likewise.
27169         * tests/test-mbscasestr2.c (main): Likewise.
27170         * tests/test-memmem.c (main): Likewise.
27171         * tests/test-strstr.c (main): Likewise.
27172         * tests/test-strcasestr.c (main): Likewise.
27173
27174 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27175
27176         init.sh: change framework_failure_ to fail with status 99, not 1
27177         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27178         automake's parallel-tests rule that this is an unexpected failure,
27179         even if the test is listed in XFAIL_TESTS.
27180
27181 2010-06-11  Jim Meyering  <meyering@redhat.com>
27182
27183         test-inttostr: avoid warnings about 4-6KB literal strings
27184         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27185         Include "macros.h", for its definition of ASSERT.
27186         (CK): s/assert/ASSERT/
27187         * modules/inttostr-tests (Files): Add macros.h.
27188
27189         init.sh: don't use $ME_ or skip_ before they are defined
27190         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27191         their first uses.  Also hoist their companions: warn_, fail_,
27192         framework_failure_, $stderr_fileno.  Prompted by a patch from
27193         Stefano Lattarini.
27194
27195         test-sys_socket: avoid set-but-not-used warnings from gcc
27196         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27197         avoid warning about set-but-not-used variables.
27198
27199         test-xvasprintf: avoid 'const' discard warnings
27200         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27201         "const" when assigning from literal strings.
27202         (test_xasprintf): Add "void" in function argument list to placate
27203         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27204
27205         tests: avoid compilation warnings in argmatch and exclude tests...
27206         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27207         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27208         Since it always exits, declare with the "noreturn" attribute.
27209         * tests/test-argmatch.c: Likewise.
27210
27211         tests: avoid 'const' discard warnings in mbsstr tests
27212         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27213         * tests/test-mbsstr2.c (main): Likewise.
27214
27215         test-verify: avoid warning from gcc's -Wmissing-declarations
27216         * tests/test-verify.c (function): Declare to be static.
27217
27218         test-inttostr.c: include <string.h> for use of strcmp
27219         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27220
27221         test-linkat: avoid failed assertion on "other" architectures
27222         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27223         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27224         sparc: https://bugs.launchpad.net/bugs/591968
27225
27226 2010-06-11  Jim Meyering  <meyering@redhat.com>
27227
27228         printf.m4: avoid autoconf's "Expanded Before Required" warning
27229         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27230         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27231         autoconf warning.
27232
27233 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27234
27235         Replacement header templates are now named with ".in", not "_".
27236         * doc/gnulib-intro.texi: Correct.
27237
27238 2010-06-10  Jim Meyering  <meyering@redhat.com>
27239
27240         inttostr-tests: depend on snprintf, not snprintf-posix
27241         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27242         snprintf-posix, to avoid this aclocal failure:
27243           missing file gnulib-tests/vasnprintf.c
27244           configure.ac:45: error: expected source file, required through \
27245           AC_LIBSOURCES, not found
27246
27247 2010-06-10  Jim Meyering  <meyering@redhat.com>
27248
27249         inttostr: add a new function, inttostr, and tests
27250         The namesake function was not available.  The existence of the
27251         template file, inttostr.c makes its addition nontrivial.
27252         * lib/anytostr.c: Rename from inttostr.c.
27253         (anytostr): Rename from inttostr.
27254         * lib/inttostr.c: New file.
27255         * modules/inttostr (Files): Add anytostr.c.
27256         (Makefile.am): Set lib_SOURCES instead of ...
27257         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27258         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27259         * lib/offtostr.c: Likewise.
27260         * lib/uinttostr.c: Likewise.
27261         * lib/umaxtostr.c: Likewise.
27262         * modules/inttostr-tests: New file.
27263         * tests/test-inttostr.c: New file.  Test these functions.
27264
27265 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27266             Bruno Haible  <bruno@clisp.org>
27267
27268         Add "Extending Gnulib" chapter to manual.
27269         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27270         chapter.
27271         (Extending Gnulib): New chapter.
27272         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27273         chapter.
27274
27275 2010-06-09  Bruno Haible  <bruno@clisp.org>
27276
27277         Avoid relocwrapper link errors due to gnulib replacement functions.
27278         * lib/areadlink.c: Use the system's malloc, realloc functions.
27279         (areadlink): Set errno to ENOMEM explicitly.
27280         * modules/areadlink (Depends-on): Remove malloc-posix.
27281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27282
27283 2010-06-09  Bruno Haible  <bruno@clisp.org>
27284
27285         Avoid relocwrapper link errors due to gnulib replacement functions.
27286         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27287         * lib/malloca.c: Likewise.
27288         * lib/relocatable.c: Likewise.
27289         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27290         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27291         * lib/setenv.c: Use the system's malloc, realloc functions.
27292         * lib/strerror.c: Use the system's sprintf function.
27293         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27294
27295 2010-06-04  Bruno Haible  <bruno@clisp.org>
27296
27297         Prefer documented low-level autoconf macro names.
27298         * m4/lib-link.m4: Use m4_translit instead of translit.
27299         * m4/environ.m4: Likewise.
27300         * m4/mathfunc.m4: Likewise.
27301         * m4/onceonly.m4: Likewise.
27302         * m4/stdint.m4: Likewise.
27303         Suggested by Eric Blake.
27304
27305 2010-06-04  Martin Lambers  <marlam@marlam.de>
27306             Bruno Haible  <bruno@clisp.org>
27307
27308         havelib: Allow library names with '+' characters.
27309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27310         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27311
27312 2010-06-09  Bruno Haible  <bruno@clisp.org>
27313
27314         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27315         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27316         realloc failed.
27317
27318 2010-06-08  Peter Simons  <simons@cryp.to>
27319
27320         maint.mk: make the news-check rule more configurable
27321         * top/maint.mk (news-check-lines-spec): New variable.
27322         (news-check): Use "sed -n 1,10p" in place of "head".
27323
27324 2010-06-07  Jim Meyering  <meyering@redhat.com>
27325
27326         do-release-commit-and-tag: fix typo in --help
27327         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27328
27329         regex: avoid new dead-code warning with gcc-4.6.0
27330         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27331         if-block containing a while-loop.  It's been unused for at least
27332         5 years.
27333
27334 2010-06-05  Bruno Haible  <bruno@clisp.org>
27335
27336         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27337         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27338
27339 2010-06-04  Bruno Haible  <bruno@clisp.org>
27340
27341         Update to GNU gettext 0.18.1.
27342         * modules/gettext (configure.ac): Require gettext infrastructure from
27343         version 0.18.1.
27344
27345 2010-06-03  Bruno Haible  <bruno@clisp.org>
27346
27347         Don't use AC_LIBOBJ with file names in subdirectories.
27348         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27349         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27350         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27351         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27352         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27353         gl_LIBUNISTRING_LIBSOURCE.
27354         (Makefile.am): Augment lib_SOURCES here, conditionally.
27355         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27356
27357 2010-06-03  Bruno Haible  <bruno@clisp.org>
27358
27359         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27360         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27361         expansion does not end with a newline.
27362         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27363         unnecessary newline.
27364
27365 2010-06-03  Bruno Haible  <bruno@clisp.org>
27366
27367         Reduce dependencies.
27368         * tests/test-quotearg.h: New file, extracted from
27369         tests/test-quotearg.c.
27370         * tests/test-quotearg-simple.c: New file, extracted from
27371         tests/test-quotearg.c.
27372         * tests/test-quotearg.c: Don't include <ctype.h>.
27373         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27374         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27375         use_quote_double_quotes, use_quotearg_colon): Moved to
27376         tests/test-quotearg.h.
27377         (results_g, flag_results, custom_quotes, custom_results): Moved
27378         to tests/test-quotearg-simple.c.
27379         (main): Moved the part that does not depend on gettext to
27380         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27381         performed.
27382         * modules/quotearg-simple: New file.
27383         * modules/quotearg-simple-tests: New file.
27384         * modules/quotearg (Depends-on): Add quotearg-simple.
27385         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27386         (Files): Add tests/test-quotearg.h.
27387         Reported by Paolo Bonzini.
27388
27389 2010-06-03  Bruno Haible  <bruno@clisp.org>
27390
27391         Reduce dependencies.
27392         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27393
27394 2010-06-03  Bruno Haible  <bruno@clisp.org>
27395
27396         time: Undefine more broken macros.
27397         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27398         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27399         Reported by Eric Blake.
27400
27401 2010-06-03  Bruno Haible  <bruno@clisp.org>
27402
27403         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27404         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27405         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27406         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27407         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27408         Reported by Ludovic Courtès <ludo@gnu.org>.
27409
27410 2010-06-02  Eric Blake  <eblake@redhat.com>
27411
27412         time: work with mingw + pthreads-win32 library
27413         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27414         if timespec is defined only in pthread.h.
27415         * modules/time (Makefile.am): Substitute it.
27416         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27417         <pthread.h>, when needed.
27418         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27419         from the library.
27420
27421 2010-05-31  Bruno Haible  <bruno@clisp.org>
27422
27423         Avoid expanding two macros in the wrong order.
27424         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27425         gl_LIBUNISTRING if it is defined.
27426         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27427         autoconf >= 2.64.
27428         Reported by Ludovic Courtès <ludo@gnu.org>.
27429
27430 2010-05-27  Jim Meyering  <meyering@redhat.com>
27431
27432         maint.mk: also prohibit "#undef" of always-defined symbols
27433         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27434         Allow more than one space before the symbol name.
27435         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27436         the regexp uses alternation.
27437
27438 2010-05-26  Eric Blake  <eblake@redhat.com>
27439
27440         maint.mk: avoid echo -e
27441         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27442         Convert all uses of echo -* to printf.
27443         Reported by Matthias Bolte.
27444
27445 2010-05-25  Bruno Haible  <bruno@clisp.org>
27446
27447         Update to GNU gettext 0.18, part 2.
27448         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27449         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27450
27451 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27452
27453         Add missing include in test-pwrite.c.
27454         * tests/test-pwrite.c: Include string.h, for strcmp.
27455
27456 2010-05-24  Bruno Haible  <bruno@clisp.org>
27457
27458         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27459
27460 2010-05-24  Bruno Haible  <bruno@clisp.org>
27461
27462         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27463         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27464         iconveh_error argument.
27465         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27466         U_STRCONV_TO_LOCALE.
27467         * lib/unistr/u16-strcoll.c: Likewise.
27468         * lib/unistr/u32-strcoll.c: Likewise.
27469         * modules/unistr/u8-strcoll (Depends-on): Add
27470         uniconv/u8-strconv-to-enc, localcharset. Remove
27471         uniconv/u8-strconv-to-locale.
27472         (configure.ac): Bump version number.
27473         * modules/unistr/u16-strcoll (Depends-on): Add
27474         uniconv/u16-strconv-to-enc, localcharset. Remove
27475         uniconv/u16-strconv-to-locale.
27476         (configure.ac): Bump version number.
27477         * modules/unistr/u32-strcoll (Depends-on): Add
27478         uniconv/u32-strconv-to-enc, localcharset. Remove
27479         uniconv/u32-strconv-to-locale.
27480         (configure.ac): Bump version number.
27481
27482 2010-05-24  Bruno Haible  <bruno@clisp.org>
27483
27484         Avoid a test failure on NetBSD 5.0.
27485         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27486         an iconv() bug.
27487
27488 2010-05-24  Bruno Haible  <bruno@clisp.org>
27489
27490         Adjust #include directive style.
27491         * modules/regex (Includes): Recommend to write <regex.h>.
27492
27493 2010-05-24  Bruno Haible  <bruno@clisp.org>
27494
27495         regex: Don't require alloca.
27496         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27497         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27498         only inside if (0).
27499
27500 2010-05-23  Jim Meyering  <meyering@redhat.com>
27501
27502         test-renameat.c: include <sys/stat.h>
27503         * tests/test-renameat.c: Include <sys/stat.h>; required for
27504         definition of S_IS* macros.
27505
27506 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27507
27508         Update maintainer documentation for 'relocatable-prog' module.
27509         * doc/relocatable-maint.texi: Update.
27510         Comments by Bruno Haible.
27511
27512 2010-05-23  Bruno Haible  <bruno@clisp.org>
27513
27514         git-merge-changelog: Enable --split-merged-entry by default.
27515         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27516         (usage): Don't mention this option any more.
27517         Reported by Ralf Wildenhues.
27518
27519 2010-05-23  Jim Meyering  <meyering@redhat.com>
27520
27521         test-pwrite: do not leave behind a test file named "out"
27522         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27523         The trivial-looking use of init.sh is really necessary.
27524         It ensures that the temporary file, "out", is created in
27525         a temporary directory, and removed upon termination.
27526         * tests/test-pwrite.sh: Re-add file.
27527         * modules/pwrite-tests: Reference it.
27528
27529 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27530
27531         Fix output redirection buglet in init.sh.
27532         * tests/init.sh: Fix redirection of stderr.
27533
27534 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27535
27536         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27537
27538 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27539
27540         * modules/valgrind-tests: New file.
27541         * m4/valgrind-tests.m4: New file.
27542         * doc/valgrind-tests.texi: New file.
27543         * doc/gnulib.texi (Running self-tests under valgrind): New
27544         section.
27545
27546 2010-05-19  Bruno Haible  <bruno@clisp.org>
27547
27548         Clean up dead code in recent commit.
27549         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27550         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27551         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27552         Suggested by Paolo Bonzini.
27553
27554 2010-05-19  Bruno Haible  <bruno@clisp.org>
27555
27556         Avoid valgrind error reports from libunistring.
27557         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27558         * modules/libunistring (Files): Add it.
27559         * modules/libunistring-optional (Files): Likewise.
27560
27561 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27562             Bruno Haible  <bruno@clisp.org>
27563
27564         New module 'libunistring-optional'.
27565         * modules/libunistring-optional: New file.
27566         * m4/libunistring-base.m4: New file.
27567         * m4/libunistring-optional.m4: New file.
27568         * lib/unicase.in.h: Renamed from lib/unicase.h.
27569         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27570         * lib/unictype.in.h: Renamed from lib/unictype.h.
27571         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27572         * lib/uniname.in.h: Renamed from lib/uniname.h.
27573         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27574         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27575         * lib/unistr.in.h: Renamed from lib/unistr.h.
27576         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27577         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27578         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27579         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27580         gl_LIBUNISTRING. If the library was found, determine the installed
27581         version and set LIBUNISTRING_VERSION.
27582         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27583         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27584         handle a configuration option --with-included-libunistring.
27585         * modules/libunistring (Files): Add m4/absolute-header.m4.
27586         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27587         Add m4/libunistring-base.m4.
27588         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27589         (Makefile.am): Build unicase.h from unicase.in.h.
27590         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27591         Add m4/libunistring-base.m4.
27592         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27593         (Makefile.am): Build uniconv.h from uniconv.in.h.
27594         * modules/unictype/base (Files): Use unictype.in.h instead of
27595         unictype.h. Add m4/libunistring-base.m4.
27596         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27597         (Makefile.am): Build unictype.h from unictype.in.h.
27598         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27599         Add m4/libunistring-base.m4.
27600         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27601         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27602         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27603         Add m4/libunistring-base.m4.
27604         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27605         (Makefile.am): Build uniname.h from uniname.in.h.
27606         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27607         Add m4/libunistring-base.m4.
27608         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27609         (Makefile.am): Build uninorm.h from uninorm.in.h.
27610         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27611         unistdio.h. Add m4/libunistring-base.m4.
27612         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27613         (Makefile.am): Build unistdio.h from unistdio.in.h.
27614         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27615         Add m4/libunistring-base.m4.
27616         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27617         (Makefile.am): Build unistr.h from unistr.in.h.
27618         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27619         Add m4/libunistring-base.m4.
27620         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27621         (Makefile.am): Build unitypes.h from unitypes.in.h.
27622         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27623         Add m4/libunistring-base.m4.
27624         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27625         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27626         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27627         uniwidth.h. Add m4/libunistring-base.m4.
27628         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27629         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27630         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27631         instead of augmenting lib_SOURCES.
27632         * modules/unicase/empty-suffix-context: Likewise.
27633         * modules/unicase/locale-language: Likewise.
27634         * modules/unicase/tolower: Likewise.
27635         * modules/unicase/totitle: Likewise.
27636         * modules/unicase/toupper: Likewise.
27637         * modules/unicase/u8-casecmp: Likewise.
27638         * modules/unicase/u8-casecoll: Likewise.
27639         * modules/unicase/u8-casefold: Likewise.
27640         * modules/unicase/u8-casexfrm: Likewise.
27641         * modules/unicase/u8-ct-casefold: Likewise.
27642         * modules/unicase/u8-ct-tolower: Likewise.
27643         * modules/unicase/u8-ct-totitle: Likewise.
27644         * modules/unicase/u8-ct-toupper: Likewise.
27645         * modules/unicase/u8-is-cased: Likewise.
27646         * modules/unicase/u8-is-casefolded: Likewise.
27647         * modules/unicase/u8-is-lowercase: Likewise.
27648         * modules/unicase/u8-is-titlecase: Likewise.
27649         * modules/unicase/u8-is-uppercase: Likewise.
27650         * modules/unicase/u8-prefix-context: Likewise.
27651         * modules/unicase/u8-suffix-context: Likewise.
27652         * modules/unicase/u8-tolower: Likewise.
27653         * modules/unicase/u8-totitle: Likewise.
27654         * modules/unicase/u8-toupper: Likewise.
27655         * modules/unicase/u16-casecmp: Likewise.
27656         * modules/unicase/u16-casecoll: Likewise.
27657         * modules/unicase/u16-casefold: Likewise.
27658         * modules/unicase/u16-casexfrm: Likewise.
27659         * modules/unicase/u16-ct-casefold: Likewise.
27660         * modules/unicase/u16-ct-tolower: Likewise.
27661         * modules/unicase/u16-ct-totitle: Likewise.
27662         * modules/unicase/u16-ct-toupper: Likewise.
27663         * modules/unicase/u16-is-cased: Likewise.
27664         * modules/unicase/u16-is-casefolded: Likewise.
27665         * modules/unicase/u16-is-lowercase: Likewise.
27666         * modules/unicase/u16-is-titlecase: Likewise.
27667         * modules/unicase/u16-is-uppercase: Likewise.
27668         * modules/unicase/u16-prefix-context: Likewise.
27669         * modules/unicase/u16-suffix-context: Likewise.
27670         * modules/unicase/u16-tolower: Likewise.
27671         * modules/unicase/u16-totitle: Likewise.
27672         * modules/unicase/u16-toupper: Likewise.
27673         * modules/unicase/u32-casecmp: Likewise.
27674         * modules/unicase/u32-casecoll: Likewise.
27675         * modules/unicase/u32-casefold: Likewise.
27676         * modules/unicase/u32-casexfrm: Likewise.
27677         * modules/unicase/u32-ct-casefold: Likewise.
27678         * modules/unicase/u32-ct-tolower: Likewise.
27679         * modules/unicase/u32-ct-totitle: Likewise.
27680         * modules/unicase/u32-ct-toupper: Likewise.
27681         * modules/unicase/u32-is-cased: Likewise.
27682         * modules/unicase/u32-is-casefolded: Likewise.
27683         * modules/unicase/u32-is-lowercase: Likewise.
27684         * modules/unicase/u32-is-titlecase: Likewise.
27685         * modules/unicase/u32-is-uppercase: Likewise.
27686         * modules/unicase/u32-prefix-context: Likewise.
27687         * modules/unicase/u32-suffix-context: Likewise.
27688         * modules/unicase/u32-tolower: Likewise.
27689         * modules/unicase/u32-totitle: Likewise.
27690         * modules/unicase/u32-toupper: Likewise.
27691         * modules/unicase/ulc-casecmp: Likewise.
27692         * modules/unicase/ulc-casecoll: Likewise.
27693         * modules/unicase/ulc-casexfrm: Likewise.
27694         * modules/uniconv/u8-conv-from-enc: Likewise.
27695         * modules/uniconv/u8-conv-to-enc: Likewise.
27696         * modules/uniconv/u8-strconv-from-enc: Likewise.
27697         * modules/uniconv/u8-strconv-from-locale: Likewise.
27698         * modules/uniconv/u8-strconv-to-enc: Likewise.
27699         * modules/uniconv/u8-strconv-to-locale: Likewise.
27700         * modules/uniconv/u16-conv-from-enc: Likewise.
27701         * modules/uniconv/u16-conv-to-enc: Likewise.
27702         * modules/uniconv/u16-strconv-from-enc: Likewise.
27703         * modules/uniconv/u16-strconv-from-locale: Likewise.
27704         * modules/uniconv/u16-strconv-to-enc: Likewise.
27705         * modules/uniconv/u16-strconv-to-locale: Likewise.
27706         * modules/uniconv/u32-conv-from-enc: Likewise.
27707         * modules/uniconv/u32-conv-to-enc: Likewise.
27708         * modules/uniconv/u32-strconv-from-enc: Likewise.
27709         * modules/uniconv/u32-strconv-from-locale: Likewise.
27710         * modules/uniconv/u32-strconv-to-enc: Likewise.
27711         * modules/uniconv/u32-strconv-to-locale: Likewise.
27712         * modules/unictype/bidicategory-byname: Likewise.
27713         * modules/unictype/bidicategory-name: Likewise.
27714         * modules/unictype/bidicategory-of: Likewise.
27715         * modules/unictype/bidicategory-test: Likewise.
27716         * modules/unictype/block-list: Likewise.
27717         * modules/unictype/block-test: Likewise.
27718         * modules/unictype/category-C: Likewise.
27719         * modules/unictype/category-Cc: Likewise.
27720         * modules/unictype/category-Cf: Likewise.
27721         * modules/unictype/category-Cn: Likewise.
27722         * modules/unictype/category-Co: Likewise.
27723         * modules/unictype/category-Cs: Likewise.
27724         * modules/unictype/category-L: Likewise.
27725         * modules/unictype/category-Ll: Likewise.
27726         * modules/unictype/category-Lm: Likewise.
27727         * modules/unictype/category-Lo: Likewise.
27728         * modules/unictype/category-Lt: Likewise.
27729         * modules/unictype/category-Lu: Likewise.
27730         * modules/unictype/category-M: Likewise.
27731         * modules/unictype/category-Mc: Likewise.
27732         * modules/unictype/category-Me: Likewise.
27733         * modules/unictype/category-Mn: Likewise.
27734         * modules/unictype/category-N: Likewise.
27735         * modules/unictype/category-Nd: Likewise.
27736         * modules/unictype/category-Nl: Likewise.
27737         * modules/unictype/category-No: Likewise.
27738         * modules/unictype/category-P: Likewise.
27739         * modules/unictype/category-Pc: Likewise.
27740         * modules/unictype/category-Pd: Likewise.
27741         * modules/unictype/category-Pe: Likewise.
27742         * modules/unictype/category-Pf: Likewise.
27743         * modules/unictype/category-Pi: Likewise.
27744         * modules/unictype/category-Po: Likewise.
27745         * modules/unictype/category-Ps: Likewise.
27746         * modules/unictype/category-S: Likewise.
27747         * modules/unictype/category-Sc: Likewise.
27748         * modules/unictype/category-Sk: Likewise.
27749         * modules/unictype/category-Sm: Likewise.
27750         * modules/unictype/category-So: Likewise.
27751         * modules/unictype/category-Z: Likewise.
27752         * modules/unictype/category-Zl: Likewise.
27753         * modules/unictype/category-Zp: Likewise.
27754         * modules/unictype/category-Zs: Likewise.
27755         * modules/unictype/category-and: Likewise.
27756         * modules/unictype/category-and-not: Likewise.
27757         * modules/unictype/category-byname: Likewise.
27758         * modules/unictype/category-name: Likewise.
27759         * modules/unictype/category-none: Likewise.
27760         * modules/unictype/category-of: Likewise.
27761         * modules/unictype/category-or: Likewise.
27762         * modules/unictype/category-test: Likewise.
27763         * modules/unictype/combining-class: Likewise.
27764         * modules/unictype/ctype-alnum: Likewise.
27765         * modules/unictype/ctype-alpha: Likewise.
27766         * modules/unictype/ctype-blank: Likewise.
27767         * modules/unictype/ctype-cntrl: Likewise.
27768         * modules/unictype/ctype-digit: Likewise.
27769         * modules/unictype/ctype-graph: Likewise.
27770         * modules/unictype/ctype-lower: Likewise.
27771         * modules/unictype/ctype-print: Likewise.
27772         * modules/unictype/ctype-punct: Likewise.
27773         * modules/unictype/ctype-space: Likewise.
27774         * modules/unictype/ctype-upper: Likewise.
27775         * modules/unictype/ctype-xdigit: Likewise.
27776         * modules/unictype/decimal-digit: Likewise.
27777         * modules/unictype/digit: Likewise.
27778         * modules/unictype/mirror: Likewise.
27779         * modules/unictype/numeric: Likewise.
27780         * modules/unictype/property-alphabetic: Likewise.
27781         * modules/unictype/property-ascii-hex-digit: Likewise.
27782         * modules/unictype/property-bidi-arabic-digit: Likewise.
27783         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27784         * modules/unictype/property-bidi-block-separator: Likewise.
27785         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27786         * modules/unictype/property-bidi-common-separator: Likewise.
27787         * modules/unictype/property-bidi-control: Likewise.
27788         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27789         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27790         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27791         * modules/unictype/property-bidi-european-digit: Likewise.
27792         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27793         * modules/unictype/property-bidi-left-to-right: Likewise.
27794         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27795         * modules/unictype/property-bidi-other-neutral: Likewise.
27796         * modules/unictype/property-bidi-pdf: Likewise.
27797         * modules/unictype/property-bidi-segment-separator: Likewise.
27798         * modules/unictype/property-bidi-whitespace: Likewise.
27799         * modules/unictype/property-byname: Likewise.
27800         * modules/unictype/property-combining: Likewise.
27801         * modules/unictype/property-composite: Likewise.
27802         * modules/unictype/property-currency-symbol: Likewise.
27803         * modules/unictype/property-dash: Likewise.
27804         * modules/unictype/property-decimal-digit: Likewise.
27805         * modules/unictype/property-default-ignorable-code-point: Likewise.
27806         * modules/unictype/property-deprecated: Likewise.
27807         * modules/unictype/property-diacritic: Likewise.
27808         * modules/unictype/property-extender: Likewise.
27809         * modules/unictype/property-format-control: Likewise.
27810         * modules/unictype/property-grapheme-base: Likewise.
27811         * modules/unictype/property-grapheme-extend: Likewise.
27812         * modules/unictype/property-grapheme-link: Likewise.
27813         * modules/unictype/property-hex-digit: Likewise.
27814         * modules/unictype/property-hyphen: Likewise.
27815         * modules/unictype/property-id-continue: Likewise.
27816         * modules/unictype/property-id-start: Likewise.
27817         * modules/unictype/property-ideographic: Likewise.
27818         * modules/unictype/property-ids-binary-operator: Likewise.
27819         * modules/unictype/property-ids-trinary-operator: Likewise.
27820         * modules/unictype/property-ignorable-control: Likewise.
27821         * modules/unictype/property-iso-control: Likewise.
27822         * modules/unictype/property-join-control: Likewise.
27823         * modules/unictype/property-left-of-pair: Likewise.
27824         * modules/unictype/property-line-separator: Likewise.
27825         * modules/unictype/property-logical-order-exception: Likewise.
27826         * modules/unictype/property-lowercase: Likewise.
27827         * modules/unictype/property-math: Likewise.
27828         * modules/unictype/property-non-break: Likewise.
27829         * modules/unictype/property-not-a-character: Likewise.
27830         * modules/unictype/property-numeric: Likewise.
27831         * modules/unictype/property-other-alphabetic: Likewise.
27832         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27833         * modules/unictype/property-other-grapheme-extend: Likewise.
27834         * modules/unictype/property-other-id-continue: Likewise.
27835         * modules/unictype/property-other-id-start: Likewise.
27836         * modules/unictype/property-other-lowercase: Likewise.
27837         * modules/unictype/property-other-math: Likewise.
27838         * modules/unictype/property-other-uppercase: Likewise.
27839         * modules/unictype/property-paired-punctuation: Likewise.
27840         * modules/unictype/property-paragraph-separator: Likewise.
27841         * modules/unictype/property-pattern-syntax: Likewise.
27842         * modules/unictype/property-pattern-white-space: Likewise.
27843         * modules/unictype/property-private-use: Likewise.
27844         * modules/unictype/property-punctuation: Likewise.
27845         * modules/unictype/property-quotation-mark: Likewise.
27846         * modules/unictype/property-radical: Likewise.
27847         * modules/unictype/property-sentence-terminal: Likewise.
27848         * modules/unictype/property-soft-dotted: Likewise.
27849         * modules/unictype/property-space: Likewise.
27850         * modules/unictype/property-terminal-punctuation: Likewise.
27851         * modules/unictype/property-test: Likewise.
27852         * modules/unictype/property-titlecase: Likewise.
27853         * modules/unictype/property-unassigned-code-value: Likewise.
27854         * modules/unictype/property-unified-ideograph: Likewise.
27855         * modules/unictype/property-uppercase: Likewise.
27856         * modules/unictype/property-variation-selector: Likewise.
27857         * modules/unictype/property-white-space: Likewise.
27858         * modules/unictype/property-xid-continue: Likewise.
27859         * modules/unictype/property-xid-start: Likewise.
27860         * modules/unictype/property-zero-width: Likewise.
27861         * modules/unictype/scripts: Likewise.
27862         * modules/unictype/syntax-c-ident: Likewise.
27863         * modules/unictype/syntax-c-whitespace: Likewise.
27864         * modules/unictype/syntax-java-ident: Likewise.
27865         * modules/unictype/syntax-java-whitespace: Likewise.
27866         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27867         * modules/unilbrk/u8-width-linebreaks: Likewise.
27868         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27869         * modules/unilbrk/u16-width-linebreaks: Likewise.
27870         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27871         * modules/unilbrk/u32-width-linebreaks: Likewise.
27872         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27873         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27874         * modules/uniname/uniname: Likewise.
27875         * modules/uninorm/canonical-decomposition: Likewise.
27876         * modules/uninorm/composition: Likewise.
27877         * modules/uninorm/decomposing-form: Likewise.
27878         * modules/uninorm/decomposition: Likewise.
27879         * modules/uninorm/filter: Likewise.
27880         * modules/uninorm/nfc: Likewise.
27881         * modules/uninorm/nfd: Likewise.
27882         * modules/uninorm/nfkc: Likewise.
27883         * modules/uninorm/nfkd: Likewise.
27884         * modules/uninorm/u8-normalize: Likewise.
27885         * modules/uninorm/u8-normcmp: Likewise.
27886         * modules/uninorm/u8-normcoll: Likewise.
27887         * modules/uninorm/u8-normxfrm: Likewise.
27888         * modules/uninorm/u16-normalize: Likewise.
27889         * modules/uninorm/u16-normcmp: Likewise.
27890         * modules/uninorm/u16-normcoll: Likewise.
27891         * modules/uninorm/u16-normxfrm: Likewise.
27892         * modules/uninorm/u32-normalize: Likewise.
27893         * modules/uninorm/u32-normcmp: Likewise.
27894         * modules/uninorm/u32-normcoll: Likewise.
27895         * modules/uninorm/u32-normxfrm: Likewise.
27896         * modules/unistdio/u8-asnprintf: Likewise.
27897         * modules/unistdio/u8-asprintf: Likewise.
27898         * modules/unistdio/u8-snprintf: Likewise.
27899         * modules/unistdio/u8-sprintf: Likewise.
27900         * modules/unistdio/u8-u8-asnprintf: Likewise.
27901         * modules/unistdio/u8-u8-asprintf: Likewise.
27902         * modules/unistdio/u8-u8-snprintf: Likewise.
27903         * modules/unistdio/u8-u8-sprintf: Likewise.
27904         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27905         * modules/unistdio/u8-u8-vasprintf: Likewise.
27906         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27907         * modules/unistdio/u8-u8-vsprintf: Likewise.
27908         * modules/unistdio/u8-vasnprintf: Likewise.
27909         * modules/unistdio/u8-vasprintf: Likewise.
27910         * modules/unistdio/u8-vsnprintf: Likewise.
27911         * modules/unistdio/u8-vsprintf: Likewise.
27912         * modules/unistdio/u16-asnprintf: Likewise.
27913         * modules/unistdio/u16-asprintf: Likewise.
27914         * modules/unistdio/u16-snprintf: Likewise.
27915         * modules/unistdio/u16-sprintf: Likewise.
27916         * modules/unistdio/u16-u16-asnprintf: Likewise.
27917         * modules/unistdio/u16-u16-asprintf: Likewise.
27918         * modules/unistdio/u16-u16-snprintf: Likewise.
27919         * modules/unistdio/u16-u16-sprintf: Likewise.
27920         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27921         * modules/unistdio/u16-u16-vasprintf: Likewise.
27922         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27923         * modules/unistdio/u16-u16-vsprintf: Likewise.
27924         * modules/unistdio/u16-vasnprintf: Likewise.
27925         * modules/unistdio/u16-vasprintf: Likewise.
27926         * modules/unistdio/u16-vsnprintf: Likewise.
27927         * modules/unistdio/u16-vsprintf: Likewise.
27928         * modules/unistdio/u32-asnprintf: Likewise.
27929         * modules/unistdio/u32-asprintf: Likewise.
27930         * modules/unistdio/u32-snprintf: Likewise.
27931         * modules/unistdio/u32-sprintf: Likewise.
27932         * modules/unistdio/u32-u32-asnprintf: Likewise.
27933         * modules/unistdio/u32-u32-asprintf: Likewise.
27934         * modules/unistdio/u32-u32-snprintf: Likewise.
27935         * modules/unistdio/u32-u32-sprintf: Likewise.
27936         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27937         * modules/unistdio/u32-u32-vasprintf: Likewise.
27938         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27939         * modules/unistdio/u32-u32-vsprintf: Likewise.
27940         * modules/unistdio/u32-vasnprintf: Likewise.
27941         * modules/unistdio/u32-vasprintf: Likewise.
27942         * modules/unistdio/u32-vsnprintf: Likewise.
27943         * modules/unistdio/u32-vsprintf: Likewise.
27944         * modules/unistdio/ulc-asnprintf: Likewise.
27945         * modules/unistdio/ulc-asprintf: Likewise.
27946         * modules/unistdio/ulc-fprintf: Likewise.
27947         * modules/unistdio/ulc-snprintf: Likewise.
27948         * modules/unistdio/ulc-sprintf: Likewise.
27949         * modules/unistdio/ulc-vasnprintf: Likewise.
27950         * modules/unistdio/ulc-vasprintf: Likewise.
27951         * modules/unistdio/ulc-vfprintf: Likewise.
27952         * modules/unistdio/ulc-vsnprintf: Likewise.
27953         * modules/unistdio/ulc-vsprintf: Likewise.
27954         * modules/unistr/u8-check: Likewise.
27955         * modules/unistr/u8-chr: Likewise.
27956         * modules/unistr/u8-cmp: Likewise.
27957         * modules/unistr/u8-cmp2: Likewise.
27958         * modules/unistr/u8-cpy: Likewise.
27959         * modules/unistr/u8-cpy-alloc: Likewise.
27960         * modules/unistr/u8-endswith: Likewise.
27961         * modules/unistr/u8-mblen: Likewise.
27962         * modules/unistr/u8-mbsnlen: Likewise.
27963         * modules/unistr/u8-mbtouc: Likewise.
27964         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27965         * modules/unistr/u8-mbtoucr: Likewise.
27966         * modules/unistr/u8-move: Likewise.
27967         * modules/unistr/u8-next: Likewise.
27968         * modules/unistr/u8-prev: Likewise.
27969         * modules/unistr/u8-set: Likewise.
27970         * modules/unistr/u8-startswith: Likewise.
27971         * modules/unistr/u8-stpcpy: Likewise.
27972         * modules/unistr/u8-stpncpy: Likewise.
27973         * modules/unistr/u8-strcat: Likewise.
27974         * modules/unistr/u8-strchr: Likewise.
27975         * modules/unistr/u8-strcmp: Likewise.
27976         * modules/unistr/u8-strcoll: Likewise.
27977         * modules/unistr/u8-strcpy: Likewise.
27978         * modules/unistr/u8-strcspn: Likewise.
27979         * modules/unistr/u8-strdup: Likewise.
27980         * modules/unistr/u8-strlen: Likewise.
27981         * modules/unistr/u8-strmblen: Likewise.
27982         * modules/unistr/u8-strmbtouc: Likewise.
27983         * modules/unistr/u8-strncat: Likewise.
27984         * modules/unistr/u8-strncmp: Likewise.
27985         * modules/unistr/u8-strncpy: Likewise.
27986         * modules/unistr/u8-strnlen: Likewise.
27987         * modules/unistr/u8-strpbrk: Likewise.
27988         * modules/unistr/u8-strrchr: Likewise.
27989         * modules/unistr/u8-strspn: Likewise.
27990         * modules/unistr/u8-strstr: Likewise.
27991         * modules/unistr/u8-strtok: Likewise.
27992         * modules/unistr/u8-to-u16: Likewise.
27993         * modules/unistr/u8-to-u32: Likewise.
27994         * modules/unistr/u8-uctomb: Likewise.
27995         * modules/unistr/u16-check: Likewise.
27996         * modules/unistr/u16-chr: Likewise.
27997         * modules/unistr/u16-cmp: Likewise.
27998         * modules/unistr/u16-cmp2: Likewise.
27999         * modules/unistr/u16-cpy: Likewise.
28000         * modules/unistr/u16-cpy-alloc: Likewise.
28001         * modules/unistr/u16-endswith: Likewise.
28002         * modules/unistr/u16-mblen: Likewise.
28003         * modules/unistr/u16-mbsnlen: Likewise.
28004         * modules/unistr/u16-mbtouc: Likewise.
28005         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28006         * modules/unistr/u16-mbtoucr: Likewise.
28007         * modules/unistr/u16-move: Likewise.
28008         * modules/unistr/u16-next: Likewise.
28009         * modules/unistr/u16-prev: Likewise.
28010         * modules/unistr/u16-set: Likewise.
28011         * modules/unistr/u16-startswith: Likewise.
28012         * modules/unistr/u16-stpcpy: Likewise.
28013         * modules/unistr/u16-stpncpy: Likewise.
28014         * modules/unistr/u16-strcat: Likewise.
28015         * modules/unistr/u16-strchr: Likewise.
28016         * modules/unistr/u16-strcmp: Likewise.
28017         * modules/unistr/u16-strcoll: Likewise.
28018         * modules/unistr/u16-strcpy: Likewise.
28019         * modules/unistr/u16-strcspn: Likewise.
28020         * modules/unistr/u16-strdup: Likewise.
28021         * modules/unistr/u16-strlen: Likewise.
28022         * modules/unistr/u16-strmblen: Likewise.
28023         * modules/unistr/u16-strmbtouc: Likewise.
28024         * modules/unistr/u16-strncat: Likewise.
28025         * modules/unistr/u16-strncmp: Likewise.
28026         * modules/unistr/u16-strncpy: Likewise.
28027         * modules/unistr/u16-strnlen: Likewise.
28028         * modules/unistr/u16-strpbrk: Likewise.
28029         * modules/unistr/u16-strrchr: Likewise.
28030         * modules/unistr/u16-strspn: Likewise.
28031         * modules/unistr/u16-strstr: Likewise.
28032         * modules/unistr/u16-strtok: Likewise.
28033         * modules/unistr/u16-to-u32: Likewise.
28034         * modules/unistr/u16-to-u8: Likewise.
28035         * modules/unistr/u16-uctomb: Likewise.
28036         * modules/unistr/u32-check: Likewise.
28037         * modules/unistr/u32-chr: Likewise.
28038         * modules/unistr/u32-cmp: Likewise.
28039         * modules/unistr/u32-cmp2: Likewise.
28040         * modules/unistr/u32-cpy: Likewise.
28041         * modules/unistr/u32-cpy-alloc: Likewise.
28042         * modules/unistr/u32-endswith: Likewise.
28043         * modules/unistr/u32-mblen: Likewise.
28044         * modules/unistr/u32-mbsnlen: Likewise.
28045         * modules/unistr/u32-mbtouc: Likewise.
28046         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28047         * modules/unistr/u32-mbtoucr: Likewise.
28048         * modules/unistr/u32-move: Likewise.
28049         * modules/unistr/u32-next: Likewise.
28050         * modules/unistr/u32-prev: Likewise.
28051         * modules/unistr/u32-set: Likewise.
28052         * modules/unistr/u32-startswith: Likewise.
28053         * modules/unistr/u32-stpcpy: Likewise.
28054         * modules/unistr/u32-stpncpy: Likewise.
28055         * modules/unistr/u32-strcat: Likewise.
28056         * modules/unistr/u32-strchr: Likewise.
28057         * modules/unistr/u32-strcmp: Likewise.
28058         * modules/unistr/u32-strcoll: Likewise.
28059         * modules/unistr/u32-strcpy: Likewise.
28060         * modules/unistr/u32-strcspn: Likewise.
28061         * modules/unistr/u32-strdup: Likewise.
28062         * modules/unistr/u32-strlen: Likewise.
28063         * modules/unistr/u32-strmblen: Likewise.
28064         * modules/unistr/u32-strmbtouc: Likewise.
28065         * modules/unistr/u32-strncat: Likewise.
28066         * modules/unistr/u32-strncmp: Likewise.
28067         * modules/unistr/u32-strncpy: Likewise.
28068         * modules/unistr/u32-strnlen: Likewise.
28069         * modules/unistr/u32-strpbrk: Likewise.
28070         * modules/unistr/u32-strrchr: Likewise.
28071         * modules/unistr/u32-strspn: Likewise.
28072         * modules/unistr/u32-strstr: Likewise.
28073         * modules/unistr/u32-strtok: Likewise.
28074         * modules/unistr/u32-to-u16: Likewise.
28075         * modules/unistr/u32-to-u8: Likewise.
28076         * modules/unistr/u32-uctomb: Likewise.
28077         * modules/uniwbrk/u8-wordbreaks: Likewise.
28078         * modules/uniwbrk/u16-wordbreaks: Likewise.
28079         * modules/uniwbrk/u32-wordbreaks: Likewise.
28080         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28081         * modules/uniwbrk/wordbreak-property: Likewise.
28082         * modules/uniwidth/u8-strwidth: Likewise.
28083         * modules/uniwidth/u8-width: Likewise.
28084         * modules/uniwidth/u16-strwidth: Likewise.
28085         * modules/uniwidth/u16-width: Likewise.
28086         * modules/uniwidth/u32-strwidth: Likewise.
28087         * modules/uniwidth/u32-width: Likewise.
28088         * modules/uniwidth/width: Likewise.
28089         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28090         with $(LIBUNISTRING).
28091         * modules/unicase/ignorable-tests: Likewise.
28092         * modules/unicase/locale-language-tests: Likewise.
28093         * modules/unicase/tolower-tests: Likewise.
28094         * modules/unicase/totitle-tests: Likewise.
28095         * modules/unicase/toupper-tests: Likewise.
28096         * modules/unicase/u8-casecmp-tests: Likewise.
28097         * modules/unicase/u8-casecoll-tests: Likewise.
28098         * modules/unicase/u8-casefold-tests: Likewise.
28099         * modules/unicase/u8-is-cased-tests: Likewise.
28100         * modules/unicase/u8-is-casefolded-tests: Likewise.
28101         * modules/unicase/u8-is-lowercase-tests: Likewise.
28102         * modules/unicase/u8-is-titlecase-tests: Likewise.
28103         * modules/unicase/u8-is-uppercase-tests: Likewise.
28104         * modules/unicase/u8-tolower-tests: Likewise.
28105         * modules/unicase/u8-totitle-tests: Likewise.
28106         * modules/unicase/u8-toupper-tests: Likewise.
28107         * modules/unicase/u16-casecmp-tests: Likewise.
28108         * modules/unicase/u16-casecoll-tests: Likewise.
28109         * modules/unicase/u16-casefold-tests: Likewise.
28110         * modules/unicase/u16-is-cased-tests: Likewise.
28111         * modules/unicase/u16-is-casefolded-tests: Likewise.
28112         * modules/unicase/u16-is-lowercase-tests: Likewise.
28113         * modules/unicase/u16-is-titlecase-tests: Likewise.
28114         * modules/unicase/u16-is-uppercase-tests: Likewise.
28115         * modules/unicase/u16-tolower-tests: Likewise.
28116         * modules/unicase/u16-totitle-tests: Likewise.
28117         * modules/unicase/u16-toupper-tests: Likewise.
28118         * modules/unicase/u32-casecmp-tests: Likewise.
28119         * modules/unicase/u32-casecoll-tests: Likewise.
28120         * modules/unicase/u32-casefold-tests: Likewise.
28121         * modules/unicase/u32-is-cased-tests: Likewise.
28122         * modules/unicase/u32-is-casefolded-tests: Likewise.
28123         * modules/unicase/u32-is-lowercase-tests: Likewise.
28124         * modules/unicase/u32-is-titlecase-tests: Likewise.
28125         * modules/unicase/u32-is-uppercase-tests: Likewise.
28126         * modules/unicase/u32-tolower-tests: Likewise.
28127         * modules/unicase/u32-totitle-tests: Likewise.
28128         * modules/unicase/u32-toupper-tests: Likewise.
28129         * modules/unicase/ulc-casecmp-tests: Likewise.
28130         * modules/unicase/ulc-casecoll-tests: Likewise.
28131         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28132         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28133         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28134         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28135         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28136         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28137         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28138         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28139         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28140         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28141         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28142         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28143         * modules/unictype/bidicategory-byname-tests: Likewise.
28144         * modules/unictype/bidicategory-name-tests: Likewise.
28145         * modules/unictype/bidicategory-of-tests: Likewise.
28146         * modules/unictype/bidicategory-test-tests: Likewise.
28147         * modules/unictype/block-list-tests: Likewise.
28148         * modules/unictype/block-of-tests: Likewise.
28149         * modules/unictype/block-test-tests: Likewise.
28150         * modules/unictype/category-C-tests: Likewise.
28151         * modules/unictype/category-Cc-tests: Likewise.
28152         * modules/unictype/category-Cf-tests: Likewise.
28153         * modules/unictype/category-Cn-tests: Likewise.
28154         * modules/unictype/category-Co-tests: Likewise.
28155         * modules/unictype/category-Cs-tests: Likewise.
28156         * modules/unictype/category-L-tests: Likewise.
28157         * modules/unictype/category-Ll-tests: Likewise.
28158         * modules/unictype/category-Lm-tests: Likewise.
28159         * modules/unictype/category-Lo-tests: Likewise.
28160         * modules/unictype/category-Lt-tests: Likewise.
28161         * modules/unictype/category-Lu-tests: Likewise.
28162         * modules/unictype/category-M-tests: Likewise.
28163         * modules/unictype/category-Mc-tests: Likewise.
28164         * modules/unictype/category-Me-tests: Likewise.
28165         * modules/unictype/category-Mn-tests: Likewise.
28166         * modules/unictype/category-N-tests: Likewise.
28167         * modules/unictype/category-Nd-tests: Likewise.
28168         * modules/unictype/category-Nl-tests: Likewise.
28169         * modules/unictype/category-No-tests: Likewise.
28170         * modules/unictype/category-P-tests: Likewise.
28171         * modules/unictype/category-Pc-tests: Likewise.
28172         * modules/unictype/category-Pd-tests: Likewise.
28173         * modules/unictype/category-Pe-tests: Likewise.
28174         * modules/unictype/category-Pf-tests: Likewise.
28175         * modules/unictype/category-Pi-tests: Likewise.
28176         * modules/unictype/category-Po-tests: Likewise.
28177         * modules/unictype/category-Ps-tests: Likewise.
28178         * modules/unictype/category-S-tests: Likewise.
28179         * modules/unictype/category-Sc-tests: Likewise.
28180         * modules/unictype/category-Sk-tests: Likewise.
28181         * modules/unictype/category-Sm-tests: Likewise.
28182         * modules/unictype/category-So-tests: Likewise.
28183         * modules/unictype/category-Z-tests: Likewise.
28184         * modules/unictype/category-Zl-tests: Likewise.
28185         * modules/unictype/category-Zp-tests: Likewise.
28186         * modules/unictype/category-Zs-tests: Likewise.
28187         * modules/unictype/category-and-not-tests: Likewise.
28188         * modules/unictype/category-and-tests: Likewise.
28189         * modules/unictype/category-byname-tests: Likewise.
28190         * modules/unictype/category-name-tests: Likewise.
28191         * modules/unictype/category-none-tests: Likewise.
28192         * modules/unictype/category-of-tests: Likewise.
28193         * modules/unictype/category-or-tests: Likewise.
28194         * modules/unictype/category-test-withtable-tests: Likewise.
28195         * modules/unictype/combining-class-tests: Likewise.
28196         * modules/unictype/ctype-alnum-tests: Likewise.
28197         * modules/unictype/ctype-alpha-tests: Likewise.
28198         * modules/unictype/ctype-blank-tests: Likewise.
28199         * modules/unictype/ctype-cntrl-tests: Likewise.
28200         * modules/unictype/ctype-digit-tests: Likewise.
28201         * modules/unictype/ctype-graph-tests: Likewise.
28202         * modules/unictype/ctype-lower-tests: Likewise.
28203         * modules/unictype/ctype-print-tests: Likewise.
28204         * modules/unictype/ctype-punct-tests: Likewise.
28205         * modules/unictype/ctype-space-tests: Likewise.
28206         * modules/unictype/ctype-upper-tests: Likewise.
28207         * modules/unictype/ctype-xdigit-tests: Likewise.
28208         * modules/unictype/decimal-digit-tests: Likewise.
28209         * modules/unictype/digit-tests: Likewise.
28210         * modules/unictype/mirror-tests: Likewise.
28211         * modules/unictype/numeric-tests: Likewise.
28212         * modules/unictype/property-alphabetic-tests: Likewise.
28213         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28214         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28215         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28216         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28217         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28218         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28219         * modules/unictype/property-bidi-control-tests: Likewise.
28220         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28221         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28222         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28223         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28224         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28225         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28226         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28227         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28228         * modules/unictype/property-bidi-pdf-tests: Likewise.
28229         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28230         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28231         * modules/unictype/property-byname-tests: Likewise.
28232         * modules/unictype/property-combining-tests: Likewise.
28233         * modules/unictype/property-composite-tests: Likewise.
28234         * modules/unictype/property-currency-symbol-tests: Likewise.
28235         * modules/unictype/property-dash-tests: Likewise.
28236         * modules/unictype/property-decimal-digit-tests: Likewise.
28237         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28238         * modules/unictype/property-deprecated-tests: Likewise.
28239         * modules/unictype/property-diacritic-tests: Likewise.
28240         * modules/unictype/property-extender-tests: Likewise.
28241         * modules/unictype/property-format-control-tests: Likewise.
28242         * modules/unictype/property-grapheme-base-tests: Likewise.
28243         * modules/unictype/property-grapheme-extend-tests: Likewise.
28244         * modules/unictype/property-grapheme-link-tests: Likewise.
28245         * modules/unictype/property-hex-digit-tests: Likewise.
28246         * modules/unictype/property-hyphen-tests: Likewise.
28247         * modules/unictype/property-id-continue-tests: Likewise.
28248         * modules/unictype/property-id-start-tests: Likewise.
28249         * modules/unictype/property-ideographic-tests: Likewise.
28250         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28251         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28252         * modules/unictype/property-ignorable-control-tests: Likewise.
28253         * modules/unictype/property-iso-control-tests: Likewise.
28254         * modules/unictype/property-join-control-tests: Likewise.
28255         * modules/unictype/property-left-of-pair-tests: Likewise.
28256         * modules/unictype/property-line-separator-tests: Likewise.
28257         * modules/unictype/property-logical-order-exception-tests: Likewise.
28258         * modules/unictype/property-lowercase-tests: Likewise.
28259         * modules/unictype/property-math-tests: Likewise.
28260         * modules/unictype/property-non-break-tests: Likewise.
28261         * modules/unictype/property-not-a-character-tests: Likewise.
28262         * modules/unictype/property-numeric-tests: Likewise.
28263         * modules/unictype/property-other-alphabetic-tests: Likewise.
28264         * modules/unictype/property-other-default-ignorable-code-point-tests:
28265         Likewise.
28266         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28267         * modules/unictype/property-other-id-continue-tests: Likewise.
28268         * modules/unictype/property-other-id-start-tests: Likewise.
28269         * modules/unictype/property-other-lowercase-tests: Likewise.
28270         * modules/unictype/property-other-math-tests: Likewise.
28271         * modules/unictype/property-other-uppercase-tests: Likewise.
28272         * modules/unictype/property-paired-punctuation-tests: Likewise.
28273         * modules/unictype/property-paragraph-separator-tests: Likewise.
28274         * modules/unictype/property-pattern-syntax-tests: Likewise.
28275         * modules/unictype/property-pattern-white-space-tests: Likewise.
28276         * modules/unictype/property-private-use-tests: Likewise.
28277         * modules/unictype/property-punctuation-tests: Likewise.
28278         * modules/unictype/property-quotation-mark-tests: Likewise.
28279         * modules/unictype/property-radical-tests: Likewise.
28280         * modules/unictype/property-sentence-terminal-tests: Likewise.
28281         * modules/unictype/property-soft-dotted-tests: Likewise.
28282         * modules/unictype/property-space-tests: Likewise.
28283         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28284         * modules/unictype/property-test-tests: Likewise.
28285         * modules/unictype/property-titlecase-tests: Likewise.
28286         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28287         * modules/unictype/property-unified-ideograph-tests: Likewise.
28288         * modules/unictype/property-uppercase-tests: Likewise.
28289         * modules/unictype/property-variation-selector-tests: Likewise.
28290         * modules/unictype/property-white-space-tests: Likewise.
28291         * modules/unictype/property-xid-continue-tests: Likewise.
28292         * modules/unictype/property-xid-start-tests: Likewise.
28293         * modules/unictype/property-zero-width-tests: Likewise.
28294         * modules/unictype/scripts-tests: Likewise.
28295         * modules/unictype/syntax-c-ident-tests: Likewise.
28296         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28297         * modules/unictype/syntax-java-ident-tests: Likewise.
28298         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28299         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28300         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28301         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28302         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28303         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28304         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28305         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28306         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28307         * modules/uniname/uniname-tests: Likewise.
28308         * modules/uninorm/canonical-decomposition-tests: Likewise.
28309         * modules/uninorm/compat-decomposition-tests: Likewise.
28310         * modules/uninorm/composition-tests: Likewise.
28311         * modules/uninorm/decomposing-form-tests: Likewise.
28312         * modules/uninorm/decomposition-tests: Likewise.
28313         * modules/uninorm/filter-tests: Likewise.
28314         * modules/uninorm/nfc-tests: Likewise.
28315         * modules/uninorm/nfd-tests: Likewise.
28316         * modules/uninorm/nfkc-tests: Likewise.
28317         * modules/uninorm/nfkd-tests: Likewise.
28318         * modules/uninorm/u8-normcmp-tests: Likewise.
28319         * modules/uninorm/u8-normcoll-tests: Likewise.
28320         * modules/uninorm/u16-normcmp-tests: Likewise.
28321         * modules/uninorm/u16-normcoll-tests: Likewise.
28322         * modules/uninorm/u32-normcmp-tests: Likewise.
28323         * modules/uninorm/u32-normcoll-tests: Likewise.
28324         * modules/unistdio/u8-asnprintf-tests: Likewise.
28325         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28326         * modules/unistdio/u8-vasprintf-tests: Likewise.
28327         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28328         * modules/unistdio/u8-vsprintf-tests: Likewise.
28329         * modules/unistdio/u16-asnprintf-tests: Likewise.
28330         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28331         * modules/unistdio/u16-vasprintf-tests: Likewise.
28332         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28333         * modules/unistdio/u16-vsprintf-tests: Likewise.
28334         * modules/unistdio/u32-asnprintf-tests: Likewise.
28335         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28336         * modules/unistdio/u32-vasprintf-tests: Likewise.
28337         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28338         * modules/unistdio/u32-vsprintf-tests: Likewise.
28339         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28340         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28341         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28342         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28343         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28344         * modules/unistr/u8-check-tests: Likewise.
28345         * modules/unistr/u8-chr-tests: Likewise.
28346         * modules/unistr/u8-cmp-tests: Likewise.
28347         * modules/unistr/u8-cmp2-tests: Likewise.
28348         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28349         * modules/unistr/u8-cpy-tests: Likewise.
28350         * modules/unistr/u8-mblen-tests: Likewise.
28351         * modules/unistr/u8-mbsnlen-tests: Likewise.
28352         * modules/unistr/u8-mbtouc-tests: Likewise.
28353         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28354         * modules/unistr/u8-mbtoucr-tests: Likewise.
28355         * modules/unistr/u8-move-tests: Likewise.
28356         * modules/unistr/u8-next-tests: Likewise.
28357         * modules/unistr/u8-prev-tests: Likewise.
28358         * modules/unistr/u8-set-tests: Likewise.
28359         * modules/unistr/u8-stpcpy-tests: Likewise.
28360         * modules/unistr/u8-stpncpy-tests: Likewise.
28361         * modules/unistr/u8-strcat-tests: Likewise.
28362         * modules/unistr/u8-strcmp-tests: Likewise.
28363         * modules/unistr/u8-strcoll-tests: Likewise.
28364         * modules/unistr/u8-strcpy-tests: Likewise.
28365         * modules/unistr/u8-strdup-tests: Likewise.
28366         * modules/unistr/u8-strlen-tests: Likewise.
28367         * modules/unistr/u8-strmblen-tests: Likewise.
28368         * modules/unistr/u8-strmbtouc-tests: Likewise.
28369         * modules/unistr/u8-strncat-tests: Likewise.
28370         * modules/unistr/u8-strncmp-tests: Likewise.
28371         * modules/unistr/u8-strncpy-tests: Likewise.
28372         * modules/unistr/u8-strnlen-tests: Likewise.
28373         * modules/unistr/u8-to-u16-tests: Likewise.
28374         * modules/unistr/u8-to-u32-tests: Likewise.
28375         * modules/unistr/u8-uctomb-tests: Likewise.
28376         * modules/unistr/u16-check-tests: Likewise.
28377         * modules/unistr/u16-chr-tests: Likewise.
28378         * modules/unistr/u16-cmp-tests: Likewise.
28379         * modules/unistr/u16-cmp2-tests: Likewise.
28380         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28381         * modules/unistr/u16-cpy-tests: Likewise.
28382         * modules/unistr/u16-mblen-tests: Likewise.
28383         * modules/unistr/u16-mbsnlen-tests: Likewise.
28384         * modules/unistr/u16-mbtouc-tests: Likewise.
28385         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28386         * modules/unistr/u16-mbtoucr-tests: Likewise.
28387         * modules/unistr/u16-move-tests: Likewise.
28388         * modules/unistr/u16-next-tests: Likewise.
28389         * modules/unistr/u16-prev-tests: Likewise.
28390         * modules/unistr/u16-set-tests: Likewise.
28391         * modules/unistr/u16-stpcpy-tests: Likewise.
28392         * modules/unistr/u16-stpncpy-tests: Likewise.
28393         * modules/unistr/u16-strcat-tests: Likewise.
28394         * modules/unistr/u16-strcmp-tests: Likewise.
28395         * modules/unistr/u16-strcoll-tests: Likewise.
28396         * modules/unistr/u16-strcpy-tests: Likewise.
28397         * modules/unistr/u16-strdup-tests: Likewise.
28398         * modules/unistr/u16-strlen-tests: Likewise.
28399         * modules/unistr/u16-strmblen-tests: Likewise.
28400         * modules/unistr/u16-strmbtouc-tests: Likewise.
28401         * modules/unistr/u16-strncat-tests: Likewise.
28402         * modules/unistr/u16-strncmp-tests: Likewise.
28403         * modules/unistr/u16-strncpy-tests: Likewise.
28404         * modules/unistr/u16-strnlen-tests: Likewise.
28405         * modules/unistr/u16-to-u32-tests: Likewise.
28406         * modules/unistr/u16-to-u8-tests: Likewise.
28407         * modules/unistr/u16-uctomb-tests: Likewise.
28408         * modules/unistr/u32-check-tests: Likewise.
28409         * modules/unistr/u32-chr-tests: Likewise.
28410         * modules/unistr/u32-cmp-tests: Likewise.
28411         * modules/unistr/u32-cmp2-tests: Likewise.
28412         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28413         * modules/unistr/u32-cpy-tests: Likewise.
28414         * modules/unistr/u32-mblen-tests: Likewise.
28415         * modules/unistr/u32-mbsnlen-tests: Likewise.
28416         * modules/unistr/u32-mbtouc-tests: Likewise.
28417         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28418         * modules/unistr/u32-mbtoucr-tests: Likewise.
28419         * modules/unistr/u32-move-tests: Likewise.
28420         * modules/unistr/u32-next-tests: Likewise.
28421         * modules/unistr/u32-prev-tests: Likewise.
28422         * modules/unistr/u32-set-tests: Likewise.
28423         * modules/unistr/u32-stpcpy-tests: Likewise.
28424         * modules/unistr/u32-stpncpy-tests: Likewise.
28425         * modules/unistr/u32-strcat-tests: Likewise.
28426         * modules/unistr/u32-strcmp-tests: Likewise.
28427         * modules/unistr/u32-strcoll-tests: Likewise.
28428         * modules/unistr/u32-strcpy-tests: Likewise.
28429         * modules/unistr/u32-strdup-tests: Likewise.
28430         * modules/unistr/u32-strlen-tests: Likewise.
28431         * modules/unistr/u32-strmblen-tests: Likewise.
28432         * modules/unistr/u32-strmbtouc-tests: Likewise.
28433         * modules/unistr/u32-strncat-tests: Likewise.
28434         * modules/unistr/u32-strncmp-tests: Likewise.
28435         * modules/unistr/u32-strncpy-tests: Likewise.
28436         * modules/unistr/u32-strnlen-tests: Likewise.
28437         * modules/unistr/u32-to-u16-tests: Likewise.
28438         * modules/unistr/u32-to-u8-tests: Likewise.
28439         * modules/unistr/u32-uctomb-tests: Likewise.
28440         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28441         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28442         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28443         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28444         * modules/uniwidth/u8-strwidth-tests: Likewise.
28445         * modules/uniwidth/u8-width-tests: Likewise.
28446         * modules/uniwidth/u16-strwidth-tests: Likewise.
28447         * modules/uniwidth/u16-width-tests: Likewise.
28448         * modules/uniwidth/u32-strwidth-tests: Likewise.
28449         * modules/uniwidth/u32-width-tests: Likewise.
28450         * modules/uniwidth/width-tests: Likewise.
28451
28452 2010-05-18  Richard Jones  <rjones@redhat.com>
28453
28454         doc: users.txt: list hivex
28455         * users.txt: Add hivex.
28456
28457 2010-05-18  Richard Jones  <rjones@redhat.com>
28458
28459         doc: users.txt: list febootstrap
28460         * users.txt: Add febootstrap.
28461
28462 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28463
28464         bootstrap: fix an error when gnulib is not used as a git submodule
28465         * build-aux/bootstrap (gnulib_path): If its length is zero then
28466         assign "gnulib" to it.
28467         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28468
28469 2010-05-16  Bruno Haible  <bruno@clisp.org>
28470
28471         Avoid autoconf warnings about AM_ICONV.
28472         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28473         2.64.
28474
28475 2010-05-16  Bruno Haible  <bruno@clisp.org>
28476
28477         absolute-header: Make the macro usable in more situations.
28478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28479         from gl_ABSOLUTE_HEADER.
28480         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28481
28482 2010-05-16  James Youngman  <jay@gnu.org>
28483
28484         doc: update users.txt
28485         * users.txt: Add CSSC.
28486
28487 2010-05-16  Jim Meyering  <meyering@redhat.com>
28488
28489         init.sh: fix an error in the previous change; add more comments
28490         * tests/init.sh: Compare exit code in loop against 9, not 2.
28491         Patch by Bruno Haible.
28492         Make the two tests more similar by adding an empty "then" clause.
28493         Add comments.
28494
28495         init.sh: avoid unnecessary shell re-exec
28496         * tests/init.sh: Improve the re-exec-required check to first test the
28497         current shell.  If it passes the test, do not search for a shell that
28498         does pass, and do not re-exec.  This test is particularly contorted to
28499         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28500         of $(...) evokes a syntax error and causes immediate shell exit with
28501         status 2.  Bruno Haible reported that the re-exec made it impossible
28502         to single-step through any init.sh-using script.
28503
28504 2010-05-16  Bruno Haible  <bruno@clisp.org>
28505
28506         Fix collision between gnulib's and libintl's printf replacements.
28507         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28508         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28509         (printf): When using GNU C, map the __printf__ function to rpl_printf
28510         via __asm__. When not using GNU C, define rpl_printf instead of
28511         __printf__.
28512         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28513         commit.
28514         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28515         commit.
28516         * m4/asm-underscore.m4: New file.
28517         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28518         * modules/stdio (Files): Add m4/asm-underscore.m4.
28519         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28520         Reported by Ben Pfaff.
28521
28522 2010-05-16  Bruno Haible  <bruno@clisp.org>
28523
28524         verify: Avoid skipping the test on openSUSE 11.0.
28525         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28526
28527 2010-05-13  Bruno Haible  <bruno@clisp.org>
28528
28529         Avoid useless warnings from G++.
28530         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28531         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28532         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28533
28534 2010-05-11  Jim Meyering  <meyering@redhat.com>
28535
28536         maint.mk: tweak preceding change
28537         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28538         regexps tighter by anchoring at EOL, and make the new group "shy"
28539         for slightly decreased overhead.
28540
28541 2010-05-11  Eric Blake  <eblake@redhat.com>
28542
28543         maint.mk: gnulib doesn't guarantee NSIG
28544         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28545
28546 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28547
28548         test-pwrite.c: Remove unused variable declaration.
28549         * tests/test-pwrite.c (main): Remove read_buf declaration.
28550
28551         Remove useless test-pwrite.sh file.
28552         * tests/test-pwrite.sh: Delete file.
28553         * modules/pwrite-tests: Remove references.
28554         Reported by Bruno Haible.
28555
28556 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28557
28558         init.sh: fix a typo
28559         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28560
28561 2010-05-10  Jim Meyering  <meyering@redhat.com>
28562
28563         maint.mk: avoid using a temporary file in the always-defined-macros check
28564         * top/maint.mk (.re-defmac): Remove rule.
28565         (gl_trap_): Remove definition.
28566         (sc_prohibit_always-defined_macros): Rewrite not to create and
28567         depend on a temporary file.  Instead, depend on GNU grep's ability
28568         to read a list of regular expressions from stdin when given "-f -".
28569
28570 2010-05-09  Bruno Haible  <bruno@clisp.org>
28571
28572         Update to GNU gettext 0.18, part 1.
28573         * m4/gettext.m4: Update to GNU gettext 0.18.
28574         * m4/intl.m4: Likewise.
28575         * m4/po.m4: Likewise.
28576         * modules/gettext (Files): Add m4/fcntl-o.m4.
28577         (configure.ac): Require gettext infrastructure from version 0.18.
28578
28579 2010-05-09  Jim Meyering  <meyering@redhat.com>
28580
28581         init.sh: enable MALLOC_PERTURB_
28582         * tests/init.sh: Enable glibc's malloc-perturbing option.
28583
28584         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28585         With my recent change in init.sh from the two-line form:
28586             -#   : ${srcdir=.}
28587             -#   . "$srcdir/init.sh"; path_prepend_ .
28588             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28589         I noticed that using the one-line form would cause this test
28590         to fail with a false-positive, or to stop working altogether,
28591         depending on whether help-version changed or all the tests did.
28592         * top/maint.mk (_hv_regex): Remove this definition.
28593         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28594         (_hv_regex_strong): Use a stronger regex to check for conformance.
28595         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28596         Give a separate diagnostic for lack of conforming use.
28597
28598         maint.mk: prohibit definition of symbols defined by gnulib
28599         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28600         definition of symbols defined by gnulib.
28601
28602 2010-05-09  Bruno Haible  <bruno@clisp.org>
28603
28604         acl: Avoid test failure on Cygwin-hosted mingw.
28605         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28606
28607 2010-05-09  Bruno Haible  <bruno@clisp.org>
28608
28609         error: Use system's fcntl function.
28610         * lib/error.c (fcntl): Undefine.
28611
28612 2010-05-09  Jim Meyering  <meyering@redhat.com>
28613
28614         verify: adjust formatting to be more consistent
28615         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28616         argument-list '('s, and after one comma.
28617
28618 2010-05-09  Bruno Haible  <bruno@clisp.org>
28619
28620         error: More reliable output on mingw.
28621         * lib/error.c: Include <windows.h>.
28622         (is_open): New function.
28623         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28624         defined.
28625
28626 2010-05-09  Bruno Haible  <bruno@clisp.org>
28627
28628         vasnprintf: Fix syntax errors in libintl build on mingw.
28629         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28630         pad_ourselves and prec_ourselves after use.
28631
28632 2010-05-08  Bruno Haible  <bruno@clisp.org>
28633
28634         * lib/config.charset: Update comments for Cygwin 1.7.
28635         * lib/localcharset.c: Likewise.
28636
28637 2010-05-07  Jim Meyering  <meyering@redhat.com>
28638
28639         init.sh: improve comments
28640         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28641         . "${srcdir=.}/init.sh"; path_prepend_ .
28642         Add a note about path_prepend_ and the alternative of using
28643         TESTS_ENVIRONMENT.
28644
28645 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28646
28647         exclude: Unescape hashed patterns in wildcard mode.
28648         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28649         to the hash list.
28650         * tests/test-exclude8.sh: New test case.
28651         * modules/exclude-tests: Add new test.
28652
28653 2010-05-05  Eric Blake  <eblake@redhat.com>
28654
28655         verify: automate tests
28656         * modules/verify-tests: New module.
28657         * tests/test-verify.sh: New file.
28658         * tests/test-verify.c: Guard each negative test with a unique id.
28659         Also avoid warning about unused left hand of comma expressions.
28660
28661 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28662
28663         Further improvements to verify.h, suggested by Eric Blake.
28664         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28665         the GL_* versions, to avoid collision with OpenGL.
28666         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28667         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28668         than testing merely whether it's defined.
28669
28670         Modify verify.h to pacify gcc -Wredundant_decls.
28671         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28672         These use the prefix "GL_" since they're likely to be useful elsewhere.
28673         We may need to break them out into a different .h file.
28674         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28675         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28676         of verify_function__.
28677
28678 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28679
28680         Tests for module pwrite.
28681         * modules/pwrite-tests: New file.
28682         * tests/test-pwrite.sh: New file.
28683         * tests/test-pwrite.c: New file.
28684
28685         New module pwrite.
28686         * lib/unistd.in.h (pwrite): New declaration.
28687         * lib/pwrite.c: New file, from glibc with modifications.
28688         * m4/pwrite.m4: New file.
28689         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28690         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28691         REPLACE_PWRITE.
28692         * modules/pwrite: New file.
28693         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28694         REPLACE_PWRITE.
28695         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28696         * doc/posix-functions/pwrite.texi: Mention the new module.
28697
28698 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28699
28700         pread: Update documentation.
28701         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28702
28703 2010-05-04  Eric Blake  <eblake@redhat.com>
28704
28705         docs: update cygwin progress
28706         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28707         this bug.
28708         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28709         Added in cygwin 1.7.2.
28710         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28711         Likewise.
28712         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28713         Likewise.
28714         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28715         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28716         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28717         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28718         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28719         Mention nproc module.
28720         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28721         bug in cygwin 1.7.5 addition.
28722         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28723         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28724         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28725         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28726         1.7.5.
28727         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28728         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28729         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28730         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28731         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28732         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28733         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28734         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28735         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28736         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28737         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28738         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28739         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28740         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28741         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28742         Likewise.
28743         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28744         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28745         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28746         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28747         Likewise.
28748         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28749         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28750         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28751         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28752         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28753         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28754         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28755         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28756         Likewise.
28757         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28758         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28759         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28760         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28761         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28762         Likewise.
28763         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28764         Likewise.
28765         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28766         Likewise.
28767         * doc/glibc-functions/xdrrec_endofrecord.texi
28768         (xdrrec_endofrecord): Likewise.
28769         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28770         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28771         Likewise.
28772         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28773         Likewise.
28774
28775 2010-05-04  Jim Meyering  <meyering@redhat.com>
28776
28777         gendocs.sh: make its "-s FILE" option more useful
28778         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28779         $PACKAGE to reflect the probably-different basename of "FILE".
28780
28781 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28782
28783         bootstrap: don't ignore download_po_files failure
28784         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28785         failure.
28786
28787 2010-05-03  Jim Meyering  <meyering@redhat.com>
28788
28789         maint.mk: allow to pass options to gendocs.sh
28790         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28791         (gendocs_options_): New overridable variable.
28792
28793         gnu-web-doc-update: don't ignore configure or build failure
28794         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28795
28796         announce-gen: backslash-escape '@'s in --help output
28797         * build-aux/announce-gen: Fix syntax errors.
28798
28799         maint.mk, announce-gen: allow project-specific announcement mail headers
28800         * top/maint.mk (translation_project_): Define default.
28801         (announcement_Cc_, announcement_mail_headers_): Likewise.
28802         (announcement): Invoke announce-gen with new --mail-headers option.
28803         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28804
28805         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28806         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28807         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28808         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28809         line in the "err2" output file when running "make check" in verbose
28810         mode (i.e., with set -x enabled).
28811
28812 2010-05-03  Bruno Haible  <bruno@clisp.org>
28813
28814         wctob: Fix for weird platforms.
28815         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28816         argument value.
28817
28818 2010-05-03  Jim Meyering  <meyering@redhat.com>
28819
28820         maint.mk: prohibit unwarranted use of <strings.h>
28821         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28822         strings.h in a file that does not also use strcasecmp, strncasecmp,
28823         ffs or ffsll.
28824
28825         maint.mk: remove obsolete comments
28826         * top/maint.mk: Remove stale, commented-out rules.
28827
28828 2010-05-02  Bruno Haible  <bruno@clisp.org>
28829
28830         wcwidth: Declare also when it's aliased.
28831         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28832         macro.
28833
28834 2010-05-02  Bruno Haible  <bruno@clisp.org>
28835
28836         Fix regression from 2010-04-25.
28837         * gnulib-tool (func_modules_transitive_closure): Check the status of
28838         all modules, not only of the tests that are of the form foo-tests where
28839         foo is a module.
28840
28841 2010-05-02  Bruno Haible  <bruno@clisp.org>
28842
28843         wctob: Work around nasty Cygwin 1.7.2 bug.
28844         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28845         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28846
28847 2010-05-01  Bruno Haible  <bruno@clisp.org>
28848
28849         fpurge: Sharper test.
28850         * tests/test-fpurge.c (main): Add one more ftell check.
28851         * modules/fpurge-tests (Depends-on): Add ftell.
28852         Suggested by Eric Blake.
28853
28854 2010-05-01  Bruno Haible  <bruno@clisp.org>
28855
28856         ftello: Another test.
28857         * tests/test-ftello3.c: New file.
28858         * modules/ftello-tests (Files): Add it.
28859         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28860         MOSTLYCLEANFILES.
28861
28862         ftell: Another test.
28863         * tests/test-ftell3.c: New file.
28864         * modules/ftell-tests (Files): Add it.
28865         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28866         MOSTLYCLEANFILES.
28867
28868 2010-05-01  Bruno Haible  <bruno@clisp.org>
28869
28870         ftell, ftello: Work around Solaris bug.
28871         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28872         * lib/ftello.c: Include stdio-impl.h.
28873         (ftello): On Solaris, when _IOWRT is set, compute the result without
28874         looking at _IOREAD.
28875         * modules/ftello (Files): Add lib/stdio-impl.h.
28876         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28877         * doc/posix-functions/ftello.texi: Likewise.
28878         Reported by Eric Blake.
28879
28880 2010-05-01  Bruno Haible  <bruno@clisp.org>
28881
28882         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28883         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28884         the _IOWRT flag is also set.
28885
28886 2010-05-01  Bruno Haible  <bruno@clisp.org>
28887
28888         Fix doc about a HP-UX stdio bug.
28889         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28890         * doc/posix-functions/ftello.texi: Likewise.
28891
28892 2010-05-01  Bruno Haible  <bruno@clisp.org>
28893
28894         lseek test: Fix failure on Solaris.
28895         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28896         output.
28897
28898 2010-04-30  Jim Meyering  <meyering@redhat.com>
28899
28900         bootstrap: don't ignore failure to generate po*/Makevars
28901         * build-aux/bootstrap (with_gettext): Don't ignore failure
28902         to create po/Makevars or runtime-po/Makevars.
28903
28904 2010-04-29  Eric Blake  <eblake@redhat.com>
28905
28906         headers: relax license to LGPLv2+
28907         * modules/fcntl-h (License): Relax license.
28908         * modules/getopt-posix (License): Likewise.
28909         * modules/locale (License): Likewise.
28910         * modules/math (License): Likewise.
28911         * modules/pty (License): Likewise.
28912         * modules/sched (License): Likewise.
28913         * modules/search (License): Likewise.
28914         * modules/spawn (License): Likewise.
28915         * modules/stdarg (License): Likewise.
28916         * modules/sysexits (License): Likewise.
28917
28918 2010-04-29  Jim Meyering  <meyering@redhat.com>
28919
28920         inttypes: relax license to LGPLv2+
28921         * modules/inttypes (License): Relax license.
28922
28923 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28924
28925         * top/maint.mk (indent): Run twice to produce idempotent results.
28926
28927 2010-04-28  Bruno Haible  <bruno@clisp.org>
28928
28929         getdate: Generate getdate.c in the source directory.
28930         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28931         MOSTLYCLEANFILES.
28932         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28933
28934 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28935
28936         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28937         is not declared as a const *; avoid warnings in that case.
28938
28939 2010-04-28  Eric Blake  <eblake@redhat.com>
28940
28941         canonicalize-lgpl: avoid compiler warning
28942         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28943         declaration' / 'extraneous semicolon' warning with some compilers.
28944         Reported by Andreas Gruenbacher.
28945
28946 2010-04-28  Jim Meyering  <meyering@redhat.com>
28947
28948         init.sh: ensure a more reliable exit status when exiting via trap
28949         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28950         Inspired by patches from Dmitry V. Levin.
28951         Also trap on signal 3 (SIGQUIT).
28952
28953 2010-04-27  Bruno Haible  <bruno@clisp.org>
28954
28955         Update doc about utimes().
28956         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28957         'utimens' module.
28958         Reported by Andreas Gruenbacher <agruen@suse.de>.
28959
28960 2010-04-27  Eric Blake  <eblake@redhat.com>
28961
28962         full-read, full-write: relax license
28963         * modules/full-read (License): Drop to LGPLv2+.
28964         * modules/full-write (License): Likewise.
28965         * modules/safe-read (License): Likewise.
28966         * modules/safe-write (License): Likewise.
28967
28968         pthread: mention library for linking
28969         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28970
28971 2010-04-27  Jim Meyering  <meyering@redhat.com>
28972
28973         maint.mk: fix a bug introduced in last change
28974         * top/maint.mk (gl_assured_headers_): Now that all names are on
28975         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28976         is not anchored to end of word, it should be adequate.
28977
28978         maint.mk: avoid side-effect in latest syntax-check
28979         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28980         to run commands via $(shell...), and hence to incur cost only when
28981         the new rule is actually run.
28982
28983         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28984         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28985         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28986         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28987         (gl_assured_headers_, az_, AZ_): Define.
28988         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28989
28990 2010-04-26  Jim Meyering  <jim@meyering.net>
28991             Bruno Haible  <bruno@clisp.org>
28992
28993         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28994         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28995         Prompted by an exchange with Gilles Espinasse.
28996
28997 2010-04-26  Jim Meyering  <meyering@redhat.com>
28998
28999         git-version-gen: aesthetic tweak
29000         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29001         so that the command remains on a single line.
29002
29003 2010-04-26  Eric Blake  <eblake@redhat.com>
29004
29005         git-version-gen: allow use on EBCDIC hosts
29006         * build-aux/git-version-gen (dirty): Use literal rather than tying
29007         ourselves to ascii.
29008         Reported by Steve Goetze.
29009
29010 2010-04-25  Bruno Haible  <bruno@clisp.org>
29011
29012         netdb: Add support for GNULIB_POSIXCHECK.
29013         * lib/netdb.in.h: Include warn-on-use.h.
29014         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29015         functions are used when GNULIB_POSIXCHECK is defined and the
29016         getaddrinfo module is not in use.
29017         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29018         freeaddrinfo, gai_strerror, getnameinfo are declared.
29019         * modules/netdb (Depends-on): Add warn-on-use.
29020         (Makefile.am): Include warn-on-use.h in netdb.h.
29021
29022 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29023
29024         build: avoid "make check" failure without .git/ directory
29025         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29026         there is no .git/ directory.
29027
29028 2010-04-25  Bruno Haible  <bruno@clisp.org>
29029
29030         ptsname: Fix misuse of ttyname_r.
29031         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29032         of errno.
29033
29034 2010-04-25  Bruno Haible  <bruno@clisp.org>
29035
29036         ttyname_r: Make it work on Solaris 10.
29037         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29038         if the system function has the POSIX declaration. Test whether the
29039         function fails if the buffer is less than 128 bytes large.
29040         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29041         system's ttyname_r function. Provide a reasonably large buffer.
29042         * modules/ttyname_r (Depends-on): Add extensions.
29043         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29044
29045 2010-04-25  Bruno Haible  <bruno@clisp.org>
29046
29047         Use the 'extensions' module for some more functions on Solaris.
29048         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29049         module.
29050         * doc/posix-functions/ctime_r.texi: Likewise.
29051         * doc/posix-functions/getgrgid_r.texi: Likewise.
29052         * doc/posix-functions/getgrnam_r.texi: Likewise.
29053         * doc/posix-functions/getpwnam_r.texi: Likewise.
29054         * doc/posix-functions/getpwuid_r.texi: Likewise.
29055         * doc/posix-functions/readdir_r.texi: Likewise.
29056         * doc/posix-functions/sigwait.texi: Likewise.
29057         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29058         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29059
29060 2010-04-25  Bruno Haible  <bruno@clisp.org>
29061
29062         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29063         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29064         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29065         * lib/ttyname_r.c: Include <limits.h>.
29066         (ttyname_r): Define using the system's ttyname_r function, if it exists
29067         and not on Solaris.
29068         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29069         set.
29070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29071         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29072         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29073         Reported by Simon Josefsson.
29074
29075 2010-04-25  Bruno Haible  <bruno@clisp.org>
29076
29077         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29078         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29079         * doc/posix-functions/ctime_r.texi: Likewise.
29080         * doc/posix-functions/getgrgid_r.texi: Likewise.
29081         * doc/posix-functions/getgrnam_r.texi: Likewise.
29082         * doc/posix-functions/getlogin_r.texi: Likewise.
29083         * doc/posix-functions/getpwnam_r.texi: Likewise.
29084         * doc/posix-functions/getpwuid_r.texi: Likewise.
29085         * doc/posix-functions/readdir_r.texi: Likewise.
29086         * doc/posix-functions/sigwait.texi: Likewise.
29087         * doc/posix-functions/ttyname_r.texi: Likewise.
29088         Reported by Simon Josefsson.
29089
29090 2010-04-25  Bruno Haible  <bruno@clisp.org>
29091
29092         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29093         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29094         also to --create-testdir.
29095         (func_acceptable): Don't consider the status of *-tests modules here.
29096         (func_modules_transitive_closure): Consider it here, before including a
29097         test module.
29098         (func_import, func_create_testdir): Set inc_all_direct_tests,
29099         inc_all_indirect_tests.
29100         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29101         --create-testdir and --create-megatestdir.
29102
29103 2010-04-25  Bruno Haible  <bruno@clisp.org>
29104
29105         gnulib-tool: Add --without-*-tests options.
29106         * gnulib-tool (func_usage): Document the --without-*-tests options.
29107         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29108         excl_unportable_tests): New variables.
29109         Fail if they are specified with --import or --update.
29110         (func_acceptable): Respect the excl_*_tests variables.
29111         (func_import): Set the excl_*_tests variables to empty.
29112
29113 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29114             Bruno Haible  <bruno@clisp.org>
29115
29116         Work around a MacOS X 10.4 bug with openpty.
29117         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29118         * tests/test-openpty.c (main): Close the master side explicitly.
29119
29120 2010-04-25  Bruno Haible  <bruno@clisp.org>
29121
29122         strnlen: Fix a C++ test error on MacOS X and Solaris.
29123         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29124         the function is not declared.
29125         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29126         Simon Josefsson.
29127
29128 2010-04-24  Bruno Haible  <bruno@clisp.org>
29129
29130         Avoid a gcc warning.
29131         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29132         of correct type for %08lx directive.
29133         Reported by Eric Blake.
29134
29135 2010-04-24  Bruno Haible  <bruno@clisp.org>
29136
29137         vasnprintf: Correct errno value in case of out-of-memory.
29138         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29139         or sprintf. Use the errno value from SNPRINTF or sprintf.
29140         Reported by Ian Beckwith <ianb@erislabs.net>.
29141
29142 2010-04-24  Bruno Haible  <bruno@clisp.org>
29143
29144         ansi-c++-opt: Find correct compiler when cross-compiling.
29145         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29146         AC_CHECK_PROGS.
29147         Reported by Simon Josefsson.
29148
29149 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29150
29151         vc-list-files: Add support for subversion
29152         * build-aux/vc-list-files: Use "svn list" to generate the list of
29153         files controlled by subversion.
29154
29155 2010-04-23  Jim Meyering  <meyering@redhat.com>
29156
29157         vc-list-files tests: convert to use init.sh
29158         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29159         path_prepend_.
29160         Use Exit, not exit.
29161         Use skip_ rather than open coding it.
29162         Remove trap set-up and compare definitions.
29163         * tests/test-vc-list-files-git.sh: Likewise.
29164         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29165
29166 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29167
29168         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29169         backup files.
29170
29171 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29172
29173         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29174
29175 2010-04-20  Eric Blake  <eblake@redhat.com>
29176
29177         tests: be robust to ignored SIGPIPE
29178         * tests/test-select-in.sh: Consume all output.
29179         * tests/test-lseek.sh: Check correct exit status, while avoiding
29180         EPIPE.
29181
29182 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29183             Bruno Haible  <bruno@clisp.org>
29184
29185         visibility: Don't use -fvisibility if it leads to a warning.
29186         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29187         yes, don't pretend that visibility works if it leads to a warning.
29188         Reported by Mike Gran <spk121@yahoo.com>.
29189
29190 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29191
29192         * build-aux/bootstrap: Use "git -h" for testing for supported options
29193         instead of "git --help".  The short-form option only shows a summary,
29194         and doesn't layout the full man page.  Grep for the full option name
29195         in the summary, too.
29196
29197 2010-04-19  Bruno Haible  <bruno@clisp.org>
29198
29199         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29200         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29201         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29202         mention of RELOCATABLE_STRIP.
29203         Reported by Sylvain Beucler <beuc@beuc.net>.
29204
29205 2010-04-19  Bruno Haible  <bruno@clisp.org>
29206
29207         * lib/diffseq.h: Fix typo in comment.
29208         Reported by Eric Blake.
29209
29210 2010-04-19  Bruno Haible  <bruno@clisp.org>
29211
29212         ioctl: Move autoconf macro to a .m4 file.
29213         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29214         * modules/ioctl (Files): Add it.
29215         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29216         Reported by Ian Beckwith <ianb@erislabs.net>.
29217
29218 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29219             Bruno Haible  <bruno@clisp.org>
29220
29221         diffseq: Accommodate use-case with abstract arrays.
29222         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29223         is not defined.
29224         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29225         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29226
29227 2010-04-18  Bruno Haible  <bruno@clisp.org>
29228
29229         * doc/posix-headers/stdbool.texi: More precise wording.
29230
29231 2010-04-17  Jim Meyering  <meyering@redhat.com>
29232
29233         maint.mk: use gnu-style indentation in an embedded perl script
29234         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29235         Rename variable: s/two/last_two_bytes/
29236
29237 2010-04-16  Eric Blake  <eblake@redhat.com>
29238
29239         test-stdbool: skip test that fails with Solaris CC
29240         * tests/test-stdbool.c (f): Skip test that causes compilation
29241         error under buggy C++ compiler.
29242         * lib/stdbool.in.h: Document the limitation.
29243         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29244
29245         setenv: allow compilation with C++
29246         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29247         register keyword.
29248
29249         stdint: allow test to pass with C++
29250         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29251
29252         getopt: allow compilation with C++
29253         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29254         struct.
29255         * lib/getopt.c (_getopt_internal_r): Use correct type.
29256         Reported by Dagobert Michelson, via Joel E. Denny.
29257
29258 2010-04-16  Bruno Haible  <bruno@clisp.org>
29259
29260         Override netdb.h always.
29261         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29262         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29263         Reported by Ludovic Courtès <ludo@gnu.org>.
29264
29265 2010-04-15  Bruno Haible  <bruno@clisp.org>
29266
29267         openpty: Fix mistake from 2010-03-21.
29268         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29269         Reported by Simon Josefsson.
29270
29271 2010-04-15  Eric Blake  <eblake@redhat.com>
29272
29273         test-forkpty: fix expected signature
29274         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29275         Reported by Simon Josefsson.
29276
29277 2010-04-15  Jim Meyering  <meyering@redhat.com>
29278
29279         maint.mk: texinfo_suffix_re_: correct the default regexp
29280         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29281
29282         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29283         make it configurable via texinfo_suffix_re_.
29284
29285 2010-04-14  Eric Blake  <eblake@redhat.com>
29286
29287         strtok_r: relax license to LGPLv2+
29288         * modules/strtok_r (License): Relax license.
29289         Reported by Matthias Bolte.
29290
29291 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29292
29293         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29294         version 1.4.4 by default instead of requiring the libgcrypt
29295         version used during build.  This makes it possible to use the
29296         application with older but still binary compatible libgcrypt
29297         versions.
29298
29299 2010-04-13  Eric Blake  <eblake@redhat.com>
29300
29301         getopt-gnu: match recent glibc fixes and posix ruling
29302         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29303         '+' handling, when requesting extensions.
29304         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29305         'W;' handling.
29306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29307         * doc/posix-functions/getopt.texi (getopt): Document this.
29308         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29309         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29310         Likewise.
29311
29312         getopt: merge bug fixes from glibc
29313         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29314         diagnostics.  Honor '+:' correctly.  Reject ';'.
29315
29316         getopt-posix: detect MacOS bug
29317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29318         optind when missing a required argument.
29319         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29320         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29321         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29322         Likewise.
29323
29324         getopt-posix: avoid spurious failure on Solaris
29325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29326         an indicator that setting optind=1 is sufficient for reset.
29327
29328         getopt-posix: avoid spurious failure on FreeBSD
29329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29330         in POSIX mode, since the m4 test uses it.
29331
29332         gnulib-tool: silence warning on BSD sh
29333         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29334
29335 2010-04-13  Jim Meyering  <meyering@redhat.com>
29336
29337         doc: users.txt: GNU patch now uses gnulib
29338         * users.txt: Add patch.
29339
29340 2010-04-12  Jim Meyering  <meyering@redhat.com>
29341
29342         maint.mk: generate more concise timing data for syntax-check rules
29343         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29344         " done" from each line that reports a syntax-check test duration.
29345
29346 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29347
29348         git-version-gen: use "git update-index..." rather than "git status"
29349         * build-aux/git-version-gen: Use git update-index --refresh, not
29350         "git status".  With some versions of git, "git status" would fail
29351         to update the index and result in an unwarranted "-dirty" suffix.
29352
29353 2010-04-11  Jim Meyering  <meyering@redhat.com>
29354
29355         openat: correct formatting (no semantic change)
29356         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29357         Suggested by Bruno Haible.
29358
29359 2010-04-11  Bruno Haible  <bruno@clisp.org>
29360
29361         Stricter declaration checking in testdirs.
29362         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29363         If for_tests is true, augment AM_CPPFLAGS to define
29364         GNULIB_STRICT_CHECKING.
29365         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29366         GNULIB_STRICT_CHECKING is defined, verify that the function is
29367         declared.
29368
29369 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29370             Bruno Haible  <bruno@clisp.org>
29371
29372         libunistring: Improve configure output.
29373         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29374         Don't say "consider installing GNU libunistring" when checking again
29375         with libiconv.
29376
29377 2010-04-11  Bruno Haible  <bruno@clisp.org>
29378
29379         libunistring: Correct value of $LTLIBUNISTRING.
29380         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29381         correct the value of $LTLIBUNISTRING.
29382
29383 2010-04-11  Bruno Haible  <bruno@clisp.org>
29384
29385         havelib: Add static libraries to LIBS in the right order.
29386         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29387         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29388
29389 2010-04-11  Bruno Haible  <bruno@clisp.org>
29390
29391         libunistring: Detect libunistring also when it depends on libiconv.
29392         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29393         the second AC_LIB_HAVE_LINKFLAGS invocation.
29394
29395 2010-04-11  James Youngman  <jay@gnu.org>
29396
29397         close-stream: declare local scalars to be "const"
29398         * lib/close-stream.c (close_stream): Make boolean variables const
29399         to document the fact that we set but do not change them.
29400
29401 2010-04-11  Bruno Haible  <bruno@clisp.org>
29402
29403         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29404
29405 2010-04-11  Jim Meyering  <meyering@redhat.com>
29406
29407         maint.mk: don't include dist-check.mk
29408         * top/maint.mk: Remove bogus include directive.
29409
29410         maint.mk: improve empty-line-at-EOF check
29411         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29412         solution, rather than tail+Perl-based one.  The latter would read
29413         a few kilobytes from the end of each file, and did not handle empty
29414         files properly.
29415
29416         maint.mk: print the elapsed time for each syntax-check rule
29417         * top/maint.mk (sc_m_rules_): Save start time in a file.
29418         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29419         (local-check): Interpose the .z rules
29420
29421 2010-04-11  Jim Meyering  <meyering@redhat.com>
29422
29423         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29424         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29425         empty file with one that ends in an empty line.
29426
29427 2010-04-10  Bruno Haible  <bruno@clisp.org>
29428
29429         mkdir: Make it work on mingw64.
29430         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29431         * lib/mkdir.c: Update comment.
29432         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29433
29434 2010-04-10  Bruno Haible  <bruno@clisp.org>
29435
29436         Don't override improved macro from newer autoconf.
29437         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29438         autoconf >= 2.62.
29439         Reported by Joel E. Denny <jdenny@clemson.edu>.
29440
29441 2010-04-10  Jim Meyering  <meyering@redhat.com>
29442
29443         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29444         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29445
29446         maint.mk: correct a diagnostic
29447         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29448         in diagnostic; now use $prohibit.
29449
29450 2010-04-10  Bruno Haible  <address@hidden>
29451
29452         fchownat: Fix a C++ test error on Solaris 8.
29453         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29454         the function does not exist.
29455
29456 2010-04-10  Bruno Haible  <bruno@clisp.org>
29457
29458         vasnprintf: Add more tests.
29459         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29460         (test_function): Test converting an invalid wide string.
29461
29462         vasnprintf: Correct handling of unconvertible wide string arguments.
29463         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29464         VASNPRINTF.
29465         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29466         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29467         smaller than the expected maximum need for the directive. Set errno to
29468         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29469         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29471         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29472         * modules/vasnprintf (Files): Add m4/printf.m4.
29473         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29474
29475 2010-04-10  Bruno Haible  <bruno@clisp.org>
29476
29477         vasnprintf: Fix crash in %ls directive.
29478         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29479         string is passed as argument to %ls, with no precision and no width.
29480         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29481
29482 2010-04-10  Bruno Haible  <bruno@clisp.org>
29483
29484         vasnprintf: Fix multiple test failures on mingw.
29485         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29486         _snprintf, or snwprintf, not _snwprintf.
29487
29488 2010-04-10  Bruno Haible  <bruno@clisp.org>
29489
29490         write: Fix a C++ test error on mingw.
29491         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29492
29493 2010-04-10  Bruno Haible  <bruno@clisp.org>
29494
29495         vasnprintf test: Reduce code duplication.
29496         * tests/test-vasnprintf.c (test_function): New function, extracted from
29497         test_vasnprintf.
29498         (test_vasnprintf, test_asnprintf): Invoke it.
29499
29500 2010-04-10  Bruno Haible  <bruno@clisp.org>
29501
29502         strnlen: Fix warning in C++ mode on MacOS X.
29503         * lib/string.in.h (strnlen): Use the modern idiom.
29504         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29505         defining strnlen as a macro already in <config.h>.
29506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29507         REPLACE_STRNLEN.
29508         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29510
29511 2010-04-08  James Youngman  <jay@gnu.org>
29512
29513         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29514         the example.
29515
29516 2010-04-09  Jim Meyering  <meyering@redhat.com>
29517
29518         maint.mk: print better diagnostic when there is no $(_hv_file)
29519         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29520         announce that when $(_hv_file) (aka help-version) does not exist.
29521
29522         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29523         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29524         not try to interpret its random input bytes.  Jarno Rajahalme reported
29525         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29526         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29527         (mktempd_): Likewise, just in case.
29528
29529         ftruncate: add two years to projected module removal date: 2012
29530         * m4/ftruncate.m4: Adjust comments.
29531
29532         ftruncate: mark module as obsolete; even MinGW provides it, now
29533         * modules/ftruncate (Status): Obsolete.
29534         (Notice): Say that.
29535         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29536         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29537
29538 2010-04-08  Bruno Haible  <bruno@clisp.org>
29539
29540         Fix side effects from tests-related modules.
29541         * modules/dprintf-posix (Comment): New section.
29542         * modules/fprintf-posix (Comment): Likewise.
29543         * modules/obstack-printf-posix (Comment): Likewise.
29544         * modules/printf-posix (Comment): Likewise.
29545         * modules/snprintf-posix (Comment): Likewise.
29546         * modules/sprintf-posix (Comment): Likewise.
29547         * modules/vasnprintf-posix (Comment): Likewise.
29548         * modules/vasprintf-posix (Comment): Likewise.
29549         * modules/vdprintf-posix (Comment): Likewise.
29550         * modules/vfprintf-posix (Comment): Likewise.
29551         * modules/vprintf-posix (Comment): Likewise.
29552         * modules/vsnprintf-posix (Comment): Likewise.
29553         * modules/vsprintf-posix (Comment): Likewise.
29554         * modules/xprintf-posix (Comment): Likewise.
29555         * modules/xvasprintf-posix (Comment): Likewise.
29556         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29557         * modules/floorf-tests (Depends-on): Likewise.
29558         * modules/round-tests (Depends-on): Likewise.
29559         * modules/roundf-tests (Depends-on): Likewise.
29560         * modules/trunc-tests (Depends-on): Likewise.
29561         * modules/truncf-tests (Depends-on): Likewise.
29562         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29563         'fprintf-posix' module is not present.
29564         * tests/test-floorf2.c (check): Likewise.
29565         * tests/test-trunc2.c (check): Likewise.
29566         * tests/test-truncf2.c (check): Likewise.
29567         * tests/test-round2.c (equal): Likewise.
29568         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29569
29570 2010-04-07  Karl Berry  <karl@gnu.org>
29571
29572         * config/srclist.txt,
29573         * config/srclistvars.sh,
29574         * config/srclist-update: doc fixes.
29575
29576 2010-04-07  Jim Meyering  <meyering@redhat.com>
29577
29578         maint.mk: add a PATH crosschecking syntax-check rule
29579         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29580         Useful if you use a test like the one in help-version (coreutils,
29581         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29582         printed by prog --version.
29583
29584 2010-04-06  Bruno Haible  <bruno@clisp.org>
29585
29586         Fix link error on mingw.
29587         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29588         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29589
29590 2010-04-06  Bruno Haible  <bruno@clisp.org>
29591
29592         Assume rmdir exists.
29593         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29594
29595 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29596
29597         doc: update users.txt
29598         * users.txt: Add gcal.
29599
29600 2010-04-06  Jim Meyering  <meyering@redhat.com>
29601
29602         init.sh: simply unset TMPDIR rather than risking env -i
29603         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29604         although it probably works fine on all Unix-based systems, some
29605         systems (Cygwin?) cannot tolerate a totally cleared environment.
29606         Suggestion from Eric Blake.
29607
29608 2010-04-06  Jim Meyering  <meyering@redhat.com>
29609
29610         init.sh: portability fix: use env's POSIX-specified -i option not -u
29611         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29612         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29613
29614 2010-04-05  Bruno Haible  <bruno@clisp.org>
29615
29616         btowc: Work around Cygwin 1.7.2 bug.
29617         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29618         does not map NUL to 0.
29619         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29620
29621 2010-04-05  Bruno Haible  <bruno@clisp.org>
29622
29623         Make the multithread modules work on Cygwin 1.7.2.
29624         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29625         imported symbols can be declared weak, so that it returns "no" on
29626         Cygwin 1.7.2.
29627
29628 2010-04-05  Bruno Haible  <bruno@clisp.org>
29629
29630         Use the module 'strncat'.
29631         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29632
29633         Tests for module 'strncat'.
29634         * modules/strncat-tests: New file.
29635         * tests/test-strncat.c: New file.
29636
29637         New module 'strncat'.
29638         * lib/string.in.h (strncat): New declaration.
29639         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29640         * m4/strncat.m4: New file, based on m4/memchr.m4.
29641         * modules/strncat: New file.
29642         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29643         is declared.
29644         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29645         REPLACE_STRNCAT.
29646         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29647         REPLACE_STRNCAT.
29648         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29649         module.
29650         * tests/test-string-c++.cc: Check signature of strncat.
29651
29652 2010-04-05  Jim Meyering  <meyering@redhat.com>
29653
29654         xstrtoumax-tests: convert to use init.sh
29655         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29656         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29657         Use Exit, not exit.
29658         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29659
29660         xstrtoimax-tests: convert to use init.sh
29661         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29662         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29663         Use Exit, not exit.
29664         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29665
29666 2010-04-05  Bruno Haible  <bruno@clisp.org>
29667
29668         sys_socket: Avoid #define replacements in C++ mode.
29669         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29670         warning to the function if possible, rather than #defining the symbol
29671         to a dysfunctional alias.
29672
29673 2010-04-05  Bruno Haible  <bruno@clisp.org>
29674
29675         fseeko: Fix C++ test error on mingw.
29676         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29677         gl_FUNC_FSEEKO.
29678         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29679         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29680         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29681         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29682
29683 2010-04-05  Bruno Haible  <bruno@clisp.org>
29684
29685         duplocale: Improve test output.
29686         * tests/test-duplocale.c (main): Print reason for skipped test.
29687
29688 2010-04-05  Bruno Haible  <bruno@clisp.org>
29689
29690         Assume rmdir exists.
29691         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29692         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29693
29694 2010-04-05  Bruno Haible  <bruno@clisp.org>
29695
29696         Fix link error on Solaris 8 with cc.
29697         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29698
29699 2010-04-05  Bruno Haible  <bruno@clisp.org>
29700
29701         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29702         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29703
29704 2010-04-05  Bruno Haible  <bruno@clisp.org>
29705
29706         vasprintf: Update documentation.
29707         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29708
29709 2010-04-05  Bruno Haible  <bruno@clisp.org>
29710
29711         ptsname: Improve test.
29712         * tests/test-ptsname.c (main): Also try the various master names of BSD
29713         systems.
29714
29715 2010-04-05  Bruno Haible  <bruno@clisp.org>
29716
29717         memchr: Avoid a possible C++ test error.
29718         * lib/string.in.h (memchr): Provide declaration if function is missing.
29719         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29720         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29722         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29723
29724 2010-04-05  Bruno Haible  <bruno@clisp.org>
29725
29726         strtok_r: Improve idiom.
29727         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29728         AC_LIBOBJ is used.
29729
29730 2010-04-05  Bruno Haible  <bruno@clisp.org>
29731
29732         strdup: Improve idiom.
29733         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29734         AC_LIBOBJ is used.
29735         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29736         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29737         when AC_LIBOBJ is used.
29738
29739 2010-04-05  Bruno Haible  <bruno@clisp.org>
29740
29741         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29742         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29743         don't set REPLACE_MBSINIT to 1.
29744         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29745         don't set REPLACE_MBRTOWC to 1.
29746         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29747         exist, don't set REPLACE_MBSRTOWCS to 1.
29748         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29749         exist, don't set REPLACE_MBSNRTOWCS to 1.
29750         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29751         don't set REPLACE_WCRTOMB to 1.
29752         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29753         exist, don't set REPLACE_WCSRTOMBS to 1.
29754         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29755         exist, don't set REPLACE_WCSNRTOMBS to 1.
29756
29757 2010-04-05  Bruno Haible  <bruno@clisp.org>
29758
29759         ldexpl: Improve idiom.
29760         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29761         make sure to set HAVE_DECL_LDEXPL to 0.
29762
29763 2010-04-05  Jim Meyering  <meyering@redhat.com>
29764
29765         xstrtol-tests: convert to use init.sh
29766         * modules/xstrtol-tests (Files): Add tests/init.sh.
29767         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29768         Use Exit, not exit.
29769         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29770
29771         atexit-tests: convert to use init.sh
29772         * modules/atexit-tests (Files): Add tests/init.sh.
29773         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29774         Use Exit, not exit.
29775         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29776
29777         init.sh: fix typo
29778         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29779
29780         init.sh: make it easier for a test script to write to the tty, ...
29781         when using automake's parallel-tests mode.
29782         * tests/init.sh (stderr_fileno_): Define overridable variable.
29783         (warn_): New function, to use it.
29784         (fail_, skip_, framework_failure_): Use warn_.
29785
29786 2010-04-04  Bruno Haible  <bruno@clisp.org>
29787
29788         btowc: Avoid warning.
29789         * lib/btowc.c: Include <stdlib.h>.
29790         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29791
29792 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29793             Bruno Haible  <bruno@clisp.org>
29794
29795         wchar: Port to NetBSD 1.5.
29796         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29797         * lib/wctype.in.h (WEOF): Likewise.
29798
29799 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29800             Bruno Haible  <bruno@clisp.org>
29801
29802         Port extended stdio to NetBSD 1.5.
29803         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29804         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29805         older.
29806
29807 2010-04-04  Bruno Haible  <bruno@clisp.org>
29808
29809         string: Remove unused substitution.
29810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29811         HAVE_DECL_STRERROR.
29812         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29813
29814 2010-04-04  Bruno Haible  <bruno@clisp.org>
29815
29816         strtod: Avoid a possible C++ test error.
29817         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29818         set REPLACE_STRTOD.
29819
29820 2010-04-04  Bruno Haible  <bruno@clisp.org>
29821
29822         strerror: Update documentation.
29823         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29824
29825 2010-04-04  Bruno Haible  <bruno@clisp.org>
29826
29827         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29828         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29829         _GL_CXXALIAS_SYS_CAST.
29830
29831 2010-04-04  Bruno Haible  <bruno@clisp.org>
29832
29833         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29834         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29835         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29836         REPLACE_FREXPL to 1.
29837         * doc/posix-functions/frexpl.texi: Update documentation.
29838
29839 2010-04-04  Bruno Haible  <bruno@clisp.org>
29840
29841         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29842         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29843
29844 2010-04-04  Bruno Haible  <bruno@clisp.org>
29845
29846         Implement nanosleep for native Windows.
29847         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29848
29849 2010-04-04  Bruno Haible  <bruno@clisp.org>
29850
29851         math: Fix some C++ test errors on Solaris 8.
29852         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29853
29854 2010-04-04  Bruno Haible  <bruno@clisp.org>
29855
29856         math: Fix some C++ test errors on Cygwin.
29857         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29858         truncl): Provide declaration if the system does not have it.
29859         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29860         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29861         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29862         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29863         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29864         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29865         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29866         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29867         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29868         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29869         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29870         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29871         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29872         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29873         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29874         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29876         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29877         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29878         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29879         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29880         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29881
29882 2010-04-04  Bruno Haible  <bruno@clisp.org>
29883
29884         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29885         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29886         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29887         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29888         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29889         * m4/isinf.m4 (gl_ISINF): Likewise.
29890         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29891
29892 2010-04-04  Bruno Haible  <bruno@clisp.org>
29893
29894         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29895         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29896
29897 2010-04-04  Bruno Haible  <bruno@clisp.org>
29898
29899         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29900         * modules/tmpfile (configure.ac): Update.
29901
29902         tmpfile: Fix C++ test error on mingw.
29903         * lib/stdio.in.h (tmpfile): New declaration.
29904         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29905         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29906         * modules/tmpfile (Depends-on): Add stdio.
29907         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29908         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29909         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29910         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29911         REPLACE_TMPFILE.
29912         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29913
29914 2010-04-04  Bruno Haible  <bruno@clisp.org>
29915
29916         ioctl: Fix C++ test error on mingw.
29917         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29918         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29919         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29920
29921 2010-04-03  Bruno Haible  <bruno@clisp.org>
29922
29923         wcwidth: Fix C++ test error on mingw.
29924         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29926         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29927
29928 2010-04-03  Bruno Haible  <bruno@clisp.org>
29929
29930         nanosleep: Fix C++ test error on mingw.
29931         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29932         * lib/time.in.h (nanosleep): Use modern idiom.
29933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29934         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29935         REPLACE_NANOSLEEP to 1.
29936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29937         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29938
29939 2010-04-03  Bruno Haible  <bruno@clisp.org>
29940
29941         strptime: Fix C++ test error on mingw.
29942         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29943         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29944         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29945         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29946         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29947         not REPLACE_STRPTIME.
29948         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29949         REPLACE_STRPTIME.
29950
29951 2010-04-03  Bruno Haible  <bruno@clisp.org>
29952
29953         timegm: Fix C++ test error on mingw.
29954         * lib/time.in.h (timegm): Use modern idiom.
29955         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29956         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29957         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29958         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29959
29960 2010-04-03  Bruno Haible  <bruno@clisp.org>
29961
29962         timegm: Assume declaration if function exists.
29963         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29964         if it exists. Don't clobber ac_cv_func_timegm.
29965
29966 2010-04-03  Bruno Haible  <bruno@clisp.org>
29967
29968         time_r: Fix C++ test error on mingw.
29969         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29970         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29971         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29972         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29973         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29974
29975 2010-04-03  Bruno Haible  <bruno@clisp.org>
29976
29977         time_r: Minor updates.
29978         * modules/time_r (Description): Mention the provided functions.
29979         * lib/time_r.c: Don't include <string.h>.
29980         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29981         * doc/posix-functions/localtime_r.texi: Likewise.
29982
29983 2010-04-03  Bruno Haible  <bruno@clisp.org>
29984
29985         time: Fix regression introduced on 2010-03-08.
29986         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29987         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29988
29989 2010-04-03  Jim Meyering  <meyering@redhat.com>
29990
29991         maint.mk: don't silently disable project-specific syntax-check rules
29992         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29993         that they need to convert their project-specific syntax-check rules
29994         to use the new _sc_search_regexp.
29995
29996 2010-04-03  Bruno Haible  <bruno@clisp.org>
29997
29998         fchdir: Fix regression introduced on 2010-03-08.
29999         * lib/unistd.in.h (fchdir): Fix declaration.
30000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30002         REPLACE_FCHDIR.
30003         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30004         REPLACE_FCHDIR.
30005
30006 2010-04-03  Bruno Haible  <bruno@clisp.org>
30007
30008         getpagesize: Fix C++ test error on mingw.
30009         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30010         system does not declare the function.
30011         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30012         declared.
30013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30014         HAVE_DECL_GETPAGESIZE.
30015         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30016
30017 2010-04-03  Bruno Haible  <bruno@clisp.org>
30018
30019         stdio: Make C++ tests work on mingw.
30020         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30021         does not declare the function.
30022
30023 2010-04-03  Bruno Haible  <bruno@clisp.org>
30024
30025         ftello: Fix C++ test error on mingw.
30026         * lib/stdio.in.h (ftello): Use modern idiom.
30027         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30028         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30029         is missing and that it needs to be replaced.
30030         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30032         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30033
30034 2010-04-03  Bruno Haible  <bruno@clisp.org>
30035
30036         fseeko: Fix C++ test error on mingw.
30037         * lib/stdio.in.h (fseeko): Use modern idiom.
30038         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30040         is missing and that it needs to be replaced.
30041         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30043         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30044
30045 2010-04-03  Bruno Haible  <bruno@clisp.org>
30046
30047         mkstemp: Fix C++ test error on mingw.
30048         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30049         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30050         function is missing and that it needs to be replaced.
30051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30052         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30053
30054 2010-04-03  Bruno Haible  <bruno@clisp.org>
30055
30056         stpncpy: Fix C++ test error on mingw.
30057         * lib/string.in.h (stpncpy): Use modern idiom.
30058         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30059         function is missing and that it needs to be replaced.
30060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30061         REPLACE_STPNCPY.
30062         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30063
30064 2010-04-03  Bruno Haible  <bruno@clisp.org>
30065
30066         sys_stat: Fix C++ test error on mingw.
30067         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30068         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30069
30070 2010-04-03  Bruno Haible  <bruno@clisp.org>
30071
30072         pty: Update doc.
30073         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30074
30075 2010-04-03  Bruno Haible  <bruno@clisp.org>
30076
30077         unistd: Fix C++ test error on mingw.
30078         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30079
30080 2010-04-03  Bruno Haible  <bruno@clisp.org>
30081
30082         Update doc regarding mingw.
30083         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30084         * doc/glibc-functions/login_tty.texi: Likewise.
30085         * doc/glibc-functions/forkpty.texi: Likewise.
30086
30087 2010-04-03  Bruno Haible  <bruno@clisp.org>
30088
30089         stdlib: Avoid compilation failure of c-strtold on mingw.
30090         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30091
30092 2010-04-03  Bruno Haible  <bruno@clisp.org>
30093
30094         locale: Make C++ tests work on Cygwin and mingw.
30095         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30096         cannot provide the function.
30097         Reported by Simon Josefsson.
30098
30099 2010-04-03  Bruno Haible  <bruno@clisp.org>
30100
30101         localename: Port to MacOS X 10.6.
30102         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30103         memory layout of the locales in MacOS X 10.6 as well.
30104         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30105
30106 2010-04-02  Bruno Haible  <bruno@clisp.org>
30107
30108         gnulib-tool: Ensure that long-running tests are executed last.
30109         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30110         running tests after the one for the other tests.
30111
30112 2010-04-02  Bruno Haible  <bruno@clisp.org>
30113
30114         gnulib-tool: Ensure the tests in the main directory are executed first.
30115         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30116         start with the current directory.
30117
30118 2010-04-02  Bruno Haible  <bruno@clisp.org>
30119
30120         Tests for module 'havelib', moved here from GNU gettext.
30121         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30122         modifications.
30123         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30124         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30125         with modifications.
30126         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30127         modifications.
30128         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30129         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30130         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30131         with modifications.
30132         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30133         with modifications.
30134         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30135         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30136         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30137         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30138         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30139         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30140         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30141         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30142         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30143         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30144         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30145         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30146         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30147         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30148         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30149         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30150         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30151         with modifications.
30152         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30153         with modifications.
30154         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30155         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30156         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30157         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30158         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30159         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30160         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30161         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30162         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30163         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30164         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30165         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30166         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30167         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30168         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30169         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30170         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30171         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30172         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30173         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30174         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30175         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30176         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30177         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30178         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30179         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30180         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30181         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30182         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30183         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30184         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30185         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30186         * tests/havelib/rpathx/rpathx.c: New file, from
30187         gettext/autoconf-lib-link.
30188         * tests/havelib/rpathx/Makefile.am: New file, from
30189         gettext/autoconf-lib-link.
30190         * tests/havelib/rpathx/configure.ac: New file, from
30191         gettext/autoconf-lib-link with modifications.
30192         * tests/havelib/rpathy/rpathy.c: New file, from
30193         gettext/autoconf-lib-link.
30194         * tests/havelib/rpathy/Makefile.am: New file, from
30195         gettext/autoconf-lib-link.
30196         * tests/havelib/rpathy/configure.ac: New file, from
30197         gettext/autoconf-lib-link with modifications.
30198         * tests/havelib/rpathz/rpathz.c: New file, from
30199         gettext/autoconf-lib-link.
30200         * tests/havelib/rpathz/Makefile.am: New file, from
30201         gettext/autoconf-lib-link.
30202         * tests/havelib/rpathz/configure.ac: New file, from
30203         gettext/autoconf-lib-link with modifications.
30204         * tests/havelib/rpathlx/usex.c: New file, from
30205         gettext/autoconf-lib-link.
30206         * tests/havelib/rpathlx/Makefile.am: New file, from
30207         gettext/autoconf-lib-link.
30208         * tests/havelib/rpathlx/configure.ac: New file, from
30209         gettext/autoconf-lib-link with modifications.
30210         * tests/havelib/rpathly/usey.c: New file, from
30211         gettext/autoconf-lib-link.
30212         * tests/havelib/rpathly/Makefile.am: New file, from
30213         gettext/autoconf-lib-link.
30214         * tests/havelib/rpathly/configure.ac: New file, from
30215         gettext/autoconf-lib-link with modifications.
30216         * tests/havelib/rpathlz/usez.c: New file, from
30217         gettext/autoconf-lib-link.
30218         * tests/havelib/rpathlz/Makefile.am: New file, from
30219         gettext/autoconf-lib-link.
30220         * tests/havelib/rpathlz/configure.ac: New file, from
30221         gettext/autoconf-lib-link with modifications.
30222         * tests/havelib/rpathlyx/usey.c: New file, from
30223         gettext/autoconf-lib-link.
30224         * tests/havelib/rpathlyx/Makefile.am: New file, from
30225         gettext/autoconf-lib-link.
30226         * tests/havelib/rpathlyx/configure.ac: New file, from
30227         gettext/autoconf-lib-link with modifications.
30228         * tests/havelib/rpathlzyx/usez.c: New file, from
30229         gettext/autoconf-lib-link.
30230         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30231         gettext/autoconf-lib-link.
30232         * tests/havelib/rpathlzyx/configure.ac: New file, from
30233         gettext/autoconf-lib-link with modifications.
30234         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30235         with modifications.
30236
30237 2010-04-02  Bruno Haible  <bruno@clisp.org>
30238
30239         gnulib-tool: Create distributed built sources also for the tests.
30240         * gnulib-tool (func_create_testdir): Also generate distributed built
30241         sources in the tests directory.
30242
30243 2010-04-02  Bruno Haible  <bruno@clisp.org>
30244
30245         gnulib-tool: Obey user's environment variables.
30246         * gnulib-tool (func_create_testdir): When creating built sources,
30247         respect the environment variables for autoconf, automake, etc. given by
30248         the user.
30249
30250 2010-04-02  Bruno Haible  <bruno@clisp.org>
30251
30252         gnulib-tool: Provide the value of --m4-base to modules.
30253         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30254         of gl_m4_base.
30255
30256 2010-04-02  Eric Blake  <eblake@redhat.com>
30257
30258         maint.mk: fix some fallout
30259         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30260         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30261
30262 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30263
30264         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30265         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30266         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30267         (sc_cast_of_x_alloc_return_value): Likewise.
30268         (sc_cast_of_alloca_return_value): Likewise.
30269         (sc_space_tab): Likewise.
30270         (sc_prohibit_atoi_atof): Likewise.
30271         (sc_prohibit_magic_number_exit): Likewise.
30272         (sc_error_exit_success): Likewise.
30273         (sc_file_system): Likewise.
30274         (sc_prohibit_have_config_h): Likewise.
30275         (sc_require_config_h): Likewise.
30276         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30277         (sc_obsolete_symbols): Likewise.
30278         (sc_changelog): Likewise.
30279         (sc_program_name): Likewise.
30280         (sc_the_the): Likewise.
30281         (sc_trailing_blank): Likewise.
30282         (sc_two_space_separator_in_usage): Likewise.
30283         (sc_useless_cpp_parens): Likewise.
30284         (sc_GPL_version): Likewise.
30285         (sc_GFDL_version): Likewise.
30286         (sc_texinfo_acronym): Likewise.
30287         (sc_prohibit_cvs_keyword): Likewise.
30288         (sc_prohibit_stat_st_blocks): Likewise.
30289         (sc_prohibit_S_IS_definition): Likewise.
30290         (sc_redundant_const): Likewise.
30291         (sc_makefile_TAB_only_indentation): Likewise.
30292         (sc_m4_quote_check): Likewise.
30293         (sc_makefile_path_separator_check): Likewise.
30294         (sc_copyright_check): Likewise.
30295         (sc_Wundef_boolean): Likewise.
30296         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30297
30298         maint.mk: match 0 or more whitespace-before-function-call '('
30299         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30300         that have zero or two-and-more spaces between the function name
30301         and the open parenthesis.
30302         (sc_error_message_warn_fatal): Likewise.
30303         (sc_error_message_uppercase): Likewise.
30304         (sc_error_message_period): Likewise.
30305
30306 2010-03-31  Eric Blake  <eblake@redhat.com>
30307
30308         maint.mk: check for [ as well as test
30309         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30310         Based on a libvirt report by Matthias Bolte.
30311
30312         gnumakefile: don't squelch _version output
30313         * top/GNUmakefile (_version): Create one-shot dependency rather
30314         than using $(shell) when version must be regenerated.
30315         (_autoreconf): Run verbosely, by default.
30316
30317         sys_time: avoid compiler warnings
30318         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30319         unconditional, fixing regression from 2010-03-29.
30320         Reported by Simon Josefsson.
30321
30322 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30323
30324         maint.mk: s/_header_without_use/_sc_header_without_use/
30325         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30326         (sc_prohibit_assert_without_use): Use the new name.
30327         (sc_prohibit_close_stream_without_use): Likewise.
30328         (sc_prohibit_getopt_without_use): Likewise.
30329         (sc_prohibit_quotearg_without_use): Likewise.
30330         (sc_prohibit_quote_without_use): Likewise.
30331         (sc_prohibit_long_options_without_use): Likewise.
30332         (sc_prohibit_inttostr_without_use): Likewise.
30333         (sc_prohibit_ignore_value_without_use): Likewise.
30334         (sc_prohibit_error_without_use): Likewise.
30335         (sc_prohibit_xalloc_without_use): Likewise.
30336         (sc_prohibit_hash_without_use): Likewise.
30337         (sc_prohibit_hash_pjw_without_use): Likewise.
30338         (sc_prohibit_safe_read_without_use): Likewise.
30339         (sc_prohibit_argmatch_without_use): Likewise.
30340         (sc_prohibit_canonicalize_without_use): Likewise.
30341         (sc_prohibit_root_dev_ino_without_use): Likewise.
30342         (sc_prohibit_openat_without_use): Likewise.
30343         (sc_prohibit_c_ctype_without_use): Likewise.
30344         (sc_prohibit_signal_without_use): Likewise.
30345         (sc_prohibit_intprops_without_use): Likewise.
30346
30347 2010-03-30  Eric Blake  <eblake@redhat.com>
30348
30349         maint: improve module indicators
30350         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30351         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30352         columns, and avoid extra macro expansion.
30353
30354         fdopendir: work around FreeBSD bug
30355         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30356         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30357         * modules/dirent (Makefile.am): Substitute it.
30358         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30359         declaration.
30360         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30361         fix.
30362         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30363
30364 2010-03-29  Bruno Haible  <bruno@clisp.org>
30365
30366         Emit #pragma system_header after the inclusion guard, not before.
30367         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30368         guard that spans the entire file, not before. This enables an
30369         optimization in GCC's preprocessor.
30370         * lib/ctype.in.h: Likewise.
30371         * lib/dirent.in.h: Likewise.
30372         * lib/errno.in.h: Likewise.
30373         * lib/float.in.h: Likewise.
30374         * lib/getopt.in.h: Likewise.
30375         * lib/iconv.in.h: Likewise.
30376         * lib/langinfo.in.h: Likewise.
30377         * lib/locale.in.h: Likewise.
30378         * lib/math.in.h: Likewise.
30379         * lib/netdb.in.h: Likewise.
30380         * lib/netinet_in.in.h: Likewise.
30381         * lib/pty.in.h: Likewise.
30382         * lib/sched.in.h: Likewise.
30383         * lib/se-selinux.in.h: Likewise.
30384         * lib/search.in.h: Likewise.
30385         * lib/spawn.in.h: Likewise.
30386         * lib/stdarg.in.h: Likewise.
30387         * lib/stdint.in.h: Likewise.
30388         * lib/string.in.h: Likewise.
30389         * lib/strings.in.h: Likewise.
30390         * lib/sys_file.in.h: Likewise.
30391         * lib/sys_ioctl.in.h: Likewise.
30392         * lib/sys_time.in.h: Likewise.
30393         * lib/sys_times.in.h: Likewise.
30394         * lib/sys_utsname.in.h: Likewise.
30395         * lib/sys_wait.in.h: Likewise.
30396         * lib/sysexits.in.h: Likewise.
30397         * lib/wctype.in.h: Likewise.
30398
30399 2010-03-28  James Youngman  <jay@gnu.org>
30400
30401         save-cwd: don't leak a file descriptor when the caller execs.
30402         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30403         saved file descriptor.
30404         * modules/save-cwd (Depends-on): Depend on cloexec.
30405
30406 2010-03-29  Bruno Haible  <bruno@clisp.org>
30407
30408         Remove vestiges of fts-lgpl module.
30409         * lib/fts_.h: Assume GNULIB_FTS is 1.
30410         * lib/fts.c: Likewise.
30411         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30412
30413 2010-03-28  Bruno Haible  <bruno@clisp.org>
30414
30415         Fix definition of tests witness macro.
30416         * gnulib-tool (func_import): Fix definition of witness macro.
30417
30418 2010-03-28  Bruno Haible  <bruno@clisp.org>
30419
30420         Fix ioctl's protoype on glibc systems.
30421         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30422         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30423         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30424         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30425         signature. If not, arrange to replace the ioctl function.
30426         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30427         REPLACE_IOCTL.
30428         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30429         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30430         Reported by Ludovic Courtès <ludo@gnu.org>.
30431
30432 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30433
30434         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30435         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30436         made it so grep -r --include=GLOB* ... did not work.
30437
30438 2010-03-26  Jim Meyering  <meyering@redhat.com>
30439             Eric Blake  <eblake@redhat.com>
30440
30441         maint.mk: prohibit use of test's -o and -a operators
30442         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30443
30444 2010-03-28  Bruno Haible  <bruno@clisp.org>
30445
30446         Remove unused GNULIB_XYZ macro definitions.
30447         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30448         invocation.
30449
30450 2010-03-28  Bruno Haible  <bruno@clisp.org>
30451
30452         Mark privileged tests modules.
30453         * modules/idpriv-drop-tests (Status): New section.
30454         * modules/idpriv-droptemp-tests (Status): New section.
30455
30456 2010-03-28  Bruno Haible  <bruno@clisp.org>
30457
30458         Split C++ tests into separate tests modules.
30459         * modules/dirent-c++-tests: New file, extracted from
30460         modules/dirent-tests.
30461         * modules/dirent-tests: Depend on it.
30462         * modules/fcntl-h-c++-tests: New file, extracted from
30463         modules/fcntl-h-tests.
30464         * modules/fcntl-h-tests: Depend on it.
30465         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30466         * modules/glob-tests: Depend on it.
30467         * modules/iconv-h-c++-tests: New file, extracted from
30468         modules/iconv-h-tests.
30469         * modules/iconv-h-tests: Depend on it.
30470         * modules/langinfo-c++-tests: New file, extracted from
30471         modules/langinfo-tests.
30472         * modules/langinfo-tests: Depend on it.
30473         * modules/locale-c++-tests: New file, extracted from
30474         modules/locale-tests.
30475         * modules/locale-tests: Depend on it.
30476         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30477         * modules/math-tests: Depend on it.
30478         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30479         * modules/pty-tests: Depend on it.
30480         * modules/search-c++-tests: New file, extracted from
30481         modules/search-tests.
30482         * modules/search-tests: Depend on it.
30483         * modules/signal-c++-tests: New file, extracted from
30484         modules/signal-tests.
30485         * modules/signal-tests: Depend on it.
30486         * modules/spawn-c++-tests: New file, extracted from
30487         modules/spawn-tests.
30488         * modules/spawn-tests: Depend on it.
30489         * modules/stdio-c++-tests: New file, extracted from
30490         modules/stdio-tests.
30491         * modules/stdio-tests: Depend on it.
30492         * modules/stdlib-c++-tests: New file, extracted from
30493         modules/stdlib-tests.
30494         * modules/stdlib-tests: Depend on it.
30495         * modules/string-c++-tests: New file, extracted from
30496         modules/string-tests.
30497         * modules/string-tests: Depend on it.
30498         * modules/sys_ioctl-c++-tests: New file, extracted from
30499         modules/sys_ioctl-tests.
30500         * modules/sys_ioctl-tests: Depend on it.
30501         * modules/sys_select-c++-tests: New file, extracted from
30502         modules/sys_select-tests.
30503         * modules/sys_select-tests: Depend on it.
30504         * modules/sys_socket-c++-tests: New file, extracted from
30505         modules/sys_socket-tests.
30506         * modules/sys_socket-tests: Depend on it.
30507         * modules/sys_stat-c++-tests: New file, extracted from
30508         modules/sys_stat-tests.
30509         * modules/sys_stat-tests: Depend on it.
30510         * modules/sys_time-c++-tests: New file, extracted from
30511         modules/sys_time-tests.
30512         * modules/sys_time-tests: Depend on it.
30513         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30514         * modules/time-tests: Depend on it.
30515         * modules/unistd-c++-tests: New file, extracted from
30516         modules/unistd-tests.
30517         * modules/unistd-tests: Depend on it.
30518         * modules/wchar-c++-tests: New file, extracted from
30519         modules/wchar-tests.
30520         * modules/wchar-tests: Depend on it.
30521         * modules/wctype-c++-tests: New file, extracted from
30522         modules/wctype-tests.
30523         * modules/wctype-tests: Depend on it.
30524         Reported by Simon Josefsson.
30525
30526 2010-03-28  Bruno Haible  <bruno@clisp.org>
30527
30528         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30529         * gnulib-tool (func_exists_module): New function, extracted from
30530         func_verify_module.
30531         (func_verify_module): Use it.
30532         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30533         'foo' only if 'foo' exists.
30534         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30535         module.
30536
30537 2010-03-28  Bruno Haible  <bruno@clisp.org>
30538
30539         gnulib-tool: Add support for special categories of tests.
30540         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30541         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30542         (func_usage): Document them.
30543         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30544         inc_unportable_tests, inc_all_tests): New variables.
30545         (func_acceptable): Consider these variables.
30546         (func_modules_transitive_closure): Make it work when the 'Status' field
30547         consists of multiple words.
30548         (func_import): Store and restore the values of inc_cxx_tests,
30549         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30550         inc_all_tests in gnulib-comp.m4.
30551         (func_create_testdir): Set inc_all_tests to true.
30552         * doc/gnulib.texi (Extra tests modules): New section.
30553         Suggested by Jim Meyering.
30554
30555 2010-03-28  Bruno Haible  <bruno@clisp.org>
30556
30557         ansi-c++-opt: Allow turning off the C++ build by default.
30558         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30559         gl_CXX_CHOICE_DEFAULT_NO is defined.
30560         Requested by Eric Blake.
30561
30562 2010-03-28  Bruno Haible  <bruno@clisp.org>
30563
30564         unistd: Avoid #define replacements in C++ mode.
30565         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30566         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30567         setsockopt, shutdown, select): In C++, attach a warning to the function
30568         if possible, rather than #defining the symbol to a dysfunctional alias.
30569         Reported by John W. Eaton <jwe@gnu.org>.
30570
30571 2010-03-28  Bruno Haible  <bruno@clisp.org>
30572
30573         Fix link errors on mingw.
30574         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30575         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30576         $(LIBSOCKET).
30577         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30578         $(LIBSOCKET).
30579
30580 2010-03-28  Bruno Haible  <bruno@clisp.org>
30581             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30582
30583         lib-ignore: Determine different options for different compilers.
30584         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30585         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30586         Add comments.
30587         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30588         * NEWS: Mention the change.
30589
30590 2010-03-27  Bruno Haible  <bruno@clisp.org>
30591
30592         Remove unused GNULIB_XYZ macro definitions.
30593         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30594         * modules/fseek (configure.ac): Likewise.
30595         * modules/ioctl (configure.ac): Likewise.
30596         * modules/open (configure.ac): Likewise.
30597         * modules/stdlib-safer (configure.ac): Likewise.
30598
30599 2010-03-27  Bruno Haible  <bruno@clisp.org>
30600
30601         Add a remark about certain modules.
30602         * modules/malloc (Comment): New section.
30603         * modules/realloc (Comment): Likewise.
30604         * modules/sigpipe (Comment): Likewise.
30605
30606 2010-03-27  Bruno Haible  <bruno@clisp.org>
30607
30608         Resolve conflict between the two kinds of module indicators.
30609         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30610         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30611         * modules/canonicalize (configure.ac): Invoke
30612         gl_MODULE_INDICATOR_FOR_TESTS.
30613         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30614         GNULIB_XYZ.
30615         * tests/test-dirent-c++.cc: Likewise.
30616         * tests/test-dirent-safer.c: Likewise.
30617         * tests/test-dup2.c: Likewise.
30618         * tests/test-fchdir.c: Likewise.
30619         * tests/test-fcntl-h-c++.cc: Likewise.
30620         * tests/test-getopt.c: Likewise.
30621         * tests/test-getopt.h: Likewise.
30622         * tests/test-langinfo-c++.cc: Likewise.
30623         * tests/test-locale-c++.cc: Likewise.
30624         * tests/test-math-c++.cc: Likewise.
30625         * tests/test-pty-c++.cc: Likewise.
30626         * tests/test-search-c++.cc: Likewise.
30627         * tests/test-signal-c++.cc: Likewise.
30628         * tests/test-spawn-c++.cc: Likewise.
30629         * tests/test-stdio-c++.cc: Likewise.
30630         * tests/test-stdlib-c++.cc: Likewise.
30631         * tests/test-string-c++.cc: Likewise.
30632         * tests/test-sys_ioctl-c++.cc: Likewise.
30633         * tests/test-sys_select-c++.cc: Likewise.
30634         * tests/test-sys_socket-c++.cc: Likewise.
30635         * tests/test-sys_stat-c++.cc: Likewise.
30636         * tests/test-sys_time-c++.cc: Likewise.
30637         * tests/test-time-c++.cc: Likewise.
30638         * tests/test-unistd-c++.cc: Likewise.
30639         * tests/test-wchar-c++.cc: Likewise.
30640         * tests/uninorm/test-u8-nfc.c: Likewise.
30641         * tests/uninorm/test-u8-nfd.c: Likewise.
30642         * tests/uninorm/test-u8-nfkc.c: Likewise.
30643         * tests/uninorm/test-u8-nfkd.c: Likewise.
30644         * tests/uninorm/test-u16-nfc.c: Likewise.
30645         * tests/uninorm/test-u16-nfd.c: Likewise.
30646         * tests/uninorm/test-u16-nfkc.c: Likewise.
30647         * tests/uninorm/test-u16-nfkd.c: Likewise.
30648         * tests/uninorm/test-u32-nfc.c: Likewise.
30649         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30650         * tests/uninorm/test-u32-nfd.c: Likewise.
30651         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30652         * tests/uninorm/test-u32-nfkc.c: Likewise.
30653         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30654         * tests/uninorm/test-u32-nfkd.c: Likewise.
30655         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30656         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30657
30658 2010-03-27  Bruno Haible  <bruno@clisp.org>
30659
30660         Distinguish two kinds of module indicators.
30661         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30662         gl_MODULE_INDICATOR.
30663         (gl_MODULE_INDICATOR): New macro.
30664         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30665         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30666         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30667         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30668         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30669         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30670         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30671         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30672         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30673         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30674         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30675         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30677         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30678         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30679         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30680         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30681         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30682         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30683         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30684         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30685         * modules/cloexec (configure.ac): Likewise.
30686         * modules/getopt-gnu (configure.ac): Likewise.
30687         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30688         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30689         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30690         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30691
30692 2010-03-27  Bruno Haible  <bruno@clisp.org>
30693
30694         New module description field 'Comment'.
30695         * gnulib-tool: New option --extract-comment.
30696         (func_usage): Document it.
30697         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30698         (func_get_comment): New function.
30699         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30700
30701 2010-03-27  Bruno Haible  <bruno@clisp.org>
30702
30703         Addendum to 2010-02-07 commit.
30704         * gnulib-tool (func_usage): Document --extract-applicability option.
30705
30706 2010-03-27  Bruno Haible  <bruno@clisp.org>
30707
30708         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30709         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30710         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30711         rather than link errors.
30712
30713 2010-03-27  Bruno Haible  <bruno@clisp.org>
30714
30715         Avoid side effects from tests-related modules on the compilation of lib.
30716         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30717         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30718         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30719         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30720         macro.
30721         (func_import): Define a witness macro. Assign it a value that depends
30722         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30723         tests-related modules.
30724         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30725         Reported by Jim Meyering.
30726
30727 2010-03-27  Bruno Haible  <bruno@clisp.org>
30728
30729         Factorize common .m4 code.
30730         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30731         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30732         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30733         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30734         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30735         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30736         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30737         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30738         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30739         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30740         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30741         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30742         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30743         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30744         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30745         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30746         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30747         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30749         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30750         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30751         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30752         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30754         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30755         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30756         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30757         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30758         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30759         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30760         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30761         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30762
30763 2010-03-27  Bruno Haible  <bruno@clisp.org>
30764
30765         Fix a compilation error on Cygwin with g++ >= 4.3.
30766         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30767         if it is undefined or if we alias it to chmod.
30768         (lstat): Don't warn about the use of this function if it is undefined
30769         or if we alias it to stat.
30770         Reported by Simon Josefsson.
30771
30772 2010-03-27  Bruno Haible  <bruno@clisp.org>
30773
30774         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30775         * modules/getlogin (configure.ac): Update.
30776
30777         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30778         * modules/getlogin_r (configure.ac): Update.
30779
30780         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30782         * modules/inet_ntop (configure.ac): Update.
30783
30784         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30785         * modules/inet_pton (configure.ac): Update.
30786
30787         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30788         * modules/mbslen (configure.ac): Update.
30789
30790         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30791         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30792         * modules/forkpty (configure.ac): Update.
30793         * modules/openpty (configure.ac): Update.
30794
30795 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30796
30797         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30798         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30799
30800 2010-03-25  Eric Blake  <eblake@redhat.com>
30801
30802         maint: use pragma consistently across replacement headers
30803         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30804         * lib/dirent.in.h (system_header): Likewise.
30805         * lib/errno.in.h (system_header): Likewise.
30806         * lib/float.in.h (system_header): Likewise.
30807         * lib/getopt.in.h (system_header): Likewise.
30808         * lib/iconv.in.h (system_header): Likewise.
30809         * lib/inttypes.in.h (system_header): Likewise.
30810         * lib/langinfo.in.h (system_header): Likewise.
30811         * lib/locale.in.h (system_header): Likewise.
30812         * lib/math.in.h (system_header): Likewise.
30813         * lib/netdb.in.h (system_header): Likewise.
30814         * lib/netinet_in.in.h (system_header): Likewise.
30815         * lib/pty.in.h (system_header): Likewise.
30816         * lib/sched.in.h (system_header): Likewise.
30817         * lib/se-selinux.in.h (system_header): Likewise.
30818         * lib/search.in.h (system_header): Likewise.
30819         * lib/spawn.in.h (system_header): Likewise.
30820         * lib/stdarg.in.h (system_header): Likewise.
30821         * lib/stdint.in.h (system_header): Likewise.
30822         * lib/string.in.h (system_header): Likewise.
30823         * lib/strings.in.h (system_header): Likewise.
30824         * lib/sys_file.in.h (system_header): Likewise.
30825         * lib/sys_ioctl.in.h (system_header): Likewise.
30826         * lib/sys_socket.in.h (system_header): Likewise.
30827         * lib/sys_times.in.h (system_header): Likewise.
30828         * lib/sys_utsname.in.h (system_header): Likewise.
30829         * lib/sys_wait.in.h (system_header): Likewise.
30830         * lib/sysexits.in.h (system_header): Likewise.
30831         * lib/unistd.in.h (system_header): Likewise.
30832         * lib/wctype.in.h (system_header): Likewise.
30833
30834         arpa/inet: fix mingw compilation warning
30835         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30836         Reported by Matthew Bolte.
30837
30838 2010-03-25  Bruno Haible  <bruno@clisp.org>
30839
30840         Avoid collision between gnulib wrapper and libintl wrapper.
30841         * lib/printf.c (printf): Don't define if a printf wrapper is already
30842         defined in intl/printf.c.
30843         Reported by Michel Boaventura <michel@michelboaventura.com>.
30844
30845 2010-03-25  Bruno Haible  <bruno@clisp.org>
30846
30847         Use ANSI C.
30848         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30849
30850 2010-03-25  Bruno Haible  <bruno@clisp.org>
30851
30852         Minor formatting changes.
30853         * lib/acosl.c: Insert space before function argument list.
30854         * lib/argz.c: Likewise.
30855         * lib/asinl.c: Likewise.
30856         * lib/expl.c: Likewise.
30857         * lib/gen-uni-tables.c: Likewise.
30858         * lib/gettext.h: Likewise.
30859         * lib/glthread/lock.h: Likewise.
30860         * lib/tanl.c: Likewise.
30861         * lib/uniname/uniname.c: Likewise.
30862         * tests/test-idpriv-drop.c: Likewise.
30863         * tests/test-idpriv-droptemp.c: Likewise.
30864         * tests/test-lock.c: Likewise.
30865         * tests/test-tls.c: Likewise.
30866         * lib/argp-help.c: Insert space before function-like macro argument
30867         list.
30868         * lib/memcmp.c: Likewise.
30869         * tests/test-base64.c: Likewise.
30870         * lib/localename.c: Insert space before sizeof's argument list.
30871         * lib/safe-alloc.h: Likewise.
30872         * lib/file-set.h: Insert space before macro argument list.
30873         * tests/test-argp.c: Likewise.
30874         * lib/argp-namefrob.h: Insert space before function parameter list.
30875         * lib/getaddrinfo.c: Likewise.
30876         * lib/netdb.in.h: Likewise.
30877         * lib/parse-duration.h: Likewise.
30878         * lib/parse-duration.c: Likewise.
30879         * lib/poll.c: Likewise.
30880         * lib/select.c: Likewise.
30881         * lib/trim.h: Likewise.
30882         * tests/test-usleep.c: Likewise.
30883         * lib/ldexpl.c: Insert space before function parameter list and before
30884         function argument list.
30885         * lib/logl.c: Likewise.
30886         * lib/sqrtl.c: Likewise.
30887         * lib/trim.c: Likewise.
30888         * lib/cosl.c: Use GNU style indentation. Insert space before function
30889         argument list.
30890         * lib/sinl.c: Likewise.
30891         * lib/tsearch.c: Insert space after 'for'.
30892         Reported by Jim Meyering.
30893
30894 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30895
30896         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30897         config header before grepping, as it's not present before
30898         autoreconf/configure are run.  Reported by Simon Josefsson.
30899
30900 2010-03-23  Bruno Haible  <bruno@clisp.org>
30901
30902         pt_chown: Make it work with automake < 1.11.
30903         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30904         Reported by Simon Josefsson.
30905
30906 2010-03-23  Bruno Haible  <bruno@clisp.org>
30907
30908         pt_chown: Don't depend on GPLed modules.
30909         * lib/pt_chown.c: Don't include idpriv.h.
30910         (main): Don't drop privileges.
30911         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30912         Reported by Simon Josefsson.
30913
30914 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30915
30916         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30917         suggestions from karl@freefriends.org (Karl Berry).
30918
30919 2010-03-22  Eric Blake  <eblake@redhat.com>
30920
30921         gethostname: further tweaks
30922         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30923         are overriding gethostname.
30924         Suggested by Bruno Haible.
30925
30926 2010-03-21  Bruno Haible  <bruno@clisp.org>
30927
30928         Fix comments.
30929         * lib/forkpty.c (rpl_forkpty): Fix comment.
30930         * lib/openpty.c (rpl_openpty): Likewise.
30931         Reported by Eric Blake.
30932
30933 2010-03-22  Eric Blake  <eblake@redhat.com>
30934
30935         gethostname: fix build on mingw
30936         * lib/unistd.in.h (includes): Work around fact that mingw
30937         <winsock2.h> re-includes <unistd.h>, by avoiding any
30938         redeclarations if we are being included by <winsock2.h>.
30939         Reported by Matthias Bolte.
30940
30941 2010-03-21  Bruno Haible  <bruno@clisp.org>
30942
30943         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30944         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30945         modifications.
30946         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30947         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30948         provide the replacement.
30949         * modules/forkpty (Depends-on): Add openpty, login_tty.
30950         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30951         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30952         * doc/glibc-functions/forkpty.texi: More supported platforms.
30953         * config/srclist.txt: Add forkpty.c (commented).
30954
30955 2010-03-21  Bruno Haible  <bruno@clisp.org>
30956
30957         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30958         (Makefile.am): Verify that PTY_LIB is defined.
30959
30960         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30961
30962 2010-03-21  Bruno Haible  <bruno@clisp.org>
30963
30964         Tests for module 'login_tty'.
30965         * modules/login_tty-tests: New file.
30966         * tests/test-login_tty.c: New file.
30967
30968         New module 'login_tty'.
30969         * lib/login_tty.c: New file.
30970         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30971         * modules/login_tty: New file.
30972         * doc/glibc-functions/login_tty.texi: Mention the new module.
30973
30974 2010-03-21  Bruno Haible  <bruno@clisp.org>
30975
30976         login_tty: Documentation.
30977         * doc/glibc-functions/login_tty.texi: New file.
30978         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30979
30980 2010-03-21  Bruno Haible  <bruno@clisp.org>
30981
30982         pty: Consistent macro naming.
30983         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30984         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30985         * modules/pty (configure.ac): Update.
30986
30987 2010-03-21  Bruno Haible  <bruno@clisp.org>
30988
30989         Tests for openpty: Make stricter.
30990         * tests/test-openpty.c (main): Add test of canonical processing and
30991         erase.
30992         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30993
30994         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30995         * lib/openpty.c (openpty): New replacement function.
30996         * lib/pty.in.h: Include <termios.h>.
30997         (openpty): Update declaration. Add comments.
30998         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30999         is not declared, arrange to provide the replacement. Check for _getpty
31000         and posix_openpt.
31001         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31002         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31003         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31004         * modules/pty-tests (test_pty_c___LDADD): New variable.
31005         * doc/glibc-functions/openpty.texi: More supported platforms.
31006
31007 2010-03-21  Bruno Haible  <bruno@clisp.org>
31008
31009         setenv: Tweaks.
31010         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31011         the test program.
31012         * doc/posix-functions/setenv.texi: Update platforms list.
31013
31014 2010-03-21  Bruno Haible  <bruno@clisp.org>
31015
31016         New module 'unlockpt'.
31017         * lib/unlockpt.c: New file, from glibc with modifications.
31018         * m4/unlockpt.m4: New file.
31019         * modules/unlockpt: New file.
31020         * lib/stdlib.in.h (unlockpt): New declaration.
31021         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31022         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31023         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31024         HAVE_UNLOCKPT.
31025         * doc/posix-functions/unlockpt.texi: Mention the new module.
31026         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31027         * config/srclist.txt: Add unlockpt.c (commented).
31028
31029 2010-03-21  Jim Meyering  <meyering@redhat.com>
31030
31031         maint.mk: prohibit inclusion of "intprops.h" without use
31032         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31033
31034 2010-03-21  Bruno Haible  <bruno@clisp.org>
31035
31036         New module 'grantpt'.
31037         * lib/grantpt.c: New file, from glibc with modifications.
31038         * m4/grantpt.m4: New file.
31039         * modules/grantpt: New file.
31040         * lib/stdlib.in.h (grantpt): New declaration.
31041         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31042         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31043         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31044         HAVE_GRANTPT.
31045         * doc/posix-functions/grantpt.texi: Mention the new module.
31046         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31047         * config/srclist.txt: Add grantpt.c (commented).
31048
31049 2010-03-21  Bruno Haible  <bruno@clisp.org>
31050
31051         New module 'pt_chown'.
31052         * lib/pt_chown.c: New file, from glibc with modifications.
31053         * lib/pty-private.h: New file, from glibc with modifications.
31054         * modules/pt_chown: New file.
31055         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31056
31057 2010-03-21  Bruno Haible  <bruno@clisp.org>
31058
31059         Tests for module 'ptsname'.
31060         * modules/ptsname-tests: New file.
31061         * tests/test-ptsname.c: New file.
31062
31063         New module 'ptsname'.
31064         * lib/ptsname.c: New file, from glibc with modifications.
31065         * m4/ptsname.m4: New file.
31066         * modules/ptsname: New file.
31067         * lib/stdlib.in.h (ptsname): New declaration.
31068         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31069         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31070         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31071         HAVE_PTSNAME.
31072         * doc/posix-functions/ptsname.texi: Mention the new module.
31073         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31074         * config/srclist.txt: Add ptsname.c (commented).
31075
31076 2010-03-21  Bruno Haible  <bruno@clisp.org>
31077
31078         Tests for module 'ttyname_r'.
31079         * modules/ttyname_r-tests: New file.
31080         * tests/test-ttyname_r.c: New file.
31081
31082         New module 'ttyname_r'.
31083         * lib/ttyname_r.c: New file.
31084         * m4/ttyname_r.m4: New file.
31085         * modules/ttyname_r: New file.
31086         * lib/unistd.in.h (ttyname_r): New declaration.
31087         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31088         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31089         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31090         HAVE_TTYNAME_R.
31091         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31092         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31093
31094 2010-03-20  Bruno Haible  <bruno@clisp.org>
31095
31096         signal: Undefine macro definitions in C++ mode.
31097         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31098         sigfillset): Undefine macro definitions from the system header in C++
31099         mode.
31100         Reported by John W. Eaton <jwe@gnu.org>.
31101
31102 2010-03-20  Bruno Haible  <bruno@clisp.org>
31103
31104         Ensure no #include statements inside extern "C" { ... }.
31105         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31106         contain #include statements.
31107         * lib/time.in.h: Likewise.
31108
31109 2010-03-20  Bruno Haible  <bruno@clisp.org>
31110
31111         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31112         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31113         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31114         Reported by John W. Eaton <jwe@gnu.org>.
31115
31116 2010-03-20  Bruno Haible  <bruno@clisp.org>
31117
31118         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31119         Reported by Jim Meyering.
31120
31121 2010-03-20  Bruno Haible  <bruno@clisp.org>
31122
31123         pipe: Set errno upon failure.
31124         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31125         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31126         errno value in error message.
31127
31128 2010-03-20  Bruno Haible  <bruno@clisp.org>
31129             Jim Meyering  <meyering@redhat.com>
31130
31131         lchown: Avoid "unused variable" warning.
31132         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31133
31134 2010-03-20  Bruno Haible  <bruno@clisp.org>
31135
31136         Work around unlink() bug on MacOS X 10.5.6.
31137         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31138         attempting to unlink a parent directory.
31139         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31140         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31141         activate for the replacement function.
31142         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31143
31144 2010-03-20  Bruno Haible  <bruno@clisp.org>
31145
31146         Fix link errors on Solaris 8.
31147         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31148         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31149
31150 2010-03-19  Jim Meyering  <meyering@redhat.com>
31151
31152         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31153         The _LIBC implementation of build_range_exp correctly honors the
31154         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31155         However, the non-_LIBC implementation would ignore that syntax-bit
31156         flag and return REG_ERANGE unconditionally.
31157         This change makes it honor that flag.
31158         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31159         Make two pointer parameters "const".
31160         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31161         (parse_bracket_exp): Update caller.
31162
31163         regex.m4: correct the reversed range endpoint ([b-a]) test
31164         * m4/regex.m4: When requiring that [b-a] evoke failure,
31165         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31166         test pass once again for x86-based systems.
31167
31168 2010-03-19  Bruno Haible  <bruno@clisp.org>
31169
31170         scandir: Fix link error on Solaris 8.
31171         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31172         macros.
31173
31174 2010-03-19  Bruno Haible  <bruno@clisp.org>
31175
31176         getusershell: Fix documentation.
31177         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31178         module.
31179         * doc/glibc-functions/setusershell.texi: Likewise.
31180
31181         getusershell: Provide declaration, missing on Solaris 9.
31182         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31183         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31184         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31185         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31187         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31188         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31189         HAVE_GETUSERSHELL.
31190         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31191
31192 2010-03-19  Bruno Haible  <bruno@clisp.org>
31193
31194         wctype: Provide iswblank function.
31195         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31196         exists and is fine.
31197         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31198         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31199         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31200         * doc/posix-functions/iswblank.texi: Update.
31201
31202 2010-03-19  Bruno Haible  <bruno@clisp.org>
31203
31204         Tests of module 'pty' in C++ mode.
31205         * modules/pty-tests: New file.
31206         * tests/test-pty-c++.cc: New file.
31207         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31208
31209 2010-03-19  Eric Blake  <eblake@redhat.com>
31210
31211         logb: fix documentation
31212         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31213         1.5 declaration bug.
31214
31215         forkpty, openpty: prefer glibc's const-safe prototype
31216         * lib/forkpty.c (rpl_forkpty): New file.
31217         * lib/openpty.c (rpl_openpty): Likewise.
31218         * modules/forkpty (Files): Distribute it.
31219         * modules/openpty (Files): Likewise.
31220         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31221         check...
31222         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31223         replacement for for non-const BSD signature.
31224         * modules/pty (Makefile.am): Substitute witnesses.
31225         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31226         * tests/test-forkpty.c: Update signature check.
31227         * tests/test-openpty.c: Likewise.
31228         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31229         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31230
31231         forkpty, openpty: split functions into new modules
31232         * modules/pty (Makefile.am): Substitute new witnesses.
31233         (Libraries): Move library detection...
31234         * modules/forkpty: ...into new module.
31235         * modules/openpty: Another new module.
31236         * modules/pty-tests: Rename and split...
31237         * modules/forkpty-tests: ...to this...
31238         * modules/openpty-tests: ...and this.
31239         * tests/test-pty.c: Rename and split...
31240         * tests/test-forkpty.c: ...to this...
31241         * tests/test-openpty.c: ...and this.
31242         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31243         (gl_PTY): Split library searching...
31244         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31245         (gl_FORKPTY, gl_OPENPTY): New macros.
31246         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31247         * NEWS: Mention the split.
31248         * MODULES.html.sh (Misc): Document the modules.
31249         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31250         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31251
31252         pty: improve replacement header
31253         * lib/pty.in.h: New file.
31254         * modules/pty (Files): Ship it.
31255         (Makefile.am): Always build replacement.
31256         * m4/pty.m4: Rename...
31257         * m4/pty_h.m4: ...to this.
31258         (gl_PTY): Modernize setting of witness macros; update check of
31259         forkpty to take proper advantage of cache.
31260         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31261
31262         getopt: avoid compiler warning
31263         * lib/getopt.c (attribute_hidden): Remove unused macro.
31264
31265 2010-03-18  Bruno Haible  <bruno@clisp.org>
31266
31267         Fix link errors on Solaris 8.
31268         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31269         * modules/search-tests (test_search_c___LDADD): Likewise.
31270         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31271         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31272         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31273         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31274         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31275         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31276         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31277
31278 2010-03-18  Bruno Haible  <bruno@clisp.org>
31279
31280         Fix bug introduced on 2010-03-14.
31281         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31282         (gl_SPAWN_H): Require it.
31283         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31284         Reported by Simon Josefsson.
31285
31286 2010-03-18  Bruno Haible  <bruno@clisp.org>
31287
31288         Fix typo introduced on 2009-12-31.
31289         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31290         posix_spawn_file_actions_adddup2.
31291
31292 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31293         and Eric Blake  <eblake@redhat.com>
31294
31295         test-vc-list-files-git: make more robust
31296         * tests/test-vc-list-files-git.sh: Unset problematic environment
31297         variables.  Chain commands together.
31298
31299 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31300
31301         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31302         `AC_CHECK_DECL' invocation.
31303
31304 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31305
31306         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31307         appears before executable statements. Suggested by Petr Sumbera
31308         <Petr.Sumbera@Sun.COM>.
31309
31310 2010-03-14  Bruno Haible  <bruno@clisp.org>
31311
31312         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31313         portability problems. Instead use a simpler test.
31314         (main): Check that invalid arguments are rejected only on Linux.
31315
31316 2010-03-14  Bruno Haible  <bruno@clisp.org>
31317
31318         Fix bug introduced on 2009-12-31.
31319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31320         gl_PREREQ_SYS_H_WINSOCK2 always.
31321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31322         SYS_SOCKET_H variable.
31323         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31324         Update comments.
31325         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31326         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31327         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31328         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31329         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31330
31331 2010-03-14  Bruno Haible  <bruno@clisp.org>
31332
31333         Fix values returned by sinl, cosl.
31334         * lib/trigl.h: Add specification comments.
31335         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31336         that combines the values from the precomputed table with the values of
31337         the Chebyshev polynomials.
31338
31339 2010-03-14  Bruno Haible  <bruno@clisp.org>
31340
31341         Fix compilation error when modules 'posix_spawn[p]' are not used.
31342         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31343         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31344
31345 2010-03-14  Bruno Haible  <bruno@clisp.org>
31346
31347         Fix compilation error on mingw when module 'time_r' is not used.
31348         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31349         is 1.
31350         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31351         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31352         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31353         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31354
31355 2010-03-14  Bruno Haible  <bruno@clisp.org>
31356
31357         Fix compilation error with Sun C.
31358         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31359         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31360         instead of GCC specific ULONG_LONG_MAX.
31361         * lib/xstrtoll.c: Likewise.
31362         * lib/xstrtoull.c: Likewise.
31363
31364 2010-03-13  Bruno Haible  <bruno@clisp.org>
31365
31366         Allow the user to disable C++ code and tests.
31367         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31368         (gl_PROG_ANSI_CXX): Require it.
31369
31370 2010-03-13  Bruno Haible  <bruno@clisp.org>
31371
31372         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31373         cases.
31374
31375 2010-03-13  Bruno Haible  <bruno@clisp.org>
31376
31377         Test that gnulib does not break the standard C++ headers.
31378         * tests/test-locale-c++2.cc: New file.
31379         * modules/locale-tests (Files): Add it.
31380         (Makefile.am): Compile it for test-locale-c++.
31381         * tests/test-math-c++2.cc: New file.
31382         * modules/math-tests (Files): Add it.
31383         (Makefile.am): Compile it for test-math-c++.
31384         * tests/test-signal-c++2.cc: New file.
31385         * modules/signal-tests (Files): Add it.
31386         (Makefile.am): Compile it for test-signal-c++.
31387         * tests/test-stdio-c++2.cc: New file.
31388         * modules/stdio-tests (Files): Add it.
31389         (Makefile.am): Compile it for test-stdio-c++.
31390         * tests/test-stdlib-c++2.cc: New file.
31391         * modules/stdlib-tests (Files): Add it.
31392         (Makefile.am): Compile it for test-stdlib-c++.
31393         * tests/test-string-c++2.cc: New file.
31394         * modules/string-tests (Files): Add it.
31395         (Makefile.am): Compile it for test-string-c++.
31396         * tests/test-time-c++2.cc: New file.
31397         * modules/time-tests (Files): Add it.
31398         (Makefile.am): Compile it for test-time-c++.
31399         Reported by John W. Eaton <jwe@gnu.org>.
31400
31401 2010-03-13  Bruno Haible  <bruno@clisp.org>
31402
31403         * gnulib-tool (func_usage): Clarify which options are available for
31404         --create-testdir and --create-megatestdir.
31405
31406 2010-03-13  Bruno Haible  <bruno@clisp.org>
31407
31408         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31409         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31410         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31411         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31412         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31413         when appropriate.
31414         Reported by Jim Meyering.
31415
31416 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31417
31418         * gnulib-tool (func_import): Explain origin of code.
31419
31420 2010-03-12  Bruno Haible  <bruno@clisp.org>
31421
31422         Fix problem with automake's definition of CXXLINK.
31423         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31424         Reported by Simon Josefsson and Ludovic Courtès.
31425
31426 2010-03-12  Bruno Haible  <bruno@clisp.org>
31427
31428         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31429         stable releases.
31430
31431 2010-03-11  Bruno Haible  <bruno@clisp.org>
31432
31433         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31434         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31435         whether the system provides one variant or multiple variants of the
31436         function.
31437         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31438         C++ compilers.
31439         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31440         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31441         Reported by Jim Meyering.
31442
31443 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31444
31445         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31446
31447 2010-03-08  Bruno Haible  <bruno@clisp.org>
31448
31449         gnulib-tool: Add support for --libtool in --create-testdir.
31450         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31451         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31452
31453 2010-03-08  Eric Blake  <eblake@redhat.com>
31454
31455         gnulib-tool.texi: mention possibility of git submodule
31456         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31457         submodules.
31458         * doc/.gitignore: Ignore another generated file.
31459
31460 2010-03-08  Karl Berry  <karl@gnu.org>
31461
31462         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31463         of committing gnulib files while skipping others.
31464
31465 2010-03-07  Bruno Haible  <bruno@clisp.org>
31466
31467         Tests of module 'wctype' in C++ mode.
31468         * tests/test-wctype-c++.cc: New file.
31469         * modules/wctype-tests (Files): Add it and tests/signature.h.
31470         (Depends-on): Add ansi-c++-opt.
31471         (Makefile.am): Arrange to compile and run test-wctype-c++.
31472
31473         Tests of module 'wchar' in C++ mode.
31474         * tests/test-wchar-c++.cc: New file.
31475         * modules/wchar-tests (Files): Add it and tests/signature.h.
31476         (Depends-on): Add ansi-c++-opt.
31477         (Makefile.am): Arrange to compile and run test-wchar-c++.
31478         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31479         gl_MODULE_INDICATOR.
31480
31481         Tests of module 'unistd' in C++ mode.
31482         * tests/test-unistd-c++.cc: New file.
31483         * modules/unistd-tests (Files): Add it and tests/signature.h.
31484         (Depends-on): Add ansi-c++-opt.
31485         (Makefile.am): Arrange to compile and run test-unistd-c++.
31486         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31487         gl_MODULE_INDICATOR.
31488
31489         Tests of module 'time' in C++ mode.
31490         * tests/test-time-c++.cc: New file.
31491         * modules/time-tests (Files): Add it and tests/signature.h.
31492         (Depends-on): Add ansi-c++-opt.
31493         (Makefile.am): Arrange to compile and run test-time-c++.
31494         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31495
31496         Tests of module 'sys_time' in C++ mode.
31497         * tests/test-sys_time-c++.cc: New file.
31498         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31499         (Depends-on): Add ansi-c++-opt.
31500         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31501         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31502         gl_MODULE_INDICATOR.
31503
31504         Tests of module 'sys_stat' in C++ mode.
31505         * tests/test-sys_stat-c++.cc: New file.
31506         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31507         (Depends-on): Add ansi-c++-opt.
31508         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31509         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31510         gl_MODULE_INDICATOR.
31511
31512         Tests of module 'sys_socket' in C++ mode.
31513         * tests/test-sys_socket-c++.cc: New file.
31514         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31515         (Depends-on): Add ansi-c++-opt.
31516         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31517         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31518         gl_MODULE_INDICATOR.
31519
31520         Tests of module 'sys_select' in C++ mode.
31521         * tests/test-sys_select-c++.cc: New file.
31522         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31523         (Depends-on): Add ansi-c++-opt.
31524         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31525         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31526         gl_MODULE_INDICATOR.
31527
31528         Tests of module 'sys_ioctl' in C++ mode.
31529         * tests/test-sys_ioctl-c++.cc: New file.
31530         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31531         (Depends-on): Add ansi-c++-opt.
31532         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31533         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31534         gl_MODULE_INDICATOR.
31535
31536         Tests of module 'string' in C++ mode.
31537         * tests/test-string-c++.cc: New file.
31538         * modules/string-tests (Files): Add it and tests/signature.h.
31539         (Depends-on): Add ansi-c++-opt.
31540         (Makefile.am): Arrange to compile and run test-string-c++.
31541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31542         gl_MODULE_INDICATOR.
31543
31544         Tests of module 'stdlib' in C++ mode.
31545         * tests/test-stdlib-c++.cc: New file.
31546         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31547         (Depends-on): Add ansi-c++-opt.
31548         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31549         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31550         gl_MODULE_INDICATOR.
31551
31552         Tests of module 'stdio' in C++ mode.
31553         * tests/test-stdio-c++.cc: New file.
31554         * modules/stdio-tests (Files): Add it and tests/signature.h.
31555         (Depends-on): Add ansi-c++-opt.
31556         (Makefile.am): Arrange to compile and run test-stdio-c++.
31557         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31558         gl_MODULE_INDICATOR.
31559
31560         Tests of module 'spawn' in C++ mode.
31561         * tests/test-spawn-c++.cc: New file.
31562         * modules/spawn-tests (Files): Add it and tests/signature.h.
31563         (Depends-on): Add ansi-c++-opt.
31564         (Makefile.am): Arrange to compile and run test-spawn-c++.
31565         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31566         gl_MODULE_INDICATOR.
31567
31568         Tests of module 'signal' in C++ mode.
31569         * tests/test-signal-c++.cc: New file.
31570         * modules/signal-tests (Files): Add it and tests/signature.h.
31571         (Depends-on): Add ansi-c++-opt.
31572         (Makefile.am): Arrange to compile and run test-signal-c++.
31573         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31574         gl_MODULE_INDICATOR.
31575
31576         Tests of module 'search' in C++ mode.
31577         * tests/test-search-c++.cc: New file.
31578         * modules/search-tests (Files): Add it and tests/signature.h.
31579         (Depends-on): Add ansi-c++-opt.
31580         (Makefile.am): Arrange to compile and run test-search-c++.
31581         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31582         gl_MODULE_INDICATOR.
31583
31584         Tests of module 'math' in C++ mode.
31585         * tests/test-math-c++.cc: New file.
31586         * modules/math-tests (Files): Add it and tests/signature.h.
31587         (Depends-on): Add ansi-c++-opt.
31588         (Makefile.am): Arrange to compile and run test-math-c++.
31589         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31590
31591         Tests of module 'locale' in C++ mode.
31592         * tests/test-locale-c++.cc: New file.
31593         * modules/locale-tests (Files): Add it and tests/signature.h.
31594         (Depends-on): Add ansi-c++-opt.
31595         (Makefile.am): Arrange to compile and run test-locale-c++.
31596         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31597         gl_MODULE_INDICATOR.
31598
31599         Tests of module 'langinfo' in C++ mode.
31600         * tests/test-langinfo-c++.cc: New file.
31601         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31602         (Depends-on): Add ansi-c++-opt.
31603         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31604         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31605         gl_MODULE_INDICATOR.
31606
31607         Tests of module 'iconv-h' in C++ mode.
31608         * tests/test-iconv-h-c++.cc: New file.
31609         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31610         (Depends-on): Add ansi-c++-opt.
31611         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31612
31613         Tests of module 'glob' in C++ mode.
31614         * tests/test-glob-c++.cc: New file.
31615         * modules/glob-tests (Files): Add it.
31616         (Depends-on): Add ansi-c++-opt.
31617         (Makefile.am): Arrange to compile and run test-glob-c++.
31618
31619         Tests of module 'fcntl-h' in C++ mode.
31620         * tests/test-fcntl-h-c++.cc: New file.
31621         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31622         (Depends-on): Add ansi-c++-opt.
31623         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31624         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31625         gl_MODULE_INDICATOR.
31626
31627         Tests of module 'dirent' in C++ mode.
31628         * tests/test-dirent-c++.cc: New file.
31629         * modules/dirent-tests (Files): Add it and tests/signature.h.
31630         (Depends-on): Add ansi-c++-opt.
31631         (Makefile.am): Arrange to compile and run test-dirent-c++.
31632         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31633         gl_MODULE_INDICATOR.
31634
31635         New module 'ansi-c++-opt'.
31636         * modules/ansi-c++-opt: New file.
31637         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31638
31639         Document C++ namespace mode.
31640         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31641
31642         wctype: Avoid #define replacements in C++ mode.
31643         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31644         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31645         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31646         In C++, define a namespaced alias symbol.
31647         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31648         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31649         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31650         rule.
31651
31652         wchar: Avoid #define replacements in C++ mode.
31653         * lib/wchar.in.h: Include c++defs.h.
31654         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31655         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31656         symbol.
31657         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31658         * modules/wchar (Depends-on): Add c++defs.
31659         (Makefile.am): Update wchar.h rule.
31660
31661         unistd: Avoid #define replacements in C++ mode.
31662         * lib/unistd.in.h: Include c++defs.h.
31663         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31664         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31665         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31666         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31667         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31668         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31669         symbol.
31670         (environ): Update.
31671         * modules/unistd (Depends-on): Add c++defs.
31672         (Makefile.am): Update unistd.h rule.
31673
31674         time: Avoid #define replacements in C++ mode.
31675         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31676         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31677         define a namespaced alias symbol.
31678         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31679         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31680         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31681         * modules/time (Depends-on): Add c++defs, warn-on-use.
31682         (Makefile.am): Update time.h rule.
31683         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31684         * modules/nanosleep (configure.ac): Likewise.
31685         * modules/strptime (configure.ac): Likewise.
31686         * modules/timegm (configure.ac): Likewise.
31687
31688         sys_time: Avoid #define replacements in C++ mode.
31689         * lib/sys_time.in.h: Include c++defs.h.
31690         (gettimeofday): In C++, define a namespaced alias symbol.
31691         * modules/sys_time (Depends-on): Add c++defs.
31692         (Makefile.am): Update sys/time.h rule.
31693
31694         sys_stat: Avoid #define replacements in C++ mode.
31695         * lib/sys_stat.in.h: Include c++defs.h.
31696         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31697         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31698         namespaced alias symbol.
31699         In C++, define a namespaced alias symbol.
31700         * modules/sys_stat (Depends-on): Add c++defs.
31701         (Makefile.am): Update sys/stat.h rule.
31702
31703         sys_socket: Avoid #define replacements in C++ mode.
31704         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31705         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31706         definitions also when the system has a <sys/socket.h>.
31707         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31708         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31709         In C++, define a namespaced alias symbol.
31710         * modules/sys_socket (Depends-on): Add c++defs.
31711         (Makefile.am): Update sys/socket.h rule.
31712
31713         sys_select: Avoid #define replacements in C++ mode.
31714         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31715         definitions also when the system has a <sys/select.h>.
31716         (select): In C++, define a namespaced alias symbol.
31717         * modules/sys_select (Depends-on): Add c++defs.
31718         (Makefile.am): Update sys/select.h rule.
31719
31720         sys_ioctl: Avoid #define replacements in C++ mode.
31721         * lib/sys_ioctl.in.h: Include c++defs.h.
31722         (ioctl): In C++, define a namespaced alias symbol.
31723         * modules/sys_ioctl (Depends-on): Add c++defs.
31724         (Makefile.am): Update sys/ioctl.h rule.
31725
31726         string: Avoid #define replacements in C++ mode.
31727         * lib/string.in.h: Include c++defs.h.
31728         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31729         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31730         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31731         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31732         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31733         * modules/string (Depends-on): Add c++defs.
31734         (Makefile.am): Update string.h rule.
31735
31736         stdlib: Avoid #define replacements in C++ mode.
31737         * lib/stdlib.in.h: Include c++defs.h.
31738         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31739         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31740         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31741         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31742         symbol.
31743         * modules/stdlib (Depends-on): Add c++defs.
31744         (Makefile.am): Update stdlib.h rule.
31745
31746         stdio: Avoid #define replacements in C++ mode.
31747         * lib/stdio.in.h: Include c++defs.h.
31748         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31749         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31750         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31751         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31752         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31753         namespaced alias symbol.
31754         * modules/stdio (Depends-on): Add c++defs.
31755         (Makefile.am): Update stdio.h rule.
31756
31757         spawn: Avoid #define replacements in C++ mode.
31758         * lib/spawn.in.h: Include c++defs.h.
31759         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31760         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31761         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31762         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31763         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31764         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31765         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31766         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31767         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31768         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31769         In C++, define a namespaced alias symbol.
31770         * modules/spawn (Depends-on): Add c++defs.
31771         (Makefile.am): Update spawn.h rule.
31772
31773         signal: Avoid #define replacements in C++ mode.
31774         * lib/signal.in.h: Include c++defs.h.
31775         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31776         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31777         namespaced alias symbol.
31778         * modules/signal (Depends-on): Add c++defs.
31779         (Makefile.am): Update signal.h rule.
31780
31781         search: Avoid #define replacements in C++ mode.
31782         * lib/search.in.h: Include c++defs.h.
31783         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31784         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31785         symbol.
31786         * modules/search (Depends-on): Add c++defs.
31787         (Makefile.am): Update search.h rule.
31788
31789         math: Avoid #define replacements in C++ mode.
31790         * lib/math.in.h: Include c++defs.h.
31791         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31792         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31793         trunc, truncl): In C++, define a namespaced alias symbol.
31794         * modules/math (Depends-on): Add c++defs.
31795         (Makefile.am): Update math.h rule.
31796
31797         locale: Avoid #define replacements in C++ mode.
31798         * lib/locale.in.h: Include c++defs.h.
31799         (duplocale): In C++, define a namespaced alias symbol.
31800         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31801         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31802         * modules/locale (Depends-on): Add c++defs.
31803         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31804
31805         langinfo: Avoid #define replacements in C++ mode.
31806         * lib/langinfo.in.h: Include c++defs.h.
31807         (nl_langinfo): In C++, define a namespaced alias symbol.
31808         * modules/langinfo (Depends-on): Add c++defs.
31809         (Makefile.am): Update langinfo.h rule.
31810
31811         iconv-h: Avoid #define replacements in C++ mode.
31812         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31813         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31814         symbol.
31815         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31816         whenever iconv is present.
31817         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31818         (Makefile.am): Update iconv.h rule.
31819
31820         glob: Avoid #define replacements in C++ mode.
31821         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31822         (_gl_glob_errfunc_fn): New type.
31823         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31824         symbol.
31825         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31826         (Makefile.am): Update glob.h rule.
31827
31828         fcntl-h: Avoid #define replacements in C++ mode.
31829         * lib/fcntl.in.h: Include c++defs.h.
31830         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31831         * modules/fcntl-h (Depends-on): Add c++defs.
31832         (Makefile.am): Update fcntl.h rule.
31833
31834         dirent: Avoid #define replacements in C++ mode.
31835         * lib/dirent.in.h: Include c++defs.h.
31836         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31837         namespaced alias symbol.
31838         (dirfd): Update declaration.
31839         * modules/dirent (Depends-on): Add c++defs.
31840         (Makefile.am): Update dirent.h rule.
31841
31842         ctype: Make it usable in C++ code.
31843         * lib/ctype.in.h: Include c++defs.h.
31844         (isblank): Declare as extern "C".
31845         * modules/ctype (Depends-on): Add c++defs.
31846         (Makefile.am): Update ctype.h rule.
31847
31848         New module 'c++defs'.
31849         * modules/c++defs: New file.
31850         * build-aux/c++defs.h: New file.
31851         Reported by John W. Eaton <jwe@gnu.org>.
31852
31853 2010-03-07  Bruno Haible  <bruno@clisp.org>
31854
31855         logb: Provide missing declaration for Cygwin.
31856         * lib/math.in.h (logb): New declaration.
31857         * m4/logb.m4: New file.
31858         * modules/logb (Files): Add m4/logb.m4.
31859         (Depends-on): Add math.
31860         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31861         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31863         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31864         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31865
31866 2010-03-07  Bruno Haible  <bruno@clisp.org>
31867
31868         Fix test-cond link error.
31869         * tests/test-cond.c: Include <stdio.h>.
31870
31871 2010-03-07  Bruno Haible  <bruno@clisp.org>
31872
31873         Fix test-dirent-safer link error.
31874         * modules/dirent-safer-tests (Makefile.am): Define
31875         test_dirent_safer_LDADD.
31876
31877 2010-03-07  Bruno Haible  <bruno@clisp.org>
31878
31879         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31880         among default module list.
31881
31882 2010-03-07  Bruno Haible  <bruno@clisp.org>
31883
31884         Fix link error on platforms with GNU libiconv.
31885         * modules/unistr/u8-strcoll-tests (Makefile): Define
31886         test_u8_strcoll_LDADD.
31887         * modules/unistr/u16-strcoll-tests (Makefile): Define
31888         test_u16_strcoll_LDADD.
31889         * modules/unistr/u32-strcoll-tests (Makefile): Define
31890         test_u32_strcoll_LDADD.
31891
31892 2010-03-07  Bruno Haible  <bruno@clisp.org>
31893
31894         Use POSIX declarations for socket functions.
31895         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31896         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31897         rpl_sendto): Change declaration to match POSIX.
31898         * lib/connect.c (rpl_connect): Likewise.
31899         * lib/accept.c (rpl_accept): Likewise.
31900         * lib/bind.c (rpl_bind): Likewise.
31901         * lib/getpeername.c (rpl_getpeername): Likewise.
31902         * lib/getsockname.c (rpl_getsockname): Likewise.
31903         * lib/recv.c (rpl_recv): Likewise.
31904         * lib/send.c (rpl_send): Likewise.
31905         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31906         * lib/sendto.c (rpl_sendto): Likewise.
31907
31908 2010-03-06  Bruno Haible  <bruno@clisp.org>
31909
31910         Clarify access, euidaccess, faccessat.
31911         * doc/posix-functions/faccessat.texi: Mention security problem under
31912         "Other problems", not "Portability problems".
31913         * doc/posix-functions/access.texi: Likewise. Mention a related security
31914         problem.
31915         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31916         * lib/euidaccess.c: Add comments about platforms.
31917         * lib/unistd.in.h (access, euidaccess): Add warnings.
31918
31919 2010-03-07  Bruno Haible  <bruno@clisp.org>
31920
31921         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31922         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31923         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31924         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31925         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31926         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31927         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31928         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31929         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31930         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31931         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31932         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31933         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31934         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31935         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31936         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31937         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31938         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31939         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31940         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31941         Likewise.
31942         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31943         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31944         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31945         Likewise.
31946         * tests/test-spawn.c (main): Make it work when
31947         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31948
31949 2010-03-07  Bruno Haible  <bruno@clisp.org>
31950
31951         Fix incorrect Makefile.am generation in German locale.
31952         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31953         Execute sed command with character range in C locale.
31954
31955 2010-03-06  Bruno Haible  <bruno@clisp.org>
31956
31957         Tests for module 'iconv-h'.
31958         * modules/iconv-h-tests: New file.
31959         * tests/test-iconv-h.c: New file.
31960
31961         New module 'iconv-h'.
31962         * modules/iconv-h: New file.
31963         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31964         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31965         (configure.ac): Remove gl_ICONV_H.
31966         (Makefile.am): Remove rule for iconv.h.
31967
31968 2010-03-06  Bruno Haible  <bruno@clisp.org>
31969
31970         More consistent naming of *.m4 files.
31971         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31972         * modules/wctype (Files): Update.
31973
31974         More consistent naming of *.m4 files.
31975         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31976         * modules/wchar (Files): Update.
31977
31978 2010-03-06  Jim Meyering  <meyering@redhat.com>
31979
31980         euidaccess: relax license to LGPLv2+
31981         * modules/euidaccess (License): Relax to LGPLv2+.
31982
31983 2010-03-06  Bruno Haible  <bruno@clisp.org>
31984
31985         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31986         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31987         (Makefile.am): Augment lib_SOURCES instead.
31988
31989 2010-03-04  Jim Meyering  <meyering@redhat.com>
31990
31991         utime: remove obsolete module
31992         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31993         unnecessary for years, and has been marked as obsolete for 10 months.
31994         * modules/utime: Remove file.
31995         * lib/utime.c: Remove file.
31996         * m4/utime.m4: Remove file.
31997         * m4/utimes-null.m4: Remove file.
31998         * doc/posix-functions/utime.texi (utime): Remove reference to
31999         the module.  Move the sole "fixed by gnulib" item into the
32000         "problems not fixed by Gnulib" list.
32001         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32002
32003 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32004
32005         * modules/exit (License): Relax license to LGPLv2+.
32006         (Status): Mark as obsolete.
32007         * NEWS: Mention deprecated 'exit' module.
32008         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32009         of now obsolete 'exit'.
32010
32011 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32012
32013         fts-lgpl: remove unused module
32014         * modules/fts-lgpl: Remove.
32015         * MODULES.html.sh (func_all_modules): Adjust.
32016         * check-module (find_included_lib_files): Adjust.
32017         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32018
32019 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32020
32021         copy-acl: enhance Solaris ACL error handling
32022         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32023         * lib/set-mode-acl.c (qset_acl): Likewise.
32024
32025 2010-03-02  Bruno Haible  <bruno@clisp.org>
32026
32027         spawn: Don't override the system defined values on FreeBSD 8.
32028         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32029         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32030         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32031         if HAVE_POSIX_SPAWN is 1.
32032         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32033
32034 2010-03-01  Bruno Haible  <bruno@clisp.org>
32035
32036         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32037         regarding Automake.
32038
32039 2010-02-25  Bruno Haible  <bruno@clisp.org>
32040
32041         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32042         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32043         setting, not afterwards.
32044         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32045
32046 2010-02-24  Eric Blake  <eblake@redhat.com>
32047
32048         bootstrap, git-version-gen: use timestamp
32049         * build-aux/git-version-gen (scriptversion): Force UTC.
32050         * build-aux/bootstrap (scriptversion): New variable.
32051
32052         bootstrap: allow older git
32053         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32054         older than 1.6.4.  Requested by the libvirt project.
32055
32056 2010-02-23  Eric Blake  <eblake@redhat.com>
32057
32058         warn-on-use: work with old autoconf
32059         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32060         AS_VAR semantics of autoconf 2.60.
32061         Reported by Bruno Haible.
32062
32063         bootstrap: improve some comments
32064         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32065         clarification comments.
32066
32067         gettimeofday: provide correct function
32068         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32069         when replacement is declared, otherwise provide gettimeofday.
32070         Reported by Michael Goffioul.
32071
32072 2010-02-23  Jim Meyering  <meyering@redhat.com>
32073
32074         lib-ignore: relax license to "unlimited", not LGPLv2+
32075         * modules/lib-ignore (License): Relax to "unlimited".
32076
32077 2010-02-23  Jim Meyering  <meyering@redhat.com>
32078
32079         lib-ignore: relax license to LGPLv2+
32080         * modules/lib-ignore (License): Relax to LGPLv2+.
32081
32082 2010-02-22  Eric Blake  <eblake@redhat.com>
32083
32084         lseek: avoid bash 3.2 broken pipe bug
32085         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32086         warning from bash 3.2.
32087         Reported by Ben Pfaff, with analysis from Bruno Haible.
32088
32089         bootstrap: support non-FSF copyright holder
32090         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32091         bootstrap.conf override of COPYRIGHT_HOLDER.
32092         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32093
32094         bootstrap: interoperate with gettext 0.14.1
32095         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32096
32097         bootstrap: allow for alternate submodule location
32098         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32099         hardcoding submodule location.
32100         (gnulib_mk): Allow direct use of Makefile.am.
32101
32102         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32103         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32104         rather than reconfiguring where the submodule points.
32105
32106         gettimeofday: restore support for platforms that lack function
32107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32108         replacement if function is missing.
32109         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32110         * modules/sys_time (Makefile.am): Substitute it.
32111         * lib/sys_time.in.h (gettimeofday): Check it.
32112         Reported by Michael Goffioul.
32113
32114 2010-02-21  Bruno Haible  <bruno@clisp.org>
32115
32116         * lib/stdio.in.h (obstack_printf): Fix typo.
32117
32118 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32119
32120         vc-list-files: use bzr ls's -R option
32121         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32122         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32123
32124 2010-02-21  Jim Meyering  <meyering@redhat.com>
32125
32126         init.sh: fix EXEEXT shims to work also for names like test-prog
32127         * tests/init.sh: Re-exec a better shell, when needed.
32128         If the current shell lacks support for posix $(...), an init.sh-using
32129         test will now try to find a shell that supports that.  If EXEEXT is
32130         nonempty, we also require support for hyphen-in-alias-name and shell
32131         substitutions like ${var#glob}.  Failure to find such a shell results
32132         in a skipped test.
32133
32134 2010-02-21  Bruno Haible  <bruno@clisp.org>
32135
32136         Really work around around "broken pipe" error message from bash 3.2.
32137         * gnulib-tool (func_reset_sigpipe): Remove function.
32138         (echo): In bash 3.2, define to a function that uses printf.
32139         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32140
32141 2010-02-20  Bruno Haible  <bruno@clisp.org>
32142
32143         Restore support for automake 1.9.6 with autoconf 2.61.
32144         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32145         Reported by James Youngman <jay@gnu.org>.
32146
32147 2010-02-20  Bruno Haible  <bruno@clisp.org>
32148
32149         Improve *printf warning condition.
32150         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32151         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32152         and the function is overridden due to SIGPIPE emulation.
32153
32154 2010-02-20  Bruno Haible  <bruno@clisp.org>
32155
32156         * lib/stdio.in.h: Tweak comments.
32157
32158 2010-02-19  Bruno Haible  <bruno@clisp.org>
32159
32160         Make it easier to find modules. New gnulib-tool option '--find'.
32161         * gnulib-tool: New option --find.
32162         (func_usage): Document it.
32163         (func_sanitize_modulelist): New function, extracted from
32164         func_all_modules.
32165         (func_all_modules): Invoke it.
32166         * doc/gnulib-tool.texi (Which modules?): New node.
32167
32168 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32169
32170         * lib/sys_select.in.h: Provide select replacement even if
32171         sys/select.h exists on a system, for Interix.
32172
32173 2010-02-18  Jim Meyering  <meyering@redhat.com>
32174
32175         init.sh: don't use $(...) just yet
32176         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32177         to accommodate e.g., Solaris' /bin/sh.
32178
32179 2010-02-17  Bruno Haible  <bruno@clisp.org>
32180
32181         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32182         Reported by Ludovic Courtès <ludo@gnu.org>.
32183
32184 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32185
32186         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32187         linking with -lintl.
32188
32189 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32190
32191         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32192         if not provided by the system's netdb.h.  Reported by
32193         ludo@gnu.org (Ludovic Courtès).
32194
32195 2010-02-15  Jim Meyering  <meyering@redhat.com>
32196
32197         init.sh: improve portability and efficiency
32198         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32199         "dummy" in a for loop.
32200         Use '!', not '^' to select the complement of a character set used
32201         in a "case" statement.
32202         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32203         Suggestions from Eric Blake.
32204
32205         init.sh: automatically accommodate programs with the .exe suffix
32206         Automatically arrange for an invocation of "prog" to execute the
32207         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32208         may use the simpler "prog", yet still work when built on a system
32209         that requires specifying the added suffix.
32210         Do this by constructing a function named "prog" that invokes
32211         "prog.exe" for each .exe file in selected directories.
32212         * tests/init.sh (find_exe_basenames_): New function.
32213         (create_exe_shim_functions_): New function.
32214         (path_prepend_): Use it.
32215
32216         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32217         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32218         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32219
32220 2010-02-14  Jim Meyering  <meyering@redhat.com>
32221
32222         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32223         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32224         (sc_prohibit_hash_pjw_without_use): New rule.
32225
32226         maint.mk: allow the default upload destination dir to be overridden
32227         * top/maint.mk (upload_dest_dir_): Define with a default that
32228         preserves the status quo.
32229         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32230         Reported by Peter Simons.
32231
32232         maint.mk: prohibit inclusion of "hash.h" without_use
32233         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32234
32235 2010-02-10  Jim Meyering  <meyering@redhat.com>
32236
32237         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32238         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32239
32240 2010-02-09  Eric Blake  <ebb9@byu.net>
32241         and Bruno Haible  <bruno@clisp.org>
32242
32243         obstack-printf-posix: ensure declaration
32244         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32245         extracted from gl_FUNC_OBSTACK_PRINTF.
32246         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32247         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32248         Likewise.
32249         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32250         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32251         0.
32252
32253 2010-02-08  Bruno Haible  <bruno@clisp.org>
32254
32255         gnulib-tool: Fix typo in 2010-02-07 commit.
32256         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32257         Reported by Eric Blake.
32258
32259 2010-02-07  Bruno Haible  <bruno@clisp.org>
32260
32261         gnulib-tool: Fix up caching patches.
32262         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32263         option --no-cache. Use associative arrays when supported by the shell.
32264         (sed_comments): New variable.
32265         (modcache): Renamed from do_cache.
32266         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32267         abbreviate unnecessarily.
32268         (have_associative): New variable.
32269         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32270         way also for ksh and zsh.
32271         (func_init_sed_convert_to_cache_statements): New function, extracted
32272         from func_cache_lookup_module. Add support for associative arrays.
32273         Don't set the c_MODULE_cached variable here. Ignore all lines before
32274         the first field header. Remove only the final newline, not all trailing
32275         newlines. Support empty fields correctly. Limit the use of 'eval' to
32276         assignments.
32277         (func_get_description, func_get_status, func_get_notice,
32278         func_get_applicability, func_get_filelist, func_get_dependencies,
32279         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32280         func_get_automake_snippet, func_get_include_directive,
32281         func_get_link_directive, func_get_license, func_get_maintainer):
32282         Update documentation. List the unoptimized code first. Add support for
32283         associative arrays. Limit the use of 'eval' to assignments.
32284         (func_get_applicability): Undo stylistic pessimisations.
32285         (func_get_automake_snippet, func_get_include_directive): Reduce code
32286         duplication.
32287         (func_modules_transitive_closure, func_modules_add_dummy,
32288         func_modules_notice, func_modules_to_filelist, func_add_file,
32289         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32290         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32291         func_create_testdir, func_create_megatestdir): Update documentation.
32292
32293 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32294
32295         * gnulib-tool (func_cache_lookup_module): Store the module name
32296         belonging to the cache variable; error out if two different
32297         module names map to the same cache variable name.
32298
32299 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32300
32301         gnulib-tool: Make caching optional.
32302         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32303         Update matching short versions of --no-changelog.
32304         (func_usage): Update.
32305         (sed_extract_cache_prog): Renamed from ...
32306         (sed_extract_prog): ... this; revert to old extraction script.
32307         (func_get_description, func_get_status)
32308         (func_get_notice, func_get_applicability, func_get_filelist)
32309         (func_get_dependencies, func_get_autoconf_early_snippet)
32310         (func_get_autoconf_snippet, func_get_automake_snippet)
32311         (func_get_include_directive, func_get_link_directive)
32312         (func_get_license, func_get_maintainer): If $do_cache is false,
32313         use old, non-caching extraction scripts.
32314         Suggestion by Bruno Haible.
32315
32316 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32317
32318         gnulib-tool: cache module metainformation.
32319         * gnulib-tool (sed_extract_prog): Match newline before each
32320         header, and rewrite header to a shell variable suffix.
32321         (func_cache_var, func_cache_lookup_module): New functions,
32322         to turn a module name into a cache variable prefix, and to
32323         look up and cache module metainformation.
32324         (func_get_description, func_get_status)
32325         (func_get_notice, func_get_applicability, func_get_filelist)
32326         (func_get_dependencies, func_get_autoconf_early_snippet)
32327         (func_get_autoconf_snippet, func_get_automake_snippet)
32328         (func_get_include_directive, func_get_link_directive)
32329         (func_get_license, func_get_maintainer): Use
32330         func_cache_lookup_module.
32331
32332 2010-02-07  Bruno Haible  <bruno@clisp.org>
32333
32334         fnctl: Fix missing dependency.
32335         * modules/fcntl (Depends-on): Add getdtablesize.
32336         Reported by John W. Eaton <jwe@gnu.org>.
32337
32338 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32339
32340         Argp: fix recognition of short alias options.
32341
32342         * lib/argp-parse.c (convert_options): Fix improper use of
32343         `|' between character values.
32344         * tests/test-argp.c (group1_option): New alias option
32345         --read (-r).
32346         (group1_parser): Special handling for 'r'.
32347         (test15): New test case.
32348         (test_fun): Add test15.
32349         * tests/test-argp-2.sh: Update expected --help and --usage
32350         outputs.
32351
32352 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32353
32354         * tests/test-argp.c: Fix indentation.
32355
32356 2010-02-04  Eric Blake  <ebb9@byu.net>
32357
32358         gettimeofday: expose type of second argument
32359         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32360         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32361         * tests/test-gettimeofday.c: Use it to silence warning.
32362         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32363         the issue.
32364
32365 2010-02-03  Jim Meyering  <meyering@redhat.com>
32366
32367         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32368         * lib/regcomp.c (TYPE_SIGNED): Define.
32369         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32370
32371         regcomp.c: avoid a new -Wshadow warning
32372         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32373
32374 2010-02-01  Jim Meyering  <meyering@redhat.com>
32375
32376         removing useless parentheses in cpp #define directives
32377         For motivation, see commit c0221df4, "define STREQ(a,b)
32378         consistently, removing useless parentheses"
32379         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32380         * lib/mountlist.c (MNT_IGNORE): Likewise.
32381         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32382
32383 2010-02-01  Eric Blake  <ebb9@byu.net>
32384
32385         sys_time: use link-warning
32386         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32387         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32388         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32389         * modules/sys_time (Depends-on): Add warn-on-use.
32390         (Makefile.am): Always build replacement.
32391         (configure.ac): Update substitutions.
32392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32393         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32394         bother with SYS_TIME_H.
32395         * modules/gettimeofday (configure.ac): Declare indicator.
32396         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32397         in use.
32398
32399         closein-tests: silence compiler warning
32400         * tests/test-closein.c (main): Ignore fread result.
32401         * modules/closein-tests (Depends-on): Add ignore-value.
32402
32403         tests: silence warning about system return
32404         * tests/test-areadlink-with-size.c (main): Ignore system result.
32405         * tests/test-areadlink.c (main): Likewise.
32406         * tests/test-areadlinkat-with-size.c (main): Likewise.
32407         * tests/test-areadlinkat.c (main): Likewise.
32408         * tests/test-canonicalize-lgpl.c (main): Likewise.
32409         * tests/test-canonicalize.c (main): Likewise.
32410         * tests/test-chown.c (main): Likewise.
32411         * tests/test-fchownat.c (main): Likewise.
32412         * tests/test-fdutimensat.c (main): Likewise.
32413         * tests/test-fstatat.c (main): Likewise.
32414         * tests/test-futimens.c (main): Likewise.
32415         * tests/test-lchown.c (main): Likewise.
32416         * tests/test-link.c (main): Likewise.
32417         * tests/test-linkat.c (main): Likewise.
32418         * tests/test-lstat.c (main): Likewise.
32419         * tests/test-mkdir.c (main): Likewise.
32420         * tests/test-mkdirat.c (main): Likewise.
32421         * tests/test-mkfifo.c (main): Likewise.
32422         * tests/test-mkfifoat.c (main): Likewise.
32423         * tests/test-mknod.c (main): Likewise.
32424         * tests/test-readlink.c (main): Likewise.
32425         * tests/test-remove.c (main): Likewise.
32426         * tests/test-rename.c (main): Likewise.
32427         * tests/test-renameat.c (main): Likewise.
32428         * tests/test-rmdir.c (main): Likewise.
32429         * tests/test-symlink.c (main): Likewise.
32430         * tests/test-symlinkat.c (main): Likewise.
32431         * tests/test-unlink.c (main): Likewise.
32432         * tests/test-unlinkat.c (main): Likewise.
32433         * tests/test-utimens.c (main): Likewise.
32434         * tests/test-utimensat.c (main): Likewise.
32435         * modules/areadlink-tests (Depends-on): Add ignore-value.
32436         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32437         * modules/areadlinkat-tests (Depends-on): Likewise.
32438         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32439         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32440         * modules/canonicalize-tests (Depends-on): Likewise.
32441         * modules/chown-tests (Depends-on): Likewise.
32442         * modules/fdutimensat-tests (Depends-on): Likewise.
32443         * modules/futimens-tests (Depends-on): Likewise.
32444         * modules/lchown-tests (Depends-on): Likewise.
32445         * modules/link-tests (Depends-on): Likewise.
32446         * modules/linkat-tests (Depends-on): Likewise.
32447         * modules/lstat-tests (Depends-on): Likewise.
32448         * modules/mkdir-tests (Depends-on): Likewise.
32449         * modules/mkfifo-tests (Depends-on): Likewise.
32450         * modules/mkfifoat-tests (Depends-on): Likewise.
32451         * modules/mknod-tests (Depends-on): Likewise.
32452         * modules/openat-tests (Depends-on): Likewise.
32453         * modules/readlink-tests (Depends-on): Likewise.
32454         * modules/remove-tests (Depends-on): Likewise.
32455         * modules/rename-tests (Depends-on): Likewise.
32456         * modules/renameat-tests (Depends-on): Likewise.
32457         * modules/rmdir-tests (Depends-on): Likewise.
32458         * modules/symlink-tests (Depends-on): Likewise.
32459         * modules/symlinkat-tests (Depends-on): Likewise.
32460         * modules/unlink-tests (Depends-on): Likewise.
32461         * modules/utimens-tests (Depends-on): Likewise.
32462         * modules/utimensat-tests (Depends-on): Likewise.
32463
32464 2010-01-31  Bruno Haible  <bruno@clisp.org>
32465
32466         Perform the same test for many <math.h> functions.
32467         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32468         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32469         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32470         of gl_MATHFUNC.
32471         * modules/acos (configure.ac): Likewise.
32472         * modules/asin (configure.ac): Likewise.
32473         * modules/atan (configure.ac): Likewise.
32474         * modules/atan2 (configure.ac): Likewise.
32475         * modules/cbrt (configure.ac): Likewise.
32476         * modules/copysign (configure.ac): Likewise.
32477         * modules/cos (configure.ac): Likewise.
32478         * modules/cosh (configure.ac): Likewise.
32479         * modules/erf (configure.ac): Likewise.
32480         * modules/erfc (configure.ac): Likewise.
32481         * modules/exp (configure.ac): Likewise.
32482         * modules/fmod (configure.ac): Likewise.
32483         * modules/hypot (configure.ac): Likewise.
32484         * modules/j0 (configure.ac): Likewise.
32485         * modules/j1 (configure.ac): Likewise.
32486         * modules/jn (configure.ac): Likewise.
32487         * modules/lgamma (configure.ac): Likewise.
32488         * modules/log (configure.ac): Likewise.
32489         * modules/log10 (configure.ac): Likewise.
32490         * modules/log1p (configure.ac): Likewise.
32491         * modules/pow (configure.ac): Likewise.
32492         * modules/remainder (configure.ac): Likewise.
32493         * modules/sin (configure.ac): Likewise.
32494         * modules/sinh (configure.ac): Likewise.
32495         * modules/tan (configure.ac): Likewise.
32496         * modules/tanh (configure.ac): Likewise.
32497         * modules/y0 (configure.ac): Likewise.
32498         * modules/y1 (configure.ac): Likewise.
32499         * modules/yn (configure.ac): Likewise.
32500         Suggested by Paolo Bonzini.
32501
32502 2010-01-31  Bruno Haible  <bruno@clisp.org>
32503
32504         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32505
32506 2010-01-31  Bruno Haible  <bruno@clisp.org>
32507
32508         Work around getdelim() bug on FreeBSD 8.0.
32509         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32510         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32511         not work.
32512         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32513         is 1.
32514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32515         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32516         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32517         a non-zero size.
32518         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32519
32520 2010-01-31  Bruno Haible  <bruno@clisp.org>
32521
32522         Work around getline() bug on FreeBSD 8.0.
32523         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32524         and a non-zero size.
32525         * tests/test-getline.c (main): Likewise.
32526         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32527         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32528
32529 2010-01-28  Eric Blake  <ebb9@byu.net>
32530
32531         regex: fix build failure
32532         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32533         platforms.
32534
32535 2010-01-28  Jim Meyering  <meyering@redhat.com>
32536
32537         regex: do not ignore memory allocation failure
32538         * lib/regex_internal.c (create_cd_newstate): Detect
32539         re_node_set_init_copy failure.   Extracted from glibc commit
32540         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32541
32542         regex: sync more white-space changes from libc
32543         * lib/regex_internal.c: White-space only changes.
32544         * lib/regexec.c: Likewise.
32545
32546         regex: add many uses of __attribute_warn_unused_result__
32547         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32548         * lib/regexec.c: Likewise.
32549         Extracted from a messy glibc commit.
32550
32551         regcomp.c: spelling and merge-artifact from glibc
32552         * lib/regcomp.c: Merge remainder of glibc's
32553         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32554
32555         regcomp.c: sync white-space changes from glibc
32556         * lib/regcomp.c: Merge to accommodate white space
32557         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32558
32559         regcomp.c: do not ignore internal return values
32560         * lib/regcomp.c: Do not ignore internal return values.
32561         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32562         but without its white-space changes and spelling fixes.
32563
32564         regex_internal.h: define __attribute_warn_unused_result__
32565         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32566
32567         maint: add a syntax-check rule to check for vulnerable Makefile.in
32568         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32569
32570 2010-01-27  Jim Meyering  <meyering@redhat.com>
32571
32572         ncftpput-ftp: clean up spaces
32573         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32574         Remove trailing blanks.
32575
32576 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32577
32578         * build-aux/git-version-gen: Fix copyright statement.
32579         * build-aux/gnupload: Likewise.
32580         * tests/test-arcfour.c: Likewise.
32581         * tests/test-arctwo.c: Likewise.
32582         * tests/test-count-one-bits.c: Likewise.
32583         * tests/test-crc.c: Likewise.
32584         * tests/test-des.c: Likewise.
32585         * tests/test-gc-arcfour.c: Likewise.
32586         * tests/test-gc-arctwo.c: Likewise.
32587         * tests/test-gc-des.c: Likewise.
32588         * tests/test-gc-hmac-md5.c: Likewise.
32589         * tests/test-gc-hmac-sha1.c: Likewise.
32590         * tests/test-gc-md2.c: Likewise.
32591         * tests/test-gc-md4.c: Likewise.
32592         * tests/test-gc-md5.c: Likewise.
32593         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32594         * tests/test-gc-rijndael.c: Likewise.
32595         * tests/test-gc-sha1.c: Likewise.
32596         * tests/test-gc.c: Likewise.
32597         * tests/test-gethostname.c: Likewise.
32598         * tests/test-gettimeofday.c: Likewise.
32599         * tests/test-hash.c: Likewise.
32600         * tests/test-hmac-md5.c: Likewise.
32601         * tests/test-hmac-sha1.c: Likewise.
32602         * tests/test-md2.c: Likewise.
32603         * tests/test-md4.c: Likewise.
32604         * tests/test-md5.c: Likewise.
32605         * tests/test-memchr.c: Likewise.
32606         * tests/test-memchr2.c: Likewise.
32607         * tests/test-memcmp.c: Likewise.
32608         * tests/test-memmem.c: Likewise.
32609         * tests/test-memrchr.c: Likewise.
32610         * tests/test-rawmemchr.c: Likewise.
32611         * tests/test-read-file.c: Likewise.
32612         * tests/test-rijndael.c: Likewise.
32613         * tests/test-sockets.c: Likewise.
32614         * tests/test-strchrnul.c: Likewise.
32615         * tests/test-strstr.c: Likewise.
32616         * tests/test-strtod.c: Likewise.
32617         * build-aux/ncftpput-ftp: Likewise.
32618
32619 2010-01-26  Eric Blake  <ebb9@byu.net>
32620
32621         ignore-value: update recommended header name
32622         * modules/ignore-value (Include): Only use <> for headers that
32623         exist in glibc.
32624
32625 2010-01-26  Jim Meyering  <meyering@redhat.com>
32626
32627         test-userspec.c: avoid compiler warnings
32628         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32629         and "initialization discards qualifiers..." warnings.
32630         Put the first "uid" in its own scope, and make char* members "const".
32631
32632 2010-01-25  Bruno Haible  <bruno@clisp.org>
32633
32634         gnulib-tool: Make warning diagnostics consistent.
32635         * gnulib-tool (func_warning): New function.
32636         Use it everywhere where gnulib-tool produces output to stderr and it is
32637         not a fatal error.
32638
32639 2010-01-25  Bruno Haible  <bruno@clisp.org>
32640
32641         Fix test dependencies.
32642         * modules/xstrtol-tests (Depends-on): Add inttypes.
32643         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32644
32645 2010-01-25 Pádraig Brady <P@draigBrady.com>
32646
32647         syntax-check: detect incorrect boolean macro values in config.h
32648         * modules/maintainer-makefile (configure.ac): Parameterize the location
32649         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32650         The logic is from Eric Blake and the location indicated by Jim Meyering.
32651         Note the more natural CONFIG_HEADER name is prohibited by automake
32652         for backwards compatibility reasons.
32653         * top/maint.mk (sc_Wundef_boolean): New rule.
32654
32655 2010-01-25  Jim Meyering  <meyering@redhat.com>
32656
32657         bootstrap: detect MacOS 10.6's shasum, too
32658         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32659         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32660
32661 2010-01-23  Jim Meyering  <meyering@redhat.com>
32662
32663         xstrtoll: new module
32664         * modules/xstrtoll: New file.
32665         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32666         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32667         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32668         ./configure fails if you use this module and lack "long long".
32669         * modules/xstrtoll-tests: New module.
32670         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32671         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32672         new init.sh-based test framework.
32673
32674 2010-01-24  Bruno Haible  <bruno@clisp.org>
32675
32676         Tests for module 'yn'.
32677         * modules/yn-tests: New file.
32678         * tests/test-yn.c: New file.
32679
32680         Tests for module 'y1'.
32681         * modules/y1-tests: New file.
32682         * tests/test-y1.c: New file.
32683
32684         Tests for module 'y0'.
32685         * modules/y0-tests: New file.
32686         * tests/test-y0.c: New file.
32687
32688         Tests for module 'tanh'.
32689         * modules/tanh-tests: New file.
32690         * tests/test-tanh.c: New file.
32691
32692         Tests for module 'tan'.
32693         * modules/tan-tests: New file.
32694         * tests/test-tan.c: New file.
32695
32696         Tests for module 'sqrt'.
32697         * modules/sqrt-tests: New file.
32698         * tests/test-sqrt.c: New file.
32699
32700         Tests for module 'sinh'.
32701         * modules/sinh-tests: New file.
32702         * tests/test-sinh.c: New file.
32703
32704         Tests for module 'sin'.
32705         * modules/sin-tests: New file.
32706         * tests/test-sin.c: New file.
32707
32708         Tests for module 'rint'.
32709         * modules/rint-tests: New file.
32710         * tests/test-rint.c: New file.
32711
32712         Tests for module 'remainder'.
32713         * modules/remainder-tests: New file.
32714         * tests/test-remainder.c: New file.
32715
32716         Tests for module 'pow'.
32717         * modules/pow-tests: New file.
32718         * tests/test-pow.c: New file.
32719
32720         Tests for module 'nextafter'.
32721         * modules/nextafter-tests: New file.
32722         * tests/test-nextafter.c: New file.
32723
32724         Tests for module 'modf'.
32725         * modules/modf-tests: New file.
32726         * tests/test-modf.c: New file.
32727
32728         Tests for module 'logb'.
32729         * modules/logb-tests: New file.
32730         * tests/test-logb.c: New file.
32731
32732         Tests for module 'log1p'.
32733         * modules/log1p-tests: New file.
32734         * tests/test-log1p.c: New file.
32735
32736         Tests for module 'log10'.
32737         * modules/log10-tests: New file.
32738         * tests/test-log10.c: New file.
32739
32740         Tests for module 'log'.
32741         * modules/log-tests: New file.
32742         * tests/test-log.c: New file.
32743
32744         Tests for module 'lgamma'.
32745         * modules/lgamma-tests: New file.
32746         * tests/test-lgamma.c: New file.
32747
32748         Tests for module 'ldexp'.
32749         * modules/ldexp-tests: New file.
32750         * tests/test-ldexp.c: New file.
32751
32752         Tests for module 'jn'.
32753         * modules/jn-tests: New file.
32754         * tests/test-jn.c: New file.
32755
32756         Tests for module 'j1'.
32757         * modules/j1-tests: New file.
32758         * tests/test-j1.c: New file.
32759
32760         Tests for module 'j0'.
32761         * modules/j0-tests: New file.
32762         * tests/test-j0.c: New file.
32763
32764         Tests for module 'hypot'.
32765         * modules/hypot-tests: New file.
32766         * tests/test-hypot.c: New file.
32767
32768         Tests for module 'fmod'.
32769         * modules/fmod-tests: New file.
32770         * tests/test-fmod.c: New file.
32771
32772         Tests for module 'fabs'.
32773         * modules/fabs-tests: New file.
32774         * tests/test-fabs.c: New file.
32775
32776         Tests for module 'exp'.
32777         * modules/exp-tests: New file.
32778         * tests/test-exp.c: New file.
32779
32780         Tests for module 'erfc'.
32781         * modules/erfc-tests: New file.
32782         * tests/test-erfc.c: New file.
32783
32784         Tests for module 'erf'.
32785         * modules/erf-tests: New file.
32786         * tests/test-erf.c: New file.
32787
32788         Tests for module 'cosh'.
32789         * modules/cosh-tests: New file.
32790         * tests/test-cosh.c: New file.
32791
32792         Tests for module 'cos'.
32793         * modules/cos-tests: New file.
32794         * tests/test-cos.c: New file.
32795
32796         Tests for module 'copysign'.
32797         * modules/copysign-tests: New file.
32798         * tests/test-copysign.c: New file.
32799
32800         Tests for module 'cbrt'.
32801         * modules/cbrt-tests: New file.
32802         * tests/test-cbrt.c: New file.
32803
32804         Tests for module 'atan2'.
32805         * modules/atan2-tests: New file.
32806         * tests/test-atan2.c: New file.
32807
32808         Tests for module 'atan'.
32809         * modules/atan-tests: New file.
32810         * tests/test-atan.c: New file.
32811
32812         Tests for module 'asin'.
32813         * modules/asin-tests: New file.
32814         * tests/test-asin.c: New file.
32815
32816         Tests for module 'acos'.
32817         * modules/acos-tests: New file.
32818         * tests/test-acos.c: New file.
32819
32820 2010-01-24  Bruno Haible  <bruno@clisp.org>
32821
32822         Fix tests for common <math.h> functions.
32823         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32824         code snippet that references the function pointer, rather than merely
32825         calling the function. Substitute the FUNC_LIBM variable.
32826         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32827         * modules/acos (configure.ac): Likewise.
32828         * modules/asin (configure.ac): Likewise.
32829         * modules/atan (configure.ac): Likewise.
32830         * modules/atan2 (configure.ac): Likewise.
32831         * modules/cbrt (configure.ac): Likewise.
32832         * modules/copysign (configure.ac): Likewise.
32833         * modules/cos (configure.ac): Likewise.
32834         * modules/cosh (configure.ac): Likewise.
32835         * modules/erf (configure.ac): Likewise.
32836         * modules/erfc (configure.ac): Likewise.
32837         * modules/exp (configure.ac): Likewise.
32838         * modules/fabs (configure.ac): Likewise.
32839         * modules/fmod (configure.ac): Likewise.
32840         * modules/hypot (configure.ac): Likewise.
32841         * modules/j0 (configure.ac): Likewise.
32842         * modules/j1 (configure.ac): Likewise.
32843         * modules/jn (configure.ac): Likewise.
32844         * modules/ldexp (configure.ac): Likewise.
32845         * modules/lgamma (configure.ac): Likewise.
32846         * modules/log (configure.ac): Likewise.
32847         * modules/log10 (configure.ac): Likewise.
32848         * modules/log1p (configure.ac): Likewise.
32849         * modules/logb (configure.ac): Likewise.
32850         * modules/modf (configure.ac): Likewise.
32851         * modules/nextafter (configure.ac): Likewise.
32852         * modules/pow (configure.ac): Likewise.
32853         * modules/remainder (configure.ac): Likewise.
32854         * modules/rint (configure.ac): Likewise.
32855         * modules/sin (configure.ac): Likewise.
32856         * modules/sinh (configure.ac): Likewise.
32857         * modules/tan (configure.ac): Likewise.
32858         * modules/tanh (configure.ac): Likewise.
32859         * modules/y0 (configure.ac): Likewise.
32860         * modules/y1 (configure.ac): Likewise.
32861         * modules/yn (configure.ac): Likewise.
32862
32863 2010-01-24  Bruno Haible  <bruno@clisp.org>
32864
32865         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32866         * tests/test-acosl.c (x): New variable.
32867         (main): Store argument in x and fetch it from x.
32868         * tests/test-asinl.c (x): New variable.
32869         (main): Store argument in x and fetch it from x.
32870         * tests/test-atanl.c (x): New variable.
32871         (main): Store argument in x and fetch it from x.
32872         * tests/test-cosl.c (x): New variable.
32873         (main): Store argument in x and fetch it from x.
32874         * tests/test-expl.c (x): New variable.
32875         (main): Store argument in x and fetch it from x.
32876         * tests/test-logl.c (x): New variable.
32877         (main): Store argument in x and fetch it from x.
32878         * tests/test-sinl.c (x): New variable.
32879         (main): Store argument in x and fetch it from x.
32880         * tests/test-sqrtl.c (x): New variable.
32881         (main): Store argument in x and fetch it from x.
32882         * tests/test-tanl.c (x): New variable.
32883         (main): Store argument in x and fetch it from x.
32884
32885 2010-01-24  Bruno Haible  <bruno@clisp.org>
32886
32887         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32888         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32889         assignments to the initial TESTS_ENVIRONMENT.
32890         * doc/gnulib.texi (Unit test modules): Document it.
32891         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32892         TESTS_ENVIRONMENT.
32893         * modules/btowc-tests (Makefile.am): Likewise.
32894         * modules/c-stack-tests (Makefile.am): Likewise.
32895         * modules/c-strcase-tests (Makefile.am): Likewise.
32896         * modules/copy-file-tests (Makefile.am): Likewise.
32897         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32898         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32899         * modules/mbrtowc-tests (Makefile.am): Likewise.
32900         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32901         * modules/mbscasestr-tests (Makefile.am): Likewise.
32902         * modules/mbschr-tests (Makefile.am): Likewise.
32903         * modules/mbscspn-tests (Makefile.am): Likewise.
32904         * modules/mbsinit-tests (Makefile.am): Likewise.
32905         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32906         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32907         * modules/mbspbrk-tests (Makefile.am): Likewise.
32908         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32909         * modules/mbsrchr-tests (Makefile.am): Likewise.
32910         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32911         * modules/mbsspn-tests (Makefile.am): Likewise.
32912         * modules/mbsstr-tests (Makefile.am): Likewise.
32913         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32914         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32915         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32916         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32917         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32918         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32919         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32920         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32921         * modules/wcrtomb-tests (Makefile.am): Likewise.
32922         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32923         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32924         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32925         assignments from TESTS_ENVIRONMENT.
32926         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32927         augmentation.
32928         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32929         * modules/atexit-tests (Makefile.am): Likewise.
32930         * modules/binary-io-tests (Makefile.am): Likewise.
32931         * modules/closein-tests (Makefile.am): Likewise.
32932         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32933         * modules/exclude-tests (Makefile.am): Likewise.
32934         * modules/fflush-tests (Makefile.am): Likewise.
32935         * modules/fpending-tests (Makefile.am): Likewise.
32936         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32937         * modules/freadahead-tests (Makefile.am): Likewise.
32938         * modules/freadptr-tests (Makefile.am): Likewise.
32939         * modules/freadseek-tests (Makefile.am): Likewise.
32940         * modules/fseek-tests (Makefile.am): Likewise.
32941         * modules/fseeko-tests (Makefile.am): Likewise.
32942         * modules/ftell-tests (Makefile.am): Likewise.
32943         * modules/ftello-tests (Makefile.am): Likewise.
32944         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32945         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32946         * modules/lseek-tests (Makefile.am): Likewise.
32947         * modules/parse-duration-tests (Makefile.am): Likewise.
32948         * modules/perror-tests (Makefile.am): Likewise.
32949         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32950         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32951         * modules/pipe-tests (Makefile.am): Likewise.
32952         * modules/pread-tests (Makefile.am): Likewise.
32953         * modules/printf-posix-tests (Makefile.am): Likewise.
32954         * modules/select-tests (Makefile.am): Likewise.
32955         * modules/sigpipe-tests (Makefile.am): Likewise.
32956         * modules/tsearch-tests (Makefile.am): Likewise.
32957         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32958         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32959         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32960         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32961         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32962         * modules/version-etc-tests (Makefile.am): Likewise.
32963         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32964         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32965         * modules/xalloc-die-tests (Makefile.am): Likewise.
32966         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32967         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32968         * modules/xstrtol-tests (Makefile.am): Likewise.
32969         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32970         * modules/yesno-tests (Makefile.am): Likewise.
32971         Suggested by Jim Meyering.
32972
32973 2010-01-24  Bruno Haible  <bruno@clisp.org>
32974
32975         More documentation.
32976         * doc/gnulib.texi (Writing modules): New chapter.
32977         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32978         the new chapter.
32979
32980 2010-01-24  Jim Meyering  <meyering@redhat.com>
32981
32982         maint.mk: do not prepend "./" after filtering
32983         * top/maint.mk (_prepend_srcdir_prefix): New variable
32984         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32985         "./" when $(srcdir) is ".".
32986
32987         define STREQ(a,b) consistently, removing useless parentheses
32988         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32989         since the only risk is that "a" or "b" contains an unparenthesized
32990         comma, but if either did that, STREQ would have 3 or more arguments.
32991         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32992         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32993         * lib/hash-triple.c (STREQ): Likewise.
32994         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32995         * lib/getugroups.c (STREQ): Likewise.
32996
32997 2010-01-23  Jim Meyering  <meyering@redhat.com>
32998
32999         maint.mk: fix syntax-check in a non-srcdir build directory
33000         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33001         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33002
33003 2010-01-22  Jim Meyering  <meyering@redhat.com>
33004
33005         userspec: add unit tests
33006         * tests/test-userspec.c: New file.
33007         * modules/userspec-tests: Likewise.
33008
33009 2010-01-21  Jim Meyering  <meyering@redhat.com>
33010
33011         maint.mk: handle source file names containing "." robustly
33012         * top/maint.mk (_dot_escaped_srcdir): Define.
33013         (VC_LIST): Use it in LHS of sed substitution.
33014
33015 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33016
33017         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33018         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33019         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33020         from a non-srcdir build.
33021
33022 2010-01-20  Eric Blake  <ebb9@byu.net>
33023
33024         warn-on-use: use instead of link-warning
33025         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33026         * modules/unistd (Depends-on, Makefile.am): Likewise.
33027         * modules/arpa_inet (Depends-on): Replace link-warning with
33028         warn-on-use.
33029         (Makefile.am): Update rules accordingly.
33030         * modules/ctype (Depends-on, Makefile.am): Likewise.
33031         * modules/dirent (Depends-on, Makefile.am): Likewise.
33032         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33033         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33034         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33035         * modules/locale (Depends-on, Makefile.am): Likewise.
33036         * modules/math (Depends-on, Makefile.am): Likewise.
33037         * modules/search (Depends-on, Makefile.am): Likewise.
33038         * modules/signal (Depends-on, Makefile.am): Likewise.
33039         * modules/spawn (Depends-on, Makefile.am): Likewise.
33040         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33041         * modules/string (Depends-on, Makefile.am): Likewise.
33042         * modules/strings (Depends-on, Makefile.am): Likewise.
33043         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33044         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33045         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33046         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33047         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33048         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33049         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33050         * modules/wchar (Depends-on, Makefile.am): Likewise.
33051         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33052         should be poisoned.
33053         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33054         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33055         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33056         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33057         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33058         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33059         * m4/math_h.m4 (gl_MATH_H): Likewise.
33060         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33061         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33062         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33063         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33064         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33065         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33066         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33067         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33068         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33070         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33072         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33073         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33074         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33075         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33076         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33077         GL_LINK_WARNING.
33078         * lib/ctype.in.h: Likewise.
33079         * lib/dirent.in.h: Likewise.
33080         * lib/fcntl.in.h: Likewise.
33081         * lib/inttypes.in.h: Likewise.
33082         * lib/langinfo.in.h: Likewise.
33083         * lib/locale.in.h: Likewise.
33084         * lib/math.in.h: Likewise.
33085         * lib/search.in.h: Likewise.
33086         * lib/signal.in.h: Likewise.
33087         * lib/spawn.in.h: Likewise.
33088         * lib/stdio.in.h: Likewise.
33089         * lib/stdlib.in.h: Likewise.
33090         * lib/string.in.h: Likewise.
33091         * lib/strings.in.h: Likewise.
33092         * lib/sys_file.in.h: Likewise.
33093         * lib/sys_ioctl.in.h: Likewise.
33094         * lib/sys_select.in.h: Likewise.
33095         * lib/sys_socket.in.h: Likewise.
33096         * lib/sys_stat.in.h: Likewise.
33097         * lib/sys_times.in.h: Likewise.
33098         * lib/sys_utsname.in.h: Likewise.
33099         * lib/unistd.in.h: Likewise.
33100         * lib/wchar.in.h: Likewise.
33101
33102 2010-01-20  Bruno Haible  <bruno@clisp.org>
33103
33104         Avoid duplicate -lm.
33105         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33106         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33107         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33108         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33109         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33110         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33111         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33112         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33113         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33114         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33115         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33116         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33117         Reported by Paolo Bonzini.
33118
33119 2010-01-19  Bruno Haible  <bruno@clisp.org>
33120
33121         langinfo, nl_langinfo: Relicense under LGPLv2+.
33122         * modules/langinfo (License): Change to LGPLv2+.
33123         * modules/nl_langinfo (License): Likewise.
33124         Patch by David Lutterkort <lutter@redhat.com>.
33125
33126 2010-01-19  Bruno Haible  <bruno@clisp.org>
33127
33128         Avoid compilation error with cc on OSF/1 5.1.
33129         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33130         statement, not before.
33131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33132
33133 2010-01-18  Bruno Haible  <bruno@clisp.org>
33134
33135         Avoid a link error due to the __printf__ symbol.
33136         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33137         and 2.6.x.
33138         (__format__, __printf__): Remove definitions.
33139         * lib/argp-fmtstream.h: Likewise.
33140         * lib/argp.h: Likewise.
33141         * lib/error.h: Likewise.
33142         * lib/vasnprintf.h: Likewise.
33143         * lib/xprintf.h: Likewise.
33144         * lib/xvasprintf.h: Likewise.
33145         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33146
33147 2010-01-18  Bruno Haible  <bruno@clisp.org>
33148
33149         Tests for module 'tanl'.
33150         * modules/tanl-tests: New file.
33151         * tests/test-tanl.c: New file.
33152
33153         Tests for module 'sqrtl'.
33154         * modules/sqrtl-tests: New file.
33155         * tests/test-sqrtl.c: New file.
33156
33157         Tests for module 'sinl'.
33158         * modules/sinl-tests: New file.
33159         * tests/test-sinl.c: New file.
33160
33161         Tests for module 'logl'.
33162         * modules/logl-tests: New file.
33163         * tests/test-logl.c: New file.
33164
33165         Tests for module 'expl'.
33166         * modules/expl-tests: New file.
33167         * tests/test-expl.c: New file.
33168
33169         Tests for module 'cosl'.
33170         * modules/cosl-tests: New file.
33171         * tests/test-cosl.c: New file.
33172
33173         Tests for module 'atanl'.
33174         * modules/atanl-tests: New file.
33175         * tests/test-atanl.c: New file.
33176
33177         Tests for module 'asinl'.
33178         * modules/asinl-tests: New file.
33179         * tests/test-asinl.c: New file.
33180
33181         Tests for module 'acosl'.
33182         * modules/acosl-tests: New file.
33183         * tests/test-acosl.c: New file.
33184
33185         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33186         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33187         tanl): Use the standard gnulib idiom.
33188         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33189         * lib/sinl.c: Likewise.
33190         * lib/tanl.c: Don't include trigl.c.
33191         (kernel_tanl): Make static.
33192         * lib/sincosl.c: Include trigl.h first.
33193         * lib/trigl.c: Likewise.
33194         * m4/acosl.m4: New file.
33195         * m4/asinl.m4: New file.
33196         * m4/atanl.m4: New file.
33197         * m4/cosl.m4: New file.
33198         * m4/expl.m4: New file.
33199         * m4/logl.m4: New file.
33200         * m4/sinl.m4: New file.
33201         * m4/sqrtl.m4: New file.
33202         * m4/tanl.m4: New file.
33203         * m4/mathl.m4: Remove file.
33204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33205         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33206         Don't initialize GNULIB_MATHL.
33207         * modules/acosl: New file.
33208         * modules/asinl: New file.
33209         * modules/atanl: New file.
33210         * modules/cosl: New file.
33211         * modules/expl: New file.
33212         * modules/logl: New file.
33213         * modules/sinl: New file.
33214         * modules/sqrtl: New file.
33215         * modules/tanl: New file.
33216         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33217         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33218         substitute GNULIB_MATHL.
33219         * modules/mathl: Rewritten.
33220         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33221         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33222         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33223         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33224         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33225         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33226         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33227         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33228         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33229
33230 2010-01-18  Bruno Haible  <bruno@clisp.org>
33231
33232         sqrt: Make gl_FUNC_SQRT requirable.
33233         * m4/sqrt.m4: New file.
33234         * modules/sqrt (Files): Add it.
33235         (configure.ac): Invoke gl_FUNC_SQRT.
33236
33237 2010-01-18  Bruno Haible  <bruno@clisp.org>
33238
33239         New modules for common <math.h> functions.
33240         * m4/mathfunc.m4: New file.
33241         * modules/acos: New file.
33242         * modules/asin: New file.
33243         * modules/atan: New file.
33244         * modules/atan2: New file.
33245         * modules/cbrt: New file.
33246         * modules/copysign: New file.
33247         * modules/cos: New file.
33248         * modules/cosh: New file.
33249         * modules/erf: New file.
33250         * modules/erfc: New file.
33251         * modules/exp: New file.
33252         * modules/fabs: New file.
33253         * modules/fmod: New file.
33254         * modules/hypot: New file.
33255         * modules/j0: New file.
33256         * modules/j1: New file.
33257         * modules/jn: New file.
33258         * modules/ldexp: New file.
33259         * modules/lgamma: New file.
33260         * modules/log: New file.
33261         * modules/log10: New file.
33262         * modules/log1p: New file.
33263         * modules/logb: New file.
33264         * modules/modf: New file.
33265         * modules/nextafter: New file.
33266         * modules/pow: New file.
33267         * modules/remainder: New file.
33268         * modules/rint: New file.
33269         * modules/sin: New file.
33270         * modules/sinh: New file.
33271         * modules/sqrt: New file.
33272         * modules/tan: New file.
33273         * modules/tanh: New file.
33274         * modules/y0: New file.
33275         * modules/y1: New file.
33276         * modules/yn: New file.
33277         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33278         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33279         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33280         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33281         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33282         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33283         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33284         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33285         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33286         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33287         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33288         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33289         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33290         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33291         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33292         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33293         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33294         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33295         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33296         * doc/posix-functions/log.texi: Mention the 'log' module.
33297         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33298         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33299         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33300         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33301         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33302         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33303         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33304         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33305         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33306         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33307         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33308         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33309         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33310         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33311         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33312         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33313
33314 2010-01-18  Jim Meyering  <meyering@redhat.com>
33315
33316         ignore-value: relax license to LGPLv2+
33317         * modules/ignore-value (License): Relax to LGPLv2+.
33318
33319         getdate: don't leak when TZ contains two or more '"'s
33320         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33321         double quote in TZ after the first one.
33322
33323         readtokens: do not leak internal token_lengths buffer
33324         * lib/readtokens.c (readtokens): Free the local, lengths,
33325         when the supplied "token_lengths" parameter is NULL.
33326
33327 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33328
33329         Fix a couple of missing LIBTHREAD link failures on AIX.
33330         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33331         $(LIBTHREAD).
33332         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33333
33334         Link test-poll against INET_PTON_LIB.
33335         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33336         for inet_pton on Solaris 10.
33337
33338 2010-01-17  Bruno Haible  <bruno@clisp.org>
33339
33340         unistdio/*-sprintf: Fix typo in module description.
33341         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33342         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33343         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33344         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33345         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33346         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33347         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33348         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33349
33350 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33351
33352         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33353         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33354         variables in shell case patterns, for AIX and HP-UX ksh.
33355
33356         Split large sed scripts, for HP-UX sed.
33357         * modules/stdio: Split sed scripts around 50 sed commands,
33358         to avoid HP-UX limit of 99 commands, in the near future.
33359         * modules/string: Likewise.
33360         * modules/unistd: Likewise.
33361
33362         gnulib-tool: avoid writing in the current directory.
33363         * gnulib-tool (func_emit_lib_Makefile_am)
33364         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33365         not in the current directory, so concurrent gnulib-tool
33366         instances do not interfere.
33367
33368 2010-01-16  Jim Meyering  <meyering@redhat.com>
33369
33370         doc: update users.txt
33371         * users.txt: Add grep.
33372         (diffutils, gzip): Update URLs.
33373
33374 2010-01-12  Bruno Haible  <bruno@clisp.org>
33375
33376         posix_spawn: Avoid test failure on Cygwin.
33377         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33378         characters.
33379         Reported by Simon Josefsson.
33380
33381 2010-01-12  Bruno Haible  <bruno@clisp.org>
33382
33383         * tests/test-cond.c (main): When skipping the test, show the reason.
33384
33385 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33386
33387         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33388
33389 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33390
33391         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33392         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33393
33394 2010-01-12  Eric Blake  <ebb9@byu.net>
33395
33396         build: guarantee AS_VAR_IF
33397         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33398         (gl_AS_VAR_IF): Move...
33399         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33400         Reported by Simon Josefsson.
33401
33402 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33403
33404         * lib/stdio.in.h: Fix typo.
33405
33406 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33407
33408         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33409         libgpg-error.
33410
33411 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33412
33413         * tests/test-xalloc-die.sh: Use $EXEEXT.
33414
33415 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33416             Bruno Haible  <bruno@clisp.org>
33417
33418         getlogin, getlogin_r: Avoid test failure.
33419         * tests/test-getlogin.c: Include <stdio.h>.
33420         (main): Skip the test when the function fails because stdin is not a
33421         tty.
33422         * tests/test-getlogin_r.c: Include <stdio.h>.
33423         (main): Skip the test when the function fails because stdin is not a
33424         tty.
33425
33426 2010-01-11  Eric Blake  <ebb9@byu.net>
33427
33428         tests: avoid more large file warnings
33429         * tests/test-fflush.c: Avoid warning about ftell use.
33430         * tests/test-fseek.c: Avoid warning about fseek use.
33431
33432 2010-01-10  Bruno Haible  <bruno@clisp.org>
33433
33434         nproc: Work better on Linux when /proc and /sys are not mounted.
33435         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33436         as lower bound when, on glibc/Linux systems,
33437         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33438         Suggested by Pádraig Brady <P@draigbrady.com>.
33439         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33440
33441         nproc: Refactor.
33442         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33443         extracted from num_processors.
33444         (num_processors): Call it.
33445
33446 2010-01-11  Jim Meyering  <meyering@redhat.com>
33447
33448         utimecmp: avoid new warning from upcoming gcc-4.5.0
33449         * lib/utimecmp.c (BILLION): Define using #define rather than an
33450         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33451
33452 2010-01-11  Eric Blake  <ebb9@byu.net>
33453
33454         math: add portability warnings for classification macros
33455         * modules/math (Depends-on): Add warn-on-use.
33456         (Makefile.am): Provide new substitutions.
33457         * m4/math_h.m4 (gl_MATH_H): Require inline.
33458         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33459         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33460         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33461         implement warnings.
33462
33463         unistd: warn on use of environ without module
33464         * modules/unistd (Depends-on): Add warn-on-use.
33465         (Makefile.am): Provide new substitutions.
33466         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33467         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33468
33469         stdio: warn on suspicious uses
33470         * modules/stdio (Depends-on): Add warn-on-use.
33471         (Makefile.am): Provide new substitutions.
33472         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33473         fseeko.
33474         * lib/stdio.in.h (gets): Always warn on use.
33475         (fseek, ftell): Adjust when warnings are issued, and honor
33476         _GL_NO_LARGE_FILES as a way to silence the warning.
33477         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33478         any warning about large file offsets.
33479         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33480         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33481         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33482         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33483         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33484         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33485         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33486         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33487
33488         warn-on-use: new module
33489         * modules/warn-on-use: New file.
33490         * build-aux/warn-on-use.h: Likewise.
33491         * m4/warn-on-use.m4: Likewise.
33492         * MODULES.html.sh (Support for building): Mention it.
33493
33494 2010-01-10  Bruno Haible  <bruno@clisp.org>
33495
33496         Tests for module 'unistr/u32-strdup'.
33497         * modules/unistr/u32-strdup-tests: New file.
33498         * tests/unistr/test-u32-strdup.c: New file.
33499
33500         Tests for module 'unistr/u16-strdup'.
33501         * modules/unistr/u16-strdup-tests: New file.
33502         * tests/unistr/test-u16-strdup.c: New file.
33503
33504         Tests for module 'unistr/u8-strdup'.
33505         * modules/unistr/u8-strdup-tests: New file.
33506         * tests/unistr/test-u8-strdup.c: New file.
33507         * tests/unistr/test-strdup.h: New file.
33508
33509         Tests for module 'unistr/u32-strncmp'.
33510         * modules/unistr/u32-strncmp-tests: New file.
33511         * tests/unistr/test-u32-strncmp.c: New file.
33512
33513         Tests for module 'unistr/u16-strncmp'.
33514         * modules/unistr/u16-strncmp-tests: New file.
33515         * tests/unistr/test-u16-strncmp.c: New file.
33516
33517         Tests for module 'unistr/u8-strncmp'.
33518         * modules/unistr/u8-strncmp-tests: New file.
33519         * tests/unistr/test-u8-strncmp.c: New file.
33520         * tests/unistr/test-strncmp.h: New file.
33521
33522         Tests for module 'unistr/u32-strcoll'.
33523         * modules/unistr/u32-strcoll-tests: New file.
33524         * tests/unistr/test-u32-strcoll.c: New file.
33525
33526         Tests for module 'unistr/u16-strcoll'.
33527         * modules/unistr/u16-strcoll-tests: New file.
33528         * tests/unistr/test-u16-strcoll.c: New file.
33529
33530         Tests for module 'unistr/u8-strcoll'.
33531         * modules/unistr/u8-strcoll-tests: New file.
33532         * tests/unistr/test-u8-strcoll.c: New file.
33533
33534         Tests for module 'unistr/u32-strcmp'.
33535         * modules/unistr/u32-strcmp-tests: New file.
33536         * tests/unistr/test-u32-strcmp.c: New file.
33537         * tests/unistr/test-u32-strcmp.h: New file.
33538
33539         Tests for module 'unistr/u16-strcmp'.
33540         * modules/unistr/u16-strcmp-tests: New file.
33541         * tests/unistr/test-u16-strcmp.c: New file.
33542         * tests/unistr/test-u16-strcmp.h: New file.
33543
33544         Tests for module 'unistr/u8-strcmp'.
33545         * modules/unistr/u8-strcmp-tests: New file.
33546         * tests/unistr/test-u8-strcmp.c: New file.
33547         * tests/unistr/test-u8-strcmp.h: New file.
33548         * tests/unistr/test-strcmp.h: New file.
33549
33550         Tests for module 'unistr/u32-strncat'.
33551         * modules/unistr/u32-strncat-tests: New file.
33552         * tests/unistr/test-u32-strncat.c: New file.
33553
33554         Tests for module 'unistr/u16-strncat'.
33555         * modules/unistr/u16-strncat-tests: New file.
33556         * tests/unistr/test-u16-strncat.c: New file.
33557
33558         Tests for module 'unistr/u8-strncat'.
33559         * modules/unistr/u8-strncat-tests: New file.
33560         * tests/unistr/test-u8-strncat.c: New file.
33561         * tests/unistr/test-strncat.h: New file.
33562
33563         Tests for module 'unistr/u32-strcat'.
33564         * modules/unistr/u32-strcat-tests: New file.
33565         * tests/unistr/test-u32-strcat.c: New file.
33566
33567         Tests for module 'unistr/u16-strcat'.
33568         * modules/unistr/u16-strcat-tests: New file.
33569         * tests/unistr/test-u16-strcat.c: New file.
33570
33571         Tests for module 'unistr/u8-strcat'.
33572         * modules/unistr/u8-strcat-tests: New file.
33573         * tests/unistr/test-u8-strcat.c: New file.
33574         * tests/unistr/test-strcat.h: New file.
33575
33576         Tests for module 'unistr/u32-stpncpy'.
33577         * modules/unistr/u32-stpncpy-tests: New file.
33578         * tests/unistr/test-u32-stpncpy.c: New file.
33579
33580         Tests for module 'unistr/u16-stpncpy'.
33581         * modules/unistr/u16-stpncpy-tests: New file.
33582         * tests/unistr/test-u16-stpncpy.c: New file.
33583
33584         Tests for module 'unistr/u8-stpncpy'.
33585         * modules/unistr/u8-stpncpy-tests: New file.
33586         * tests/unistr/test-u8-stpncpy.c: New file.
33587         * tests/unistr/test-stpncpy.h: New file.
33588
33589         Tests for module 'unistr/u32-strncpy'.
33590         * modules/unistr/u32-strncpy-tests: New file.
33591         * tests/unistr/test-u32-strncpy.c: New file.
33592
33593         Tests for module 'unistr/u16-strncpy'.
33594         * modules/unistr/u16-strncpy-tests: New file.
33595         * tests/unistr/test-u16-strncpy.c: New file.
33596
33597         Tests for module 'unistr/u8-strncpy'.
33598         * modules/unistr/u8-strncpy-tests: New file.
33599         * tests/unistr/test-u8-strncpy.c: New file.
33600         * tests/unistr/test-strncpy.h: New file.
33601
33602         Tests for module 'unistr/u32-stpcpy'.
33603         * modules/unistr/u32-stpcpy-tests: New file.
33604         * tests/unistr/test-u32-stpcpy.c: New file.
33605
33606         Tests for module 'unistr/u16-stpcpy'.
33607         * modules/unistr/u16-stpcpy-tests: New file.
33608         * tests/unistr/test-u16-stpcpy.c: New file.
33609
33610         Tests for module 'unistr/u8-stpcpy'.
33611         * modules/unistr/u8-stpcpy-tests: New file.
33612         * tests/unistr/test-u8-stpcpy.c: New file.
33613         * tests/unistr/test-stpcpy.h: New file.
33614
33615         Tests for module 'unistr/u32-strcpy'.
33616         * modules/unistr/u32-strcpy-tests: New file.
33617         * tests/unistr/test-u32-strcpy.c: New file.
33618
33619         Tests for module 'unistr/u16-strcpy'.
33620         * modules/unistr/u16-strcpy-tests: New file.
33621         * tests/unistr/test-u16-strcpy.c: New file.
33622
33623         Tests for module 'unistr/u8-strcpy'.
33624         * modules/unistr/u8-strcpy-tests: New file.
33625         * tests/unistr/test-u8-strcpy.c: New file.
33626         * tests/unistr/test-strcpy.h: New file.
33627
33628         Tests for module 'unistr/u32-strnlen'.
33629         * modules/unistr/u32-strnlen-tests: New file.
33630         * tests/unistr/test-u32-strnlen.c: New file.
33631
33632         Tests for module 'unistr/u16-strnlen'.
33633         * modules/unistr/u16-strnlen-tests: New file.
33634         * tests/unistr/test-u16-strnlen.c: New file.
33635
33636         Tests for module 'unistr/u8-strnlen'.
33637         * modules/unistr/u8-strnlen-tests: New file.
33638         * tests/unistr/test-u8-strnlen.c: New file.
33639         * tests/unistr/test-strnlen.h: New file.
33640
33641         Tests for module 'unistr/u32-strlen'.
33642         * modules/unistr/u32-strlen-tests: New file.
33643         * tests/unistr/test-u32-strlen.c: New file.
33644
33645         Tests for module 'unistr/u16-strlen'.
33646         * modules/unistr/u16-strlen-tests: New file.
33647         * tests/unistr/test-u16-strlen.c: New file.
33648
33649         Tests for module 'unistr/u8-strlen'.
33650         * modules/unistr/u8-strlen-tests: New file.
33651         * tests/unistr/test-u8-strlen.c: New file.
33652
33653         Tests for module 'unistr/u32-prev'.
33654         * modules/unistr/u32-prev-tests: New file.
33655         * tests/unistr/test-u32-prev.c: New file.
33656
33657         Tests for module 'unistr/u16-prev'.
33658         * modules/unistr/u16-prev-tests: New file.
33659         * tests/unistr/test-u16-prev.c: New file.
33660
33661         Tests for module 'unistr/u8-prev'.
33662         * modules/unistr/u8-prev-tests: New file.
33663         * tests/unistr/test-u8-prev.c: New file.
33664
33665         Tests for module 'unistr/u32-next'.
33666         * modules/unistr/u32-next-tests: New file.
33667         * tests/unistr/test-u32-next.c: New file.
33668
33669         Tests for module 'unistr/u16-next'.
33670         * modules/unistr/u16-next-tests: New file.
33671         * tests/unistr/test-u16-next.c: New file.
33672
33673         Tests for module 'unistr/u8-next'.
33674         * modules/unistr/u8-next-tests: New file.
33675         * tests/unistr/test-u8-next.c: New file.
33676
33677         Tests for module 'unistr/u32-strmbtouc'.
33678         * modules/unistr/u32-strmbtouc-tests: New file.
33679         * tests/unistr/test-u32-strmbtouc.c: New file.
33680
33681         Tests for module 'unistr/u16-strmbtouc'.
33682         * modules/unistr/u16-strmbtouc-tests: New file.
33683         * tests/unistr/test-u16-strmbtouc.c: New file.
33684
33685         Tests for module 'unistr/u8-strmbtouc'.
33686         * modules/unistr/u8-strmbtouc-tests: New file.
33687         * tests/unistr/test-u8-strmbtouc.c: New file.
33688
33689         Tests for module 'unistr/u32-strmblen'.
33690         * modules/unistr/u32-strmblen-tests: New file.
33691         * tests/unistr/test-u32-strmblen.c: New file.
33692
33693         Tests for module 'unistr/u16-strmblen'.
33694         * modules/unistr/u16-strmblen-tests: New file.
33695         * tests/unistr/test-u16-strmblen.c: New file.
33696
33697         Tests for module 'unistr/u8-strmblen'.
33698         * modules/unistr/u8-strmblen-tests: New file.
33699         * tests/unistr/test-u8-strmblen.c: New file.
33700
33701         Tests for module 'unistr/u32-cpy-alloc'.
33702         * modules/unistr/u32-cpy-alloc-tests: New file.
33703         * tests/unistr/test-u32-cpy-alloc.c: New file.
33704
33705         Tests for module 'unistr/u16-cpy-alloc'.
33706         * modules/unistr/u16-cpy-alloc-tests: New file.
33707         * tests/unistr/test-u16-cpy-alloc.c: New file.
33708
33709         Tests for module 'unistr/u8-cpy-alloc'.
33710         * modules/unistr/u8-cpy-alloc-tests: New file.
33711         * tests/unistr/test-u8-cpy-alloc.c: New file.
33712         * tests/unistr/test-cpy-alloc.h: New file.
33713
33714         Tests for module 'unistr/u32-mbsnlen'.
33715         * modules/unistr/u32-mbsnlen-tests: New file.
33716         * tests/unistr/test-u32-mbsnlen.c: New file.
33717
33718         Tests for module 'unistr/u16-mbsnlen'.
33719         * modules/unistr/u16-mbsnlen-tests: New file.
33720         * tests/unistr/test-u16-mbsnlen.c: New file.
33721
33722         Tests for module 'unistr/u8-mbsnlen'.
33723         * modules/unistr/u8-mbsnlen-tests: New file.
33724         * tests/unistr/test-u8-mbsnlen.c: New file.
33725
33726         Tests for module 'unistr/u32-chr'.
33727         * modules/unistr/u32-chr-tests: New file.
33728         * tests/unistr/test-u32-chr.c: New file.
33729
33730         Tests for module 'unistr/u16-chr'.
33731         * modules/unistr/u16-chr-tests: New file.
33732         * tests/unistr/test-u16-chr.c: New file.
33733
33734         Tests for module 'unistr/u8-chr'.
33735         * modules/unistr/u8-chr-tests: New file.
33736         * tests/unistr/test-u8-chr.c: New file.
33737         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33738
33739         Tests for module 'unistr/u32-cmp2'.
33740         * modules/unistr/u32-cmp2-tests: New file.
33741         * tests/unistr/test-u32-cmp2.c: New file.
33742
33743         Tests for module 'unistr/u16-cmp2'.
33744         * modules/unistr/u16-cmp2-tests: New file.
33745         * tests/unistr/test-u16-cmp2.c: New file.
33746
33747         Tests for module 'unistr/u8-cmp2'.
33748         * modules/unistr/u8-cmp2-tests: New file.
33749         * tests/unistr/test-u8-cmp2.c: New file.
33750         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33751
33752         Tests for module 'unistr/u32-cmp'.
33753         * modules/unistr/u32-cmp-tests: New file.
33754         * tests/unistr/test-u32-cmp.c: New file.
33755
33756         Tests for module 'unistr/u16-cmp'.
33757         * modules/unistr/u16-cmp-tests: New file.
33758         * tests/unistr/test-u16-cmp.c: New file.
33759
33760         Tests for module 'unistr/u8-cmp'.
33761         * modules/unistr/u8-cmp-tests: New file.
33762         * tests/unistr/test-u8-cmp.c: New file.
33763         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33764
33765         Tests for module 'unistr/u32-set'.
33766         * modules/unistr/u32-set-tests: New file.
33767         * tests/unistr/test-u32-set.c: New file.
33768
33769         Tests for module 'unistr/u16-set'.
33770         * modules/unistr/u16-set-tests: New file.
33771         * tests/unistr/test-u16-set.c: New file.
33772
33773         Tests for module 'unistr/u8-set'.
33774         * modules/unistr/u8-set-tests: New file.
33775         * tests/unistr/test-u8-set.c: New file.
33776         * tests/unistr/test-set.h: New file.
33777
33778         Tests for module 'unistr/u32-move'.
33779         * modules/unistr/u32-move-tests: New file.
33780         * tests/unistr/test-u32-move.c: New file.
33781
33782         Tests for module 'unistr/u16-move'.
33783         * modules/unistr/u16-move-tests: New file.
33784         * tests/unistr/test-u16-move.c: New file.
33785
33786         Tests for module 'unistr/u8-move'.
33787         * modules/unistr/u8-move-tests: New file.
33788         * tests/unistr/test-u8-move.c: New file.
33789         * tests/unistr/test-move.h: New file.
33790
33791         Tests for module 'unistr/u32-cpy'.
33792         * modules/unistr/u32-cpy-tests: New file.
33793         * tests/unistr/test-u32-cpy.c: New file.
33794
33795         Tests for module 'unistr/u16-cpy'.
33796         * modules/unistr/u16-cpy-tests: New file.
33797         * tests/unistr/test-u16-cpy.c: New file.
33798
33799         Tests for module 'unistr/u8-cpy'.
33800         * modules/unistr/u8-cpy-tests: New file.
33801         * tests/unistr/test-u8-cpy.c: New file.
33802         * tests/unistr/test-cpy.h: New file.
33803
33804 2010-01-09  Bruno Haible  <bruno@clisp.org>
33805
33806         Tests for module 'unistr/u32-uctomb'.
33807         * modules/unistr/u32-uctomb-tests: New file.
33808         * tests/unistr/test-u32-uctomb.c: New file.
33809
33810         Tests for module 'unistr/u16-uctomb'.
33811         * modules/unistr/u16-uctomb-tests: New file.
33812         * tests/unistr/test-u16-uctomb.c: New file.
33813
33814         Tests for module 'unistr/u8-uctomb'.
33815         * modules/unistr/u8-uctomb-tests: New file.
33816         * tests/unistr/test-u8-uctomb.c: New file.
33817
33818         Tests for module 'unistr/u32-mbtoucr'.
33819         * modules/unistr/u32-mbtoucr-tests: New file.
33820         * tests/unistr/test-u32-mbtoucr.c: New file.
33821
33822         Tests for module 'unistr/u16-mbtoucr'.
33823         * modules/unistr/u16-mbtoucr-tests: New file.
33824         * tests/unistr/test-u16-mbtoucr.c: New file.
33825
33826         Tests for module 'unistr/u8-mbtoucr'.
33827         * modules/unistr/u8-mbtoucr-tests: New file.
33828         * tests/unistr/test-u8-mbtoucr.c: New file.
33829
33830         Tests for module 'unistr/u32-mbtouc'.
33831         * modules/unistr/u32-mbtouc-tests: New file.
33832         * tests/unistr/test-u32-mbtouc.c: New file.
33833
33834         Tests for module 'unistr/u16-mbtouc'.
33835         * modules/unistr/u16-mbtouc-tests: New file.
33836         * tests/unistr/test-u16-mbtouc.c: New file.
33837
33838         Tests for module 'unistr/u8-mbtouc'.
33839         * modules/unistr/u8-mbtouc-tests: New file.
33840         * tests/unistr/test-u8-mbtouc.c: New file.
33841
33842         Tests for module 'unistr/u32-mbtouc-unsafe'.
33843         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33844         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33845         * tests/unistr/test-u32-mbtouc.h: New file.
33846
33847         Tests for module 'unistr/u16-mbtouc-unsafe'.
33848         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33849         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33850         * tests/unistr/test-u16-mbtouc.h: New file.
33851
33852         Tests for module 'unistr/u8-mbtouc-unsafe'.
33853         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33854         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33855         * tests/unistr/test-u8-mbtouc.h: New file.
33856
33857         Tests for module 'unistr/u32-mblen'.
33858         * modules/unistr/u32-mblen-tests: New file.
33859         * tests/unistr/test-u32-mblen.c: New file.
33860
33861         Tests for module 'unistr/u16-mblen'.
33862         * modules/unistr/u16-mblen-tests: New file.
33863         * tests/unistr/test-u16-mblen.c: New file.
33864
33865         Tests for module 'unistr/u8-mblen'.
33866         * modules/unistr/u8-mblen-tests: New file.
33867         * tests/unistr/test-u8-mblen.c: New file.
33868
33869         Tests for module 'unistr/u32-to-u16'.
33870         * modules/unistr/u32-to-u16-tests: New file.
33871         * tests/unistr/test-u32-to-u16.c: New file.
33872
33873         Tests for module 'unistr/u32-to-u8'.
33874         * modules/unistr/u32-to-u8-tests: New file.
33875         * tests/unistr/test-u32-to-u8.c: New file.
33876
33877         Tests for module 'unistr/u16-to-u32'.
33878         * modules/unistr/u16-to-u32-tests: New file.
33879         * tests/unistr/test-u16-to-u32.c: New file.
33880
33881         Tests for module 'unistr/u16-to-u8'.
33882         * modules/unistr/u16-to-u8-tests: New file.
33883         * tests/unistr/test-u16-to-u8.c: New file.
33884
33885         Tests for module 'unistr/u8-to-u32'.
33886         * modules/unistr/u8-to-u32-tests: New file.
33887         * tests/unistr/test-u8-to-u32.c: New file.
33888
33889         Tests for module 'unistr/u8-to-u16'.
33890         * modules/unistr/u8-to-u16-tests: New file.
33891         * tests/unistr/test-u8-to-u16.c: New file.
33892
33893         Tests for module 'unistr/u32-check'.
33894         * modules/unistr/u32-check-tests: New file.
33895         * tests/unistr/test-u32-check.c: New file.
33896
33897         Tests for module 'unistr/u16-check'.
33898         * modules/unistr/u16-check-tests: New file.
33899         * tests/unistr/test-u16-check.c: New file.
33900
33901         Tests for module 'unistr/u8-check'.
33902         * modules/unistr/u8-check-tests: New file.
33903         * tests/unistr/test-u8-check.c: New file.
33904
33905         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33906         (category_equals): New function.
33907         (main): Add more tests.
33908         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33909
33910         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33911
33912 2010-01-10  Bruno Haible  <bruno@clisp.org>
33913
33914         unistr/u*-strcoll: Try harder to distinguish different strings.
33915         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33916         compare s1 and s2 to see if they are different.
33917
33918 2010-01-10  Bruno Haible  <bruno@clisp.org>
33919
33920         unistr/u*-stpncpy: Fix the return value.
33921         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33922         description of the return value consistent with stpncpy in glibc.
33923         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33924         written non-NUL unit.
33925
33926 2010-01-10  Bruno Haible  <bruno@clisp.org>
33927
33928         unistr/u*-next: Add missing dependencies.
33929         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33930         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33931         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33932
33933 2010-01-10  Bruno Haible  <bruno@clisp.org>
33934
33935         unistr/u8-mbsnlen: Fix return value for incomplete character.
33936         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33937         u8_mblen.
33938         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33939         Remove unistr/u8-mblen.
33940         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33941         u16_mblen.
33942         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33943         Remove unistr/u16-mblen.
33944
33945 2010-01-10  Bruno Haible  <bruno@clisp.org>
33946
33947         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33948         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33949         Reported by Brian Gough <bjg@gnu.org> and
33950         Chris Clayton <chris2553@googlemail.com> via
33951         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33952
33953 2010-01-09  Bruno Haible  <bruno@clisp.org>
33954
33955         unistr/u16-to-u32: Reject invalid input.
33956         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33957         u16_mbtouc.
33958         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33959         Remove unistr/u16-mbtouc.
33960
33961         unistr/u16-to-u8: Reject invalid input.
33962         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33963         u16_mbtouc.
33964         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33965         Remove unistr/u16-mbtouc.
33966
33967         unistr/u8-to-u32: Reject invalid input.
33968         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33969         u8_mbtouc.
33970         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33971         Remove unistr/u8-mbtouc.
33972
33973         unistr/u8-to-u16: Reject invalid input.
33974         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33975         u8_mbtouc.
33976         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33977         Remove unistr/u8-mbtouc.
33978
33979 2010-01-09  Bruno Haible  <bruno@clisp.org>
33980
33981         Tests for module 'getlogin'.
33982         * modules/getlogin-tests: New file.
33983         * tests/test-getlogin.c: New file.
33984
33985         New module 'getlogin'.
33986         * lib/unistd.in.h (getlogin): New declaration.
33987         * lib/getlogin.c: New file.
33988         * m4/getlogin.m4: New file.
33989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33990         HAVE_GETLOGIN.
33991         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33992         HAVE_GETLOGIN.
33993         * modules/getlogin: New file.
33994         * doc/posix-functions/getlogin.texi: Mention the new module.
33995         Reported by John W. Eaton <jwe@gnu.org>.
33996
33997 2010-01-09  Bruno Haible  <bruno@clisp.org>
33998
33999         getlogin_r: Support for native Windows.
34000         * lib/getlogin_r.c: Include <windows.h>
34001         (getlogin_r): Implement for native Windows.
34002         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34003         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34004         via John W. Eaton <jwe@gnu.org>.
34005
34006 2010-01-09  Bruno Haible  <bruno@clisp.org>
34007
34008         getlogin_r: Small fixes.
34009         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34010         succeeds.
34011         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34012         before testing whether getlogin_r is declared. No need to set
34013         HAVE_DECL_GETLOGIN_R to 1.
34014         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34015
34016 2010-01-09  Bruno Haible  <bruno@clisp.org>
34017
34018         * lib/unistd.in.h (getlogin_r): Add comment.
34019
34020 2010-01-09  Bruno Haible  <bruno@clisp.org>
34021
34022         Tests for module 'getlogin_r'.
34023         * modules/getlogin_r-tests: New file.
34024         * tests/test-getlogin_r.c: New file.
34025
34026 2010-01-09  Jim Meyering  <meyering@redhat.com>
34027
34028         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34029         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34030         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34031
34032 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34033
34034         * lib/dup2.c (rpl_dup2): Improve comment.
34035
34036 2010-01-08  Eric Blake  <ebb9@byu.net>
34037
34038         maint.mk: allow packages to add makefile @@ exceptions
34039         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34040         (sc_makefile_check): Rename...
34041         (sc_makefile_at_at_check): ...to this, and use hook.
34042
34043         dup2: work around mingw bug
34044         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34045         Reported by Simon Josefsson.
34046
34047 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34048
34049         glob: Fix C++ compilation.
34050         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34051         C++.
34052
34053 2010-01-07  Bruno Haible  <bruno@clisp.org>
34054
34055         Fix indentation of wctype.in.h, broken since 2007-01-06.
34056         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34057
34058 2010-01-07  Bruno Haible  <bruno@clisp.org>
34059
34060         mbslen: Avoid collision with system function.
34061         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34062         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34063         * m4/mbslen.m4: New file.
34064         * modules/mbslen (Files): Add it.
34065         (configure.ac): Invoke gl_MBSLEN.
34066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34067         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34068         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34069         via Ian Beckwith <ianb@erislabs.net>.
34070
34071 2010-01-07  Bruno Haible  <bruno@clisp.org>
34072
34073         dirent: Document the last fix.
34074         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34075
34076 2010-01-07  Bruno Haible  <bruno@clisp.org>
34077
34078         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34079         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34080         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34081         va_list are defined.
34082         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34083         Reported by Eric Blake.
34084
34085 2010-01-07  Bruno Haible  <bruno@clisp.org>
34086
34087         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34088         * modules/xlist (Depends-on): Add 'list',
34089         * modules/xoset (Depends-on): Add 'oset'.
34090         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34091
34092 2010-01-07  Bruno Haible  <bruno@clisp.org>
34093
34094         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34095         * doc/posix-functions/strncasecmp.texi: Likewise.
34096
34097 2010-01-07  Bruno Haible  <bruno@clisp.org>
34098
34099         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34100
34101 2010-01-07  John W. Eaton  <jwe@octave.org>
34102
34103         wctype: allow C++ use
34104         * lib/wctype.in.h: Add extern "C" block for C++.
34105
34106 2010-01-06  Eric Blake  <ebb9@byu.net>
34107
34108         maint.mk: detect incorrect GFDL usage
34109         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34110
34111 2010-01-06  Jim Meyering  <meyering@redhat.com>
34112         and Eric Blake  <ebb9@byu.net>
34113
34114         maint.mk: ignore multi-line copyright in NEWS
34115         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34116
34117 2010-01-06  Eric Blake  <ebb9@byu.net>
34118
34119         select: add missing dependency
34120         * modules/select-tests (Depends-on): Move sockets dependency...
34121         * modules/select (Depends-on): ...here.
34122         Reported by Ian Beckwith.
34123
34124         doc: regenerate INSTALL
34125         * doc/INSTALL: Reflect recent autoconf update.
34126         * doc/INSTALL.ISO: Likewise.
34127         * doc/INSTALL.UTF-8: Likewise.
34128
34129         pread: fix compilation on glibc
34130         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34131         Reported by Ralf Wildenhues.
34132
34133         dirent: fix test failure
34134         * lib/dirent.in.h (includes): Guarantee ino_t.
34135         Reported by Ralf Wildenhues.
34136
34137 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34138
34139         linkat, renameat: avoid bad free
34140         * lib/at-func2.c (at_func2): Fix typo.
34141         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34142
34143 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34144
34145         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34146         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34147         to avoid failure of symlink test later.
34148
34149 2010-01-06  Eric Blake  <ebb9@byu.net>
34150
34151         stdio, unistd: guarantee ssize_t
34152         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34153         2008 are exposed when needed.
34154         * lib/stdio.in.h (includes): Likewise.
34155         Reported by Ralf Wildenhues.
34156
34157 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34158
34159         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34160         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34161         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34162
34163 2010-01-06  Jim Meyering  <meyering@redhat.com>
34164
34165         readtokens: this module *does* require xalloc.h
34166         It uses only functions that were omitted by the old syntax-check rule.
34167         * lib/readtokens.c: Include "xalloc.h" once again.
34168         * modules/readtokens (Depends-on): Add xalloc.
34169         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34170
34171 2010-01-05  Eric Blake  <ebb9@byu.net>
34172
34173         maint: support 'make announcement' from a VPATH build
34174         * top/maint.mk (announcement): Look for correct NEWS file.
34175
34176 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34177
34178         utimens (fdutimens): ignore a negative FD, per contract
34179         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34180         when we have a valid file descriptor.  Otherwise, using a brand
34181         new glibc (with just-patched futimens that now fails with EBADF)
34182         would cause this function to fail with ENOSYS.
34183         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34184         See also http://bugzilla.redhat.com/552320.
34185
34186 2010-01-05  Eric Blake  <ebb9@byu.net>
34187
34188         strcase: document what it provides
34189         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34190         gnulib module.
34191         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34192         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34193
34194 2010-01-05  Jim Meyering  <meyering@redhat.com>
34195
34196         maint: remove useless inclusions of "xalloc.h"
34197         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34198         * lib/readtokens.c: Likewise.
34199         * lib/same.c: Likewise.
34200         * modules/getloadavg (Depends-on): Remove xalloc.
34201         * modules/readtokens: Likewise.
34202         * modules/same: Likewise.
34203
34204         maint.mk: include 4 more function names in alloca.h-checking regexp
34205         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34206         regexp.  Before, we would give a false-positive (saying alloca.h
34207         is included unnecessarily) when the only uses involved omitted symbols.
34208
34209         xalloc.h: use consistent formatting
34210         * lib/xalloc.h: Move declarations to start in the first column.
34211
34212 2010-01-05  Eric Blake  <ebb9@byu.net>
34213
34214         mkdir: avoid xalloc
34215         * lib/mkdir.c (includes): Drop unused header.
34216         Reported by John W. Eaton.
34217
34218 2010-01-04  Jim Meyering  <meyering@redhat.com>
34219
34220         nl_langinfo: avoid configure-time syntax error
34221         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34222         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34223         the empty string.  Don't let that provoke a shell syntax error.
34224
34225         regcomp, regexec, fnmatch: avoid array bounds read error
34226         * lib/regcomp.c (build_equiv_class): From glibc:
34227         Use only the low 24 bits of a findidx return value as an index
34228         into the weights array.  Patch by Ulrich Drepper:
34229         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34230         * lib/regexec.c (check_node_accept_bytes): Likewise.
34231         * lib/fnmatch_loop.c (FCT): Likewise.
34232
34233         regcomp: skip collseq lookup when there are no rules
34234         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34235         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34236
34237         regcomp: recognize ill-formed { } expressions
34238         * lib/regcomp.c (parse_dup_op): From glibc:
34239         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34240
34241         regcomp: fix typo in comment
34242         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34243         s/satisfy/satisfies/.
34244
34245         regcomp: sync from glibc: remove dead store
34246         * lib/regcomp.c (duplicate_node_closure): Remove useless
34247         search_duplicated_node call and dead store.
34248
34249         regcomp: sync from glibc; always use nl_langinfo
34250         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34251         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34252         * modules/regex (Depends-on): Add nl_langinfo.
34253
34254 2010-01-04  Eric Blake  <ebb9@byu.net>
34255
34256         fdopendir: fix configure test
34257         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34258
34259 2010-01-01  Bruno Haible  <bruno@clisp.org>
34260
34261         wchar: Remove unused configure check.
34262         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34263
34264 2010-01-01  Eric Blake  <ebb9@byu.net>
34265
34266         headers: make check of system header explicit
34267         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34268         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34269         ourselves.
34270         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34272         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34273         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34274         internals.
34275         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34276         missing.
34277         Suggested by Bruno Haible.
34278
34279 2010-01-01  Jim Meyering  <meyering@redhat.com>
34280
34281         ChangeLog: tweak to eliminate unnecessary copyright line
34282         * ChangeLog: Remove a copyright line that was mistakenly updated
34283         by today's update-copyright run.  Reported by Eric Blake.
34284
34285         test-update-copyright: don't let envvar setting cause test failure
34286         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34287
34288 2010-01-01  Bruno Haible  <bruno@clisp.org>
34289
34290         localename: Avoid gcc warning.
34291         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34292         function if it is not used.
34293
34294 2010-01-01  Jim Meyering  <meyering@redhat.com>
34295
34296         update nearly all FSF copyright year lists to include 2010
34297         Use the same procedure as for 2009, outlined in
34298         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34299
34300         version-etc: set COPYRIGHT_YEAR to 2010
34301         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34302
34303 2009-12-31  Eric Blake  <ebb9@byu.net>
34304
34305         doc: correct availability of cygwin 1.5.x getopt
34306         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34307         variables.
34308         * doc/posix-functions/opterr.texi (opterr): Likewise.
34309         * doc/posix-functions/optind.texi (optind): Likewise.
34310         * doc/posix-functions/optopt.texi (optopt): Likewise.
34311         * doc/posix-functions/tzname.texi (tzname): Likewise.
34312
34313         openat: update maintainer
34314         * modules/openat (Maintainer): Add myself.
34315
34316         utimens: avoid shadowing warning
34317         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34318         buffers into one, to avoid shadowing, as well as avoiding a
34319         redundant stat.
34320         Reported by Jim Meyering.
34321
34322         test-dup2: avoid compiler warning
34323         * tests/test-dup2.c (is_inheritable): Only define if used.
34324
34325 2010-01-01  Bruno Haible  <bruno@clisp.org>
34326
34327         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34328         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34329         defined, use wctomb instead of wcrtomb.
34330
34331 2010-01-01  Bruno Haible  <bruno@clisp.org>
34332
34333         iconv: Reject native Solaris iconv.
34334         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34335         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34336
34337 2009-12-31  Bruno Haible  <bruno@clisp.org>
34338
34339         * tests/test-signal.c (main): Remove test of 'SIG'.
34340
34341 2009-12-31  Bruno Haible  <bruno@clisp.org>
34342
34343         spawn: Fix incomplete fix.
34344         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34345         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34346         warnings for GNULIB_POSIXCHECK again.
34347         Reported by Eric Blake.
34348
34349 2009-12-31  Bruno Haible  <bruno@clisp.org>
34350
34351         Avoid namespace pollution on glibc systems.
34352         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34353         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34354         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34355         glibc systems.
34356
34357 2009-12-31  Bruno Haible  <bruno@clisp.org>
34358
34359         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34360         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34361         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34362         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34363         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34364         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34365         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34366
34367 2009-12-31  Bruno Haible  <bruno@clisp.org>
34368
34369         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34370         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34371         afterwards.
34372
34373 2009-12-31  Bruno Haible  <bruno@clisp.org>
34374
34375         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34376         SYS_UTSNAME_H.
34377
34378 2009-12-31  Bruno Haible  <bruno@clisp.org>
34379
34380         spawn: Fix misapplied patch.
34381         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34382         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34383         warnings for GNULIB_POSIXCHECK.
34384
34385 2009-12-31  Bruno Haible  <bruno@clisp.org>
34386
34387         times: Update after sys_times changed.
34388         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34389         * modules/times (Files): Add it.
34390         (configure.ac): Invoke gl_FUNC_TIMES.
34391
34392 2009-12-31  Bruno Haible  <bruno@clisp.org>
34393
34394         Use AC_C_INLINE where necessary.
34395         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34396         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34397         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34398         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34399         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34400         * m4/mbiter.m4 (gl_MBITER): Likewise.
34401         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34402         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34403         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34404         * modules/u64 (configure.ac): Likewise.
34405
34406 2009-12-31  Bruno Haible  <bruno@clisp.org>
34407
34408         Use AC_C_INLINE instead of module 'inline' where possible.
34409         * modules/inline (Description): Clarify purpose.
34410         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34411         * modules/count-one-bits (Depends-on): Remove inline.
34412         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34413         * modules/openat (Depends-on): Remove inline.
34414         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34415         instead of depending on module 'inline'.
34416         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34417         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34418         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34419         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34420         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34421         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34422         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34423         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34424         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34425         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34426         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34427         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34428         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34429         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34430         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34431         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34432         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34433         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34434         Likewise.
34435         * modules/unictype/property-ascii-hex-digit (Depends-on,
34436         configure.ac): Likewise.
34437         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34438         configure.ac): Likewise.
34439         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34440         configure.ac): Likewise.
34441         * modules/unictype/property-bidi-block-separator (Depends-on,
34442         configure.ac): Likewise.
34443         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34444         configure.ac): Likewise.
34445         * modules/unictype/property-bidi-common-separator (Depends-on,
34446         configure.ac): Likewise.
34447         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34448         Likewise.
34449         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34450         configure.ac): Likewise.
34451         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34452         configure.ac): Likewise.
34453         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34454         configure.ac): Likewise.
34455         * modules/unictype/property-bidi-european-digit (Depends-on,
34456         configure.ac): Likewise.
34457         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34458         configure.ac): Likewise.
34459         * modules/unictype/property-bidi-left-to-right (Depends-on,
34460         configure.ac): Likewise.
34461         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34462         configure.ac): Likewise.
34463         * modules/unictype/property-bidi-other-neutral (Depends-on,
34464         configure.ac): Likewise.
34465         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34466         Likewise.
34467         * modules/unictype/property-bidi-segment-separator (Depends-on,
34468         configure.ac): Likewise.
34469         * modules/unictype/property-bidi-whitespace (Depends-on,
34470         configure.ac): Likewise.
34471         * modules/unictype/property-combining (Depends-on, configure.ac):
34472         Likewise.
34473         * modules/unictype/property-composite (Depends-on, configure.ac):
34474         Likewise.
34475         * modules/unictype/property-currency-symbol (Depends-on,
34476         configure.ac): Likewise.
34477         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34478         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34479         Likewise.
34480         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34481         configure.ac): Likewise.
34482         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34483         Likewise.
34484         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34485         Likewise.
34486         * modules/unictype/property-extender (Depends-on, configure.ac):
34487         Likewise.
34488         * modules/unictype/property-format-control (Depends-on, configure.ac):
34489         Likewise.
34490         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34491         Likewise.
34492         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34493         Likewise.
34494         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34495         Likewise.
34496         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34497         Likewise.
34498         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34499         Likewise.
34500         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34501         Likewise.
34502         * modules/unictype/property-id-start (Depends-on, configure.ac):
34503         Likewise.
34504         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34505         Likewise.
34506         * modules/unictype/property-ids-binary-operator (Depends-on,
34507         configure.ac): Likewise.
34508         * modules/unictype/property-ids-trinary-operator (Depends-on,
34509         configure.ac): Likewise.
34510         * modules/unictype/property-ignorable-control (Depends-on,
34511         configure.ac): Likewise.
34512         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34513         Likewise.
34514         * modules/unictype/property-join-control (Depends-on, configure.ac):
34515         Likewise.
34516         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34517         Likewise.
34518         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34519         Likewise.
34520         * modules/unictype/property-logical-order-exception (Depends-on,
34521         configure.ac): Likewise.
34522         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34523         Likewise.
34524         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34525         * modules/unictype/property-non-break (Depends-on, configure.ac):
34526         Likewise.
34527         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34528         Likewise.
34529         * modules/unictype/property-numeric (Depends-on, configure.ac):
34530         Likewise.
34531         * modules/unictype/property-other-alphabetic (Depends-on,
34532         configure.ac): Likewise.
34533         * modules/unictype/property-other-default-ignorable-code-point
34534         (Depends-on, configure.ac): Likewise.
34535         * modules/unictype/property-other-grapheme-extend (Depends-on,
34536         configure.ac): Likewise.
34537         * modules/unictype/property-other-id-continue (Depends-on,
34538         configure.ac): Likewise.
34539         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34540         Likewise.
34541         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34542         Likewise.
34543         * modules/unictype/property-other-math (Depends-on, configure.ac):
34544         Likewise.
34545         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34546         Likewise.
34547         * modules/unictype/property-paired-punctuation (Depends-on,
34548         configure.ac): Likewise.
34549         * modules/unictype/property-paragraph-separator (Depends-on,
34550         configure.ac): Likewise.
34551         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34552         Likewise.
34553         * modules/unictype/property-pattern-white-space (Depends-on,
34554         configure.ac): Likewise.
34555         * modules/unictype/property-private-use (Depends-on, configure.ac):
34556         Likewise.
34557         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34558         Likewise.
34559         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34560         Likewise.
34561         * modules/unictype/property-radical (Depends-on, configure.ac):
34562         Likewise.
34563         * modules/unictype/property-sentence-terminal (Depends-on,
34564         configure.ac): Likewise.
34565         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34566         Likewise.
34567         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34568         * modules/unictype/property-terminal-punctuation (Depends-on,
34569         configure.ac): Likewise.
34570         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34571         Likewise.
34572         * modules/unictype/property-unassigned-code-value (Depends-on,
34573         configure.ac): Likewise.
34574         * modules/unictype/property-unified-ideograph (Depends-on,
34575         configure.ac): Likewise.
34576         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34577         Likewise.
34578         * modules/unictype/property-variation-selector (Depends-on,
34579         configure.ac): Likewise.
34580         * modules/unictype/property-white-space (Depends-on, configure.ac):
34581         Likewise.
34582         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34583         Likewise.
34584         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34585         Likewise.
34586         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34587         Likewise.
34588         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34589         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34590         Likewise.
34591
34592 2009-12-31  Bruno Haible  <bruno@clisp.org>
34593
34594         Remove unnecessary AC_C_INLINE invocation.
34595         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34596         since 2009-08-21.
34597
34598 2009-12-31  Jim Meyering  <meyering@redhat.com>
34599
34600         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34601         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34602         With this change, we can all remove the gpg_key_ID = ... definition
34603         from our respective cfg.mk files.
34604
34605         maint.mk: create announcement template in ~/, not in /tmp
34606         * top/maint.mk (emit_upload_commands): Adjust.
34607         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34608         Remove temporary file, .ci-msg.
34609
34610 2009-12-31  Eric Blake  <ebb9@byu.net>
34611
34612         link-warning: always build headers with link warnings
34613         * modules/arpa_inet (Makefile.am): Always build replacement
34614         header.
34615         * modules/ctype (Makefile.am): Likewise.
34616         * modules/dirent (Makefile.am): Likewise.
34617         * modules/inttypes (Makefile.am): Likewise.
34618         * modules/langinfo (Makefile.am): Likewise.
34619         * modules/locale (Makefile.am): Likewise.
34620         * modules/spawn (Makefile.am): Likewise.
34621         * modules/sys_file (Makefile.am): Likewise.
34622         * modules/sys_ioctl (Makefile.am): Likewise.
34623         * modules/sys_select (Makefile.am): Likewise.
34624         * modules/sys_socket (Makefile.am): Likewise.
34625         * modules/sys_times (Makefile.am): Likewise.
34626         * modules/sys_utsname (Makefile.am): Likewise.
34627         * modules/sys_wait (Makefile.am): Likewise.
34628         * modules/wchar (Makefile.am): Likewise.
34629         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34630         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34631         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34632         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34633         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34634         Likewise.
34635         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34636         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34637         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34638         Likewise.
34639         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34640         Likewise.
34641         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34642         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34643         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34644         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34645         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34646         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34647         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34648         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34649         (gl_WCHAR_H_DEFAULTS): Likewise.
34650
34651 2009-12-31  Eric Blake  <ebb9@byu.net>
34652
34653         signal, spawn: use link warnings
34654         * lib/signal.in.h (sigset_t): Make unconditional.
34655         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34656         (sigpending, sigprocmask, sigaction): Add link warnings.
34657         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34658         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34659         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34660         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34661         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34662         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34663         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34664         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34665         (posix_spawn_file_actions_destroy)
34666         (posix_spawn_file_actions_addopen)
34667         (posix_spawn_file_actions_addclose)
34668         (posix_spawn_file_actions_adddup2): Likewise.
34669         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34670         * tests/test-signal.c (main): Enhance test.
34671
34672         spawn: improve wrapper support
34673         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34674         (gl_SPAWN_H_DEFAULTS): New defaults.
34675         * modules/spawn (Makefile.am): Substitute them.
34676         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34677         Only declare if missing or broken.
34678
34679         sys_times, sys_utsname: use include_next
34680         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34681         header.
34682         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34683         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34684         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34685         * modules/sys_times (Depends-on): Add include_next.
34686         (Makefile.am): Substitute additional values.
34687         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34688         * lib/sys_times.in.h (includes): Include native header, if
34689         available.
34690         * lib/sys_utsname.in.h (includes): Likewise.
34691         * tests/test-sys_times.c (main): Enhance test.
34692
34693         fdutimensat: revert prior patch
34694         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34695         utimens.h.
34696         Reported by Bruno Haible.
34697
34698 2009-12-30  Eric Blake  <ebb9@byu.net>
34699
34700         sys_wait: drop link-warning dependency
34701         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34702         link-warning efforts.
34703         * lib/sys_wait.in.h: Likewise.
34704
34705         fdutimensat: remove bogus dependency
34706         * modules/fdutimensat (Depends-on): Drop inline.
34707
34708         unistd: fix typo
34709         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34710
34711 2009-12-30  Bruno Haible  <bruno@clisp.org>
34712
34713         Fix compilation error with Solaris cc.
34714         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34715         * lib/unicase/u16-is-invariant.c: Likewise.
34716         * lib/unicase/u32-is-invariant.c: Likewise.
34717         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34718
34719 2009-12-30  Bruno Haible  <bruno@clisp.org>
34720
34721         Fix test crash.
34722         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34723         locales.
34724         Reported by Simon Josefsson <simon@josefsson.org>.
34725
34726 2009-12-30  Bruno Haible  <bruno@clisp.org>
34727
34728         Fix compilation error on most platforms.
34729         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34730         Reported by Simon Josefsson <simon@josefsson.org>
34731         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34732
34733 2009-12-30  Eric Blake  <ebb9@byu.net>
34734
34735         futimens, utimensat: work around ntfs-3g bug
34736         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34737         a ctime bug is present, and expand workaround to cover ntfs-3g.
34738         * lib/utimens.c (fdutimens, lutimens): Likewise.
34739         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34740         (validate_timespec): Adjust return value.
34741         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34742         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34743         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34744
34745 2009-12-29  Eric Blake  <ebb9@byu.net>
34746
34747         link-warning: make usage consistent
34748         * modules/ctype (Depends-on): Add link-warning.
34749         (Makefile.am): Update rules accordingly.
34750         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34751         * modules/locale (Depends-on, Makefile.am): Likewise.
34752         * modules/sys_file (Makefile.am): Likewise.
34753         * modules/getopt-posix (Makefile.am): Delete unused link warning
34754         efforts.
34755         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34756         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34757         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34758         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34759
34760         stdio: remove unused variables
34761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34762         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34763         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34764
34765         tests: test more substitute headers
34766         * modules/ctype-tests: New file.
34767         * modules/dirent-tests: Likewise.
34768         * modules/spawn-tests: Likewise.
34769         * modules/sys_file-tests: Likewise.
34770         * modules/sys_ioctl-tests: Likewise.
34771         * modules/sys_wait-tests: Likewise.
34772         * tests/test-ctype.c: Likewise.
34773         * tests/test-dirent.c: Likewise.
34774         * tests/test-spawn.c: Likewise.
34775         * tests/test-sys_file.c: Likewise.
34776         * tests/test-sys_ioctl.c: Likewise.
34777         * tests/test-sys_wait.c: Likewise.
34778         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34779         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34780         whether or not flock is in use.
34781
34782         tests: remove License section from module
34783         * modules/arpa_inet-tests: Remove unneeded section.
34784         * modules/byteswap-tests: Likewise.
34785         * modules/ceilf-tests: Likewise.
34786         * modules/ceill-tests: Likewise.
34787         * modules/crypto/des-tests: Likewise.
34788         * modules/crypto/gc-arcfour-tests: Likewise.
34789         * modules/crypto/gc-arctwo-tests: Likewise.
34790         * modules/crypto/gc-des-tests: Likewise.
34791         * modules/crypto/gc-hmac-md5-tests: Likewise.
34792         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34793         * modules/crypto/gc-md2-tests: Likewise.
34794         * modules/crypto/gc-md4-tests: Likewise.
34795         * modules/crypto/gc-md5-tests: Likewise.
34796         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34797         * modules/crypto/gc-rijndael-tests: Likewise.
34798         * modules/crypto/gc-sha1-tests: Likewise.
34799         * modules/crypto/gc-tests: Likewise.
34800         * modules/crypto/md2-tests: Likewise.
34801         * modules/crypto/md4-tests: Likewise.
34802         * modules/fcntl-h-tests: Likewise.
34803         * modules/floorf-tests: Likewise.
34804         * modules/floorl-tests: Likewise.
34805         * modules/frexp-nolibm-tests: Likewise.
34806         * modules/frexp-tests: Likewise.
34807         * modules/frexpl-nolibm-tests: Likewise.
34808         * modules/frexpl-tests: Likewise.
34809         * modules/getaddrinfo-tests: Likewise.
34810         * modules/inttypes-tests: Likewise.
34811         * modules/isfinite-tests: Likewise.
34812         * modules/isinf-tests: Likewise.
34813         * modules/ldexpl-tests: Likewise.
34814         * modules/locale-tests: Likewise.
34815         * modules/math-tests: Likewise.
34816         * modules/netdb-tests: Likewise.
34817         * modules/netinet_in-tests: Likewise.
34818         * modules/printf-frexp-tests: Likewise.
34819         * modules/printf-frexpl-tests: Likewise.
34820         * modules/priv-set-tests: Likewise.
34821         * modules/random_r-tests: Likewise.
34822         * modules/round-tests: Likewise.
34823         * modules/roundf-tests: Likewise.
34824         * modules/roundl-tests: Likewise.
34825         * modules/search-tests: Likewise.
34826         * modules/select-tests: Likewise.
34827         * modules/signal-tests: Likewise.
34828         * modules/stdbool-tests: Likewise.
34829         * modules/stddef-tests: Likewise.
34830         * modules/stdint-tests: Likewise.
34831         * modules/stdio-tests: Likewise.
34832         * modules/stdlib-tests: Likewise.
34833         * modules/string-tests: Likewise.
34834         * modules/strings-tests: Likewise.
34835         * modules/sys_select-tests: Likewise.
34836         * modules/sys_socket-tests: Likewise.
34837         * modules/sys_stat-tests: Likewise.
34838         * modules/sys_time-tests: Likewise.
34839         * modules/sys_utsname-tests: Likewise.
34840         * modules/sysexits-tests: Likewise.
34841         * modules/time-tests: Likewise.
34842         * modules/trunc-tests: Likewise.
34843         * modules/truncf-tests: Likewise.
34844         * modules/truncl-tests: Likewise.
34845         * modules/tsearch-tests: Likewise.
34846         * modules/unistd-tests: Likewise.
34847         * modules/wchar-tests: Likewise.
34848         * modules/wctype-tests: Likewise.
34849
34850         tests: fix license on several tests
34851         * tests/test-des.c: Update to GPLv3+.
34852         * tests/test-flock.c: Likewise.
34853         * tests/test-fsync.c: Likewise.
34854         * tests/test-futimens.h: Likewise.
34855         * tests/test-gc-arcfour.c: Likewise.
34856         * tests/test-gc-arctwo.c: Likewise.
34857         * tests/test-gc-des.c: Likewise.
34858         * tests/test-gc-hmac-md5.c: Likewise.
34859         * tests/test-gc-hmac-sha1.c: Likewise.
34860         * tests/test-gc-md2.c: Likewise.
34861         * tests/test-gc-md4.c: Likewise.
34862         * tests/test-gc-md5.c: Likewise.
34863         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34864         * tests/test-gc-rijndael.c: Likewise.
34865         * tests/test-gc-sha1.c: Likewise.
34866         * tests/test-gc.c: Likewise.
34867         * tests/test-getcwd.c: Likewise.
34868         * tests/test-link.c: Likewise.
34869         * tests/test-link.h: Likewise.
34870         * tests/test-lutimens.h: Likewise.
34871         * tests/test-md2.c: Likewise.
34872         * tests/test-md4.c: Likewise.
34873         * tests/test-mkdir.h: Likewise.
34874         * tests/test-rename.c: Likewise.
34875         * tests/test-rename.h: Likewise.
34876         * tests/test-safe-alloc.c: Likewise.
34877         * tests/test-utimens-common.h: Likewise.
34878         * tests/test-utimens.h: Likewise.
34879
34880         maint: sync license texts
34881         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34882         * doc/gpl-3.0.texi: Revert copyright year update.
34883         * doc/lgpl-3.0.texi: Likewise.
34884
34885 2009-12-29  Jim Meyering  <meyering@redhat.com>
34886
34887         update nearly all FSF copyright year lists to include 2009
34888         The files named by the following are exempted:
34889             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34890               test -f "$dst" && { echo "$dst"; continue; }
34891               test -d "$dst" || continue
34892               echo "$dst"/$(basename "$src")
34893             done > exempt
34894             git ls-files tests/unictype >> exempt
34895         In the remaining files, convert to all-interval notation if
34896         - there is already at least one year interval like 2000-2003
34897         - the file is maintained by me
34898         - the file is in lib/uni*/, where that style already prevails
34899         Otherwise, use update-copyright's default.
34900
34901 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34902         and Eric Blake  <ebb9@byu.net>
34903
34904         tests: don't require debug system() to pass
34905         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34906         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34907         * tests/test-unlink.h (test_unlink_func): Likewise.
34908         * tests/test-fstatat.c (main): ...into callers.
34909         * tests/test-lstat.c (main): Likewise.
34910         * tests/test-rmdir.c (main): Likewise.
34911         * tests/test-unlink.c (main): Likewise.
34912         * tests/test-unlinkat.c (main): Likewise.
34913         * tests/test-areadlink-with-size.c (main): Don't require a
34914         debug-only system call to pass, aiding cross-testing to mingw.
34915         * tests/test-areadlink.c (main): Likewise.
34916         * tests/test-areadlinkat-with-size.c (main): Likewise.
34917         * tests/test-areadlinkat.c (main): Likewise.
34918         * tests/test-canonicalize-lgpl.c (main): Likewise.
34919         * tests/test-canonicalize.c (main): Likewise.
34920         * tests/test-chown.c (main): Likewise.
34921         * tests/test-fchownat.c (main): Likewise.
34922         * tests/test-lchown.c (main): Likewise.
34923         * tests/test-fdutimensat.c (main): Likewise.
34924         * tests/test-futimens.c (main): Likewise.
34925         * tests/test-link.c (main): Likewise.
34926         * tests/test-linkat.c (main): Likewise.
34927         * tests/test-mkdir.c (main): Likewise.
34928         * tests/test-mkdirat.c (main): Likewise.
34929         * tests/test-mkfifo.c (main): Likewise.
34930         * tests/test-mkfifoat.c (main): Likewise.
34931         * tests/test-mknod.c (main): Likewise.
34932         * tests/test-readlink.c (main): Likewise.
34933         * tests/test-remove.c (main): Likewise.
34934         * tests/test-rename.c (main): Likewise.
34935         * tests/test-renameat.c (main): Likewise.
34936         * tests/test-symlink.c (main): Likewise.
34937         * tests/test-symlinkat.c (main): Likewise.
34938         * tests/test-utimens.c (main): Likewise.
34939         * tests/test-utimensat.c (main): Likewise.
34940
34941 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34942
34943         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34944         on $(UNUSED_PARAMETER_H) to avoid build failure.
34945
34946 2009-12-28  Jim Meyering  <meyering@redhat.com>
34947
34948         update-copyright: you may specify a max. line length other than 72
34949         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34950
34951         maint: use consistent FSF copyright line syntax
34952         * lib/posixtm.c: Add missing comma in FSF copyright line.
34953         * lib/posixtm.h: Likewise.
34954         * lib/getugroups.c: Add missing ", Inc.".
34955
34956         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34957         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34958         FSF copyright line.  Remove trailing blanks.
34959
34960 2009-12-28  Eric Blake  <ebb9@byu.net>
34961
34962         test-dup2: reduce dependencies
34963         * modules/cloexec (Configure.ac): Set witness.
34964         * modules/dup2-tests (Depends-on): Drop cloexec.
34965         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34966         not present.
34967         Suggested by Bruno Haible.
34968
34969 2009-12-26  Bruno Haible  <bruno@clisp.org>
34970
34971         Remove an unneeded dependency.
34972         * modules/fseterr (Depends-on): Remove dup2.
34973
34974 2009-12-26  Eric Blake  <ebb9@byu.net>
34975
34976         tests: use macros.h in more places
34977         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34978         (ASSERT_STREAM): Provide default of stderr.
34979         * tests/test-dirent-safer.c: Include macros.h, using alternate
34980         stream for assertions.
34981         * tests/test-dup-safer.c: Likewise.
34982         * tests/test-freopen-safer.c: Likewise.
34983         * tests/test-getopt.c: Likewise.
34984         * tests/test-openat-safer.c: Likewise.
34985         * tests/test-pipe.c: Likewise.
34986         * tests/test-popen-safer.c: Likewise.
34987         * modules/dirent-safer-tests (Files): Include macros.h.
34988         * modules/unistd-safer-tests (Files): Likewise.
34989         * modules/freopen-safer-tests (Files): Likewise.
34990         * modules/getopt-posix-tests (Files): Likewise.
34991         * modules/openat-safer-tests (Files): Likewise.
34992         * modules/pipe-tests (Files): Likewise.
34993
34994 2009-12-26  Bruno Haible  <bruno@clisp.org>
34995
34996         javacomp: Portability fix.
34997         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34998         that it also works on Solaris.
34999
35000 2009-12-26  Bruno Haible  <bruno@clisp.org>
35001
35002         localename: Fix storage allocation of gl_locale_name_thread's result.
35003         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35004         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35005         all platforms that have 'uselocale'.
35006         (gl_locale_name_thread_unsafe): New function, extracted from
35007         gl_locale_name_thread.
35008         (gl_locale_name_thread): Call struniq on all platforms that have
35009         'uselocale'.
35010         * tests/test-localename.c (test_locale_name_thread): Check that the
35011         resulting strings are permanently allocated.
35012         * modules/localename-tests (Depends-on): Add strdup.
35013
35014 2009-12-26  Bruno Haible  <bruno@clisp.org>
35015
35016         * tests/test-localename.c (categories): Fill in the strings.
35017
35018 2009-12-26  Jim Meyering  <meyering@redhat.com>
35019
35020         isdir: complete the removal of m4/isdir.m4
35021         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35022
35023         isdir: clean up, since at least grep still uses it
35024         * lib/isdir.c: Include "isdir.h".
35025         (S_ISDIR): Remove now-unneeded definition.
35026         * modules/isdir (Files): Add lib/isdir.h.
35027         * lib/isdir.h: New file, with declaration.
35028         * m4/isdir.m4: Remove file -- unneeded.
35029
35030 2009-12-25  Bruno Haible  <bruno@clisp.org>
35031
35032         selinux-h: Make generated .h files standalone.
35033         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35034         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35035         * lib/se-selinux.in.h: Likewise.
35036         * modules/selinux-h (Depends-on): Add unused-parameter.
35037         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35038         selinux/selinux.h and selinux/context.h.
35039         Suggested by Eric Blake.
35040
35041 2009-12-25  Bruno Haible  <bruno@clisp.org>
35042
35043         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35044         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35045         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35046         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35047         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35048
35049 2009-12-24  Bruno Haible  <bruno@clisp.org>
35050
35051         openat: Fix warning.
35052         * lib/openat-proc.c: Include <unistd.h>.
35053
35054 2009-12-24  Bruno Haible  <bruno@clisp.org>
35055
35056         New module 'unused-parameter'.
35057         * build-aux/unused-parameter.h: New file, extracted from earlier
35058         gnulib-common.m4.
35059         * modules/unused-parameter: New file.
35060         * lib/unistr.h: Include unused-parameter.h.
35061         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35062         _GL_UNUSED.
35063         * modules/unistr/base (Depends-on): Add unused-parameter.
35064
35065 2009-12-24  Bruno Haible  <bruno@clisp.org>
35066
35067         Add missing dependencies to 'extensions' module.
35068         * m4/extensions.m4: Add comment.
35069         * modules/accept4 (Depends-on): Add extensions.
35070         * modules/dup3 (Depends-on): Likewise.
35071         * modules/fcntl (Depends-on): Likewise.
35072         * modules/futimens (Depends-on): Likewise.
35073         * modules/mknod (Depends-on): Likewise.
35074         * modules/pipe2 (Depends-on): Likewise.
35075         * modules/stat-time (Depends-on): Likewise.
35076         * modules/strcasestr-simple (Depends-on): Likewise.
35077         * modules/strsignal (Depends-on): Likewise.
35078         * modules/utimensat (Depends-on): Likewise.
35079         * modules/localcharset (Depends-on): Likewise. Needed because of
35080         gl_FCNTL_O_FLAGS.
35081         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35082         AC_TYPE_MBSTATE_T.
35083         * modules/wcsnrtombs (Depends-on): Likewise.
35084         * modules/wcsrtombs (Depends-on): Likewise.
35085
35086 2009-12-24  Bruno Haible  <bruno@clisp.org>
35087
35088         binary-io: Avoid gcc warning due to SET_BINARY.
35089         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35090         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35091
35092 2009-12-24  Bruno Haible  <bruno@clisp.org>
35093
35094         Avoid future namespace pollution on glibc systems.
35095         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35096         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35097         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35098         glibc systems.
35099
35100 2009-12-24  Bruno Haible  <bruno@clisp.org>
35101
35102         Refactor common macros used in tests.
35103         * tests/macros.h: New file.
35104         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35105         and/or <stdlib.h>, if appropriate.
35106         (ASSERT, SIZEOF): Remove macros.
35107         * tests/test-areadlink-with-size.c: Likewise.
35108         * tests/test-areadlinkat.c: Likewise.
35109         * tests/test-areadlinkat-with-size.c: Likewise.
35110         * tests/test-argmatch.c: Likewise.
35111         * tests/test-argv-iter.c: Likewise.
35112         * tests/test-array-mergesort.c: Likewise.
35113         * tests/test-array_list.c: Likewise.
35114         * tests/test-array_oset.c: Likewise.
35115         * tests/test-avltree_list.c: Likewise.
35116         * tests/test-avltree_oset.c: Likewise.
35117         * tests/test-avltreehash_list.c: Likewise.
35118         * tests/test-base64.c: Likewise.
35119         * tests/test-binary-io.c: Likewise.
35120         * tests/test-bitrotate.c: Likewise.
35121         * tests/test-btowc.c: Likewise.
35122         * tests/test-byteswap.c: Likewise.
35123         * tests/test-c-ctype.c: Likewise.
35124         * tests/test-c-stack.c: Likewise.
35125         * tests/test-c-strcasecmp.c: Likewise.
35126         * tests/test-c-strcasestr.c: Likewise.
35127         * tests/test-c-strncasecmp.c: Likewise.
35128         * tests/test-c-strstr.c: Likewise.
35129         * tests/test-canonicalize-lgpl.c: Likewise.
35130         * tests/test-canonicalize.c: Likewise.
35131         * tests/test-carray_list.c: Likewise.
35132         * tests/test-ceilf1.c: Likewise.
35133         * tests/test-ceilf2.c: Likewise.
35134         * tests/test-ceill.c: Likewise.
35135         * tests/test-chown.c: Likewise.
35136         * tests/test-cloexec.c: Likewise.
35137         * tests/test-copy-acl.c: Likewise.
35138         * tests/test-copy-file.c: Likewise.
35139         * tests/test-count-one-bits.c: Likewise.
35140         * tests/test-dprintf-posix.c: Likewise.
35141         * tests/test-dup2.c: Likewise.
35142         * tests/test-dup3.c: Likewise.
35143         * tests/test-duplocale.c: Likewise.
35144         * tests/test-fbufmode.c: Likewise.
35145         * tests/test-fchdir.c: Likewise.
35146         * tests/test-fchownat.c: Likewise.
35147         * tests/test-fcntl-safer.c: Likewise.
35148         * tests/test-fcntl.c: Likewise.
35149         * tests/test-fdopendir.c: Likewise.
35150         * tests/test-fdutimensat.c: Likewise.
35151         * tests/test-fflush2.c: Likewise.
35152         * tests/test-file-has-acl.c: Likewise.
35153         * tests/test-filevercmp.c: Likewise.
35154         * tests/test-flock.c: Likewise.
35155         * tests/test-floorf1.c: Likewise.
35156         * tests/test-floorf2.c: Likewise.
35157         * tests/test-floorl.c: Likewise.
35158         * tests/test-fnmatch.c: Likewise.
35159         * tests/test-fopen.h: Likewise.
35160         * tests/test-fpending.c: Likewise.
35161         * tests/test-fprintf-posix.c: Likewise.
35162         * tests/test-fpurge.c: Likewise.
35163         * tests/test-freadable.c: Likewise.
35164         * tests/test-freadahead.c: Likewise.
35165         * tests/test-freading.c: Likewise.
35166         * tests/test-freadptr.c: Likewise.
35167         * tests/test-freadptr2.c: Likewise.
35168         * tests/test-freadseek.c: Likewise.
35169         * tests/test-freopen.c: Likewise.
35170         * tests/test-frexp.c: Likewise.
35171         * tests/test-frexpl.c: Likewise.
35172         * tests/test-fseek.c: Likewise.
35173         * tests/test-fseeko.c: Likewise.
35174         * tests/test-fstatat.c: Likewise.
35175         * tests/test-fstrcmp.c: Likewise.
35176         * tests/test-fsync.c: Likewise.
35177         * tests/test-ftell.c: Likewise.
35178         * tests/test-ftello.c: Likewise.
35179         * tests/test-func.c: Likewise.
35180         * tests/test-futimens.c: Likewise.
35181         * tests/test-fwritable.c: Likewise.
35182         * tests/test-fwriting.c: Likewise.
35183         * tests/test-getcwd.c: Likewise.
35184         * tests/test-getdate.c: Likewise.
35185         * tests/test-getdelim.c: Likewise.
35186         * tests/test-getdtablesize.c: Likewise.
35187         * tests/test-getgroups.c: Likewise.
35188         * tests/test-getline.c: Likewise.
35189         * tests/test-getndelim2.c: Likewise.
35190         * tests/test-glob.c: Likewise.
35191         * tests/test-hash.c: Likewise.
35192         * tests/test-i-ring.c: Likewise.
35193         * tests/test-iconv-utf.c: Likewise.
35194         * tests/test-iconv.c: Likewise.
35195         * tests/test-idpriv-drop.c: Likewise.
35196         * tests/test-idpriv-droptemp.c: Likewise.
35197         * tests/test-inet_ntop.c: Likewise.
35198         * tests/test-inet_pton.c: Likewise.
35199         * tests/test-isblank.c: Likewise.
35200         * tests/test-isfinite.c: Likewise.
35201         * tests/test-isinf.c: Likewise.
35202         * tests/test-isnan.c: Likewise.
35203         * tests/test-isnand.h: Likewise.
35204         * tests/test-isnanf.h: Likewise.
35205         * tests/test-isnanl.h: Likewise.
35206         * tests/test-lchown.c: Likewise.
35207         * tests/test-ldexpl.c: Likewise.
35208         * tests/test-link.c: Likewise.
35209         * tests/test-linkat.c: Likewise.
35210         * tests/test-linked_list.c: Likewise.
35211         * tests/test-linkedhash_list.c: Likewise.
35212         * tests/test-localename.c: Likewise.
35213         * tests/test-lseek.c: Likewise.
35214         * tests/test-lstat.c: Likewise.
35215         * tests/test-mbmemcasecmp.c: Likewise.
35216         * tests/test-mbmemcasecoll.c: Likewise.
35217         * tests/test-mbrtowc.c: Likewise.
35218         * tests/test-mbscasecmp.c: Likewise.
35219         * tests/test-mbscasestr1.c: Likewise.
35220         * tests/test-mbscasestr2.c: Likewise.
35221         * tests/test-mbscasestr3.c: Likewise.
35222         * tests/test-mbscasestr4.c: Likewise.
35223         * tests/test-mbschr.c: Likewise.
35224         * tests/test-mbscspn.c: Likewise.
35225         * tests/test-mbsinit.c: Likewise.
35226         * tests/test-mbsncasecmp.c: Likewise.
35227         * tests/test-mbsnrtowcs.c: Likewise.
35228         * tests/test-mbspbrk.c: Likewise.
35229         * tests/test-mbspcasecmp.c: Likewise.
35230         * tests/test-mbsrchr.c: Likewise.
35231         * tests/test-mbsrtowcs.c: Likewise.
35232         * tests/test-mbsspn.c: Likewise.
35233         * tests/test-mbsstr1.c: Likewise.
35234         * tests/test-mbsstr2.c: Likewise.
35235         * tests/test-mbsstr3.c: Likewise.
35236         * tests/test-memchr.c: Likewise.
35237         * tests/test-memchr2.c: Likewise.
35238         * tests/test-memcmp.c: Likewise.
35239         * tests/test-memmem.c: Likewise.
35240         * tests/test-memrchr.c: Likewise.
35241         * tests/test-mkdir.c: Likewise.
35242         * tests/test-mkdirat.c: Likewise.
35243         * tests/test-mkfifo.c: Likewise.
35244         * tests/test-mkfifoat.c: Likewise.
35245         * tests/test-mknod.c: Likewise.
35246         * tests/test-nanosleep.c: Likewise.
35247         * tests/test-nl_langinfo.c: Likewise.
35248         * tests/test-obstack-printf.c: Likewise.
35249         * tests/test-open.c: Likewise.
35250         * tests/test-openat.c: Likewise.
35251         * tests/test-pipe-filter-gi1.c: Likewise.
35252         * tests/test-pipe-filter-gi2-main.c: Likewise.
35253         * tests/test-pipe-filter-ii1.c: Likewise.
35254         * tests/test-pipe-filter-ii2-main.c: Likewise.
35255         * tests/test-pipe2.c: Likewise.
35256         * tests/test-popen.h: Likewise.
35257         * tests/test-posixtm.c: Likewise.
35258         * tests/test-pread.c: Likewise.
35259         * tests/test-printf-frexp.c: Likewise.
35260         * tests/test-printf-frexpl.c: Likewise.
35261         * tests/test-printf-posix.c: Likewise.
35262         * tests/test-priv-set.c: Likewise.
35263         * tests/test-quotearg.c: Likewise.
35264         * tests/test-random_r.c: Likewise.
35265         * tests/test-rawmemchr.c: Likewise.
35266         * tests/test-rbtree_list.c: Likewise.
35267         * tests/test-rbtree_oset.c: Likewise.
35268         * tests/test-rbtreehash_list.c: Likewise.
35269         * tests/test-readlink.c: Likewise.
35270         * tests/test-remove.c: Likewise.
35271         * tests/test-rename.c: Likewise.
35272         * tests/test-renameat.c: Likewise.
35273         * tests/test-rmdir.c: Likewise.
35274         * tests/test-round1.c: Likewise.
35275         * tests/test-roundf1.c: Likewise.
35276         * tests/test-roundl.c: Likewise.
35277         * tests/test-safe-alloc.c: Likewise.
35278         * tests/test-sameacls.c: Likewise.
35279         * tests/test-set-mode-acl.c: Likewise.
35280         * tests/test-setenv.c: Likewise.
35281         * tests/test-sigaction.c: Likewise.
35282         * tests/test-signbit.c: Likewise.
35283         * tests/test-sleep.c: Likewise.
35284         * tests/test-snprintf-posix.c: Likewise.
35285         * tests/test-snprintf.c: Likewise.
35286         * tests/test-sprintf-posix.c: Likewise.
35287         * tests/test-stat-time.c: Likewise.
35288         * tests/test-stat.c: Likewise.
35289         * tests/test-strcasestr.c: Likewise.
35290         * tests/test-strchrnul.c: Likewise.
35291         * tests/test-strerror.c: Likewise.
35292         * tests/test-striconv.c: Likewise.
35293         * tests/test-striconveh.c: Likewise.
35294         * tests/test-striconveha.c: Likewise.
35295         * tests/test-strsignal.c: Likewise.
35296         * tests/test-strstr.c: Likewise.
35297         * tests/test-strtod.c: Likewise.
35298         * tests/test-strverscmp.c: Likewise.
35299         * tests/test-symlink.c: Likewise.
35300         * tests/test-symlinkat.c: Likewise.
35301         * tests/test-trunc1.c: Likewise.
35302         * tests/test-trunc2.c: Likewise.
35303         * tests/test-truncf1.c: Likewise.
35304         * tests/test-truncf2.c: Likewise.
35305         * tests/test-truncl.c: Likewise.
35306         * tests/test-uname.c: Likewise.
35307         * tests/test-unlink.c: Likewise.
35308         * tests/test-unlinkat.c: Likewise.
35309         * tests/test-unsetenv.c: Likewise.
35310         * tests/test-usleep.c: Likewise.
35311         * tests/test-utimens.c: Likewise.
35312         * tests/test-utimensat.c: Likewise.
35313         * tests/test-vasnprintf-posix.c: Likewise.
35314         * tests/test-vasnprintf-posix2.c: Likewise.
35315         * tests/test-vasnprintf.c: Likewise.
35316         * tests/test-vasprintf-posix.c: Likewise.
35317         * tests/test-vasprintf.c: Likewise.
35318         * tests/test-vdprintf-posix.c: Likewise.
35319         * tests/test-vfprintf-posix.c: Likewise.
35320         * tests/test-vprintf-posix.c: Likewise.
35321         * tests/test-vsnprintf-posix.c: Likewise.
35322         * tests/test-vsnprintf.c: Likewise.
35323         * tests/test-vsprintf-posix.c: Likewise.
35324         * tests/test-wcrtomb.c: Likewise.
35325         * tests/test-wcsnrtombs.c: Likewise.
35326         * tests/test-wcsrtombs.c: Likewise.
35327         * tests/test-wctype.c: Likewise.
35328         * tests/test-wcwidth.c: Likewise.
35329         * tests/test-xfprintf-posix.c: Likewise.
35330         * tests/test-xmemdup0.c: Likewise.
35331         * tests/test-xprintf-posix.c: Likewise.
35332         * tests/test-xvasprintf.c: Likewise.
35333         * tests/unicase/test-locale-language.c: Likewise.
35334         * tests/unicase/test-mapping-part1.h: Likewise.
35335         * tests/unicase/test-predicate-part1.h: Likewise.
35336         * tests/unicase/test-u8-casecmp.c: Likewise.
35337         * tests/unicase/test-u8-casecoll.c: Likewise.
35338         * tests/unicase/test-u8-casefold.c: Likewise.
35339         * tests/unicase/test-u8-is-cased.c: Likewise.
35340         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35341         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35342         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35343         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35344         * tests/unicase/test-u8-tolower.c: Likewise.
35345         * tests/unicase/test-u8-totitle.c: Likewise.
35346         * tests/unicase/test-u8-toupper.c: Likewise.
35347         * tests/unicase/test-u16-casecmp.c: Likewise.
35348         * tests/unicase/test-u16-casecoll.c: Likewise.
35349         * tests/unicase/test-u16-casefold.c: Likewise.
35350         * tests/unicase/test-u16-is-cased.c: Likewise.
35351         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35352         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35353         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35354         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35355         * tests/unicase/test-u16-tolower.c: Likewise.
35356         * tests/unicase/test-u16-totitle.c: Likewise.
35357         * tests/unicase/test-u16-toupper.c: Likewise.
35358         * tests/unicase/test-u32-casecmp.c: Likewise.
35359         * tests/unicase/test-u32-casecoll.c: Likewise.
35360         * tests/unicase/test-u32-casefold.c: Likewise.
35361         * tests/unicase/test-u32-is-cased.c: Likewise.
35362         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35363         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35364         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35365         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35366         * tests/unicase/test-u32-tolower.c: Likewise.
35367         * tests/unicase/test-u32-totitle.c: Likewise.
35368         * tests/unicase/test-u32-toupper.c: Likewise.
35369         * tests/unicase/test-ulc-casecmp.c: Likewise.
35370         * tests/unicase/test-ulc-casecoll.c: Likewise.
35371         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35372         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35373         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35374         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35375         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35376         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35377         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35378         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35379         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35380         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35381         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35382         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35383         * tests/unictype/test-bidi_byname.c: Likewise.
35384         * tests/unictype/test-bidi_name.c: Likewise.
35385         * tests/unictype/test-bidi_of.c: Likewise.
35386         * tests/unictype/test-bidi_test.c: Likewise.
35387         * tests/unictype/test-block_list.c: Likewise.
35388         * tests/unictype/test-block_of.c: Likewise.
35389         * tests/unictype/test-block_test.c: Likewise.
35390         * tests/unictype/test-categ_and.c: Likewise.
35391         * tests/unictype/test-categ_and_not.c: Likewise.
35392         * tests/unictype/test-categ_byname.c: Likewise.
35393         * tests/unictype/test-categ_name.c: Likewise.
35394         * tests/unictype/test-categ_none.c: Likewise.
35395         * tests/unictype/test-categ_of.c: Likewise.
35396         * tests/unictype/test-categ_or.c: Likewise.
35397         * tests/unictype/test-categ_test_withtable.c: Likewise.
35398         * tests/unictype/test-combining.c: Likewise.
35399         * tests/unictype/test-decdigit.c: Likewise.
35400         * tests/unictype/test-digit.c: Likewise.
35401         * tests/unictype/test-mirror.c: Likewise.
35402         * tests/unictype/test-numeric.c: Likewise.
35403         * tests/unictype/test-pr_byname.c: Likewise.
35404         * tests/unictype/test-pr_test.c: Likewise.
35405         * tests/unictype/test-predicate-part1.h: Likewise.
35406         * tests/unictype/test-scripts.c: Likewise.
35407         * tests/unictype/test-sy_c_ident.c: Likewise.
35408         * tests/unictype/test-sy_java_ident.c: Likewise.
35409         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35410         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35411         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35412         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35413         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35414         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35415         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35416         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35417         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35418         * tests/uninorm/test-compat-decomposition.c: Likewise.
35419         * tests/uninorm/test-composition.c: Likewise.
35420         * tests/uninorm/test-decomposing-form.c: Likewise.
35421         * tests/uninorm/test-decomposition.c: Likewise.
35422         * tests/uninorm/test-u8-nfc.c: Likewise.
35423         * tests/uninorm/test-u8-nfd.c: Likewise.
35424         * tests/uninorm/test-u8-nfkc.c: Likewise.
35425         * tests/uninorm/test-u8-nfkd.c: Likewise.
35426         * tests/uninorm/test-u8-normcmp.c: Likewise.
35427         * tests/uninorm/test-u8-normcoll.c: Likewise.
35428         * tests/uninorm/test-u16-nfc.c: Likewise.
35429         * tests/uninorm/test-u16-nfd.c: Likewise.
35430         * tests/uninorm/test-u16-nfkc.c: Likewise.
35431         * tests/uninorm/test-u16-nfkd.c: Likewise.
35432         * tests/uninorm/test-u16-normcmp.c: Likewise.
35433         * tests/uninorm/test-u16-normcoll.c: Likewise.
35434         * tests/uninorm/test-u32-nfc.c: Likewise.
35435         * tests/uninorm/test-u32-nfd.c: Likewise.
35436         * tests/uninorm/test-u32-nfkc.c: Likewise.
35437         * tests/uninorm/test-u32-nfkd.c: Likewise.
35438         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35439         * tests/uninorm/test-u32-normcmp.c: Likewise.
35440         * tests/uninorm/test-u32-normcoll.c: Likewise.
35441         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35442         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35443         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35444         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35445         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35446         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35447         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35448         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35449         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35450         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35451         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35452         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35453         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35454         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35455         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35456         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35457         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35458         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35459         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35460         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35461         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35462         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35463         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35464         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35465         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35466         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35467         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35468         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35469         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35470         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35471         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35472         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35473         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35474         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35475         * tests/uniwidth/test-u8-width.c: Likewise.
35476         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35477         * tests/uniwidth/test-u16-width.c: Likewise.
35478         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35479         * tests/uniwidth/test-u32-width.c: Likewise.
35480         * tests/uniwidth/test-uc_width.c: Likewise.
35481         * tests/uniwidth/test-uc_width2.c: Likewise.
35482         * modules/acl-tests (Files): Add tests/macros.h.
35483         * modules/areadlink-tests (Files): Likewise.
35484         * modules/areadlink-with-size-tests (Files): Likewise.
35485         * modules/areadlinkat-tests (Files): Likewise.
35486         * modules/areadlinkat-with-size-tests (Files): Likewise.
35487         * modules/argmatch-tests (Files): Likewise.
35488         * modules/argv-iter-tests (Files): Likewise.
35489         * modules/array-list-tests (Files): Likewise.
35490         * modules/array-mergesort-tests (Files): Likewise.
35491         * modules/array-oset-tests (Files): Likewise.
35492         * modules/avltree-list-tests (Files): Likewise.
35493         * modules/avltree-oset-tests (Files): Likewise.
35494         * modules/avltreehash-list-tests (Files): Likewise.
35495         * modules/base64-tests (Files): Likewise.
35496         * modules/binary-io-tests (Files): Likewise.
35497         * modules/bitrotate-tests (Files): Likewise.
35498         * modules/btowc-tests (Files): Likewise.
35499         * modules/byteswap-tests (Files): Likewise.
35500         * modules/c-ctype-tests (Files): Likewise.
35501         * modules/c-stack-tests (Files): Likewise.
35502         * modules/c-strcase-tests (Files): Likewise.
35503         * modules/c-strcasestr-tests (Files): Likewise.
35504         * modules/c-strstr-tests (Files): Likewise.
35505         * modules/canonicalize-lgpl-tests (Files): Likewise.
35506         * modules/canonicalize-tests (Files): Likewise.
35507         * modules/carray-list-tests (Files): Likewise.
35508         * modules/ceilf-tests (Files): Likewise.
35509         * modules/ceill-tests (Files): Likewise.
35510         * modules/chown-tests (Files): Likewise.
35511         * modules/cloexec-tests (Files): Likewise.
35512         * modules/copy-file-tests (Files): Likewise.
35513         * modules/count-one-bits-tests (Files): Likewise.
35514         * modules/dprintf-posix-tests (Files): Likewise.
35515         * modules/dup2-tests (Files): Likewise.
35516         * modules/dup3-tests (Files): Likewise.
35517         * modules/duplocale-tests (Files): Likewise.
35518         * modules/fbufmode-tests (Files): Likewise.
35519         * modules/fchdir-tests (Files): Likewise.
35520         * modules/fcntl-safer-tests (Files): Likewise.
35521         * modules/fcntl-tests (Files): Likewise.
35522         * modules/fdopendir-tests (Files): Likewise.
35523         * modules/fdutimensat-tests (Files): Likewise.
35524         * modules/fflush-tests (Files): Likewise.
35525         * modules/filevercmp-tests (Files): Likewise.
35526         * modules/flock-tests (Files): Likewise.
35527         * modules/floorf-tests (Files): Likewise.
35528         * modules/floorl-tests (Files): Likewise.
35529         * modules/fnmatch-tests (Files): Likewise.
35530         * modules/fopen-safer-tests (Files): Likewise.
35531         * modules/fopen-tests (Files): Likewise.
35532         * modules/fpending-tests (Files): Likewise.
35533         * modules/fprintf-posix-tests (Files): Likewise.
35534         * modules/fpurge-tests (Files): Likewise.
35535         * modules/freadable-tests (Files): Likewise.
35536         * modules/freadahead-tests (Files): Likewise.
35537         * modules/freading-tests (Files): Likewise.
35538         * modules/freadptr-tests (Files): Likewise.
35539         * modules/freadseek-tests (Files): Likewise.
35540         * modules/freopen-tests (Files): Likewise.
35541         * modules/frexp-nolibm-tests (Files): Likewise.
35542         * modules/frexp-tests (Files): Likewise.
35543         * modules/frexpl-nolibm-tests (Files): Likewise.
35544         * modules/frexpl-tests (Files): Likewise.
35545         * modules/fseek-tests (Files): Likewise.
35546         * modules/fseeko-tests (Files): Likewise.
35547         * modules/fstrcmp-tests (Files): Likewise.
35548         * modules/fsync-tests (Files): Likewise.
35549         * modules/ftell-tests (Files): Likewise.
35550         * modules/ftello-tests (Files): Likewise.
35551         * modules/func-tests (Files): Likewise.
35552         * modules/futimens-tests (Files): Likewise.
35553         * modules/fwritable-tests (Files): Likewise.
35554         * modules/fwriting-tests (Files): Likewise.
35555         * modules/getcwd-tests (Files): Likewise.
35556         * modules/getdate-tests (Files): Likewise.
35557         * modules/getdelim-tests (Files): Likewise.
35558         * modules/getdtablesize-tests (Files): Likewise.
35559         * modules/getgroups-tests (Files): Likewise.
35560         * modules/getline-tests (Files): Likewise.
35561         * modules/getndelim2-tests (Files): Likewise.
35562         * modules/glob-tests (Files): Likewise.
35563         * modules/hash-tests (Files): Likewise.
35564         * modules/i-ring-tests (Files): Likewise.
35565         * modules/iconv-tests (Files): Likewise.
35566         * modules/iconv_open-utf-tests (Files): Likewise.
35567         * modules/idpriv-drop-tests (Files): Likewise.
35568         * modules/idpriv-droptemp-tests (Files): Likewise.
35569         * modules/inet_ntop-tests (Files): Likewise.
35570         * modules/inet_pton-tests (Files): Likewise.
35571         * modules/isblank-tests (Files): Likewise.
35572         * modules/isfinite-tests (Files): Likewise.
35573         * modules/isinf-tests (Files): Likewise.
35574         * modules/isnan-tests (Files): Likewise.
35575         * modules/isnand-nolibm-tests (Files): Likewise.
35576         * modules/isnand-tests (Files): Likewise.
35577         * modules/isnanf-nolibm-tests (Files): Likewise.
35578         * modules/isnanf-tests (Files): Likewise.
35579         * modules/isnanl-nolibm-tests (Files): Likewise.
35580         * modules/isnanl-tests (Files): Likewise.
35581         * modules/lchown-tests (Files): Likewise.
35582         * modules/ldexpl-tests (Files): Likewise.
35583         * modules/link-tests (Files): Likewise.
35584         * modules/linkat-tests (Files): Likewise.
35585         * modules/linked-list-tests (Files): Likewise.
35586         * modules/linkedhash-list-tests (Files): Likewise.
35587         * modules/localename-tests (Files): Likewise.
35588         * modules/lseek-tests (Files): Likewise.
35589         * modules/lstat-tests (Files): Likewise.
35590         * modules/mbmemcasecmp-tests (Files): Likewise.
35591         * modules/mbmemcasecoll-tests (Files): Likewise.
35592         * modules/mbrtowc-tests (Files): Likewise.
35593         * modules/mbscasecmp-tests (Files): Likewise.
35594         * modules/mbscasestr-tests (Files): Likewise.
35595         * modules/mbschr-tests (Files): Likewise.
35596         * modules/mbscspn-tests (Files): Likewise.
35597         * modules/mbsinit-tests (Files): Likewise.
35598         * modules/mbsncasecmp-tests (Files): Likewise.
35599         * modules/mbsnrtowcs-tests (Files): Likewise.
35600         * modules/mbspbrk-tests (Files): Likewise.
35601         * modules/mbspcasecmp-tests (Files): Likewise.
35602         * modules/mbsrchr-tests (Files): Likewise.
35603         * modules/mbsrtowcs-tests (Files): Likewise.
35604         * modules/mbsspn-tests (Files): Likewise.
35605         * modules/mbsstr-tests (Files): Likewise.
35606         * modules/memchr-tests (Files): Likewise.
35607         * modules/memchr2-tests (Files): Likewise.
35608         * modules/memcmp-tests (Files): Likewise.
35609         * modules/memmem-tests (Files): Likewise.
35610         * modules/memrchr-tests (Files): Likewise.
35611         * modules/mkdir-tests (Files): Likewise.
35612         * modules/mkfifo-tests (Files): Likewise.
35613         * modules/mkfifoat-tests (Files): Likewise.
35614         * modules/mknod-tests (Files): Likewise.
35615         * modules/nanosleep-tests (Files): Likewise.
35616         * modules/nl_langinfo-tests (Files): Likewise.
35617         * modules/obstack-printf-tests (Files): Likewise.
35618         * modules/open-tests (Files): Likewise.
35619         * modules/openat-tests (Files): Likewise.
35620         * modules/pipe-filter-gi-tests (Files): Likewise.
35621         * modules/pipe-filter-ii-tests (Files): Likewise.
35622         * modules/pipe2-tests (Files): Likewise.
35623         * modules/popen-safer-tests (Files): Likewise.
35624         * modules/popen-tests (Files): Likewise.
35625         * modules/posixtm-tests (Files): Likewise.
35626         * modules/pread-tests (Files): Likewise.
35627         * modules/printf-frexp-tests (Files): Likewise.
35628         * modules/printf-frexpl-tests (Files): Likewise.
35629         * modules/printf-posix-tests (Files): Likewise.
35630         * modules/priv-set-tests (Files): Likewise.
35631         * modules/quotearg-tests (Files): Likewise.
35632         * modules/random_r-tests (Files): Likewise.
35633         * modules/rawmemchr-tests (Files): Likewise.
35634         * modules/rbtree-list-tests (Files): Likewise.
35635         * modules/rbtree-oset-tests (Files): Likewise.
35636         * modules/rbtreehash-list-tests (Files): Likewise.
35637         * modules/readlink-tests (Files): Likewise.
35638         * modules/remove-tests (Files): Likewise.
35639         * modules/rename-tests (Files): Likewise.
35640         * modules/renameat-tests (Files): Likewise.
35641         * modules/rmdir-tests (Files): Likewise.
35642         * modules/round-tests (Files): Likewise.
35643         * modules/roundf-tests (Files): Likewise.
35644         * modules/roundl-tests (Files): Likewise.
35645         * modules/safe-alloc-tests (Files): Likewise.
35646         * modules/setenv-tests (Files): Likewise.
35647         * modules/sigaction-tests (Files): Likewise.
35648         * modules/signbit-tests (Files): Likewise.
35649         * modules/sleep-tests (Files): Likewise.
35650         * modules/snprintf-posix-tests (Files): Likewise.
35651         * modules/snprintf-tests (Files): Likewise.
35652         * modules/sprintf-posix-tests (Files): Likewise.
35653         * modules/stat-tests (Files): Likewise.
35654         * modules/stat-time-tests (Files): Likewise.
35655         * modules/strcasestr-tests (Files): Likewise.
35656         * modules/strchrnul-tests (Files): Likewise.
35657         * modules/strerror-tests (Files): Likewise.
35658         * modules/striconv-tests (Files): Likewise.
35659         * modules/striconveh-tests (Files): Likewise.
35660         * modules/striconveha-tests (Files): Likewise.
35661         * modules/strsignal-tests (Files): Likewise.
35662         * modules/strstr-tests (Files): Likewise.
35663         * modules/strtod-tests (Files): Likewise.
35664         * modules/strverscmp-tests (Files): Likewise.
35665         * modules/symlink-tests (Files): Likewise.
35666         * modules/symlinkat-tests (Files): Likewise.
35667         * modules/trunc-tests (Files): Likewise.
35668         * modules/truncf-tests (Files): Likewise.
35669         * modules/truncl-tests (Files): Likewise.
35670         * modules/uname-tests (Files): Likewise.
35671         * modules/unicase/cased-tests (Files): Likewise.
35672         * modules/unicase/ignorable-tests (Files): Likewise.
35673         * modules/unicase/locale-language-tests (Files): Likewise.
35674         * modules/unicase/tolower-tests (Files): Likewise.
35675         * modules/unicase/totitle-tests (Files): Likewise.
35676         * modules/unicase/toupper-tests (Files): Likewise.
35677         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35678         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35679         * modules/unicase/u8-casefold-tests (Files): Likewise.
35680         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35681         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35682         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35683         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35684         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35685         * modules/unicase/u8-tolower-tests (Files): Likewise.
35686         * modules/unicase/u8-totitle-tests (Files): Likewise.
35687         * modules/unicase/u8-toupper-tests (Files): Likewise.
35688         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35689         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35690         * modules/unicase/u16-casefold-tests (Files): Likewise.
35691         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35692         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35693         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35694         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35695         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35696         * modules/unicase/u16-tolower-tests (Files): Likewise.
35697         * modules/unicase/u16-totitle-tests (Files): Likewise.
35698         * modules/unicase/u16-toupper-tests (Files): Likewise.
35699         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35700         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35701         * modules/unicase/u32-casefold-tests (Files): Likewise.
35702         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35703         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35704         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35705         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35706         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35707         * modules/unicase/u32-tolower-tests (Files): Likewise.
35708         * modules/unicase/u32-totitle-tests (Files): Likewise.
35709         * modules/unicase/u32-toupper-tests (Files): Likewise.
35710         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35711         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35712         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35713         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35714         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35715         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35716         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35717         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35718         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35719         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35720         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35721         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35722         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35723         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35724         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35725         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35726         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35727         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35728         * modules/unictype/block-list-tests (Files): Likewise.
35729         * modules/unictype/block-of-tests (Files): Likewise.
35730         * modules/unictype/block-test-tests (Files): Likewise.
35731         * modules/unictype/category-C-tests (Files): Likewise.
35732         * modules/unictype/category-Cc-tests (Files): Likewise.
35733         * modules/unictype/category-Cf-tests (Files): Likewise.
35734         * modules/unictype/category-Cn-tests (Files): Likewise.
35735         * modules/unictype/category-Co-tests (Files): Likewise.
35736         * modules/unictype/category-Cs-tests (Files): Likewise.
35737         * modules/unictype/category-L-tests (Files): Likewise.
35738         * modules/unictype/category-Ll-tests (Files): Likewise.
35739         * modules/unictype/category-Lm-tests (Files): Likewise.
35740         * modules/unictype/category-Lo-tests (Files): Likewise.
35741         * modules/unictype/category-Lt-tests (Files): Likewise.
35742         * modules/unictype/category-Lu-tests (Files): Likewise.
35743         * modules/unictype/category-M-tests (Files): Likewise.
35744         * modules/unictype/category-Mc-tests (Files): Likewise.
35745         * modules/unictype/category-Me-tests (Files): Likewise.
35746         * modules/unictype/category-Mn-tests (Files): Likewise.
35747         * modules/unictype/category-N-tests (Files): Likewise.
35748         * modules/unictype/category-Nd-tests (Files): Likewise.
35749         * modules/unictype/category-Nl-tests (Files): Likewise.
35750         * modules/unictype/category-No-tests (Files): Likewise.
35751         * modules/unictype/category-P-tests (Files): Likewise.
35752         * modules/unictype/category-Pc-tests (Files): Likewise.
35753         * modules/unictype/category-Pd-tests (Files): Likewise.
35754         * modules/unictype/category-Pe-tests (Files): Likewise.
35755         * modules/unictype/category-Pf-tests (Files): Likewise.
35756         * modules/unictype/category-Pi-tests (Files): Likewise.
35757         * modules/unictype/category-Po-tests (Files): Likewise.
35758         * modules/unictype/category-Ps-tests (Files): Likewise.
35759         * modules/unictype/category-S-tests (Files): Likewise.
35760         * modules/unictype/category-Sc-tests (Files): Likewise.
35761         * modules/unictype/category-Sk-tests (Files): Likewise.
35762         * modules/unictype/category-Sm-tests (Files): Likewise.
35763         * modules/unictype/category-So-tests (Files): Likewise.
35764         * modules/unictype/category-Z-tests (Files): Likewise.
35765         * modules/unictype/category-Zl-tests (Files): Likewise.
35766         * modules/unictype/category-Zp-tests (Files): Likewise.
35767         * modules/unictype/category-Zs-tests (Files): Likewise.
35768         * modules/unictype/category-and-not-tests (Files): Likewise.
35769         * modules/unictype/category-and-tests (Files): Likewise.
35770         * modules/unictype/category-byname-tests (Files): Likewise.
35771         * modules/unictype/category-name-tests (Files): Likewise.
35772         * modules/unictype/category-none-tests (Files): Likewise.
35773         * modules/unictype/category-of-tests (Files): Likewise.
35774         * modules/unictype/category-or-tests (Files): Likewise.
35775         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35776         * modules/unictype/combining-class-tests (Files): Likewise.
35777         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35778         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35779         * modules/unictype/ctype-blank-tests (Files): Likewise.
35780         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35781         * modules/unictype/ctype-digit-tests (Files): Likewise.
35782         * modules/unictype/ctype-graph-tests (Files): Likewise.
35783         * modules/unictype/ctype-lower-tests (Files): Likewise.
35784         * modules/unictype/ctype-print-tests (Files): Likewise.
35785         * modules/unictype/ctype-punct-tests (Files): Likewise.
35786         * modules/unictype/ctype-space-tests (Files): Likewise.
35787         * modules/unictype/ctype-upper-tests (Files): Likewise.
35788         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35789         * modules/unictype/decimal-digit-tests (Files): Likewise.
35790         * modules/unictype/digit-tests (Files): Likewise.
35791         * modules/unictype/mirror-tests (Files): Likewise.
35792         * modules/unictype/numeric-tests (Files): Likewise.
35793         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35794         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35795         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35796         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35797         Likewise.
35798         * modules/unictype/property-bidi-block-separator-tests (Files):
35799         Likewise.
35800         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35801         Likewise.
35802         * modules/unictype/property-bidi-common-separator-tests (Files):
35803         Likewise.
35804         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35805         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35806         Likewise.
35807         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35808         Likewise.
35809         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35810         Likewise.
35811         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35812         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35813         Likewise.
35814         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35815         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35816         Likewise.
35817         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35818         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35819         * modules/unictype/property-bidi-segment-separator-tests (Files):
35820         Likewise.
35821         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35822         * modules/unictype/property-byname-tests (Files): Likewise.
35823         * modules/unictype/property-combining-tests (Files): Likewise.
35824         * modules/unictype/property-composite-tests (Files): Likewise.
35825         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35826         * modules/unictype/property-dash-tests (Files): Likewise.
35827         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35828         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35829         Likewise.
35830         * modules/unictype/property-deprecated-tests (Files): Likewise.
35831         * modules/unictype/property-diacritic-tests (Files): Likewise.
35832         * modules/unictype/property-extender-tests (Files): Likewise.
35833         * modules/unictype/property-format-control-tests (Files): Likewise.
35834         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35835         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35836         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35837         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35838         * modules/unictype/property-hyphen-tests (Files): Likewise.
35839         * modules/unictype/property-id-continue-tests (Files): Likewise.
35840         * modules/unictype/property-id-start-tests (Files): Likewise.
35841         * modules/unictype/property-ideographic-tests (Files): Likewise.
35842         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35843         * modules/unictype/property-ids-trinary-operator-tests (Files):
35844         Likewise.
35845         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35846         * modules/unictype/property-iso-control-tests (Files): Likewise.
35847         * modules/unictype/property-join-control-tests (Files): Likewise.
35848         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35849         * modules/unictype/property-line-separator-tests (Files): Likewise.
35850         * modules/unictype/property-logical-order-exception-tests (Files):
35851         Likewise.
35852         * modules/unictype/property-lowercase-tests (Files): Likewise.
35853         * modules/unictype/property-math-tests (Files): Likewise.
35854         * modules/unictype/property-non-break-tests (Files): Likewise.
35855         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35856         * modules/unictype/property-numeric-tests (Files): Likewise.
35857         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35858         * modules/unictype/property-other-default-ignorable-code-point-tests
35859         (Files): Likewise.
35860         * modules/unictype/property-other-grapheme-extend-tests (Files):
35861         Likewise.
35862         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35863         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35864         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35865         * modules/unictype/property-other-math-tests (Files): Likewise.
35866         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35867         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35868         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35869         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35870         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35871         * modules/unictype/property-private-use-tests (Files): Likewise.
35872         * modules/unictype/property-punctuation-tests (Files): Likewise.
35873         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35874         * modules/unictype/property-radical-tests (Files): Likewise.
35875         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35876         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35877         * modules/unictype/property-space-tests (Files): Likewise.
35878         * modules/unictype/property-terminal-punctuation-tests (Files):
35879         Likewise.
35880         * modules/unictype/property-test-tests (Files): Likewise.
35881         * modules/unictype/property-titlecase-tests (Files): Likewise.
35882         * modules/unictype/property-unassigned-code-value-tests (Files):
35883         Likewise.
35884         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35885         * modules/unictype/property-uppercase-tests (Files): Likewise.
35886         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35887         * modules/unictype/property-white-space-tests (Files): Likewise.
35888         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35889         * modules/unictype/property-xid-start-tests (Files): Likewise.
35890         * modules/unictype/property-zero-width-tests (Files): Likewise.
35891         * modules/unictype/scripts-tests (Files): Likewise.
35892         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35893         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35894         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35895         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35896         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35897         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35898         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35899         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35900         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35901         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35902         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35903         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35904         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35905         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35906         * modules/uninorm/composition-tests (Files): Likewise.
35907         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35908         * modules/uninorm/decomposition-tests (Files): Likewise.
35909         * modules/uninorm/filter-tests (Files): Likewise.
35910         * modules/uninorm/nfc-tests (Files): Likewise.
35911         * modules/uninorm/nfd-tests (Files): Likewise.
35912         * modules/uninorm/nfkc-tests (Files): Likewise.
35913         * modules/uninorm/nfkd-tests (Files): Likewise.
35914         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35915         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35916         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35917         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35918         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35919         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35920         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35921         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35922         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35923         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35924         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35925         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35926         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35927         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35928         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35929         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35930         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35931         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35932         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35933         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35934         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35935         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35936         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35937         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35938         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35939         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35940         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35941         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35942         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35943         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35944         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35945         * modules/uniwidth/u8-width-tests (Files): Likewise.
35946         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35947         * modules/uniwidth/u16-width-tests (Files): Likewise.
35948         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35949         * modules/uniwidth/u32-width-tests (Files): Likewise.
35950         * modules/uniwidth/width-tests (Files): Likewise.
35951         * modules/unlink-tests (Files): Likewise.
35952         * modules/unsetenv-tests (Files): Likewise.
35953         * modules/usleep-tests (Files): Likewise.
35954         * modules/utimens-tests (Files): Likewise.
35955         * modules/utimensat-tests (Files): Likewise.
35956         * modules/vasnprintf-posix-tests (Files): Likewise.
35957         * modules/vasnprintf-tests (Files): Likewise.
35958         * modules/vasprintf-posix-tests (Files): Likewise.
35959         * modules/vasprintf-tests (Files): Likewise.
35960         * modules/vdprintf-posix-tests (Files): Likewise.
35961         * modules/vfprintf-posix-tests (Files): Likewise.
35962         * modules/vprintf-posix-tests (Files): Likewise.
35963         * modules/vsnprintf-posix-tests (Files): Likewise.
35964         * modules/vsnprintf-tests (Files): Likewise.
35965         * modules/vsprintf-posix-tests (Files): Likewise.
35966         * modules/wcrtomb-tests (Files): Likewise.
35967         * modules/wcsnrtombs-tests (Files): Likewise.
35968         * modules/wcsrtombs-tests (Files): Likewise.
35969         * modules/wctype-tests (Files): Likewise.
35970         * modules/wcwidth-tests (Files): Likewise.
35971         * modules/xmemdup0-tests (Files): Likewise.
35972         * modules/xprintf-posix-tests (Files): Likewise.
35973         * modules/xvasprintf-tests (Files): Likewise.
35974
35975 2009-12-24  Eric Blake  <ebb9@byu.net>
35976
35977         test-nanosleep: fix typo
35978         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35979         patch.
35980         Reported by Bruno Haible.
35981
35982 2009-12-24  Bruno Haible  <bruno@clisp.org>
35983
35984         Reduce namespace pollution on glibc systems.
35985         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35986         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35987         systems.
35988         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35989         <getopt.h> on glibc systems.
35990         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35991         systems.
35992         * lib/fcntl.c: Include <unistd.h> here instead.
35993
35994 2009-12-24  Bruno Haible  <bruno@clisp.org>
35995
35996         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35997
35998 2009-12-24  Eric Blake  <ebb9@byu.net>
35999
36000         tests: add signature checks
36001         * tests/signature.h (SIGNATURE_CHECK): New file.
36002         * modules/atexit-tests (Files): Use it.
36003         * modules/btowc-tests (Files): Likewise.
36004         * modules/canonicalize-lgpl-tests (Files): Likewise.
36005         * modules/ceilf-tests (Files): Likewise.
36006         * modules/ceill-tests (Files): Likewise.
36007         * modules/chown-tests (Files): Likewise.
36008         * modules/dprintf-posix-tests (Files): Likewise.
36009         * modules/dup2-tests (Files): Likewise.
36010         * modules/dup3-tests (Files): Likewise.
36011         * modules/duplocale-tests (Files): Likewise.
36012         * modules/fchdir-tests (Files): Likewise.
36013         * modules/fcntl-tests (Files): Likewise.
36014         * modules/fdopendir-tests (Files): Likewise.
36015         * modules/fflush-tests (Files): Likewise.
36016         * modules/flock-tests (Files): Likewise.
36017         * modules/floorf-tests (Files): Likewise.
36018         * modules/floorl-tests (Files): Likewise.
36019         * modules/fnmatch-tests (Files): Likewise.
36020         * modules/fopen-tests (Files): Likewise.
36021         * modules/fprintf-posix-tests (Files): Likewise.
36022         * modules/freopen-tests (Files): Likewise.
36023         * modules/frexp-nolibm-tests (Files): Likewise.
36024         * modules/frexp-tests (Files): Likewise.
36025         * modules/frexpl-nolibm-tests (Files): Likewise.
36026         * modules/frexpl-tests (Files): Likewise.
36027         * modules/fseek-tests (Files): Likewise.
36028         * modules/fseeko-tests (Files): Likewise.
36029         * modules/fsync-tests (Files): Likewise.
36030         * modules/ftell-tests (Files): Likewise.
36031         * modules/ftello-tests (Files): Likewise.
36032         * modules/futimens-tests (Files): Likewise.
36033         * modules/getaddrinfo-tests (Files): Likewise.
36034         * modules/getcwd-tests (Files): Likewise.
36035         * modules/getdelim-tests (Files): Likewise.
36036         * modules/getdtablesize-tests (Files): Likewise.
36037         * modules/getgroups-tests (Files): Likewise.
36038         * modules/gethostname-tests (Files): Likewise.
36039         * modules/getline-tests (Files): Likewise.
36040         * modules/getopt-posix-tests (Files): Likewise.
36041         * modules/gettimeofday-tests (Files): Likewise.
36042         * modules/glob-tests (Files): Likewise.
36043         * modules/iconv-tests (Files): Likewise.
36044         * modules/inet_ntop-tests (Files): Likewise.
36045         * modules/inet_pton-tests (Files): Likewise.
36046         * modules/isblank-tests (Files): Likewise.
36047         * modules/lchown-tests (Files): Likewise.
36048         * modules/ldexpl-tests (Files): Likewise.
36049         * modules/link-tests (Files): Likewise.
36050         * modules/linkat-tests (Files): Likewise.
36051         * modules/lseek-tests (Files): Likewise.
36052         * modules/lstat-tests (Files): Likewise.
36053         * modules/mbrtowc-tests (Files): Likewise.
36054         * modules/mbsinit-tests (Files): Likewise.
36055         * modules/mbsnrtowcs-tests (Files): Likewise.
36056         * modules/mbsrtowcs-tests (Files): Likewise.
36057         * modules/memchr-tests (Files): Likewise.
36058         * modules/memcmp-tests (Files): Likewise.
36059         * modules/memmem-tests (Files): Likewise.
36060         * modules/memrchr-tests (Files): Likewise.
36061         * modules/mkdir-tests (Files): Likewise.
36062         * modules/mkfifo-tests (Files): Likewise.
36063         * modules/mkfifoat-tests (Files): Likewise.
36064         * modules/mknod-tests (Files): Likewise.
36065         * modules/nanosleep-tests (Files): Likewise.
36066         * modules/nl_langinfo-tests (Files): Likewise.
36067         * modules/obstack-printf-tests (Files): Likewise.
36068         * modules/open-tests (Files): Likewise.
36069         * modules/openat-tests (Files): Likewise.
36070         * modules/perror-tests (Files): Likewise.
36071         * modules/pipe2-tests (Files): Likewise.
36072         * modules/poll-tests (Files): Likewise.
36073         * modules/popen-tests (Files): Likewise.
36074         * modules/posix_spawn-tests (Files): Likewise.
36075         * modules/posix_spawnp-tests (Files): Likewise.
36076         * modules/pread-tests (Files): Likewise.
36077         * modules/printf-posix-tests (Files): Likewise.
36078         * modules/pty-tests (Files): Likewise.
36079         * modules/random_r-tests (Files): Likewise.
36080         * modules/rawmemchr-tests (Files): Likewise.
36081         * modules/readlink-tests (Files): Likewise.
36082         * modules/remove-tests (Files): Likewise.
36083         * modules/rename-tests (Files): Likewise.
36084         * modules/renameat-tests (Files): Likewise.
36085         * modules/rmdir-tests (Files): Likewise.
36086         * modules/round-tests (Files): Likewise.
36087         * modules/roundf-tests (Files): Likewise.
36088         * modules/roundl-tests (Files): Likewise.
36089         * modules/select-tests (Files): Likewise.
36090         * modules/setenv-tests (Files): Likewise.
36091         * modules/sigaction-tests (Files): Likewise.
36092         * modules/sleep-tests (Files): Likewise.
36093         * modules/snprintf-posix-tests (Files): Likewise.
36094         * modules/snprintf-tests (Files): Likewise.
36095         * modules/sprintf-posix-tests (Files): Likewise.
36096         * modules/stat-tests (Files): Likewise.
36097         * modules/strcasestr-tests (Files): Likewise.
36098         * modules/strchrnul-tests (Files): Likewise.
36099         * modules/strerror-tests (Files): Likewise.
36100         * modules/strsignal-tests (Files): Likewise.
36101         * modules/strstr-tests (Files): Likewise.
36102         * modules/strtod-tests (Files): Likewise.
36103         * modules/strverscmp-tests (Files): Likewise.
36104         * modules/symlink-tests (Files): Likewise.
36105         * modules/symlinkat-tests (Files): Likewise.
36106         * modules/times-tests (Files): Likewise.
36107         * modules/trunc-tests (Files): Likewise.
36108         * modules/truncf-tests (Files): Likewise.
36109         * modules/truncl-tests (Files): Likewise.
36110         * modules/tsearch-tests (Files): Likewise.
36111         * modules/uname-tests (Files): Likewise.
36112         * modules/unlink-tests (Files): Likewise.
36113         * modules/unsetenv-tests (Files): Likewise.
36114         * modules/usleep-tests (Files): Likewise.
36115         * modules/utimensat-tests (Files): Likewise.
36116         * modules/vasprintf-tests (Files): Likewise.
36117         * modules/vdprintf-posix-tests (Files): Likewise.
36118         * modules/vfprintf-posix-tests (Files): Likewise.
36119         * modules/vprintf-posix-tests (Files): Likewise.
36120         * modules/vsnprintf-posix-tests (Files): Likewise.
36121         * modules/vsnprintf-tests (Files): Likewise.
36122         * modules/vsprintf-posix-tests (Files): Likewise.
36123         * modules/wcrtomb-tests (Files): Likewise.
36124         * modules/wcsnrtombs-tests (Files): Likewise.
36125         * modules/wcsrtombs-tests (Files): Likewise.
36126         * modules/wcwidth-tests (Files): Likewise.
36127         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36128         * tests/test-isinf.c (isinf): Likewise.
36129         * tests/test-isnan.c (isnan): Likewise.
36130         * tests/test-signbit.c (signbit): Likewise.
36131         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36132         declaration, either as macro or with correct signature.
36133         (select): Ensure function under test is declared with correct
36134         signature in correct header.
36135         * tests/test-atexit.c (atexit): Likewise.
36136         * tests/test-btowc.c (btowc): Likewise.
36137         * tests/test-canonicalize-lgpl.c (realpath)
36138         (canonicalize_file_name): Likewise.
36139         * tests/test-ceilf1.c (ceilf): Likewise.
36140         * tests/test-ceill.c (ceill): Likewise.
36141         * tests/test-chown.c (chown): Likewise.
36142         * tests/test-dprintf-posix.c (dprintf): Likewise.
36143         * tests/test-dup2.c (dup2): Likewise.
36144         * tests/test-dup3.c (dup3): Likewise.
36145         * tests/test-duplocale.c (duplocale): Likewise.
36146         * tests/test-fchdir.c (fchdir): Likewise.
36147         * tests/test-fchownat.c (fchownat): Likewise.
36148         * tests/test-fcntl.c (fcntl): Likewise.
36149         * tests/test-fdopendir.c (fdopendir): Likewise.
36150         * tests/test-fflush.c (fflush): Likewise.
36151         * tests/test-flock.c (flock): Likewise.
36152         * tests/test-floorf1.c (floorf): Likewise.
36153         * tests/test-floorl.c (floorl): Likewise.
36154         * tests/test-fnmatch.c (fnmatch): Likewise.
36155         * tests/test-fopen.c (fopen): Likewise.
36156         * tests/test-fprintf-posix.c (fprintf): Likewise.
36157         * tests/test-freopen.c (freopen): Likewise.
36158         * tests/test-frexp.c (frexp): Likewise.
36159         * tests/test-frexpl.c (frexpl): Likewise.
36160         * tests/test-fseek.c (fseek): Likewise.
36161         * tests/test-fseeko.c (fseeko): Likewise.
36162         * tests/test-fstatat.c (fstatat): Likewise.
36163         * tests/test-fsync.c (fsync): Likewise.
36164         * tests/test-ftell.c (ftell): Likewise.
36165         * tests/test-ftello.c (ftello): Likewise.
36166         * tests/test-futimens.c (futimens): Likewise.
36167         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36168         (gai_strerror): Likewise.
36169         * tests/test-getcwd.c (getcwd): Likewise.
36170         * tests/test-getdelim.c (getdelim): Likewise.
36171         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36172         * tests/test-getgroups.c (getgroups): Likewise.
36173         * tests/test-gethostname.c (gethostname): Likewise.
36174         * tests/test-getline.c (getline): Likewise.
36175         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36176         Likewise.
36177         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36178         * tests/test-glob.c (glob, globfree): Likewise.
36179         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36180         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36181         * tests/test-inet_pton.c (inet_pton): Likewise.
36182         * tests/test-isblank.c (isblank): Likewise.
36183         * tests/test-lchown.c (lchown): Likewise.
36184         * tests/test-ldexpl.c (ldexpl): Likewise.
36185         * tests/test-link.c (link): Likewise.
36186         * tests/test-linkat.c (linkat): Likewise.
36187         * tests/test-lseek.c (lseek): Likewise.
36188         * tests/test-lstat.c (lstat): Likewise.
36189         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36190         * tests/test-mbsinit.c (mbsinit): Likewise.
36191         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36192         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36193         * tests/test-memchr.c (memchr): Likewise.
36194         * tests/test-memcmp.c (memcmp): Likewise.
36195         * tests/test-memmem.c (memmem): Likewise.
36196         * tests/test-memrchr.c (memrchr): Likewise.
36197         * tests/test-mkdir.c (mkdir): Likewise.
36198         * tests/test-mkdirat.c (mkdirat): Likewise.
36199         * tests/test-mkfifo.c (mkfifo): Likewise.
36200         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36201         * tests/test-mknod.c (mknod): Likewise.
36202         * tests/test-nanosleep.c (nanosleep): Likewise.
36203         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36204         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36205         Likewise.
36206         * tests/test-open.c (open): Likewise.
36207         * tests/test-openat.c (openat): Likewise.
36208         * tests/test-perror.c (perror): Likewise.
36209         * tests/test-pipe2.c (pipe2): Likewise.
36210         * tests/test-poll.c (poll): Likewise.
36211         * tests/test-popen.c (popen, pclose): Likewise.
36212         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36213         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36214         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36215         (posix_spawn_file_actions_destroy)
36216         (posix_spawn_file_actions_addclose)
36217         (posix_spawn_file_actions_addopen)
36218         (posix_spawn_file_actions_adddup2): Likewise.
36219         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36220         * tests/test-pread.c (pread): Likewise.
36221         * tests/test-printf-posix.c (printf): Likewise.
36222         * tests/test-pty.c (openpty, forkpty): Likewise.
36223         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36224         (random_r): Likewise.
36225         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36226         * tests/test-readlink.c (readlink): Likewise.
36227         * tests/test-remove.c (remove): Likewise.
36228         * tests/test-rename.c (rename): Likewise.
36229         * tests/test-renameat.c (renameat): Likewise.
36230         * tests/test-rmdir.c (rmdir): Likewise.
36231         * tests/test-round1.c (round): Likewise.
36232         * tests/test-roundf1.c (roundf): Likewise.
36233         * tests/test-roundl.c (roundl): Likewise.
36234         * tests/test-setenv.c (setenv): Likewise.
36235         * tests/test-sigaction.c (sigaction): Likewise.
36236         * tests/test-sleep.c (sleep): Likewise.
36237         * tests/test-snprintf.c (snprintf): Likewise.
36238         * tests/test-sprintf-posix.c (sprintf): Likewise.
36239         * tests/test-stat.c (stat): Likewise.
36240         * tests/test-stpncpy.c (stpncpy): Likewise.
36241         * tests/test-strcasestr.c (strcasestr): Likewise.
36242         * tests/test-strchrnul.c (strchrnul): Likewise.
36243         * tests/test-strerror.c (strerror): Likewise.
36244         * tests/test-strsignal.c (strsignal): Likewise.
36245         * tests/test-strstr.c (strstr): Likewise.
36246         * tests/test-strtod.c (strtod): Likewise.
36247         * tests/test-strverscmp.c (strverscmp): Likewise.
36248         * tests/test-symlink.c (symlink): Likewise.
36249         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36250         * tests/test-times.c (times): Likewise.
36251         * tests/test-trunc1.c (trunc): Likewise.
36252         * tests/test-truncf1.c (truncf): Likewise.
36253         * tests/test-truncl.c (truncl): Likewise.
36254         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36255         Likewise.
36256         * tests/test-uname.c (uname): Likewise.
36257         * tests/test-unlink.c (unlink): Likewise.
36258         * tests/test-unlinkat.c (unlinkat): Likewise.
36259         * tests/test-unsetenv.c (unsetenv): Likewise.
36260         * tests/test-usleep.c (usleep): Likewise.
36261         * tests/test-utimensat.c (utimensat): Likewise.
36262         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36263         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36264         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36265         * tests/test-vprintf-posix.c (vprintf): Likewise.
36266         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36267         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36268         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36269         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36270         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36271         * tests/test-wcwidth.c (wcwidth): Likewise.
36272
36273         build: pull in conditional headers during GNULIB_POSIXCHECK
36274         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36275         definitions from any conditionally-included headers.
36276         * lib/stdlib.in.h (includes): Likewise.
36277         * lib/unistd.in.h (includes): Likewise.
36278
36279 2009-12-24  Bruno Haible  <bruno@clisp.org>
36280
36281         * tests/test-argv-iter.c: Include header file being tested immediately
36282         after config.h.
36283         * tests/test-base64.c: Likewise.
36284         * tests/test-flock.c: Likewise.
36285         * tests/test-fsync.c: Likewise.
36286         * tests/test-getdate.c: Likewise.
36287         * tests/test-getndelim2.c: Likewise.
36288         * tests/test-isfinite.c: Likewise.
36289         * tests/test-isinf.c: Likewise.
36290         * tests/test-strerror.c: Likewise.
36291         * tests/test-strsignal.c: Likewise.
36292
36293 2009-12-23  Eric Blake  <ebb9@byu.net>
36294
36295         unistd: work around cygwin bug
36296         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36297         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36298         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36299
36300 2009-12-23  Bruno Haible  <bruno@clisp.org>
36301
36302         localename: More tests.
36303         * tests/test-localename.c (SIZEOF): New macro.
36304         (categories): New variable.
36305         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36306         test_locale_name_default): Add test w.r.t. thread locale.
36307         (test_locale_name_thread): New function.
36308         (main): Invoke it.
36309
36310         localename: Make aware of thread locale.
36311         * lib/localename.h (gl_locale_name_thread): New declaration.
36312         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36313         behaviour with respect to thread locale.
36314         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36315         <langinfo.h>, glthread/lock.h.
36316         (SIZE_BITS): New macro.
36317         (string_hash): New function.
36318         (struct hash_node): New type.
36319         (HASH_TABLE_SIZE): New macro.
36320         (struniq_hash_table, struniq_lock): New variables.
36321         (struniq): New function.
36322         (gl_locale_name_thread): New function.
36323         (gl_locale_name): Invoke it.
36324         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36325         * modules/localename (Depends-on): Add lock.
36326         Reported by Mike Gran <spk121@yahoo.com>.
36327
36328 2009-12-23  Eric Blake  <ebb9@byu.net>
36329
36330         va-args: new module
36331         * modules/va-args: New file.
36332         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36333         * MODULES.html.sh (Core language properties): Mention it.
36334
36335         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36336         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36337         named alias for __attribute__((__unused__)).
36338         * lib/chown.c: Update client.
36339         * lib/fchmodat.c: Likewise.
36340         * lib/fts.c: Likewise.
36341         * lib/getdate.y: Likewise.
36342         * lib/getgroups.c: Likewise.
36343         * lib/getopt.c: Likewise.
36344         * lib/getugroups.c: Likewise.
36345         * lib/mkdir.c: Likewise.
36346         * lib/mkfifo.c: Likewise.
36347         * lib/mkfifoat.c: Likewise.
36348         * lib/mknod.c: Likewise.
36349         * lib/mknodat.c: Likewise.
36350         * lib/readlink.c: Likewise.
36351         * lib/se-context.in.h: Likewise.
36352         * lib/se-selinux.in.h: Likewise.
36353         * lib/sockets.c: Likewise.
36354         * lib/symlink.c: Likewise.
36355         * lib/symlinkat.c: Likewise.
36356         * lib/unicodeio.c: Likewise.
36357         * lib/unistr.h: Likewise.
36358         * tests/test-areadlink.c: Likewise.
36359         * tests/test-areadlinkat.c: Likewise.
36360         * tests/test-filenamecat.c: Likewise.
36361         * tests/test-fseeko.c: Likewise.
36362         * tests/test-ftello.c: Likewise.
36363         * tests/test-getdate.c: Likewise.
36364         * tests/test-getgroups.c: Likewise.
36365         * tests/test-gethostname.c: Likewise.
36366         * tests/test-quotearg.c: Likewise.
36367         * tests/test-version-etc.c: Likewise.
36368         * tests/test-xalloc-die.c: Likewise.
36369         * tests/test-xfprintf-posix.c: Likewise.
36370         * tests/test-xprintf-posix.c: Likewise.
36371         * tests/test-xvasprintf.c: Likewise.
36372
36373         tests: avoid compiler warnings
36374         * tests/test-fcntl.c (main): Delete unused parameters.
36375         * tests/test-freopen-safer.c (main): Likewise.
36376         * tests/test-xalloc-die.c (main): Mark unused parameters.
36377         * tests/test-fseeko.c (main): Likewise.
36378         * tests/test-ftello.c (main): Likewise.
36379         * tests/test-nanosleep.c (main): Avoid declaration warning.
36380         * tests/test-sleep.c (main): Likewise.
36381         * tests/test-unsetenv.c (main): Silence warning about string
36382         literal.
36383         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36384
36385 2009-12-23  Bruno Haible  <bruno@clisp.org>
36386
36387         * tests/test-localename.c (test_locale_name): New function, extracted
36388         from main. Also test mixed situations.
36389         (test_locale_name_posix, test_locale_name_environ,
36390         test_locale_name_default): New functions.
36391         (main): Invoke them all.
36392         * modules/localename-tests (configure.ac): Test for newlocale.
36393
36394 2009-12-23  Bruno Haible  <bruno@clisp.org>
36395
36396         unistd: Ensure getcwd gets declared before being overridden.
36397         * lib/unistd.in.h: Conditionally include <io.h>.
36398
36399 2009-12-22  Bruno Haible  <bruno@clisp.org>
36400
36401         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36402         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36403         (gl_WCHAR_H): Invoke it.
36404         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36405         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36406         Reported by Karl Berry <karl@freefriends.org>.
36407
36408 2009-12-22  Eric Blake  <ebb9@byu.net>
36409
36410         math, unistd: avoid redundant includes
36411         * lib/math.in.h (isnan): No need to re-include <math.h>.
36412         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36413
36414         getsubopt: work around cygwin bug
36415         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36416         avoid conflicting with system getsubopt.
36417         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36418         bug.
36419
36420         getopt: synchronize from glibc
36421         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36422         parameter order.  Adjust all callers.
36423         (_getopt_internal_r, main): Adjust quoting in error messages.
36424         Drop considerations for outdated POSIX 1003.2 error message.
36425         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36426         callers.
36427         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36428
36429         test-getopt: test stderr behavior
36430         * modules/getopt-posix-tests (Depends-on): Add dup2.
36431         * tests/test-getopt.c (ASSERT): Avoid stderr.
36432         (main): Move stderr to a temporary file.
36433         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36434         Instead, add parameter to inform caller if output occurred.
36435         (test_getopt): Adjust all existing tests to expect silence, and
36436         add new tests of leading ":".
36437         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36438         glibc shortcomings with leading "-:" or "+:" in optstring.
36439         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36440         Likewise.
36441         * doc/posix-functions/getopt.texi (getopt): Likewise.
36442
36443         test-getopt: enhance test
36444         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36445         supports optind=0.
36446         * tests/test-getopt.c (OPTIND_MIN): Move...
36447         * tests/test-getopt.h (OPTIND_MIN): ...here.
36448         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36449         Require that optind=0 works, since modern BSD supports it in
36450         addition to optreset, and since coreutils expects it.
36451         (test_getopt_long_only): New test.
36452         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36453         glibc shortcomings with 'W;', and enforcement of optind=0.
36454         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36455         Likewise.
36456
36457 2009-12-21  Bruno Haible  <bruno@clisp.org>
36458
36459         localename: Improvements for MacOS X and Cygwin.
36460         * lib/localename.h (gl_locale_name_environ): New declaration.
36461         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36462         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36463         (gl_locale_name_posix): Invoke it.
36464         (gl_locale_name_default): Add comments. Use Windows native API also on
36465         Cygwin.
36466
36467 2009-12-21  Bruno Haible  <bruno@clisp.org>
36468
36469         Update list of Win32 locale ids.
36470         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36471         (LANG_SAMI): Renamed from LANG_SAAMI.
36472         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36473         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36474         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36475         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36476         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36477         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36478         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36479         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36480         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36481         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36482         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36483         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36484         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36485         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36486         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36487         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36488         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36489         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36490         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36491         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36492         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36493         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36494         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36495         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36496         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36497         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36498         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36499         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36500         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36501         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36502         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36503         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36504         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36505         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36506         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36507         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36508         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36509         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36510         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36511         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36512         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36513         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36514         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36515         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36516         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36517         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36518         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36519         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36520         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36521         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36522         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36523         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36524         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36525         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36526         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36527         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36528         Add more languages and countries for Sami, Sorbian. Add more countries
36529         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36530         for Pashto. Change country for Syriac, Tswana.
36531
36532 2009-12-21  Eric Blake  <ebb9@byu.net>
36533
36534         test-utimens: avoid spurious failure
36535         * tests/test-chown.h (nap): Factor...
36536         * tests/nap.h: ...into new file.
36537         * tests/test-lchown.h (nap): Avoid duplication.
36538         * tests/test-utimens-common.h (nap): Use shared implementation,
36539         necessary on file systems with 1-second resolution.
36540         * modules/chown-tests (Files): Include new file.
36541         * modules/fdutimensat-tests (Files): Likewise.
36542         * modules/futimens-tests (Files): Likewise.
36543         * modules/lchown-tests (Files): Likewise.
36544         * modules/openat-tests (Files): Likewise.
36545         * modules/utimens-tests (Files): Likewise.
36546         * modules/utimensat-tests (Files): Likewise.
36547
36548 2009-12-19  Eric Blake  <ebb9@byu.net>
36549
36550         futimens, utimensat: work around Linux bug
36551         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36552         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36553         * lib/utimensat.c (rpl_utimensat): Work around it.
36554         * lib/futimens.c (rpl_futimens): Adjust comment.
36555
36556         utimens: work around Linux ctime bug
36557         * lib/utimens.c (detect_ctime_bug): New helper function.
36558         (update_timespec): Differentiate between workaround needed for
36559         this bug vs. what is needed for systems that lack utimensat.
36560         (fdutimens, lutimens): Work around bug.
36561
36562         utimens: check for ctime update
36563         * tests/test-utimens-common.h (check_ctime): Define.
36564         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36565         * tests/test-futimens.h (test_futimens): Likewise.
36566         * tests/test-lutimens.h (test_lutimens): Likewise.
36567         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36568         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36569
36570 2009-12-19  Bruno Haible  <bruno@clisp.org>
36571
36572         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36573         * tests/test-dprintf-posix2.sh: New file.
36574         * tests/test-dprintf-posix2.c: New file.
36575         * modules/dprintf-posix-tests (Files): Add them.
36576         (configure.ac): Check for getrlimit and setrlimit.
36577         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36578
36579 2009-12-19  Bruno Haible  <bruno@clisp.org>
36580
36581         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36582         * tests/test-fprintf-posix3.sh: New file.
36583         * tests/test-fprintf-posix3.c: New file.
36584         * modules/fprintf-posix-tests (Files): Add them.
36585         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36586
36587 2009-12-19  Eric Blake  <ebb9@byu.net>
36588
36589         dirfd: fix prototype
36590         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36591         * lib/dirfd.c (dirfd): Likewise.
36592
36593         canonicalize: reduce memory usage
36594         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36595         allocation to size.
36596         Reported by Solar Designer <solar@openwall.com>.
36597
36598 2009-12-19  Bruno Haible  <bruno@clisp.org>
36599
36600         New module attribute 'Applicability'.
36601         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36602         * gnulib-tool: New option --extract-applicability.
36603         (func_usage): Document it.
36604         (sed_extract_prog): Recognize it.
36605         (func_get_applicability): New function.
36606         (func_import): Generalize handling of 'link-warning' module.
36607         * modules/link-warning (Applicability): New section.
36608         * modules/arg-nonnull (Applicability): New section.
36609         Repoted by Simon Josefsson <simon@josefsson.org>.
36610
36611 2009-12-19  Bruno Haible  <bruno@clisp.org>
36612
36613         fflush: tweak
36614         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36615         * lib/fseeko.c (rpl_fseeko): Likewise.
36616
36617 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36618
36619         * lib/gl_list.h: Fix typo in comment.
36620
36621 2009-12-16  Eric Blake  <ebb9@byu.net>
36622
36623         fcntl: use to simplify other modules
36624         * modules/cloexec (Depends-on): Add fcntl.
36625         * modules/fchdir (Depends-on): Likewise.
36626         * modules/fd-safer-flag (Depends-on): Likewise.
36627         * modules/unistd-safer (Depends-on): Likewise.
36628         * modules/dup3 (configure.ac): Set module indicator.
36629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36630         missing.
36631         * lib/fchdir.c (_gl_register_dup): Fix comment.
36632         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36633         * lib/dup-safer.c (dup_safer): Likewise.
36634         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36635         * lib/dup3.c (dup3): Likewise.
36636         * tests/test-fchdir.c (main): Enhance test.
36637         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36638
36639         fcntl: port portions of fcntl to mingw
36640         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36641         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36642         replacement for mingw.
36643         * modules/fcntl (Description): Update.
36644         (Depends-on): Add dup2.
36645         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36646         * modules/fcntl-h (Makefile.am): Substitute it.
36647         * lib/fcntl.in.h (fcntl): Update declaration.
36648         (F_DUPFD, F_GETFD): New macros, when needed.
36649         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36650         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36651         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36652         we now guarantee.
36653
36654         fcntl: work around cygwin bug in F_DUPFD
36655         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36656         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36657         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36658         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36659         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36660
36661         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36662         * modules/fcntl (Files): List new files.
36663         (configure.ac): Run a test.
36664         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36665         * lib/fcntl.c (rpl_fcntl): Likewise.
36666         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36667         (gl_FCNTL_H): Always replace fcntl.h.
36668         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36669         * lib/fcntl.in.h (fcntl): Declare replacement.
36670         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36671         needed, plus a witness.
36672         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36673         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36674         * tests/test-fcntl.c: New file.
36675         * modules/fcntl-tests: Likewise.
36676
36677         binary-io: avoid potential compilation warning
36678         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36679         directives.
36680
36681         fflush: avoid compilation error on NetBSD
36682         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36683         between off_t and fpos_t, since the latter is sometimes a struct.
36684         * lib/fseeko.c (rpl_fseeko): Likewise.
36685         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36686
36687 2009-12-15  Eric Blake  <ebb9@byu.net>
36688
36689         fcntl-h, stdio, sys_ioctl: fix declarations
36690         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36691         function must not take arguments.
36692         * lib/sys_ioctl.in.h (ioctl): Likewise.
36693         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36694         (open): Add a link warning.
36695
36696 2009-12-15  Jim Meyering  <meyering@redhat.com>
36697
36698         areadlink, areadlink-with-size: relax license to LGPLv2+
36699         * modules/areadlink (License): Relax to LGPLv2+.
36700         * modules/areadlink-with-size (License): Likewise.
36701
36702 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36703             Bruno Haible  <bruno@clisp.org>
36704
36705         *printf: Fix memory leak.
36706         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36707         * lib/vfprintf.c (vfprintf): Likewise.
36708         * lib/dprintf.c (dprintf): Likewise.
36709         * lib/vdprintf.c (vdprintf): Likewise.
36710
36711 2009-12-14  Eric Blake  <ebb9@byu.net>
36712
36713         accept4: adjust module dependencies
36714         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36715
36716         utimens: one more try at avoiding compiler warning
36717         * lib/utimens.c (lutimens): Lower scope of result.
36718
36719 2009-12-13  Bruno Haible  <bruno@clisp.org>
36720
36721         Move the malloc checking from module 'list' to new module 'xlist'.
36722         * modules/xlist: New file.
36723         * lib/gl_xlist.h: New file.
36724         * lib/gl_xlist.c: New file.
36725         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36726         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36727         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36728         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36729         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36730         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36731         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36732         gl_sortedlist_nx_add): New declarations.
36733         (struct gl_list_implementation): Rename and change methods accordingly.
36734         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36735         (gl_list_nx_create): Renamed from gl_list_create.
36736         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36737         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36738         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36739         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36740         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36741         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36742         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36743         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36744         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36745         gl_list_create_empty.
36746         (gl_list_nx_create): Renamed from gl_list_create.
36747         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36748         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36749         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36750         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36751         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36752         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36753         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36754         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36755         * lib/gl_array_list.c: Don't include xalloc.h.
36756         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36757         NULL upon out-of-memory.
36758         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36759         out-of-memory.
36760         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36761         Change return type to 'int'.
36762         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36763         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36764         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36765         upon out-of-memory.
36766         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36767         upon out-of-memory.
36768         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36769         upon out-of-memory.
36770         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36771         upon out-of-memory.
36772         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36773         out-of-memory.
36774         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36775         Update.
36776         (gl_array_list_implementation): Update.
36777         * lib/gl_carray_list.c: Don't include xalloc.h.
36778         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36779         Return NULL upon out-of-memory.
36780         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36781         out-of-memory.
36782         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36783         Change return type to 'int'.
36784         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36785         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36786         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36787         upon out-of-memory.
36788         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36789         upon out-of-memory.
36790         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36791         out-of-memory.
36792         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36793         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36794         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36795         Update.
36796         (gl_carray_list_implementation): Update.
36797         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36798         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36799         gl_linked_create_empty. Return NULL upon out-of-memory.
36800         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36801         out-of-memory.
36802         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36803         Change return type to 'int'. Return -1 upon out-of-memory.
36804         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36805         out-of-memory.
36806         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36807         upon out-of-memory.
36808         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36809         upon out-of-memory.
36810         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36811         NULL upon out-of-memory.
36812         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36813         upon out-of-memory.
36814         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36815         out-of-memory.
36816         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36817         Update.
36818         * lib/gl_linked_list.c: Don't include xalloc.h.
36819         (gl_linked_list_implementation): Update.
36820         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36821         (add_to_bucket): Change return type to 'int'.
36822         (gl_linkedhash_list_implementation): Update.
36823         * lib/gl_anytree_list1.h (free_subtree): New function.
36824         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36825         gl_tree_create_empty. Return NULL upon out-of-memory.
36826         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36827         Change return type to 'int'. Return -1 upon out-of-memory.
36828         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36829         out-of-memory.
36830         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36831         (gl_tree_remove_node): New function, moved here from
36832         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36833         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36834         Update.
36835         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36836         malloc, not xmalloc. Return NULL upon out-of-memory.
36837         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36838         out-of-memory.
36839         (gl_tree_remove_node_from_tree): New function, extracted from
36840         gl_tree_remove_node.
36841         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36842         upon out-of-memory.
36843         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36844         out-of-memory.
36845         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36846         upon out-of-memory.
36847         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36848         upon out-of-memory.
36849         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36850         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36851         not xmalloc. Return NULL upon out-of-memory.
36852         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36853         out-of-memory.
36854         (gl_tree_remove_node_from_tree): New function, extracted from
36855         gl_tree_remove_node.
36856         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36857         upon out-of-memory.
36858         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36859         out-of-memory.
36860         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36861         upon out-of-memory.
36862         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36863         upon out-of-memory.
36864         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36865         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36866         gl_anytree_list1.h before gl_anyavltree_list2.h.
36867         (gl_avltree_list_implementation): Update.
36868         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36869         gl_anytree_list1.h before gl_anyavltree_list2.h.
36870         (gl_rbtree_list_implementation): Update.
36871         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36872         Change return type to 'int'. Return -1 upon out-of-memory. Use
36873         __builtin_expect.
36874         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36875         (gl_avltreehash_list_implementation): Update.
36876         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36877         (gl_rbtreehash_list_implementation): Update.
36878         * modules/array-list (Depends-on): Remove xalloc.
36879         * modules/carray-list (Depends-on): Likewise.
36880         * modules/linked-list (Depends-on): Likewise.
36881         * modules/linkedhash-list (Depends-on): Likewise.
36882         * modules/avltree-list (Depends-on): Likewise.
36883         * modules/rbtree-list (Depends-on): Likewise.
36884         * modules/avltreehash-list (Depends-on): Likewise.
36885         * modules/rbtreehash-list (Depends-on): Likewise.
36886
36887         * modules/xsublist: New file.
36888         * lib/gl_xsublist.h: New file.
36889         * lib/gl_xsublist.c: New file.
36890         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36891         (gl_sublist_nx_create): New declaration.
36892         * lib/gl_sublist.c: Don't include xalloc.h.
36893         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36894         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36895         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36896         Change return type to 'int'. Return -1 upon out-of-memory.
36897         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36898         upon out-of-memory.
36899         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36900         NULL upon out-of-memory.
36901         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36902         upon out-of-memory.
36903         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36904         NULL upon out-of-memory.
36905         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36906         NULL upon out-of-memory.
36907         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36908         upon out-of-memory.
36909         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36910         (gl_sublist_list_implementation): Update.
36911         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36912         upon out-of-memory.
36913         * modules/sublist (Depends-on): Remove xalloc.
36914
36915         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36916         * tests/test-carray_list.c: Likewise.
36917         * tests/test-linked_list.c: Likewise.
36918         * tests/test-linkedhash_list.c: Likewise.
36919         * tests/test-avltree_list.c: Likewise.
36920         * tests/test-rbtree_list.c: Likewise.
36921         * tests/test-avltreehash_list.c: Likewise.
36922         * tests/test-rbtreehash_list.c: Likewise.
36923         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36924         * modules/carray-list-tests (Makefile.am): Likewise.
36925         * modules/linked-list-tests (Makefile.am): Likewise.
36926         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36927         * modules/avltree-list-tests (Makefile.am): Likewise.
36928         * modules/rbtree-list-tests (Makefile.am): Likewise.
36929         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36930         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36931
36932         * NEWS: Mention the changes.
36933
36934         * lib/clean-temp.c: Include gl_xlist.h.
36935         * modules/clean-temp (Depends-on): Add xlist.
36936
36937         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36938         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36939
36940         * tests/test-array_oset.c: Include gl_xlist.h.
36941         * modules/array-oset-tests (Depends-on): Add xlist.
36942
36943         Reported by José E. Marchesi <jemarch@gnu.org>.
36944
36945 2009-12-13  Bruno Haible  <bruno@clisp.org>
36946
36947         Move the malloc checking from module 'oset' to new module 'xoset'.
36948         * modules/xoset: New file.
36949         * lib/gl_xoset.h: New file.
36950         * lib/gl_xoset.c: New file.
36951         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36952         declarations.
36953         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36954         (struct gl_oset_implementation): Rename and change methods accordingly.
36955         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36956         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36957         'int'. Mark as __warn_unused_result__.
36958         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36959         gl_oset_create_empty.
36960         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36961         'int'.
36962         * lib/gl_array_oset.c: Don't include xalloc.h.
36963         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36964         malloc, not xmalloc.
36965         (grow): Change return type to 'int'. Don't call xalloc_die.
36966         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36967         to 'int'.
36968         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36969         'int'.
36970         (gl_array_oset_implementation): Update.
36971         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36972         gl_tree_create_empty.
36973         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36974         'int'.
36975         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36976         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36977         xmalloc.
36978         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36979         not xmalloc.
36980         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36981         xmalloc.
36982         (gl_avltree_oset_implementation): Update.
36983         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36984         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36985         xmalloc.
36986         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36987         not xmalloc.
36988         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36989         xmalloc.
36990         (gl_rbtree_oset_implementation): Update.
36991         * modules/array-oset (Depends-on): Remove xalloc.
36992         * modules/avltree-oset (Depends-on): Likewise.
36993         * modules/rbtree-oset (Depends-on): Likewise.
36994         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36995         * tests/test-avltree_oset.c: Likewise.
36996         * tests/test-rbtree_oset.c: Likewise.
36997         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36998         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36999         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37000         * NEWS: Mention the change.
37001
37002 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37003
37004         maint.mk: allow a project to override release-prep commands
37005         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37006         commands into a new rule.
37007         (release-prep): New rule.
37008         (release-prep-hook): New overridable variable.
37009
37010 2009-12-13  Bruno Haible  <bruno@clisp.org>
37011
37012         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37013
37014 2009-12-13  Jim Meyering  <meyering@redhat.com>
37015
37016         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37017         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37018
37019 2009-12-12  Bruno Haible  <bruno@clisp.org>
37020
37021         duplocale: Tweak.
37022         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37023
37024 2009-12-12  Karl Berry  <karl@gnu.org>
37025
37026         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37027
37028 2009-12-12  Bruno Haible  <bruno@clisp.org>
37029
37030         * m4/po.m4: Undo incorrect untabification.
37031
37032 2009-12-12  Bruno Haible  <bruno@clisp.org>
37033
37034         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37035         * modules/c-strtod (Depends-on): Add locale.
37036         * modules/c-strtold (Depends-on): Likewise.
37037
37038 2009-12-12  Bruno Haible  <bruno@clisp.org>
37039
37040         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37041
37042 2009-12-11  Eric Blake  <ebb9@byu.net>
37043
37044         setenv: relax requirement in light of POSIX ruling
37045         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37046         not NULL.
37047         * tests/test-setenv.c (main): Relax test.
37048         * tests/test-unsetenv.c (main): Likewise.
37049         * doc/posix-functions/setenv.texi (setenv): Document this.
37050         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37051
37052 2009-12-11  Bruno Haible  <bruno@clisp.org>
37053
37054         New module 'fd-safer-flag'.
37055         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37056         * lib/dup-safer.c (dup_safer_flag): Remove function.
37057         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37058         * lib/fd-safer.c (fd_safer_flag): Remove function.
37059         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37060         * modules/cloexec (configure.ac): Drop indicator macro.
37061         * modules/fd-safer-flag: New file.
37062         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37063         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37064         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37065
37066 2009-12-11  Bruno Haible  <bruno@clisp.org>
37067
37068         Tests for module 'nl_langinfo'.
37069         * modules/nl_langinfo-tests: New file.
37070         * tests/test-nl_langinfo.sh: New file.
37071         * tests/test-nl_langinfo.c: New file.
37072
37073         New module 'nl_langinfo'.
37074         * lib/nl_langinfo.c: New file.
37075         * m4/nl_langinfo.m4: New file.
37076         * modules/nl_langinfo: New file.
37077         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37078
37079 2009-12-11  Bruno Haible  <bruno@clisp.org>
37080
37081         Tests for module 'langinfo'.
37082         * modules/langinfo-tests: New file.
37083         * tests/test-langinfo.c: New file.
37084
37085         New module 'langinfo'.
37086         * lib/langinfo.in.h: New file.
37087         * m4/langinfo_h.m4: New file.
37088         * modules/langinfo: New file.
37089         * doc/posix-headers/langinfo.texi: Mention the new module.
37090
37091 2009-12-11  Bruno Haible  <bruno@clisp.org>
37092
37093         * lib/config.charset: Untabify.
37094
37095 2009-12-11  Bruno Haible  <bruno@clisp.org>
37096
37097         * modules/unistd-safer (configure.ac): Drop indicator macro.
37098
37099 2009-12-11  Bruno Haible  <bruno@clisp.org>
37100
37101         Move pipe2-safer code to its own file.
37102         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37103         * lib/pipe-safer.c (pipe2_safer): Remove function.
37104         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37105         (Makefile.am): Add it to lib_SOURCES.
37106
37107 2009-12-10  Bruno Haible  <bruno@clisp.org>
37108
37109         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37110
37111 2009-12-10  Bruno Haible  <bruno@clisp.org>
37112
37113         Declare which arguments expect non-NULL values, for GCC and clang.
37114         * build-aux/arg-nonnull.h: New file.
37115         * modules/arg-nonnull: New file.
37116         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37117         (inet_ntop, inet_pton): Use it.
37118         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37119         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37120         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37121         (open, openat): Use it.
37122         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37123         (fnmatch): Use it.
37124         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37125         (getopt, getopt_long, getopt_long_only): Use it.
37126         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37127         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37128         Use it.
37129         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37130         (iconv_open): Use it.
37131         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37132         (strtoimax, strtoumax): Use it.
37133         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37134         (duplocale): Use it.
37135         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37136         (frexp, frexpl): Use it.
37137         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37138         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37139         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37140         (tsearch, tfind, tdelete, twalk): Use it.
37141         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37142         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37143         sigpending): Use it.
37144         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37145         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37146         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37147         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37148         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37149         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37150         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37151         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37152         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37153         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37154         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37155         Use it.
37156         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37157         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37158         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37159         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37160         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37161         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37162         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37163         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37164         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37165         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37166         strtoull, unsetenv): Use it.
37167         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37168         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37169         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37170         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37171         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37172         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37173         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37174         (strcasecmp, strncasecmp): Use it.
37175         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37176         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37177         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37178         rpl_setsockopt): Use it.
37179         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37180         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37181         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37182         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37183         (gettimeofday): Use it.
37184         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37185         (times): Use it.
37186         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37187         (uname): Use it.
37188         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37189         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37190         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37191         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37192         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37193         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37194         unlinkat, write): Use it.
37195         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37196         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37197         * lib/argv-iter.h: Include arg-nonnull.h.
37198         (_ATTRIBUTE_NONNULL_): Remove macro.
37199         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37200         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37201         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37202         optimization.
37203         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37204         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37205         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37206         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37207         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37208         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37209         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37210         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37211         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37212         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37213         * modules/dirent (Depends-on): Add arg-nonnull.
37214         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37215         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37216         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37217         * modules/fnmatch (Depends-on): Add arg-nonnull.
37218         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37219         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37220         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37221         * modules/glob (Depends-on): Add arg-nonnull.
37222         (Makefile.am): Insert arg-nonnull.h into glob.h.
37223         * modules/iconv_open (Depends-on): Add arg-nonnull.
37224         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37225         * modules/inttypes (Depends-on): Add arg-nonnull.
37226         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37227         * modules/locale (Depends-on): Add arg-nonnull.
37228         (Makefile.am): Insert arg-nonnull.h into locale.h.
37229         * modules/math (Depends-on): Add arg-nonnull.
37230         (Makefile.am): Insert arg-nonnull.h into math.h.
37231         * modules/netdb (Depends-on): Add arg-nonnull.
37232         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37233         * modules/search (Depends-on): Add arg-nonnull.
37234         (Makefile.am): Insert arg-nonnull.h into search.h.
37235         * modules/signal (Depends-on): Add arg-nonnull.
37236         (Makefile.am): Insert arg-nonnull.h into signal.h.
37237         * modules/spawn (Depends-on): Add arg-nonnull.
37238         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37239         * modules/stdio (Depends-on): Add arg-nonnull.
37240         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37241         * modules/stdlib (Depends-on): Add arg-nonnull.
37242         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37243         * modules/string (Depends-on): Add arg-nonnull.
37244         (Makefile.am): Insert arg-nonnull.h into string.h.
37245         * modules/strings (Depends-on): Add arg-nonnull.
37246         (Makefile.am): Insert arg-nonnull.h into strings.h.
37247         * modules/sys_socket (Depends-on): Add arg-nonnull.
37248         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37249         * modules/sys_stat (Depends-on): Add arg-nonnull.
37250         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37251         * modules/sys_time (Depends-on): Add arg-nonnull.
37252         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37253         * modules/sys_times (Depends-on): Add arg-nonnull.
37254         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37255         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37256         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37257         * modules/time (Depends-on): Add arg-nonnull.
37258         (Makefile.am): Insert arg-nonnull.h into time.h.
37259         * modules/unistd (Depends-on): Add arg-nonnull.
37260         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37261         * modules/wchar (Depends-on): Add arg-nonnull.
37262         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37263         * modules/argv-iter (Depends-on): Add arg-nonnull.
37264         * tests/test-canonicalize.c (null_ptr): New function.
37265         (main): Use it.
37266         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37267         (main): Use it.
37268         * tests/test-memmem.c (null_ptr): New function.
37269         (main): Use it.
37270         Reported by Jim Meyering.
37271
37272 2009-12-10  Bruno Haible  <bruno@clisp.org>
37273
37274         Use spaces for indentation, not tabs.
37275         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37276         * m4/*.m4: Untabify.
37277         * build-aux/*.h: Untabify.
37278         * tests/**/*.[hc]: Untabify.
37279         * README: New section "Indent with spaces, not TABs", based on
37280         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37281         * NEWS: Mention the change.
37282
37283 2009-12-10  Bruno Haible  <bruno@clisp.org>
37284
37285         pty test: Fix link error.
37286         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37287         test_pty_LDADD.
37288
37289 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37290
37291         * modules/pty: New file.
37292         * modules/pty-tests: New file.
37293         * m4/pty.m4: New file.
37294         * tests/test-pty.c: New file.
37295         * doc/glibc-headers/pty.texi: Modified.
37296         * doc/glibc-functions/forkpty.texi: Modified.
37297         * doc/glibc-functions/openpty.texi: Modified.
37298
37299 2009-12-10  Bruno Haible  <bruno@clisp.org>
37300
37301         Avoid syntax error in C++ mode.
37302         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37303
37304 2009-12-10  Bruno Haible  <bruno@clisp.org>
37305
37306         Use sed with option -e.
37307         * gnulib-tool (func_version, func_emit_copyright_notice,
37308         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37309         option -e to sed.
37310         * modules/link-warning (Makefile.am): Likewise.
37311
37312 2009-12-10  Jim Meyering  <meyering@redhat.com>
37313
37314         mgetgroups: do not write bytes beyond end of malloc'd buffer
37315         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37316         username, we call getgroups with a one-element-shorter buffer,
37317         but still told it the length was original, max_n_groups.
37318
37319 2009-12-09  Eric Blake  <ebb9@byu.net>
37320
37321         cloexec: relax license
37322         * modules/cloexec (Maintainer): Add myself.
37323         (License): Use LGPL, not GPL.
37324
37325         link-warning: optimize generation
37326         * modules/link-warning (Makefile.am): Reduce process usage.
37327
37328 2009-12-09  Bruno Haible  <bruno@clisp.org>
37329
37330         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37331         workaround was added on 2009-11-17.
37332
37333 2009-12-09  Jim Meyering  <meyering@redhat.com>
37334             Bruno Haible  <bruno@clisp.org>
37335
37336         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37337         * modules/link-warning (Makefile.am): Make the comment-removing sed
37338         command more robust in the face of bootstrap-prepended comment lines.
37339
37340 2009-12-09  Bruno Haible  <bruno@clisp.org>
37341
37342         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37343         most one group.
37344
37345 2009-12-09  Simon Josefsson <simon@josefsson.org>
37346             Bruno Haible  <bruno@clisp.org>
37347
37348         * build-aux/link-warning.h: Add copyright notice.
37349         * modules/link-warning (Makefile.am): Generate link-warning.h from
37350         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37351         * NEWS: Mention change in link-warning module.
37352         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37353         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37354         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37355         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37356         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37357         * modules/math (Makefile.am): Add dependency to math.h.
37358         * modules/search (Makefile.am): Add dependency to search.h.
37359         * modules/signal (Makefile.am): Add dependency to signal.h.
37360         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37361         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37362         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37363         * modules/string (Makefile.am): Add dependency to string.h.
37364         * modules/strings (Makefile.am): Add dependency to strings.h.
37365         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37366         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37367         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37368         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37369         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37370         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37371         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37372         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37373         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37374
37375 2009-12-09  Bruno Haible  <bruno@clisp.org>
37376
37377         fchdir: Optimize away rpl_fstat when possible.
37378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37379         REPLACE_OPEN_DIRECTORY.
37380         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37381
37382 2009-12-09  Bruno Haible  <bruno@clisp.org>
37383
37384         * lib/fchdir.c: Update comment.
37385
37386 2009-12-09  Bruno Haible  <bruno@clisp.org>
37387
37388         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37389
37390 2009-12-08  Eric Blake  <ebb9@byu.net>
37391
37392         fchdir: avoid memory leak on re-registration.
37393         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37394
37395 2009-12-08  Jim Meyering  <meyering@redhat.com>
37396
37397         init.sh: avoid Solaris 10 /bin/sh portability problem
37398         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37399         sourced script:
37400           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37401           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37402           bar
37403         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37404         and two tests used that idiom.
37405         * tests/init.sh: Update suggested usage comments.
37406         (path_prepend_): New function, to be used in place
37407         of the --src-path=DIR option.
37408         (setup_): Move PATH-prepending code into path_prepend_.
37409         * tests/test-pread.sh: Adapt to new usage.
37410         * tests/test-xalloc-die.sh: Likewise.
37411
37412 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37413
37414         * doc/gnulib.texi (Glibc pty.h): Add.
37415         * doc/glibc-functions/forkpty.texi: Add.
37416         * doc/glibc-functions/openpty.texi: Add.
37417         Suggested by Bruno Haible.
37418
37419 2009-12-08  Eric Blake  <ebb9@byu.net>
37420
37421         fchdir: fix logic bugs
37422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37423         * tests/test-fchdir.c (main): Enhance test.
37424         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37425         is in use.
37426
37427         dup2: fix logic bugs
37428         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37429         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37430         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37431         exists.
37432         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37433
37434 2009-12-07  Eric Blake  <ebb9@byu.net>
37435
37436         unlink: fix m4 detection
37437         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37438
37439         unistd-safer: add unit test
37440         * modules/unistd-safer-tests: New file.
37441         * tests/test-dup-safer.c: Likewise.
37442         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37443         * tests/test-dup2.c (setmode): Likewise.
37444         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37445
37446         cloexec: preserve text vs. binary across dup_cloexec
37447         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37448         mode.
37449         * modules/dup2-tests (Depends-on): Add binary-io.
37450         * modules/cloexec-tests (Depends-on): Likewise.
37451         * tests/test-dup2.c (setmode, is_mode): New helpers.
37452         (main): Add tests that translation mode is preserved.
37453         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37454         Reported by Bruno Haible.
37455
37456         mgetgroups: reduce duplicate listings
37457         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37458         resulting array.
37459         * tests/test-chown.h (test_chown): Simplify client.
37460         * tests/test-lchown.h (test_lchown): Likewise.
37461
37462 2009-12-06  Bruno Haible  <bruno@clisp.org>
37463
37464         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37465         value.
37466
37467 2009-12-06  Bruno Haible  <bruno@clisp.org>
37468
37469         * lib/progname.c: Include stdio.h, stdlib.h.
37470         (set_program_name): Reject a NULL argument.
37471
37472 2009-12-05  Eric Blake  <ebb9@byu.net>
37473
37474         pipe2-safer: new module
37475         * modules/pipe2-safer: New file.
37476         * lib/unistd-safer.h (pipe2_safer): New prototype.
37477         * lib/unistd--.h (pipe2): New wrapper.
37478         * lib/pipe-safer.c (pipe2_safer): New function.
37479         * modules/pipe (Depends-on): Add pipe2-safer.
37480         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37481
37482         stdlib-safer: preserve cloexec flag for mkostemp[s]
37483         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37484         fd_safer_flag.
37485
37486         unistd-safer: allow preservation of cloexec status via flag
37487         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37488         prototypes.
37489         * lib/dup-safer.c (dup_safer_flag): New function.
37490         * lib/fd-safer.c (fd_safer_flag): Likewise.
37491         * modules/cloexec (configure.ac): Set witness.
37492
37493         test-dup2: enhance test
37494         * modules/dup2-tests (Depends-on): Add cloexec.
37495         * tests/test-dup2.c (main): Enhance test.
37496
37497         cloexec: add dup_cloexec
37498         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37499         header and comments.
37500         * lib/cloexec.c (set_cloexec_flag): Add comments.
37501         (dup_cloexec): New function, with mingw implementation borrowed
37502         from...
37503         * lib/w32spawn.h (dup_noinherit): ...here.
37504         * modules/execute (Depends-on): Add cloexec.
37505         * modules/pipe (Depends-on): Likewise.
37506         * modules/cloexec (Depends-on): Add dup2.
37507         * modules/cloexec-tests (Files): New file.
37508         * tests/test-cloexec.c: Likewise.
37509
37510         test-xalloc-die: fix test for mingw
37511         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37512         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37513         directory and .exe suffix off argv[0] output.
37514
37515         test-fseeko: fix test for mingw
37516         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37517         than undefining fseek, so test will pass on mingw.
37518
37519 2009-12-05  Bruno Haible  <bruno@clisp.org>
37520
37521         * lib/progname.h (set_program_name): Clarify specification.
37522         * lib/progname.c (set_program_name): Likewise.
37523         Reported by Jim Meyering.
37524
37525 2009-12-05  Jim Meyering  <meyering@redhat.com>
37526
37527         maint.mk: backslash-escape parens in default regexp
37528         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37529         backslash-escape the literal parentheses.
37530
37531         maint.mk: news-date-check: use grep -E
37532         * top/maint.mk (today): Define a Make variable, not a...
37533         (news-date-check): ...shell variable.
37534         (news-date-regexp): Use the Make variable.
37535         Use grep's -E option.  Change the failing diagnostic to mention
37536         the variable, $(news-date-regexp).
37537
37538 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37539
37540         maintainer-makefile: allow customization of NEWS entry format
37541         * top/maint.mk (news-date-regexp): New overridable variable.
37542         (news-date-check): Use it.
37543
37544 2009-12-04  Eric Blake  <ebb9@byu.net>
37545
37546         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37547         * lib/mgetgroups.h (xgetgroups): New prototype.
37548         * lib/mgetgroups.c (xgetgroups): New wrapper.
37549         (mgetgroups): Handle ENOSYS.
37550         * modules/mgetgroups (Depends-on): Add realloc.
37551         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37552
37553         mgetgroups: avoid argument promotion issues with -1
37554         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37555         for invalid gid_t.
37556         * tests/test-chown.h (getegid, test_chown): Likewise.
37557         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37558
37559 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37560
37561         exclude: Fix header file problems.
37562         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37563
37564 2009-12-01  Jim Meyering  <meyering@redhat.com>
37565
37566         fts: fts_open: do not let an empty string cause immediate failure
37567         This is required in support of GNU rm, for which the command
37568         "rm A '' B" must process and remove both A and B, in spite of
37569         the empty string argument.
37570         * lib/fts.c (fts_open): Do not let the presence of an empty string
37571         cause fts_open to fail immediately.  Most fts-using tools must be
37572         able to process all arguments, in order, and can be expected to
37573         diagnose such arguments themselves.
37574
37575 2009-11-30  Eric Blake  <ebb9@byu.net>
37576
37577         utimens: fix compilation error
37578         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37579         Declare variable at right scope.
37580
37581 2009-11-29  Jim Meyering  <meyering@redhat.com>
37582
37583         bootstrap: handle perl-5.11's changed --version output
37584         * build-aux/bootstrap (get_version): Handle perl separately,
37585         since perl-5.11's --version output is different.
37586
37587 2009-11-28  Jim Meyering  <meyering@redhat.com>
37588
37589         userspec: depend on the inttostr module, too
37590         * modules/userspec (Depends-on): Add inttostr.
37591
37592         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37593         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37594         number of MAXUID when it evaluates to (uid_t) -1.
37595         Likewise for group ID.  Reported by Matt McCutchen in
37596         <http://savannah.gnu.org/bugs/?28113>
37597
37598         userspec: reformat to use spaces, not TABs
37599         * lib/userspec.c: Expand TABs to spaces.
37600         Add Emacs' "indent-tabs-mode: nil" hint.
37601
37602 2009-11-27  Eric Blake  <ebb9@byu.net>
37603
37604         getopt-gnu: flush out another BSD bug
37605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37606         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37607         flush out BSD bug.
37608         * tests/test-getopt.h (test_getopt): End lists with NULL.
37609         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37610         (test_getopt_long_posix): Enhance test.
37611         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37612         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37613         getopt-gnu.
37614         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37615         Likewise.
37616
37617 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37618
37619         * modules/idpriv-droptemp-tests (Notice): Fix text.
37620
37621 2009-11-27  Jim Meyering  <meyering@redhat.com>
37622
37623         test-xalloc-die: avoid spurious failure due to libtool argv difference
37624         In a libtool-enabled project, this test would fail due to a difference
37625         in the emitted program name, e.g.,
37626         -test-xalloc-die: memory exhausted
37627         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37628         Use program to avoid that.
37629         * modules/xalloc-die-tests (Depends-on): Add progname.
37630         * tests/test-xalloc-die.c: Include progname.h".
37631         (program_name): Remove decl.
37632         (main): Call set_program_name.
37633         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37634
37635 2009-11-26  Richard Jones  <rjones@redhat.com>
37636
37637         w32sock: leave win32 error in place.
37638         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37639
37640 2009-11-26  Eric Blake  <ebb9@byu.net>
37641
37642         init.sh: suggest to use skip_ and fail_ functions in comments
37643         * tests/init.sh: Add a sentence.
37644
37645 2009-11-25  Bruno Haible  <bruno@clisp.org>
37646
37647         init.sh: add documentation in comments
37648         * tests/init.sh: Add some developer and user documentation.
37649
37650 2009-11-26  Jim Meyering  <meyering@redhat.com>
37651
37652         init.sh: accommodate even those who specify bogus srcdir manually
37653         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37654         configure-time tests to be sanitized, so that there is no need to
37655         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37656         (with no double quotes) suffices.  However, since tests may be
37657         invoked manually, and since you may explicitly set srcdir to the
37658         name of a directory containing spaces, do quote its uses here.
37659         * tests/test-pread.sh: Likewise.
37660         Suggested by Bruno Haible.
37661
37662         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37663         * tests/test-pread.sh: Write no data into the pipe, because
37664         test-pread actually reads none.  This avoids a diagnostic,
37665         "bash: echo: write error: Broken pipe", that arises in the unusual
37666         event something is ignoring SIGPIPE, and might be interpreted
37667         as some sort of failure.  Reported by Bruno Haible.
37668
37669 2009-11-25  Jim Meyering  <meyering@redhat.com>
37670
37671         test-pread: cover failure with ESPIPE and EINVAL
37672         * tests/test-pread.c (main): Test for failure, too.
37673         * tests/test-pread.sh: Invoke with stdin on a pipe.
37674         Suggested by Eric Blake.
37675
37676         pread: improvement and fix
37677         * modules/pread (Depends-on): Depend on lseek, for portability to
37678         e.g., mingw.  Suggested by Eric Blake.
37679         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37680
37681         unistd.in.h: correct declaration of pread
37682         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37683         Reported by Richard W.M. Jones.
37684
37685         test-pread.sh: distribute the test script
37686         * modules/pread-tests (Files): Include test-pread.sh.
37687
37688         test-pread.sh: clean up
37689         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37690         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37691         That is unnecessary, since it's always ".".
37692         Suggestion from Eric Blake.
37693
37694         test-pread.sh: make executable
37695         * tests/test-pread.sh: Set executable bit.
37696         Reported by Eric Blake.
37697
37698         correct typo in test-pread.sh
37699         * tests/test-pread.sh: Add #! line.
37700
37701         test pread
37702         * tests/test-pread.c: New file.
37703         * tests/test-pread.sh: Likewise.
37704         * modules/pread-tests: Likewise.
37705
37706         pread: new module
37707         * modules/pread: New file.
37708         * lib/unistd.in.h (pread): Define/declare.
37709         * lib/pread.c (pread): New file.
37710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37711         * modules/unistd (Makefile.am): Substitute witnesses.
37712         * doc/posix-functions/pread.texi (pread): Update.
37713         * MODULES.html.sh: Add pread.
37714
37715 2009-11-25  Jim Meyering  <meyering@redhat.com>
37716
37717         tests/init.sh: new file to be used via most *.sh tests
37718         * tests/init.sh: New file.
37719
37720 2009-11-25  Eric Blake  <ebb9@byu.net>
37721
37722         utimens: work around older Linux failure with symlinks
37723         * lib/utimens.c (lutimensat_works_really): New variable.
37724         (fdutimens, lutimens): Use it to manage kernels that support
37725         nanosecond times on files, but not on symlinks.
37726         Reported by OndÅ™ej Vašík.
37727
37728         utimes: fix configure grammar
37729         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37730
37731 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37732
37733         regex: Fix fastmap for multibyte character ranges.
37734         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37735         characters when a multibyte character range is included.
37736
37737 2009-11-22  Andy Wingo  <wingo@pobox.com>
37738
37739         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37740         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37741
37742 2009-11-24  Bruno Haible  <bruno@clisp.org>
37743
37744         doc: Most *_l functions exist in MacOS X 10.5.
37745         * doc/posix-functions/duplocale.texi: Update platforms list.
37746         * doc/posix-functions/freelocale.texi: Likewise.
37747         * doc/posix-functions/newlocale.texi: Likewise.
37748         * doc/posix-functions/uselocale.texi: Likewise.
37749         * doc/posix-functions/isalnum_l.texi: Likewise.
37750         * doc/posix-functions/isalpha_l.texi: Likewise.
37751         * doc/posix-functions/isblank_l.texi: Likewise.
37752         * doc/posix-functions/iscntrl_l.texi: Likewise.
37753         * doc/posix-functions/isdigit_l.texi: Likewise.
37754         * doc/posix-functions/isgraph_l.texi: Likewise.
37755         * doc/posix-functions/islower_l.texi: Likewise.
37756         * doc/posix-functions/isprint_l.texi: Likewise.
37757         * doc/posix-functions/ispunct_l.texi: Likewise.
37758         * doc/posix-functions/isspace_l.texi: Likewise.
37759         * doc/posix-functions/isupper_l.texi: Likewise.
37760         * doc/posix-functions/iswalnum_l.texi: Likewise.
37761         * doc/posix-functions/iswalpha_l.texi: Likewise.
37762         * doc/posix-functions/iswblank_l.texi: Likewise.
37763         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37764         * doc/posix-functions/iswctype_l.texi: Likewise.
37765         * doc/posix-functions/iswdigit_l.texi: Likewise.
37766         * doc/posix-functions/iswgraph_l.texi: Likewise.
37767         * doc/posix-functions/iswlower_l.texi: Likewise.
37768         * doc/posix-functions/iswprint_l.texi: Likewise.
37769         * doc/posix-functions/iswpunct_l.texi: Likewise.
37770         * doc/posix-functions/iswspace_l.texi: Likewise.
37771         * doc/posix-functions/iswupper_l.texi: Likewise.
37772         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37773         * doc/posix-functions/isxdigit_l.texi: Likewise.
37774         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37775         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37776         * doc/posix-functions/strcoll_l.texi: Likewise.
37777         * doc/posix-functions/strfmon_l.texi: Likewise.
37778         * doc/posix-functions/strftime_l.texi: Likewise.
37779         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37780         * doc/posix-functions/strxfrm_l.texi: Likewise.
37781         * doc/posix-functions/tolower_l.texi: Likewise.
37782         * doc/posix-functions/toupper_l.texi: Likewise.
37783         * doc/posix-functions/towctrans_l.texi: Likewise.
37784         * doc/posix-functions/towlower_l.texi: Likewise.
37785         * doc/posix-functions/towupper_l.texi: Likewise.
37786         * doc/posix-functions/wcscoll_l.texi: Likewise.
37787         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37788         * doc/posix-functions/wctrans_l.texi: Likewise.
37789         * doc/posix-functions/wctype_l.texi: Likewise.
37790         * doc/glibc-functions/strptime_l.texi: Likewise.
37791         * doc/glibc-functions/strtod_l.texi: Likewise.
37792         * doc/glibc-functions/strtof_l.texi: Likewise.
37793         * doc/glibc-functions/strtol_l.texi: Likewise.
37794         * doc/glibc-functions/strtold_l.texi: Likewise.
37795         * doc/glibc-functions/strtoll_l.texi: Likewise.
37796         * doc/glibc-functions/strtoul_l.texi: Likewise.
37797         * doc/glibc-functions/strtoull_l.texi: Likewise.
37798         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37799         * doc/glibc-functions/wcstod_l.texi: Likewise.
37800         * doc/glibc-functions/wcstof_l.texi: Likewise.
37801         * doc/glibc-functions/wcstol_l.texi: Likewise.
37802         * doc/glibc-functions/wcstold_l.texi: Likewise.
37803         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37804         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37805         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37806
37807 2009-11-24  Bruno Haible  <bruno@clisp.org>
37808
37809         duplocale: Fix logic bug.
37810         * lib/duplocale.c: Don't include <langinfo.h>.
37811         (_NL_LOCALE_NAME): Remove macro.
37812         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37813         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37814
37815 2009-11-23  Jim Meyering  <meyering@redhat.com>
37816
37817         test-update-copyright: don't hard-code /usr/bin/perl
37818         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37819         perl to print the current year.  Gilles Espinasse reported that
37820         the replaced use of perl was hard-coded as /usr/bin/perl.
37821
37822 2009-11-23  Bruno Haible  <bruno@clisp.org>
37823
37824         duplocale: Add support for glibc 2.3.x.
37825         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37826
37827 2009-11-22  Bruno Haible  <bruno@clisp.org>
37828
37829         vasnprintf: Tiny optimization.
37830         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37831         MacOS X.
37832
37833 2009-11-22  Bruno Haible  <bruno@clisp.org>
37834
37835         Tests for module 'duplocale'.
37836         * modules/duplocale-tests: New file.
37837         * tests/test-duplocale.c: New file.
37838
37839         New module 'duplocale'.
37840         * m4/duplocale.m4: New file.
37841         * lib/locale.in.h (duplocale): New declaration.
37842         * lib/duplocale.c: New file.
37843         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37844         gl_LOCALE_H_DEFAULTS): New macros.
37845         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37846         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37847         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37848         REPLACE_DUPLOCALE.
37849         * modules/duplocale: New file.
37850         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37851
37852 2009-11-22  Bruno Haible  <bruno@clisp.org>
37853
37854         * modules/locale-tests (configure.ac): Test for newlocale function.
37855         * tests/test-locale.c: When the system has extended locale functions,
37856         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37857
37858         locale: Make locale_t available when possible.
37859         * lib/locale.in.h: Include <xlocale.h> when it exists.
37860         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37861         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37862         * modules/locale (Depends-on): Add extensions.
37863         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37864         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37865
37866 2009-11-22  Bruno Haible  <bruno@clisp.org>
37867
37868         Add comments.
37869         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37870         invocation.
37871         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37872         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37873         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37874
37875 2009-11-22  Bruno Haible  <bruno@clisp.org>
37876
37877         error: account for the possibility of freopen (stdout).
37878         * lib/error.c: Include <unistd.h>.
37879         (flush_stdout): New function, extracted from error and error_at_line.
37880         Determine stdout's fd dynamically.
37881         (error, error_at_line): Invoke flush_stdout.
37882         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37883         * modules/error (Depends-on): Add unistd.
37884
37885 2009-11-22  Bruno Haible  <bruno@clisp.org>
37886
37887         diffseq: Add comment.
37888         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37889
37890 2009-11-22  Jim Meyering  <meyering@redhat.com>
37891
37892         c-stack: avoid defining an unused static function
37893         * lib/c-stack.c (find_stack_direction): Do not define this function
37894         when it will not be used.
37895
37896         diffseq: avoid spurious gcc warnings
37897         * lib/diffseq.h (IF_LINT2): Define.
37898         (compareseq): Use it to initialize two members of "part".
37899         This avoids two used-uninitialized warnings.
37900
37901 2009-11-21  Jim Meyering  <meyering@redhat.com>
37902
37903         c-stack: avoid "ignoring return value of `write'" warning
37904         * lib/c-stack.c: Include "ignore-value.h".
37905         (die): Explicitly ignore each write return value.
37906         * modules/c-stack (Depends-on): Add ignore-value.
37907
37908 2009-11-21  Bruno Haible  <bruno@clisp.org>
37909
37910         diffseq: reduce scope of variable 'best'.
37911         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37912         variable, earlier used for two different purposes.
37913
37914 2009-11-21  Jim Meyering  <meyering@redhat.com>
37915
37916         diffseq: remove useless assignment to "best"
37917         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37918         assignment.  At that point "best" is already guaranteed to be zero.
37919
37920 2009-11-20  Eric Blake  <ebb9@byu.net>
37921
37922         build: mention ftp redirector in release announcements
37923         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37924         values that used to come from cfg.mk; mention FTP redirect URL.
37925         * build-aux/announce-gen: Mention the mirror list.
37926         Suggested by Karl Berry.
37927
37928         nanosleep: improve port to mingw
37929         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37931         LIB_NANOSLEEP, but only when needed.
37932         * modules/select (Link): Document LIBSOCKET.
37933         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37934         enough.
37935
37936         nanosleep: work around cygwin bug
37937         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37938         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37939         bug.
37940         (getnow): Delete, not needed.
37941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37942         LIB_CLOCK_GETTIME.
37943         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37944         clock-time, gettime.
37945         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37946         bug.
37947         * modules/nanosleep-tests: New test.
37948         * tests/test-nanosleep.c: New file.
37949
37950         sleep: work around cygwin bug
37951         * lib/sleep.c (rpl_sleep): Work around the bug.
37952         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37953         (gl_PREREQ_SLEEP): Delete unused macro.
37954         * modules/sleep (Depends-on): Add verify.
37955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37956         * modules/unistd (Makefile.am): Substitute witness.
37957         * lib/unistd.in.h (sleep): Update prototype.
37958         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37959         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37960         * modules/sleep-tests (Depends-on): Check for alarm.
37961
37962 2009-11-20  Jim Meyering  <meyering@redhat.com>
37963
37964         maint.mk: improve sc_prohibit_magic_number_exit
37965         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37966         so it does not match uses like System.exit(1).
37967         Add comments showing how to correct all offenders.
37968
37969 2009-11-19  Eric Blake  <ebb9@byu.net>
37970
37971         xalloc-die-tests: add missing library
37972         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37973
37974         test-xvasprintf: silence compiler warnings
37975         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37976         empty string from gcc.
37977
37978 2009-11-19  Jim Meyering  <meyering@redhat.com>
37979
37980         xfreopen: new module, from coreutils
37981         * modules/xfreopen: New module.
37982         * lib/xfreopen.c: New file.
37983         * lib/xfreopen.h: New file.
37984         * MODULES.html.sh (File stream based Input/Output"): Add it.
37985
37986 2009-11-19  Eric Blake  <ebb9@byu.net>
37987
37988         manywarnings: depend on warnings
37989         * modules/manywarnings (Depends-on): Add warnings.
37990
37991         build: avoid compiler warnings
37992         * lib/select.c (rpl_select): Delete unused variable.
37993         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37994
37995 2009-11-18  Eric Blake  <ebb9@byu.net>
37996
37997         tests: avoid false negative with --with-packager
37998         * tests/test-version-etc.sh: Discard packager information.
37999         * tests/test-argp-version-etc-1.sh: Likewise.
38000         Reported by Mike Frysinger.
38001
38002         utimens: fix regression on Solaris
38003         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38004         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38005         can only change fd timestamps via futimesat.  Instead, use an
38006         additional witness macro to avoid BSD bug.
38007         Reported by Jim Meyering.
38008
38009 2009-11-17  Eric Blake  <ebb9@byu.net>
38010
38011         usleep: use it to simplify tests
38012         * modules/stat-time-tests (Depends-on): Add usleep.
38013         (configure.ac): Drop usleep check.
38014         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38015         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38016         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38017         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38018         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38019         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38020         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38021         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38022         Likewise.
38023         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38024         * tests/test-lchown.h (nap): Likewise.
38025         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38026         * tests/test-stat-time.c (nap): Likewise.
38027         * tests/test-utimens-common.h (nap): Update comments.
38028
38029         usleep: new module
38030         * modules/usleep: New file.
38031         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38032         * lib/usleep.c (usleep): Likewise.
38033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38034         * modules/unistd (Makefile.am): Substitute witnesses.
38035         * lib/unistd.in.h (usleep): Add declaration.
38036         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38037         * MODULES.html.sh (Date and time): Likewise.
38038         * modules/usleep-tests (Depends-on): New test.
38039         * tests/test-usleep.c: New file.
38040
38041         chown: work around OpenBSD bug
38042         * lib/chown.c (rpl_chown): Work around the bug.
38043         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38044         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38045         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38046         * modules/chown (Depends-on): Add stdbool.
38047         * modules/lchown (Depends-on): Likewise.
38048         * doc/posix-functions/chown.texi (chown): Document the bug.
38049         * doc/posix-functions/lchown.texi (lchown): Likewise.
38050         * tests/test-lchown.h (test_chown): Relax test.
38051
38052         mkstemp: avoid conflict with C++ keyword template
38053         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38054         * lib/mkostemp.c (mkostemp): Likewise.
38055         * lib/mkostemps.c (mkostemps): Likewise.
38056         * lib/mkstemp.c (mkstemp): Likewise.
38057         * lib/mkstemps.c (mkstemps): Likewise.
38058
38059         xalloc-die-tests: optimize
38060         * tests/test-xalloc-die.sh: Reduce number of processes.
38061
38062 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38063
38064         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38065         patch from ludo@gnu.org (Ludovic Courtès).
38066
38067 2009-11-17  Jim Meyering  <meyering@redhat.com>
38068
38069         version-etc: use proper license string
38070         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38071         * modules/version-etc-fsf: Likewise.
38072
38073 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38074
38075         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38076         printed to stdout.  Deal with EOL differences.
38077
38078 2009-11-17  Eric Blake  <ebb9@byu.net>
38079
38080         unsetenv: work around Solaris bug
38081         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38082         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38083         Reported by Jim Meyering.
38084
38085         vasnprintf: avoid compiler warnings
38086         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38087         variables.
38088         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38089
38090 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38091
38092         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38093         settings since xalloc-die is no longer the self test,
38094         xalloc-die.sh is.
38095
38096 2009-11-17  Jim Meyering  <meyering@redhat.com>
38097
38098         test-xalloc-die.sh: make the code agree with the commit log
38099         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38100         at the end, just in case you happen to have a test-xalloc-die
38101         program in some other PATH directory.
38102
38103         test-xalloc-die.sh: fix a portability bug
38104         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38105         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38106         Otherwise, argv[0] (as often seen in diagnostics) would be too
38107         system-dependent, sometimes with, and sometimes without the leading "./".
38108
38109         version-etc-fsf: relax license to LGPLv3+
38110         * modules/version-etc-fsf (License): Relax license.
38111
38112 2009-11-16  Eric Blake  <ebb9@byu.net>
38113
38114         xalloc-die-tests: avoid printing null pointer
38115         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38116         shell script.
38117         * tests/test-xalloc-die.c (program_name): Declare.
38118         * tests/test-xalloc-die.sh (tmpfiles): New file.
38119
38120         setenv, unsetenv: work around various bugs
38121         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38122         (setenv) [HAVE_SETENV]: Work around bugs.
38123         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38124         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38125         for bugs.
38126         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38127         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38129         * modules/stdlib (Makefile.am): Update substitutions.
38130         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38131         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38132         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38133         * modules/setenv-tests: New test.
38134         * modules/unsetenv-tests: Likewise.
38135         * tests/test-setenv.c: New file.
38136         * tests/test-unsetenv.c: Likewise.
38137
38138 2009-11-16  Jim Meyering  <meyering@redhat.com>
38139
38140         version-etc: relax license to LGPLv3+
38141         * modules/version-etc (License): Relax license.
38142
38143         better AC_REQUIRE expanded-before-required-warning avoidance
38144         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38145         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38146         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38147         which is no longer needed.
38148
38149 2009-11-16  Eric Blake  <ebb9@byu.net>
38150
38151         test-freading: clean up temporary file
38152         * tests/test-freading.c (main): Remove file on success, and use
38153         ASSERT more liberally.
38154         Reported by Jim Meyering.
38155
38156 2009-11-16  Jim Meyering  <meyering@redhat.com>
38157
38158         avoid new AC_REQUIRE expanded-before-required warnings
38159         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38160         merely using it.
38161         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38162         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38163
38164 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38165
38166         * tests/test-xalloc-die.c: New file.
38167         * modules/xalloc-die-tests: New file.
38168         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38169         XFAIL_TESTS so it can be appended by modules.
38170
38171 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38172
38173         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38174         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38175
38176 2009-11-14  Eric Blake  <ebb9@byu.net>
38177
38178         fnmatch: avoid compiler warning
38179         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38180         to silence compiler warning about mismatch signedness in ?:.
38181         Reported by Robert Millan.
38182
38183         intprops: add double-inclusion guard
38184         * lib/intprops.h: Allow idempotent includes.
38185         Suggested by Bruce Korb.
38186
38187         openat: detect Solaris fchownat bug
38188         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38189         penalizing glibc chownat when only lchownat is broken.
38190         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38191         trailing slash bugs.
38192         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38193         * modules/openat-tests (Files): Include more files.
38194         (Depends-on): Add mgetgroups, sleep, stat-time.
38195         (configure.ac): Add additional checks.
38196         (Makefile.am): Build new test.
38197         * tests/test-fchownat.c: New file.
38198
38199         lchown: detect Solaris and FreeBSD bug
38200         * lib/lchown.c (rpl_lchown): Work around bug.
38201         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38203         * modules/unistd (Makefile.am): Populate it.
38204         * lib/unistd.in.h (lchown): Update declaration.
38205         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38206         * modules/lchown-tests: New file.
38207         * tests/test-lchown.h (test_lchown): Likewise.
38208         * tests/test-lchown.c (main): Likewise.
38209
38210         chown: detect Solaris and FreeBSD bug
38211         * lib/chown.c (rpl_chown): Work around bug.
38212         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38213         (gl_PREREQ_CHOWN): Delete.
38214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38215         * modules/unistd (Makefile.am): Populate it.
38216         * lib/unistd.in.h (chown): Update declaration.
38217         * lib/lchown.c (chown): Update client.
38218         * modules/lchown (Depends-on): Add lstat.
38219         * doc/posix-functions/chown.texi (chown): Document the bug.
38220         * doc/posix-functions/getgroups.texi (getgroups): Document
38221         getgroups pitfall.
38222         * modules/chown-tests: New file.
38223         * tests/test-chown.h (test_chown): Likewise.
38224         * tests/test-chown.c (main): Likewise.
38225
38226 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38227
38228         gnulib-tool: correctly detect absence of m4 directories
38229         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38230
38231 2009-11-14  Jim Meyering  <meyering@redhat.com>
38232
38233         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38234         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38235
38236 2009-11-14  John W. Eaton  <jwe@gnu.org>
38237
38238         strftime.h: wrap funtion declaration in extern "C" block
38239         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38240
38241 2009-11-13  Eric Blake  <ebb9@byu.net>
38242
38243         getgroups: avoid compiler warning
38244         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38245
38246         getgroups: work around FreeBSD bug
38247         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38248         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38249         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38250         * tests/test-getgroups.c (main): Fix buffer overrun.
38251
38252         getgroups: avoid compilation failure
38253         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38254         * modules/getgroups (Depends-on): Add stdint.
38255
38256 2009-11-13  Jim Meyering  <meyering@redhat.com>
38257
38258         test-getgroups: avoid compilation failure
38259         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38260
38261 2009-11-13  Eric Blake  <ebb9@byu.net>
38262
38263         mgetgroups: new module, taken from coreutils
38264         * modules/mgetgroups: New file.
38265         * lib/mgetgroups.h: Likewise.
38266         * lib/mgetgroups.c (mgetgroups): Likewise.
38267         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38268         * MODULES.html.sh (Users and groups): Mention it.
38269
38270         getgroups: don't expose GETGROUPS_T to user
38271         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38272         an element at a time if GETGROUPS_T is wrong size.
38273         * lib/getugroups.h (getugroups): Change signature.
38274         * lib/unistd.in.h (getgroups): Likewise.
38275         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38276         signature needs fixing.
38277         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38278         AC_TYPE_GETGROUPS.
38279         * modules/group-member (Depends-on): Add getgroups.
38280         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38281         (group_member): Rely on getgroups replacement.
38282         * lib/getugroups.c (getugroups): Use gid_t.
38283         * tests/test-getgroups.c (main): Likewise.
38284         * NEWS: Mention the signature change.
38285         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38286         problem with signature.
38287         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38288         GETGROUPS_T is still useful for setgroups.
38289
38290         getgroups, getugroups: provide stubs for mingw
38291         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38292         * lib/getugroups.c (getugroups): Likewise.
38293         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38294         function.  Modernize replacement scheme.
38295         (gl_PREREQ_GETGROUPS): Delete.
38296         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38297         * modules/getgroups (configure.ac): Declare witness.
38298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38299         * modules/unistd (Depends-on): Substitute witness.
38300         * lib/unistd.in.h (getgroups): Declare replacement.
38301
38302         getgroups: avoid calling exit
38303         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38304         drop xalloc.
38305         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38306         dependencies.
38307         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38308         exiting, in the rare case of malloc failure.
38309
38310         getgroups: fix logic error
38311         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38312         has more than 20 groups.
38313         * modules/getgroups-tests: New test.
38314         * tests/test-getgroups.c: New file.
38315
38316 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38317
38318         * tests/test-base64.c: Improve.
38319
38320 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38321
38322         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38323         Blake <ebb9@byu.net>.
38324
38325 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38326
38327         * tests/test-xvasprintf.c: Add %s%s related checks.
38328
38329 2009-11-12  Eric Blake  <ebb9@byu.net>
38330
38331         version-etc: match standards.texi style
38332         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38333         and use <> only for URLs.
38334
38335 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38336
38337         fts: do not fail on a submount during traversal
38338         * lib/fts.c (fts_build): Read the stat info again after opening
38339         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38340         Original report at http://bugzilla.redhat.com/501848.
38341
38342 2009-11-12  Jim Meyering  <meyering@redhat.com>
38343
38344         bootstrap: sync from coreutils
38345         * build-aux/bootstrap (bootstrap_epilogue): New function.
38346         Use git_modules_config in one more place.  This make bootstrap's
38347         --gnulib-srcdir option more useful for testing.
38348
38349         bootstrap: generalize autoheader check
38350         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38351         AC_CONFIG_HEADERS.
38352
38353 2009-11-11  Eric Blake  <ebb9@byu.net>
38354
38355         mkfifoat: use new modules for Solaris and BSD bugs
38356         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38357         * lib/mkfifoat.c (mknodat): Split...
38358         * lib/mknodat.c (mknodat): ...into new file.
38359         * modules/mkfifoat (Files): Ship new file.
38360         (Depends-on): Add mkfifo, mknod.
38361         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38362         (Depends-on): Add symlink.
38363         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38364         redundant with test_mkfifo.h.
38365         (do_mkfifoat, do_mknodat): New helpers.
38366
38367         mknod: new module
38368         * modules/mknod: New file.
38369         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38370         * lib/mknod.c (mknod): Likewise.
38371         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38372         defaults.
38373         * modules/sys_stat (Makefile.am): Substitute them.
38374         * lib/sys_stat.in.h (mknod): Declare replacement.
38375         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38376         Document it.
38377         * doc/posix-functions/mknod.texi (mknod): Likewise.
38378         * modules/mknod-tests: New test.
38379         * tests/test-mknod.c: Likewise.
38380
38381         mkfifo: new module
38382         * modules/mkfifo: New file.
38383         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38384         * lib/mkfifo.c (mkfifo): Likewise.
38385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38386         defaults.
38387         * modules/sys_stat (Makefile.am): Substitute them.
38388         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38389         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38390         Document it.
38391         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38392         * modules/mkfifo-tests: New test.
38393         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38394         from test-mkfifoat.c.
38395         * tests/test-mkfifo.c: New file.
38396
38397         readlink: detect FreeBSD bug
38398         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38399         slash on symlink.
38400         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38401         * tests/test-readlink.h (test_readlink): Enhance test.
38402
38403         symlink: detect FreeBSD bug
38404         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38405         slash on symlink.
38406         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38407         * tests/test-symlink.h (test_symlink): Enhance test.
38408
38409 2009-11-10  Eric Blake  <ebb9@byu.net>
38410
38411         link: detect FreeBSD bug
38412         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38413         symlink.
38414         * doc/posix-functions/link.texi (link): Document the bug.
38415         * tests/test-link.h (test_link): Enhance test.
38416         * tests/test-linkat.c (main): Update caller.
38417
38418         unlink, remove: detect FreeBSD bug
38419         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38420         slash on symlink.
38421         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38422         * doc/posix-functions/remove.texi (remove): Likewise.
38423         * tests/test-unlink.h (test_unlink): Enhance test.
38424         * tests/test-remove.c (main): Likewise.
38425
38426 2009-11-09  Eric Blake  <ebb9@byu.net>
38427
38428         rename: detect FreeBSD bug
38429         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38430         slash on symlink.
38431         * modules/renameat-tests (Depends-on): Add filenamecat.
38432         * tests/test-rename.h (test_rename): Allow one more errno.
38433         * tests/test-renameat.c (main): Likewise.
38434         * doc/posix-functions/rename.texi (rename): Document the bug.
38435
38436         open: detect FreeBSD bug
38437         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38438         symlink.
38439         * doc/posix-functions/open.texi (open): Document the bug.
38440         * doc/posix-functions/utimes.texi (utimes): Likewise.
38441         * tests/test-open.h (test_open): Add parameters, and test symlink
38442         handling.
38443         * tests/test-open.c (main): Adjust caller.
38444         * tests/test-fcntl-safer.c (main): Likewise.
38445         * modules/open-tests (Depends-on): Add stdbool, symlink.
38446         * modules/fcntl-safer-tests (Depends-on): Likewise.
38447         * tests/test-openat.c (main): Add test-open tests.
38448
38449         stat: detect FreeBSD bug
38450         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38451         symlink.
38452         * doc/posix-functions/stat.texi (stat): Document the bug.
38453         * tests/test-stat.h (test_stat_func): Add argument.
38454         * tests/test-stat.c (main): Adjust caller.
38455         * tests/test-fstatat.c (main): Likewise.
38456         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38457         Reported by Jim Meyering.
38458
38459 2009-11-09  James Youngman  <jay@gnu.org>
38460
38461         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38462         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38463
38464 2009-11-08  Jim Meyering  <meyering@redhat.com>
38465
38466         utimens: remove invalid futimesat call
38467         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38468         It used the file descriptor of the target file as the DIR_FD
38469         parameter and NULL as the file name.  That caused failure with
38470         errno == EFAULT on FreeBSD-8.0-rc2
38471
38472 2009-11-07  Eric Blake  <ebb9@byu.net>
38473
38474         fflush, freadseek: use fseeko, not fseek
38475         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38476         (clear_ungetc_buffer): Avoid potential problems on large files.
38477         * lib/freadseek.c (freadseek): Likewise.
38478         * modules/freadseek (Depends-on): Add fseeko.
38479         * modules/fseek (configure.ac): Set a witness.
38480         * tests/test-fflush.c (main): Use fseeko.
38481         * tests/test-fpurge.c (fseek): Disable link warning.
38482         * tests/test-freadable.c (fseek): Likewise.
38483         * tests/test-freading.c (fseek): Likewise.
38484         * tests/test-fseeko.c (fseek): Likewise.
38485         * tests/test-ftell.c (fseek): Likewise.
38486         * tests/test-ftello.c (fseek): Likewise.
38487         * tests/test-fwritable.c (fseek): Likewise.
38488         * tests/test-fwriting.c (fseek): Likewise.
38489
38490 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38491
38492         * modules/memchr (Depends-on): Drop getpagesize dependency.
38493
38494 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38495
38496         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38497         Reported by Ludovic Courtès.
38498         * build-aux/pmccabe2html: Improve example usage.
38499         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38500
38501 2009-11-06  Jim Meyering  <meyering@redhat.com>
38502
38503         do-release-commit-and-tag: New module.
38504         Automate the release-commit and tag process.
38505         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38506         * modules/do-release-commit-and-tag: New file.
38507         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38508
38509 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38510
38511         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38512         because test-select.c uses inet_pton.
38513
38514 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38515
38516         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38517         GETADDRINFO_LIB.  Bump serial number.
38518         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38519         Suggested by Eric Blake <ebb9@byu.net>.
38520
38521 2009-11-05  Eric Blake  <ebb9@byu.net>
38522
38523         strtod: detect darwin bug
38524         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38525         Reported by Leo Davis.
38526
38527         freopen-safer: new module
38528         * modules/freopen-safer: New module.
38529         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38530         * lib/freopen-safer.c (freopen_safer): New file.
38531         * lib/stdio-safer.h (freopen_safer): New declaration.
38532         * lib/stdio--.h (freopen): New override.
38533         * MODULES.html.sh (File stream based Input/Output): Mention it.
38534         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38535         freopen-safer module.
38536         * doc/posix-functions/stderr.texi (stderr): Likewise.
38537         * doc/posix-functions/stdin.texi (stdin): Likewise.
38538         * doc/posix-functions/stdout.texi (stdout): Likewise.
38539         * modules/freopen-safer-tests: New test.
38540         * tests/test-reopen-safer.c: New file.
38541
38542 2009-11-05  Jim Meyering  <meyering@redhat.com>
38543
38544         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38545         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38546
38547 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38548
38549         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38550
38551 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38552
38553         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38554
38555 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38556
38557         Fix link error.
38558         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38559         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38560
38561 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38562
38563         * tests/test-func.c: Also test value of __func__.
38564
38565 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38566
38567         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38568         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38569
38570 2009-11-05  Bruno Haible  <bruno@clisp.org>
38571
38572         Fix link error.
38573         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38574         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38575         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38576
38577 2009-11-05  Bruno Haible  <bruno@clisp.org>
38578
38579         Tests for module 'inet_pton'.
38580         * modules/inet_pton-tests: New file.
38581         * tests/test-inet_pton.c: New file.
38582
38583 2009-11-05  Bruno Haible  <bruno@clisp.org>
38584
38585         Tests for module 'inet_ntop'.
38586         * modules/inet_ntop-tests: New file.
38587         * tests/test-inet_ntop.c: New file.
38588
38589 2009-11-04  Eric Blake  <ebb9@byu.net>
38590
38591         stdlib-safer: wrap all mkstemp variants
38592         * modules/mkostemp (configure.ac): Set witness.
38593         * modules/mkostemps (configure.ac): Likewise.
38594         * modules/mkstemps (configure.ac): Likewise.
38595         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38596         (mkstemps_safer): Wrap more functions.
38597         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38598         wrapping.
38599         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38600         (mkstemps_safer): Implement the wrappers.
38601
38602         mkstemps, mkostemps: new modules
38603         * modules/mkostemps: New module.
38604         * modules/mkstemps: Likewise.
38605         * lib/mkostemps.c (mkostemps): New file.
38606         * lib/mkstemps.c (mkstemps): Likewise.
38607         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38608         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38610         * modules/stdlib (Makefile.am): Substitute them.
38611         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38612         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38613         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38614         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38615         * MODULES.html.sh (File system functions): Mention them.
38616
38617         tempname: resync from glibc
38618         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38619         same values for __GT_FILE as glibc.  Abort even when assertions
38620         are disabled.
38621         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38622         match its value otherwise.  Allow idempotent inclusion.
38623         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38624         * lib/mkostemp.c (mkostemp): Likewise.
38625         * lib/mkstemp.c (mkstemp): Likewise.
38626         * lib/tmpfile.c (tmpfile): Likewise.
38627         * NEWS: Document this.
38628
38629         utimens: fix use of futimens on older Linux
38630         * lib/utimens.c (fdutimens): Use updated, rather than original,
38631         timespec to avoid bug in older Linux kernel.
38632         Reported by Simon Josefsson.
38633
38634 2009-11-04  Bruno Haible  <bruno@clisp.org>
38635
38636         Make num_processors more flexible and consistent.
38637         * lib/nproc.h (enum nproc_query): New type.
38638         (num_processors): Add a 'query' argument.
38639         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38640         (num_processors): Add a 'query' argument. Test the value of the
38641         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38642         mingw, count the number of CPUs available for the current process.
38643         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38644         Check for sched_getaffinity and sched_getaffinity_np.
38645         * modules/nproc (Depends-on): Add c-ctype, extensions.
38646         * NEWS: Mention the change.
38647
38648 2009-11-03  Bruno Haible  <bruno@clisp.org>
38649
38650         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38651
38652 2009-11-03  Jim Meyering  <meyering@redhat.com>
38653
38654         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38655         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38656         if it is defined.
38657
38658 2009-11-02  Eric Blake  <ebb9@byu.net>
38659
38660         mktime, timegm: share common declaration
38661         * lib/mktime-internal.h: New file.
38662         * lib/mktime.c: Use it rather than open-coding a declaration.
38663         * lib/timegm.c: Likewise.
38664         * modules/mktime (Files): Ship it.
38665         * modules/timegm (Files): Likewise.
38666         Suggested by Bruno Haible.
38667
38668         test-update-copyright: update test to match script changes
38669         * tests/test-update-copyright.sh: Avoid hard-coding perl
38670         location.  Don't update *.bak created by earlier runs.
38671
38672 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38673             Simon Josefsson  <simon@josefsson.org>
38674             Bruno Haible  <bruno@clisp.org>
38675
38676         Fix link error on Solaris 8.
38677         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38678         also in libnsl. Define also INET_PTON_LIB.
38679         * modules/inet_pton (Link): New section.
38680
38681 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38682             Bruno Haible  <bruno@clisp.org>
38683
38684         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38685         * modules/inet_ntop (Link): New section.
38686         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38687
38688 2009-11-02  Eric Blake  <ebb9@byu.net>
38689
38690         maint: avoid compiler warnings in m4 macros
38691         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38692         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38693
38694 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38695
38696         * m4/pmccabe2html.m4: Remove file.
38697         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38698         function.  Change maintainer.
38699         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38700         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38701         Courtès).
38702
38703 2009-10-31  Eric Blake  <ebb9@byu.net>
38704
38705         fseeko: fix m4 regression
38706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38707         regression from 2009-10-27.
38708         Reported by Ralf Wildenhues.
38709
38710 2009-10-31  Jim Meyering  <meyering@redhat.com>
38711
38712         inttostr: aesthetics and improved (compile-time) safety
38713         Define inttype_is_signed rather than inttype_is_unsigned,
38714         since the sole use is via "#if inttype_is_signed".
38715         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38716         inttype_is_unsigned.
38717         * lib/offtostr.c (inttype_is_signed): Likewise.
38718         * lib/uinttostr.c (inttype_is_signed): Likewise.
38719         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38720         * lib/inttostr.c (inttostr): Use verify to cross-check the
38721         inttype_is_signed value and the signedness of the actual type.
38722         * modules/inttostr (Depends-on): Add verify.
38723
38724 2009-10-30  Eric Blake  <ebb9@byu.net>
38725
38726         build: avoid compiler warnings
38727         * lib/fchmodat.c (lchmod): Mark unused variables.
38728         * lib/getopt.c (_getopt_initialize): Likewise.
38729         * lib/mktime.c (__mktime_internal): Provide prototype.
38730         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38731         older gcc that do not understand #pragma GCC diagnostic.
38732         * lib/uinttostr.c (inttype_is_unsigned): Define.
38733         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38734
38735 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38736
38737         stat: fix compilation on AIX
38738         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38739         only see struct stat64.
38740
38741 2009-10-30  Eric Blake  <ebb9@byu.net>
38742
38743         exclude: make more robust
38744         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38745         rather than masking a coding bug.
38746         Suggested by Bruno Haible.
38747
38748 2009-10-30  Jim Meyering  <meyering@redhat.com>
38749
38750         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38751         Rather than putting #!/usr/bin/perl on the first line,
38752         start with a variant of what's recommended by "man perlrun" that
38753         invokes the first "perl" program from your shell's search path.
38754         * build-aux/gitlog-to-changelog: Replace #!... as above.
38755         Add a "Local Variables" perl mode setting.
38756         Prompted by a patch from Ludovic Courtès.
38757         Improved by Eric Blake.
38758         * build-aux/useless-if-before-free: Likewise.
38759         * build-aux/announce-gen: Likewise.
38760         * build-aux/update-copyright: Likewise.
38761
38762 2009-10-29  Eric Blake  <ebb9@byu.net>
38763
38764         filenamecat-lgpl: adjust clients
38765         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38766         filenamecat.
38767         * modules/renameat (Depends-on): Likewise.
38768
38769         filenamecat: split into filenamecat-lgpl
38770         * modules/filenamecat-lgpl: New module.
38771         * modules/filenamecat (Files): Move library-safe files into
38772         filenamecat-lgpl.
38773         (Depends-on): Add filenamecat-lgpl.
38774         (configure.ac): Declare witness.
38775         * lib/filenamecat.h (file_name_concat): Only declare when using
38776         GPL module.
38777         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38778         Move...
38779         * lib/filenamecat-lgpl.c: ...into new file.
38780         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38781         (gl_FILE_NAME_CONCAT): Use it.
38782         * MODULES.html.sh (File system functions): Mention new module.
38783
38784         argp: avoid memory leak
38785         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38786         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38787         base_name, since the latter malloc()s and can call exit().
38788         Leak introduced 2006-07-03.
38789
38790         dirname-lgpl: adjust clients that don't need full dirname
38791         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38792         * modules/filenamecat (Depends-on): Likewise.
38793         * modules/linkat (Depends-on): Likewise.
38794         * modules/mkancesdirs (Depends-on): Likewise.
38795         * modules/mkdir (Depends-on): Likewise.
38796         * modules/openat (Depends-on): Likewise.
38797         * modules/savewd (Depends-on): Likewise.
38798         * modules/rename (Depends-on): Likewise.
38799         (License): Relax license.
38800         * modules/mkdir-tests (Depends-on): Drop progname.
38801         (Makefile.am): Delete unneeded LDADD.
38802         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38803
38804         dirname: split into dirname-lgpl
38805         * modules/dirname-lgpl: New module.
38806         * modules/dirname (Files): Move library-safe files into
38807         dirname-lgpl.
38808         (Depends-on): Add dirname-lgpl.
38809         (configure.ac): Declare witness.
38810         * modules/double-slash-root (License): Relax license.
38811         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38812         module.
38813         * lib/dirname.c (dir_len, mdir_name): Move...
38814         * lib/dirname-lgpl.c: ...into new file.
38815         * lib/basename.c (last_component, base_len): Move...
38816         * lib/basename-lgpl.c: ...into new file.
38817         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38818         (gl_DIRNAME): Use it.
38819         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38820         Mention new module.
38821         * modules/dirname-tests (Depends-on): Add progname.
38822         * tests/test-dirname.c (program_name): Delete.
38823
38824         mkdir: make safe for libraries
38825         * modules/mkdir (Depends-on): Drop xalloc.
38826         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38827         exit.
38828
38829         tests: avoid some compiler warnings
38830         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38831         literals.
38832         * tests/test-memchr.c (main): Avoid type mismatch.
38833         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38834         * tests/test-base64.c (main): Likewise.
38835         * tests/test-getdelim.c (main): Likewise.
38836         * tests/test-gethostname.c (main): Likewise.
38837         * tests/test-getline.c (main): Likewise.
38838         * tests/test-netinet_in.c (main): Likewise.
38839         * tests/test-select.c (open_server_socket, main): Likewise.
38840         * tests/test-select-stdin.c (main): Likewise.
38841         * tests/test-sockets.c (main): Likewise.
38842         * tests/test-strsignal.c (main): Likewise.
38843         * tests/test-sys_select.c (main): Likewise.
38844         * tests/test-sys_socket.c (main): Likewise.
38845         * tests/test-u64.c (main): Likewise.
38846         * tests/test-xfprintf-posix.c (main): Likewise.
38847         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38848
38849         sockets: avoid compiler warning
38850         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38851
38852         maint: detect usage(1) and other suspicious exits
38853         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38854
38855 2009-10-29  Jim Meyering  <meyering@redhat.com>
38856
38857         timespec: long-to-int truncation could make timespec_cmp malfunction
38858         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38859         a multiple of 2^32 nanoseconds as no difference.
38860
38861 2009-10-28  Jim Meyering  <meyering@redhat.com>
38862
38863         fprintftime: wrap macro code argument in "do {...} while(0)"
38864         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38865         cpy macro must be a statement that can be followed by a semicolon.
38866         Now that the else clause contains a comment and is hence longer
38867         than one line, I require curly braces.  That in turn requires
38868         that we wrap this code block in the standard do...while(0).
38869
38870         fprintftime: remove stray semicolon from previous change
38871         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38872
38873         fprintftime: avoid a warning about ignored fwrite return value
38874         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38875         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38876         that is unsafe.
38877         * modules/fprintftime (Depends-on): Add ignore-value.
38878
38879         exclude: avoid an unwarranted warning
38880         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38881
38882 2009-10-27  Eric Blake  <ebb9@byu.net>
38883
38884         fseek: avoid compilation failure when fflush is replaced
38885         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38886         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38887         module is in use.
38888         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38889         module is not in use; since REPLACE_FSEEK worked otherwise.
38890         (GNULIB_FTELLO): Likewise for ftell.
38891         Reported by Ian Beckwith and others.
38892
38893 2009-10-27  Bruno Haible  <bruno@clisp.org>
38894
38895         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38896         Reported by Jim Meyering.
38897
38898 2009-10-27  Jim Meyering  <jim@meyering.net>
38899             Bruno Haible  <bruno@clisp.org>
38900
38901         Avoid warning despite dropping the return value of fwrite.
38902         * lib/unicodeio.c: Include ignore-value.h.
38903         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38904         * modules/unicodeio (Depends-on): Add ignore-value.
38905
38906 2009-10-26  Eric Blake  <ebb9@byu.net>
38907
38908         areadlinkat: fix fallback path
38909         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38910         pointer and zero.
38911
38912 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38913
38914         Use a better IO block size for modern systems
38915         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38916         * lib/md2.c: Likewise.
38917         * lib/md4.c: Likewise.
38918         * lib/md5.c: Likewise.
38919         * lib/sha1.c: Likewise.
38920         * lib/sha256.c: Likewise.
38921         * lib/sha512.c: Likewise.
38922
38923 2009-10-22  Eric Blake  <ebb9@byu.net>
38924
38925         tests: avoid several compiler warnings
38926         * tests/test-getcwd.c (main): Avoid buffer underflow.
38927         * tests/test-getdate.c (main): String literals are not safe with
38928         putenv, so use setenv.  Declare unused argument.
38929         * modules/getdate-tests (Depends-on): Add setenv.
38930         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38931         problems with string literals in char *.
38932         * tests/test-hash.c (main): Avoid shadowing declaration.
38933         (insert_new): Treat string literals as char const *.
38934         * tests/test-getopt.h (test_getopt): Likewise.
38935         (getopt_loop): Alter types to minimize casting elsewhere.
38936         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38937         (test_getopt_long_posix): Likewise.
38938         (do_getopt_long): Add wrapper to minimize casting.
38939         * tests/test-atexit.c (clear_temp_file): Use void.
38940         * tests/test-areadlink-with-size.c (main): Declare unused
38941         arguments.
38942         * tests/test-areadlink.c (main): Likewise.
38943         * tests/test-areadlinkat-with-size.c (main): Likewise.
38944         * tests/test-areadlinkat.c (main): Likewise.
38945         * tests/test-canonicalize-lgpl.c (main): Likewise.
38946         * tests/test-canonicalize.c (main): Likewise.
38947         * tests/test-dirent-safer.c (main): Likewise.
38948         * tests/test-dirname.c (main): Likewise.
38949         * tests/test-dup2.c (main): Likewise.
38950         * tests/test-fchdir.c (main): Likewise.
38951         * tests/test-fcntl-h.c (main): Likewise.
38952         * tests/test-fcntl-safer.c (main): Likewise.
38953         * tests/test-fdopendir.c (main): Likewise.
38954         * tests/test-fdutimensat.c (main): Likewise.
38955         * tests/test-fflush.c (main): Likewise.
38956         * tests/test-filenamecat.c (main): Likewise.
38957         * tests/test-filevercmp.c (main): Likewise.
38958         * tests/test-fopen-safer.c (main): Likewise.
38959         * tests/test-fopen.c (main): Likewise.
38960         * tests/test-fpending.c (main): Likewise.
38961         * tests/test-fpurge.c (main): Likewise.
38962         * tests/test-freading.c (main): Likewise.
38963         * tests/test-fstatat.c (main): Likewise.
38964         * tests/test-fsync.c (main): Likewise.
38965         * tests/test-futimens.c (main): Likewise.
38966         * tests/test-getndelim2.c (main): Likewise.
38967         * tests/test-gettimeofday.c (main): Likewise.
38968         * tests/test-getopt.c (main): Likewise.
38969         * tests/test-i-ring.c (main): Likewise.
38970         * tests/test-inttypes.c (main): Likewise.
38971         * tests/test-link.c (main): Likewise.
38972         * tests/test-lstat.c (main): Likewise.
38973         * tests/test-math.c (main): Likewise.
38974         * tests/test-md5.c (main): Likewise.
38975         * tests/test-memchr2.c (main): Likewise.
38976         * tests/test-memrchr.c (main): Likewise.
38977         * tests/test-mkdir.c (main): Likewise.
38978         * tests/test-mkdirat.c (main): Likewise.
38979         * tests/test-mkfifoat.c (main): Likewise.
38980         * tests/test-open.c (main): Likewise.
38981         * tests/test-openat-safer.c (main): Likewise.
38982         * tests/test-openat.c (main): Likewise.
38983         * tests/test-quotearg.c (main): Likewise.
38984         * tests/test-rawmemchr.c (main): Likewise.
38985         * tests/test-readlink.c (main): Likewise.
38986         * tests/test-remove.c (main): Likewise.
38987         * tests/test-rename.c (main): Likewise.
38988         * tests/test-renameat.c (main): Likewise.
38989         * tests/test-rmdir.c (main): Likewise.
38990         * tests/test-sha1.c (main): Likewise.
38991         * tests/test-signal.c (main): Likewise.
38992         * tests/test-sigaction.c (main): Likewise.
38993         * tests/test-stat.c (main): Likewise.
38994         * tests/test-stat-time.c (main): Likewise.
38995         * tests/test-stddef.c (main): Likewise.
38996         * tests/test-stdint.c (main): Likewise.
38997         * tests/test-stdio.c (main): Likewise.
38998         * tests/test-stdlib.c (main): Likewise.
38999         * tests/test-strchrnul.c (main): Likewise.
39000         * tests/test-strerror.c (main): Likewise.
39001         * tests/test-string.c (main): Likewise.
39002         * tests/test-strtod.c (main): Likewise.
39003         * tests/test-strverscmp.c (main): Likewise.
39004         * tests/test-symlink.c (main): Likewise.
39005         * tests/test-symlinkat.c (main): Likewise.
39006         * tests/test-sys_stat.c (main): Likewise.
39007         * tests/test-sys_time.c (main): Likewise.
39008         * tests/test-time.c (main): Likewise.
39009         * tests/test-unistd.c (main): Likewise.
39010         * tests/test-unlink.c (main): Likewise.
39011         * tests/test-unlinkat.c (main): Likewise.
39012         * tests/test-utimens.c (main): Likewise.
39013         * tests/test-utimensat.c (main): Likewise.
39014         * tests/test-version-etc.c (main): Likewise.
39015         * tests/test-wchar.c (main): Likewise.
39016         * tests/test-wctype.c (main): Likewise.
39017         * tests/test-xprintf-posix.c (main): Likewise.
39018         * tests/test-posixtm.c (main): Likewise.
39019         (STREQ): Delete unused macro.
39020         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39021         shadowed variables.
39022         * tests/test-memchr.c (main): Likewise.
39023
39024 2009-10-21  Eric Blake  <ebb9@byu.net>
39025
39026         areadlinkat: avoid failure on older glibc
39027         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39028         rather than mis-comparing 0 against FUNC_RESULT of char*.
39029
39030 2009-10-21  Bruno Haible  <bruno@clisp.org>
39031
39032         * modules/stpncpy (License): Relicense under LGPLv2+.
39033         Reported by David Lutterkort <lutter@redhat.com>.
39034
39035 2009-10-20  Eric Blake  <ebb9@byu.net>
39036
39037         utimensat: work around Solaris 9 bug
39038         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39039         has trailing slash bugs.
39040         * tests/test-lutimens.h (test_lutimens): Enhance test.
39041         * tests/test-utimens.h (test_utimens): Likewise.
39042         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39043         * doc/posix-functions/utimes.texi (utimes): Likewise.
39044         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39045         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39046         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39047         * doc/posix-functions/futimens.texi (futimens): Likewise.
39048
39049         fdutimensat: new module
39050         * modules/fdutimensat: New file.
39051         * lib/fdutimensat.c (fdutimensat): Likewise.
39052         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39053         * MODULES.html.sh (File system functions): Mention module.
39054         * modules/fdutimensat-tests: New test.
39055         * tests/test-fdutimensat.c: Likewise.
39056
39057         doc: regenerate INSTALL
39058         * doc/INSTALL: Reflect recent autoconf update.
39059         * doc/INSTALL.ISO: Likewise.
39060         * doc/INSTALL.UTF-8: Likewise.
39061
39062 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39063
39064         acl: warn if ACL support is not detected
39065         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39066
39067 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39068
39069         * lib/nproc.h: Add extern "C" block for C++.
39070
39071 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39072             Bruno Haible  <bruno@clisp.org>
39073
39074         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39075         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39076         * doc/posix-functions/isalpha.texi: Likewise.
39077         * doc/posix-functions/isblank.texi: Likewise.
39078         * doc/posix-functions/iscntrl.texi: Likewise.
39079         * doc/posix-functions/isdigit.texi: Likewise.
39080         * doc/posix-functions/isgraph.texi: Likewise.
39081         * doc/posix-functions/islower.texi: Likewise.
39082         * doc/posix-functions/isprint.texi: Likewise.
39083         * doc/posix-functions/ispunct.texi: Likewise.
39084         * doc/posix-functions/isspace.texi: Likewise.
39085         * doc/posix-functions/isupper.texi: Likewise.
39086         * doc/posix-functions/isxdigit.texi: Likewise.
39087
39088 2009-10-18  Bruno Haible  <bruno@clisp.org>
39089
39090         Tests for module 'isblank'.
39091         * modules/isblank-tests: New file.
39092         * tests/test-isblank.c: New file.
39093
39094         New module 'isblank'.
39095         * lib/isblank.c: New file.
39096         * m4/isblank.m4: New file.
39097         * modules/isblank: New file.
39098         * doc/posix-functions/isblank.texi: Mention the new module.
39099
39100 2009-10-18  Bruno Haible  <bruno@clisp.org>
39101
39102         New module 'ctype'.
39103         * lib/ctype.in.h: New file.
39104         * m4/ctype.m4: New file.
39105         * modules/ctype: New file.
39106         * doc/posix-headers/ctype.texi: Mention the new module.
39107
39108 2009-10-18  Jim Meyering  <meyering@redhat.com>
39109
39110         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39111         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39112         right after its initialization, rather than farther down.
39113         Keeping these in close proximity makes it easier to ensure
39114         that each such variable is initialized.  E.g.,
39115
39116             LIB_CLOCK_GETTIME=
39117             AC_SUBST([LIB_CLOCK_GETTIME])
39118
39119         This change also increments these serial numbers.
39120         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39121         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39123
39124 2009-10-18  Bruno Haible  <bruno@clisp.org>
39125
39126         Don't let environment variables perturb build.
39127         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39128         (gl_PREREQ_GETHRXTIME): ... not here.
39129
39130 2009-10-18  Bruno Haible  <bruno@clisp.org>
39131
39132         Avoid symlink attack in localcharset module.
39133         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39134         (O_NOFOLLOW): Define fallback.
39135         (get_charset_aliases): Don't open the file if it is a symbolic link.
39136         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39137         gl_FCNTL_H.
39138         (gl_FCNTL_H): Require it.
39139         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39140         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39141         Reported by Fergal Glynn <fglynn@veracode.com>.
39142
39143 2009-10-18  Bruno Haible  <bruno@clisp.org>
39144
39145         Implement nproc for mingw.
39146         * lib/nproc.c: Include <windows.h>
39147         (num_processors): On native Windows platforms, try GetSystemInfo.
39148
39149 2009-10-18  Bruno Haible  <bruno@clisp.org>
39150
39151         Implement nproc for IRIX.
39152         * lib/nproc.c: Include <sys/sysmp.h>.
39153         (num_processors): On IRIX systems, try sysmp.
39154         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39155
39156 2009-10-18  Bruno Haible  <bruno@clisp.org>
39157
39158         Implement nproc for HP-UX.
39159         * lib/nproc.c: Include <sys/pstat.h>
39160         (num_processors): On HP-UX systems, try pstat_getdynamic.
39161         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39162         pstat_getdynamic.
39163
39164 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39165             Bruno Haible  <bruno@clisp.org>
39166
39167         Implement nproc for NetBSD, OpenBSD.
39168         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39169         (ARRAY_SIZE): New macro.
39170         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39171         * m4/nproc.m4: New file.
39172         * modules/nproc (Files): Add m4/nproc.m4.
39173         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39174         (Makefile.am): Instead, augment lib_SOURCES.
39175
39176 2009-10-18  Bruno Haible  <bruno@clisp.org>
39177
39178         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39179         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39180         sys/param.h.
39181
39182 2009-10-16  Eric Blake  <ebb9@byu.net>
39183
39184         utimensat: new module
39185         * modules/utimensat: New file.
39186         * lib/utimensat.c (utimensat): Likewise.
39187         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39188         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39189         so we can work around Linux bugs.
39190         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39191         * modules/sys_stat (Makefile.am): Substitute them.
39192         * lib/sys_stat.in.h (utimensat): Declare it.
39193         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39194         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39195         * modules/utimensat-tests: New test.
39196         * tests/test-utimensat.c: Likewise.
39197
39198         utimens: let lutimens work on non-symlinks
39199         * lib/utimens.c (lutimens): Fall back to utimens rather than
39200         failing with ENOSYS, when file is not a symlink.
39201         (utimens): Reduce redirection.
39202         * tests/test-lutimens.h (test_lutimens): Update test to cover
39203         non-symlinks.
39204         * tests/test-utimens.h (test_utimens): Update test to cover
39205         symlinks.
39206         * tests/test-utimens.c (main): Update caller.
39207
39208         utimens: cache whether utimensat syscall works
39209         * lib/utimens.c (utimensat_works_really): New cache variable.
39210         (fdutimens, lutimens): Use it to avoid failing syscall.
39211
39212         test-stat-time, test-utimens: improve portability
39213         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39214         ext4 on alpha, and for cygwin.
39215         * tests/test-utimens-common.h: New file.
39216         (nap): Factor delays into single function.
39217         * tests/test-lutimens.h (test_lutimens): Use new header.
39218         * tests/test-futimens.h (test_futimens): Likewise.
39219         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39220         timestamps to occur from same machine, as was done previously for
39221         test_utimens.
39222         * modules/utimens-tests (Files): Ship new file.
39223         * modules/futimens-tests (Files): Likewise.
39224         Reported in part by Jim Meyering.
39225
39226         sys_stat: sort replacement declarations
39227         * lib/sys_stat.in.h: Sort declarations.
39228         * lib/futimens.c (futimens): Fix typo.
39229
39230 2009-10-15  Jim Meyering  <meyering@redhat.com>
39231
39232         don't let environment settings perturb build
39233         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39234         could cause a configure-time and/or build-time malfunction.
39235         Typically, a configure-time function-in-library test is performed
39236         via code like this:
39237
39238           LIB_VAR=
39239           AC_SUBST([LIB_VAR])
39240           prefix_saved_LIBS=$LIBS
39241             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39242                        [test "$ac_cv_search_FUNC" = "none required" ||
39243                         LIB_VAR=$ac_cv_search_FUNC])
39244           LIBS=$prefix_saved_LIBS
39245
39246         However, in each of the files affected by this change, the LIB_VAR=
39247         initialization was omitted.  Thus, when set in the environment, its
39248         value would propagate into generated Makefiles when FUNC is not found
39249         in LIB_NAME.
39250         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39251         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39253
39254 2009-10-14  Eric Blake  <ebb9@byu.net>
39255
39256         fchdir: avoid infinite recursion in mingw
39257         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39258         recursing.
39259
39260         test-stat-time: port to mingw
39261         * tests/test-stat-time.c (force_unlink): Return a value.
39262         (test_ctime) [W32]: Fix compilation error.
39263         (nap): Don't call usleep with too large an argument.  Use
39264         force_unlink.
39265         * doc/pastposix-functions/usleep.texi (usleep): Document the
39266         portability issue.
39267
39268 2009-10-13  Jim Meyering  <meyering@redhat.com>
39269
39270         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39271         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39272         * modules/pipe-filter-ii: Likewise.
39273         * modules/sys_socket-tests: Likewise.
39274         * modules/tsearch-tests: Likewise.
39275         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39276         (check): Depend on it.
39277
39278 2009-10-12  Eric Blake  <ebb9@byu.net>
39279
39280         utimens-tests: port to NFS file systems
39281         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39282         comparisons to avoid spurious failures from timestamp drift
39283         between NFS machines.
39284
39285 2009-10-12  Eric Blake  <ebb9@byu.net>
39286
39287         stat-time-tests: minor cleanups
39288         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39289         * tests/test-stat-time.c (nap): Separate assignment from call.
39290         Suggested by Paolo Bonzini and Bruno Haible.
39291
39292         sys_stat: guarantee struct timespec
39293         * lib/sys_stat.in.h (includes): Always include <time.h>
39294         * modules/sys_stat (Depends-on): Add time.
39295         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39296         mode_t permission values.
39297         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39298         get at subsecond timestamps.
39299
39300 2009-10-10  Eric Blake  <ebb9@byu.net>
39301
39302         futimens: new module
39303         * modules/futimens: New file.
39304         * lib/futimens.c (futimens): Likewise.
39305         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39306         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39307         we can work around Linux bugs.
39308         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39309         * modules/sys_stat (Makefile.am): Substitute them.
39310         * lib/sys_stat.in.h (futimens): Declare it.
39311         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39312         * doc/posix-functions/futimens.texi (futimens): Likewise.
39313         * modules/futimens-tests: New test.
39314         * tests/test-futimens.c: Likewise.
39315
39316         utimens: introduce fdutimens
39317         * lib/utimens.h (fdutimens): New prototype.
39318         * lib/utimens.c (gl_futimens): Move guts...
39319         (fdutimens): ...to new interface.
39320         * tests/test-utimens.c (do_fdutimens): Use it.
39321
39322         utimens: add UTIME_NOW and UTIME_OMIT support
39323         * lib/utimens.c (validate_timespec, update_timespec): New helper
39324         functions.
39325         (gl_futimens, lutimens): Use them.
39326         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39327         stdbool, sys_stat.
39328         (Link): Mention resulting library dependency.
39329         * modules/utimecmp (Link): Likewise.
39330         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39331         (Makefile.am): Pick up library dependency.
39332         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39333         definition.
39334         * tests/test-sys_stat.c: Test the definitions.
39335         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39336         * NEWS: Document library dependency.
39337
39338         utimecmp: support symlink timestamps
39339         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39340         hashing when possible.  Use pathconf when available.
39341         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39342         * modules/utimecmp (Depends-on): Add lstat.
39343
39344         utimens: add lutimens interface
39345         * lib/utimens.c (lutimens): New function.
39346         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39347         * lib/utimens.h (lutimens): Declare new interface.
39348         * tests/test-utimens.c (main): Enhance test.
39349         * tests/test-lutimens.h (test_lutimens): New file.
39350         * modules/utimens-tests (Files): Distribute it.
39351         (Depends-on): Add symlink.
39352         (configure.ac): Check for usleep.
39353
39354         utimens: validate futimens usage
39355         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39356         fewer syscalls on failure later on.  Avoid compiler warning on
39357         mingw.
39358         * modules/utimens (Depends-on): Add dup2.
39359
39360         utimens: add test
39361         * modules/utimens-tests: New test.
39362         * tests/test-utimens.h: New file.
39363         * tests/test-futimens.h: Likewise.
39364         * tests/test-utimens.c: Likewise.
39365
39366         doc: mention timestamp portability issues
39367         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39368         instead.
39369         * doc/posix-functions/utime.texi (utime): Likewise.
39370         * doc/posix-functions/utimes.texi (utimes): Likewise.
39371         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39372         instead.
39373         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39374         module.
39375         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39376         Mention weakness with symlink timestamps.
39377         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39378         to utimensat/futimens instead.
39379         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39380
39381         test-dup2: enhance test
39382         * tests/test-dup2.c (main): Also check AT_FDCWD.
39383
39384         test-stat-time: avoid more spurious failures
39385         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39386         xfs; and avoid race if the two timestamps cross quantization edge.
39387
39388         relocatable: prefer 'file system' over 'filesystem'
39389         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39390         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39391         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39392         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39393         * lib/relocatable.c (compute_curr_prefix): Likewise.
39394
39395 2009-10-10  Jim Meyering  <meyering@redhat.com>
39396
39397         stat-time-tests: check for the usleep function
39398         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39399
39400 2009-10-10  Bruno Haible  <bruno@clisp.org>
39401
39402         * modules/xnanosleep: Put the Link section after the Include section.
39403
39404 2009-10-09  Eric Blake  <ebb9@byu.net>
39405
39406         dup2: work around FreeBSD 6.1 bug
39407         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39408         * doc/posix-functions/dup2.texi (dup2): Document it.
39409         Reported by Nelson H. F. Beebe and Jim Meyering.
39410
39411         test-stat-time: port to buggy NFS clients
39412         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39413         (test_ctime): Also skip test if mtime and ctime are skewed.
39414
39415         maint: prefer 'file system' over 'filesystem'
39416         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39417         * doc/posix-functions/lstat.texi (lstat): Likewise.
39418         * lib/file-has-acl.c (file_has_acl): Likewise.
39419         * lib/fwriteerror.c [TEST]: Likewise.
39420         * tests/test-areadlink.h (test_areadlink): Likewise.
39421         * tests/test-areadlinkat-with-size.c (main): Likewise.
39422         * tests/test-areadlinkat.c (main): Likewise.
39423         * tests/test-canonicalize-lgpl.c (main): Likewise.
39424         * tests/test-canonicalize.c (main): Likewise.
39425         * tests/test-fstatat.c (main): Likewise.
39426         * tests/test-linkat.c (main): Likewise.
39427         * tests/test-lstat.h (test_lstat_func): Likewise.
39428         * tests/test-mkdir.h (test_mkdir): Likewise.
39429         * tests/test-readlink.h (test_readlink): Likewise.
39430         * tests/test-remove.c (main): Likewise.
39431         * tests/test-rename.h (test_rename): Likewise.
39432         * tests/test-renameat.c (main): Likewise.
39433         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39434         * tests/test-symlink.h (test_symlink): Likewise.
39435         * tests/test-symlinkat.c (main): Likewise.
39436         * tests/test-unlink.h (test_unlink_func): Likewise.
39437         * tests/test-unlinkat.c (main): Likewise.
39438
39439         maint: make realtime library usage explicit
39440         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39441         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39442         * modules/settime (Link): Likewise.
39443         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39444
39445         test-stat-time: speed up execution
39446         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39447         warning on mingw.
39448         (nap): New helper function.
39449         (prepare_test): Use it to reduce sleep time.
39450         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39451         execution.
39452         * modules/stat-time-tests (configure.ac): Check for usleep.
39453
39454 2009-10-09  Jim Meyering  <meyering@redhat.com>
39455
39456         selinux-h: always use getfilecon wrappers
39457         * lib/getfilecon.c: New file.
39458         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39459         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39460         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39461         (fgetfilecon): Provide a stub.
39462         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39463         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39464         file unconditionally.
39465         When <selinux/selinux.h> is found, arrange to use wrappers.
39466         * modules/selinux-h (Files): Add getfilecon.c.
39467         (Makefile.am): Substitute include-next-related bits
39468         into the now-always-generated selinux/selinux.h file.
39469         * doc/glibc-functions/lgetfilecon.texi: New file.
39470         * doc/glibc-functions/fgetfilecon.texi: New file.
39471         * doc/glibc-functions/getfilecon.texi: New file.
39472         * doc/glibc-functions/getfilecon-desc.texi: New file.
39473         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39474         which to pull in the new files.
39475         * MODULES.html.sh (Misc): Add selinux-h.
39476
39477 2009-10-08  Jim Meyering  <meyering@redhat.com>
39478
39479         unistd: fix comment typo
39480         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39481
39482 2009-10-08  Eric Blake  <ebb9@byu.net>
39483
39484         areadlink: use SIZE_MAX consistently
39485         * modules/areadlink (Depends-on): Add stdint.
39486         * modules/areadlink-with-size (Depends-on): Likewise.
39487         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39488         gives NULL; drop sys/types, since unistd gives size_t; and add
39489         stdint for SIZE_MAX.
39490         (SIZE_MAX): Rely on headers.
39491         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39492         and add stdint.
39493         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39494         (SIZE_MAX): Likewise.
39495         (INITIAL_BUF_SIZE): Turn into enum.
39496         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39497
39498 2009-10-08  Jim Meyering  <meyering@redhat.com>
39499
39500         areadlinkat: avoid compilation failure
39501         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39502         Fix typo in comment.
39503
39504 2009-10-07  Eric Blake  <ebb9@byu.net>
39505
39506         areadlinkat-with-size: new module
39507         * modules/areadlinkat-with-size: New module.
39508         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39509         * lib/areadlink.h (areadlinkat): Declare it.
39510         * MODULES.html.sh (File system functions): Mention it.
39511         * modules/areadlinkat-with-size-tests: New test.
39512         * tests/test-areadlinkat-with-size.c: New file.
39513
39514         xreadlinkat: new module
39515         * modules/xreadlinkat: New module.
39516         * lib/xreadlinkat.c (xreadlinkat): New file.
39517         * lib/xreadlink.h (xreadlinkat): Declare it.
39518         * MODULES.html.sh (File system functions): Mention it.
39519
39520         areadlinkat: new module
39521         * lib/at-func.c (FUNC_FAIL): New define.
39522         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39523         * modules/areadlinkat: New module.
39524         * lib/linkat.c (areadlinkat): Move...
39525         * lib/areadlinkat.c (areadlinkat): ...to new file.
39526         * lib/areadlink.h (areadlinkat): Declare it.
39527         * modules/linkat (Depends-on): Add areadlinkat.
39528         * MODULES.html.sh (File system functions): Mention it.
39529         * modules/areadlinkat-tests: New test.
39530         * tests/test-areadlinkat.c: New file.
39531
39532         areadlink, areadlink-with-size: add tests
39533         * modules/areadlink-tests: New test.
39534         * modules/areadlink-with-size-tests: Likewise.
39535         * tests/test-areadlink.h: New file.
39536         * tests/test-areadlink.c: Likewise.
39537         * tests/test-areadlink-with-size.c: Likewise.
39538
39539         maint: minor cleanups
39540         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39541         _UNUSED_PARAMETER_ instead.
39542         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39543         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39544         * modules/linkat-tests (Files): Distribute test-link.h.
39545
39546         openat, utimens: whitespace cleanup
39547         * lib/openat.c: Prefer space throughout, rather than mix of 8
39548         spaces vs. tabs.
39549         * lib/at-func.c: Likewise.
39550         * lib/utimens.c: Likewise.
39551
39552         openat: avoid using wrong fd
39553         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39554         working directory chooses same fd.
39555         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39556
39557         mkdir, mkdirat: fix cygwin 1.5.x bug
39558         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39559         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39560         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39561         bug.
39562         (gl_PREREQ_MKDIR): Delete unused macro.
39563         * modules/mkdir (Files): Track file rename.
39564         (configure.ac): Update macro name.
39565         * modules/openat (Depends-on): Add mkdir.
39566         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39567
39568         mkdir, mkdirat: add tests
39569         * modules/mkdir-tests: New test.
39570         * tests/test-mkdir.h: New file.
39571         * tests/test-mkdir.c: Likewise.
39572         * tests/test-mkdirat.c: Likewise.
39573         * modules/openat-tests (Files): Add new files.
39574         (Makefile.am): Run new test.
39575
39576 2009-10-06  Eric Blake  <ebb9@byu.net>
39577
39578         doc: tweak *at function documentation
39579         * doc/posix-functions/faccessat.texi (faccessat): Mention
39580         known issue with replacement.
39581         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39582         * doc/posix-functions/linkat.texi (linkat): Likewise.
39583         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39584         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39585         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39586         * doc/posix-functions/renameat.texi (renameat): Likewise.
39587         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39588
39589         openat: fix GNU/Hurd bug in unlinkat
39590         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39591         broken.
39592         * doc/posix-functions/unlink.texi (unlink): Document this.
39593         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39594
39595         fdopendir: fix GNU/Hurd bug
39596         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39597         allowing non-directory fds.
39598         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39599         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39600         * modules/dirent (Makefile.am): Substitute it.
39601         * lib/dirent.in.h (fdopendir): Declare replacement.
39602         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39603         * tests/test-fdopendir.c (main): Test something other than
39604         /dev/null, since on Hurd that behaves like a directory.
39605
39606         test-symlink: port to GNU/Hurd
39607         * tests/test-symlink.h (test_symlink): Relax expected errno.
39608
39609         doc: tweak more cygwin information
39610         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39611         now compatible with glibc.
39612         * doc/posix-functions/getopt.texi (getopt): Likewise.
39613
39614         getopt-gnu: add another test
39615         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39616         guarantee behavior relied on by m4.
39617         * tests/test-getopt.c (main): Use it.
39618         * modules/getopt-posix-tests (Depends-on): Add setenv.
39619         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39620
39621         getopt: fix compilation on darwin
39622         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39623         include.
39624         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39625         Reported by Ludovic Courtès.
39626
39627 2009-10-06  Bruno Haible  <bruno@clisp.org>
39628
39629         * modules/size_max (Description): Discourage its use.
39630         Reported by Simon Josefsson.
39631
39632 2009-10-06  Jim Meyering  <meyering@redhat.com>
39633
39634         linkat: avoid compilation failure
39635         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39636
39637 2009-10-05  Eric Blake  <ebb9@byu.net>
39638
39639         linkat: support Linux 2.6.17
39640         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39641         linkat on Linux, but allow cache variable override.
39642         * lib/linkat.c (rpl_linkat): Define override.
39643         * modules/linkat (Depends-on): Add symlinkat.
39644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39645         * modules/unistd (Makefile.am): Substitute it.
39646         * lib/unistd.in.h (linkat): Declare replacement.
39647         Reported by Pádraig Brady.
39648
39649         quotearg: port test to systems with C.UTF-8 locale
39650         * tests/test-quotearg.c (struct result_strings): Add another
39651         member, differentiating between C.ASCII and C.UTF-8 handling.
39652         (compare_strings): Add parameter.
39653         (main): Adjust all callers.
39654
39655         getopt: avoid clash with FreeBSD _getopt_internal
39656         * lib/getopt.in.h (_getopt_internal): Override the name.
39657         * lib/getopt_int.h (includes): Pick up any overrides.
39658         Reported by Reuben Thomas.
39659
39660         hash: allow C89 compilation
39661         * lib/hash.c (check_tuning): Move declaration before statement.
39662         Reported by Reuben Thomas.
39663
39664 2009-10-05  Karl Berry  <karl@gnu.org>
39665
39666         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39667
39668 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39669             Bruno Haible  <bruno@clisp.org>
39670
39671         * lib/uname.c (uname): Use a table-driven algorithm to compute
39672         Windows NT versions.
39673
39674 2009-10-04  Bruno Haible  <bruno@clisp.org>
39675
39676         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39677         program_invocation_short_name.
39678         * modules/progname (configure.ac): Test for presence of
39679         program_invocation_short_name.
39680         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39681
39682 2009-10-04  Bruno Haible  <bruno@clisp.org>
39683
39684         * lib/progname.c (set_program_name): Fix comment.
39685         Reported by Jim Meyering.
39686
39687 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39688             Bruno Haible  <bruno@clisp.org>
39689
39690         * lib/uname.c: Include <string.h>.
39691         (uname): Do only one call to GetVersionEx in the common case.
39692
39693 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39694             Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39697         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39698         (uname): Add support for Windows CE and various non-x86 CPU types.
39699
39700 2009-10-03  Bruno Haible  <bruno@clisp.org>
39701
39702         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39703         invocation to tests/configure.ac.
39704         Reported by Ian Beckwith <ianb@erislabs.net>.
39705
39706 2009-10-02  Eric Blake  <ebb9@byu.net>
39707
39708         fchdir: avoid compiler warning
39709         * lib/fchdir.c (canonicalize_file_name)
39710         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39711
39712         test-open: support mingw errno values
39713         * tests/test-open.h (test_open): Relax test.
39714         * tests/test-fopen.h (test_fopen): Likewise.
39715         * tests/test-openat-safer.c (main): Likewise.
39716
39717         open: fix opening directory on mingw
39718         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39719
39720         test-open: on GNU/Hurd, /dev/null is a directory
39721         * tests/test-fopen.h (main): Rename...
39722         (test_fopen): ...to this.  Use a guaranteed non-directory when
39723         confirming open behavior on trailing slash.
39724         * tests/test-openat-safer.c (main): Likewise.
39725         * tests/test-open.h (main): Likewise....
39726         (test_open): ...to this.
39727         * tests/test-fopen.c (main): Adjust caller.
39728         * tests/test-fopen-safer.c (main): Likewise.
39729         * tests/test-open.c (main): Likewise.
39730         * tests/test-fcntl-safer.c (main): Likewise.
39731         Reported by Samuel Thibault.
39732
39733         rename, fchdir: don't ignore chdir failure
39734         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39735         * lib/rename.c (rpl_rename) [W32]: Likewise.
39736         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39737         an empty destination directory if source cannot be renamed,
39738         although there is still possibility for failure.
39739         * doc/posix-functions/rename.texi (rename): Document the race.
39740         Reported by Jim Meyering.
39741
39742         maint: cleanup whitespace in recent commits
39743         * lib/rename.c (rpl_rename): Remove tabs.
39744         * tests/test-link.h (test_link): Likewise.
39745         * lib/fchdir.c (get_name): Likewise.
39746         Reported by Jim Meyering.
39747
39748 2009-10-02  Ben Pfaff  <blp@gnu.org>
39749
39750         relocatable-prog-wrapper: Add missing dependency on
39751         double-slash-root.
39752         * modules/relocatable-prog-wrapper: Add dependency.
39753         Reported by Ian Beckwith <ianb@erislabs.net>.
39754
39755 2009-10-02  Eric Blake  <ebb9@byu.net>
39756
39757         renameat: fix Solaris bugs
39758         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39759         needed fixing.
39760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39761         * modules/stdio (Makefile.am): Substitute it.
39762         * lib/stdio.in.h (renameat): Declare replacement.
39763         * lib/renameat.c (rpl_renameat): Implement fix.
39764
39765         renameat: new module
39766         * modules/renameat: New file.
39767         * lib/renameat.c (renameat): Likewise.
39768         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39770         * modules/stdio (Makefile.am): Substitute them.
39771         * lib/stdio.in.h (renameat): Declare it.
39772         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39773         * doc/posix-functions/renameat.texi (renameat): Likewise.
39774         * modules/renameat-tests: New test.
39775         * tests/test-renameat.c: Likewise.
39776
39777         rename: fix mingw bugs
39778         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39779         directory overwrite bugs.
39780
39781         rename: fix another cygwin 1.5 bug
39782         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39783         checks.
39784         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39785         unnecessary cygwin workarounds.  Also work around bug with moving
39786         full directory onto an empty one.
39787         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39788
39789         rename-dest-slash: merge into rename module
39790         * modules/rename-dest-slash (Status): Mark obsolete.
39791         (Depends-on): Add rename.
39792         (Files): Let rename do it all.
39793         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39794         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39795         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39796         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39797         * lib/rename.c (rpl_rename): Update comments.
39798
39799         rename: fix cygwin 1.5.x bugs
39800         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39801         * lib/rename.c (rpl_rename): Work around them.
39802         * modules/rename (Depends-on): Add same-inode.
39803
39804         rename: fix Solaris 10 bug
39805         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39806         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39807         was the only bug.
39808
39809         rename: fix Solaris 9 bug
39810         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39811         on non-directory.  Avoid calling exit.
39812         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39813         strdup.
39814         * modules/rename-tests (Depends-on): Drop lstat.
39815         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39816         (gl_PREREQ_RENAME): Delete unused macro.
39817
39818         rename-dest-slash: fix NetBSD bug
39819         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39820         links.
39821         * modules/rename-dest-slash (Depends-on): Add same-inode.
39822
39823         rename-tests: new test, exposes several platform bugs
39824         * modules/rename-tests: New file.
39825         * tests/test-rename.h: Likewise.
39826         * tests/test-rename.c: Likewise.
39827         * doc/posix-functions/rename.texi (rename): Improve documentation,
39828         including bugs that will eventually be fixed in gnulib.
39829
39830 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39831
39832         * lib/uname.c: Include <stdlib.h>
39833         (uname): Assume version info is available.
39834
39835 2009-10-02  Jim Meyering  <meyering@redhat.com>
39836
39837         gnu-web-doc-update: correct --help output
39838         * build-aux/gnu-web-doc-update: Make --help output relevant.
39839
39840         gnu-web-doc-update: add standard options
39841         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39842
39843         gnu-web-doc-update: New module.
39844         Use this script to automatically update the on-line web documentation
39845         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39846         * modules/gnu-web-doc-update: New file, from coreutils.
39847         * build-aux/gnu-web-doc-update: New script.
39848
39849 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39850
39851         link: LoadLibrary is not needed.
39852         * lib/link.c: Use GetModuleHandle.
39853
39854 2009-10-01  Eric Blake  <ebb9@byu.net>
39855
39856         getopt: bump serial number
39857         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39858         change.
39859
39860         tests: tighten link, rmdir, and remove tests
39861         * tests/test-link.h (includes): No need to use <config.h> here.
39862         Clean up if directory hard link was created, otherwise test for
39863         trailing '.'.
39864         * tests/test-linkat.c (main): Simplify.
39865         * tests/test-remove.c (main): Enhance test for trailing '.'.
39866         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39867
39868 2009-10-01  Jim Meyering  <meyering@redhat.com>
39869
39870         maint.mk: requiring "make major" was annoying, for a "minor" release.
39871         What is intended is "stable", to contrast with alpha and beta,
39872         so require "make stable", not "make major".
39873         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39874         (get_tool_versions): Likewise.
39875         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39876
39877 2009-09-30  Ben Pfaff  <blp@gnu.org>
39878
39879         Fix broken build of replacement for Windows tmpfile().
39880         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39881         flags argument added along with the 'mkostemp' module.
39882
39883 2009-09-28  Bruno Haible  <bruno@clisp.org>
39884
39885         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39886         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39887         to 'remove_elt'.
39888         (gl_list_remove): Update.
39889         * lib/gl_list.c (gl_list_remove): Update.
39890         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39891         to 'remove_elt'.
39892         (gl_oset_remove): Update.
39893         * lib/gl_list.c (gl_oset_remove): Update.
39894         Reported by Eric Blake.
39895
39896 2009-09-28  Eric Blake  <ebb9@byu.net>
39897
39898         doc: mention yet more cygwin 1.7 status
39899         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39900         cygwin.
39901         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39902         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39903
39904         argp: fix test failure
39905         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39906         that are not upper-case.  Pass correct range to tolower.
39907
39908 2009-09-27  Jim Meyering  <meyering@redhat.com>
39909
39910         test-yesno: work around sparc-dash here-document infelicity
39911         Without this change, the literal \177 byte in a here document
39912         would make dash 0.5.5.1-3 access uninitialized memory.
39913         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39914         Instead, use a marker, "@", and filter through tr to create the desired
39915         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39916
39917 2009-09-27  Bruno Haible  <bruno@clisp.org>
39918
39919         Disable untested support for new flavours of ACLs on AIX.
39920         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39921         progress.
39922         * lib/set-mode-acl.c (qset_acl): Likewise.
39923
39924 2008-12-07  Bruno Haible  <bruno@clisp.org>
39925
39926         Add support for new flavours of ACLs on AIX. (Untested.)
39927         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39928         (file_has_acl): Add support for newer AIX.
39929         * lib/set-mode-acl.c (qset_acl): Likewise.
39930         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39931         Rainer Tammer <tammer@tammer.net>.
39932
39933 2009-09-26  Eric Blake  <ebb9@byu.net>
39934
39935         argp: fix compilation of getopt
39936         * lib/getopt.in.h (includes): Use different guard than glibc.
39937         Reported by Sergey Poznyakoff.
39938
39939         doc: mention more cygwin 1.7 status
39940         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39941         bug.
39942         * doc/posix-functions/execl.texi (execl): Likewise.
39943         * doc/posix-functions/execle.texi (execle): Likewise.
39944         * doc/posix-functions/execlp.texi (execlp): Likewise.
39945         * doc/posix-functions/execv.texi (execv): Likewise.
39946         * doc/posix-functions/execve.texi (execve): Likewise.
39947         * doc/posix-functions/execvp.texi (execvp): Likewise.
39948         * doc/glibc-functions/canonicalize_file_name.texi
39949         (canonicalize_file_name): Cygwin 1.7 now provides this.
39950         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39951         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39952         on AT_SYMLINK_NOFOLLOW.
39953
39954 2009-09-24  Eric Blake  <ebb9@byu.net>
39955
39956         test-linkat: make test more robust
39957         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39958
39959         getopt: fix inclusion guards for cygwin
39960         * modules/getopt-posix (Depends-on): Add include-next.
39961         (Makefile.am): Substitute more items in replacement header.
39962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39963         <getopt.h>.
39964         * lib/getopt.in.h (includes): Use split inclusion guard, and
39965         prefer <getopt.h> over include <unistd.h> when one is present.
39966         (option): Also override name of 'struct option'.
39967
39968         same-inode: revert prior change; it is not yet ready
39969         * NEWS: Undo mention of this change.
39970         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39971         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39972         * lib/cycle-check.c (cycle_check): Likewise.
39973         * lib/same.c (same_name): Likewise.
39974         * lib/at-func2.c (at_func2): Likewise.
39975
39976 2009-09-23  Eric Blake  <ebb9@byu.net>
39977
39978         linkat: new module
39979         * modules/linkat: New file.
39980         * lib/at-func2.c (at_func2): Likewise.
39981         * lib/linkat.c (linkat): Likewise.
39982         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39983         * lib/openat-priv.h (at_func2): Add declaration.
39984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39985         * modules/unistd (Makefile.am): Substitute them.
39986         * lib/unistd.in.h (linkat): Declare it.
39987         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39988         * doc/posix-functions/linkat.texi (linkat): Likewise.
39989         * doc/posix-functions/link.texi (link): Tweak wording.
39990         * tests/test-link.c (main): Move guts...
39991         * tests/test-link.h (test_link): ...into new file.
39992         * modules/linkat-tests: New test.
39993         * tests/test-linkat.c: Likewise.
39994         * modules/link-tests (Files): Ship new file.
39995         (Depends-on): Add stdbool.
39996
39997         dirname: add library-safe mdir_name
39998         * lib/dirname.h (mdir_name): New prototype.
39999         * lib/dirname.c (dir_name): Move guts...
40000         (mdir_name): ...to new function that avoids xalloc_die.
40001
40002         fchdir: another mingw fix
40003         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40004         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40005         on mingw (where it has not yet been ported), and make it optional
40006         elsewhere.
40007         (_gl_register_fd): Use it.
40008
40009         same-inode: make SAME_INODE tri-state, to port to mingw
40010         * NEWS: Mention this change.
40011         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40012         st_ino always being 0.
40013         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40014         * lib/cycle-check.c (cycle_check): Likewise.
40015         * lib/same.c (same_name): Likewise.
40016
40017         lstat: avoid mingw compilation error
40018         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40019         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40020         lstat ourselves.
40021         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40022         was adequate.
40023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40024         the checks for lstat.
40025         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40026
40027         link: fix test failure on Solaris 9
40028         * lib/link.c (rpl_link): Don't assume link will catch bogus
40029         trailing slash on source.
40030
40031         test-symlinkat: enhance test
40032         * tests/test-readlink.c (main): Move guts...
40033         * tests/test-readlink.h (test_readlink): ...into new file.
40034         * tests/test-symlink.c (main): Move guts...
40035         * tests/test-symlink.h (test_symlink): ...into new file.
40036         * tests/test-symlinkat.c (main): Use new files for further
40037         coverage.
40038         (do_symlink, do_readlink): New helper functions.
40039         * modules/symlink-tests (Files): Ship new file.
40040         (Depends-on): Add stdbool.
40041         * modules/readlink-tests (Files): Ship new file.
40042         (Depends-on): Add stdbool.
40043         * modules/symlinkat-tests (Files): Use new files.
40044
40045 2009-09-23  Eric Blake  <ebb9@byu.net>
40046
40047         readlink: document portability issue with symlink length
40048         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40049         systems have bogus st_size on symlinks, and mention the
40050         areadlink-with-size module.
40051         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40052         * doc/posix-functions/readlink.texi (readlink): Mention the
40053         areadlink module, and ERANGE failure.
40054         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40055         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40056
40057         readlink: fix Solaris 9 bug with trailing slash
40058         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40059         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40060         * doc/posix-functions/readlink.texi (readlink): Document this.
40061         * modules/readlink-tests: New test.
40062         * tests/test-readlink.c: Likewise.
40063
40064         readlink: fix cygwin 1.5.x bug with return type
40065         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40066         * lib/unistd.in.h (readlink): Use ssize_t.
40067         * lib/readlink.c (readlink): Likewise.
40068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40069         * modules/unistd (Makefile.am): Substitute it.
40070         * lib/unistd.in.h (readlink): Declare replacement.
40071         * doc/posix-functions/readlink.texi (readlink): Document this.
40072
40073         symlink: use throughout gnulib
40074         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40075         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40076         symlink is not used.
40077         * modules/symlinkat (Depends-on): Add symlink.
40078         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40079         * modules/canonicalize-tests (Depends-on): Likewise.
40080         * modules/lstat-tests (Depends-on): Likewise.
40081         * modules/openat-tests (Depends-on): Likewise.
40082         * modules/remove-tests (Depends-on): Likewise.
40083         * modules/rmdir-tests (Depends-on): Likewise.
40084         * modules/unlink-tests (Depends-on): Likewise.
40085         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40086         * tests/test-canonicalize.c (symlink): Likewise.
40087         * tests/test-fstatat.c (symlink): Likewise.
40088         * tests/test-lstat.c (symlink): Likewise.
40089         * tests/test-remove.c (symlink): Likewise.
40090         * tests/test-rmdir.c (symlink): Likewise.
40091         * tests/test-unlink.c (symlink): Likewise.
40092         * tests/test-unlinkat.c (symlink): Likewise.
40093
40094         symlink: new module, for Solaris 9 bug
40095         * modules/symlink: New file.
40096         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40097         * lib/symlink.c: Likewise.
40098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40099         * modules/unistd (Makefile.am): Substitute them.
40100         * lib/unistd.in.h (symlink): Declare replacement.
40101         * MODULES.html.sh (File system functions): Mention it.
40102         * doc/posix-functions/symlink.texi (symlink): Likewise.
40103         * modules/symlink-tests: New test.
40104         * tests/test-symlink.c: Likewise.
40105
40106 2009-09-23  Bruno Haible  <bruno@clisp.org>
40107
40108         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40109         when needed.
40110         Test case: gnulib-tool --import --with-tests atexit inttypes.
40111         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40112
40113 2009-09-23  Bruno Haible  <bruno@clisp.org>
40114
40115         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40116         subcommand, not in a subshell.
40117
40118 2009-09-22  Eric Blake  <ebb9@byu.net>
40119
40120         unistd: sort replacement declarations
40121         * lib/unistd.in.h: Sort declarations.
40122
40123         open, openat: minor optimization
40124         * lib/open.c (open): If open succeeded, len is non-zero.
40125         * lib/openat.c (rpl_openat): Likewise.
40126
40127         link-follow: ensure correct result
40128         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40129         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40130         distinguish between possible failures.
40131
40132 2009-09-21  Eric Blake  <ebb9@byu.net>
40133
40134         fts: avoid compiler warning
40135         * lib/fts.c (dirent_inode_sort_may_be_useful)
40136         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40137
40138 2009-09-19  Bruno Haible  <bruno@clisp.org>
40139
40140         * lib/progreloc.c (canonicalize_file_name): New declaration.
40141
40142 2009-09-19  Eric Blake  <ebb9@byu.net>
40143
40144         link: fix quoting
40145         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40146
40147         openat: fix openat bugs on Solaris 9
40148         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40149         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40150         * modules/openat (Depends-on): Add open.
40151         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40152         * modules/fcntl-h (Makefile.am): Substitute it.
40153         * lib/fcntl.in.h (openat): Declare replacement.
40154         * doc/posix-functions/openat.texi (openat): Document this.
40155
40156         openat: move fstatat and unlinkat into correct files
40157         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40158         compiled.
40159         * lib/openat.c (fstatat, unlinkat): Move...
40160         * lib/fstatat.c (fstatat): ...into correct files.
40161         * lib/unlinkat.c (unlinkat): Likewise.
40162
40163         openat: fix unlinkat bugs on Solaris 9
40164         * lib/unlinkat.c (unlinkat): New file.
40165         * modules/openat (Depends-on): Add unlink.
40166         (Files): Distribute it.
40167         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40168         trailing slash behavior is broken.
40169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40170         * modules/unistd (Makefile.am): Substitute it.
40171         * lib/unistd.in.h (unlinkat): Declare replacement.
40172         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40173
40174         openat: fix fstatat bugs on Solaris 9
40175         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40176         stat.
40177         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40178
40179         test-unlinkat: enhance test, to expose Solaris 9 bug
40180         * tests/test-unlink.c (main): Factor guts...
40181         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40182         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40183         * tests/test-rmdir.c (main): Adjust caller.
40184         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40185         (unlinker): New helper function.
40186         (rmdirat): Enhance check.
40187         * modules/rmdir-tests (Depends-on): Add stdbool.
40188         * modules/unlink-tests (Depends-on): Likewise.
40189         (Files): Add test-unlink.h.
40190         * modules/openat-tests (Files): Likewise.
40191         (Depends-on): Add unlinkdir.
40192
40193         test-fstatat: new test, to expose Solaris 9 bugs
40194         * tests/test-stat.c (main): Factor guts...
40195         * tests/test-stat.h (test_stat_func): ...into new file.
40196         * tests/test-lstat.c (main): Factor guts...
40197         * tests/test-lstat.h (test_lstat_func): ...into new file.
40198         * tests/test-fstatat.c: New file.
40199         * modules/stat-tests (Files): Add test-stat.h.
40200         * modules/lstat-tests (Files): Add test-lstat.h.
40201         (Depends-on): Add stdbool.
40202         * modules/openat-tests (Depends-on): Add pathmax.
40203         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40204         (Makefile.am): Run new test.
40205
40206         remove: new module, for mingw and Solaris 9 bugs
40207         * modules/remove: New file.
40208         * lib/remove.c: Likewise.
40209         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40211         * modules/stdio (Makefile.am): Use them.
40212         * lib/stdio.in.h (remove): Declare replacement.
40213         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40214         * doc/posix-functions/remove.texi (remove): Likewise.
40215         * modules/remove-tests: New test.
40216         * tests/test-remove.c: Likewise.
40217
40218         unlink: new module, for Solaris 9 bug
40219         * modules/unlink: New file.
40220         * lib/unlink.c: Likewise.
40221         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40223         * modules/unistd (Makefile.am): Use them.
40224         * lib/unistd.in.h (stat): Declare replacement.
40225         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40226         * doc/posix-functions/unlink.texi (unlink): Likewise.
40227         * modules/unlink-tests: New test.
40228         * tests/test-unlink.c: Likewise.
40229
40230         lstat: fix Solaris 9 bug
40231         * lib/lstat.c (lstat): Also check for trailing slash on
40232         non-symlink, non-directories.  Use stat module to simplify logic.
40233         * doc/posix-functions/lstat.texi (lstat): Document it.
40234         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40235         (configure.ac): Check for symlink.
40236         * tests/test-lstat.c (main): Add more tests.
40237
40238         stat: add as dependency to other modules
40239         * modules/chown (Depends-on): Add stat.
40240         * modules/euidaccess (Depends-on): Likewise.
40241         * modules/fchdir (Depends-on): Likewise.
40242         * modules/isdir (Depends-on): Likewise.
40243         * modules/link (Depends-on): Likewise.
40244         * modules/lstat (Depends-on): Likewise.
40245         * modules/mkdir-p (Depends-on): Likewise.
40246         * modules/modechange (Depends-on): Likewise.
40247         * modules/open (Depends-on): Likewise.
40248         * modules/readlink (Depends-on): Likewise.
40249         * modules/same (Depends-on): Likewise.
40250
40251         stat: fix Solaris 9 bug
40252         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40253         slash.
40254         * lib/stat.c (rpl_stat): Work around it.
40255         * doc/posix-functions/stat.texi (stat): Update documentation.
40256
40257         stat: new module, for mingw bug
40258         * modules/stat: New file.
40259         * lib/stat.c: Likewise.
40260         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40261         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40262         * modules/sys_stat (Makefile.am): Use them.
40263         * lib/sys_stat.in.h (stat): Declare replacement.
40264         * lib/openat.c (fstatat): Deal with lstat and stat being function
40265         macros.
40266         * modules/openat (Depends-on): Add inline.
40267         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40268         * doc/posix-functions/stat.texi (stat): Likewise.
40269         * modules/stat-tests: New test.
40270         * tests/test-stat.c: Likewise.
40271
40272 2009-09-19  Jim Meyering  <meyering@redhat.com>
40273
40274         syntax-check: detect unnecessary inclusion of canonicalize.h
40275         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40276
40277 2009-09-19  Eric Blake  <ebb9@byu.net>
40278
40279         canonicalize-lgpl: adjust clients to use correct header
40280         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40281         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40282         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40283         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40284         * lib/progreloc.c (includes): Likewise.
40285
40286 2009-09-19  Jim Meyering  <meyering@redhat.com>
40287
40288         test-posixtm.c: correct a comment
40289         * tests/test-posixtm.c: Correct first-line comment.
40290         Spotted by Eric Blake.
40291
40292 2009-09-16  Jim Meyering  <meyering@redhat.com>
40293
40294         posixtm-tests: make T const-correct; add a test case
40295         * tests/test-posixtm.c (T): Declare const.
40296         Add a test for -(2^31+1).
40297         Remove useless can-succeed-only-in-2002 test.
40298
40299         posixtm-tests: adjust the sole failing test
40300         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40301         expected output matches what mktime now produces.  Cross-checked via
40302         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40303
40304         posixtm: move #ifdef'd tests into a new module
40305         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40306         * tests/test-posixtm.c: ... this new file.
40307         * modules/posixtm-tests: New module.
40308
40309 2009-09-19  Eric Blake  <ebb9@byu.net>
40310
40311         openat: simplify use of at-func.c
40312         * lib/at-func.c (includes): Include prerequisites here, to
40313         simplify requirements on client files.
40314         * lib/openat-priv.h: Add double-inclusion guard.
40315         * lib/faccessat.c (includes): Simplify.
40316         * lib/fchmodat.c (includes): Likewise.
40317         * lib/fchownat.c (includes): Likewise.
40318         * lib/mkdirat.c (includes): Likewise.
40319         * lib/mkfifoat.c (includes): Likewise.
40320         * lib/symlinkat.c (includes): Likewise.
40321
40322         openat: allow return of fd 0
40323         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40324         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40325         unistd-safer.
40326         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40327         <fcntl.h>; this module does not leak fds.
40328         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40329         must be allowed to return 0, leaving openat_safer to add the
40330         safety.
40331         (openat_permissive): Avoid writing to just-opened fd 2 if
40332         restoring the current directory fails.
40333         * lib/openat-die.c (openat_restore_fail): Add comment.
40334         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40335         (save_cwd): Guarantee safe fd, but without use of open_safer.
40336         * tests/test-openat.c: New test.
40337         * modules/openat-tests (Files, Makefile.am): Distribute and build
40338         new file.
40339
40340         relocatable-prog-wrapper: fix build
40341         * modules/relocatable-prog-wrapper (Files): Update name of
40342         canonicalize m4 file, broken on 2009-09-17.
40343         Reported by emad hajjar <aleppos@hotmail.com>.
40344
40345 2009-09-19  Bruno Haible  <bruno@clisp.org>
40346
40347         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40348         * lib/safe-alloc.c: Likewise.
40349         Reported by Ian Beckwith <ianb@erislabs.net>.
40350
40351 2009-09-18  Bruno Haible  <bruno@clisp.org>
40352
40353         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40354         Reported by <erobles@sensacd.com.mx>.
40355
40356 2009-09-17  Eric Blake  <ebb9@byu.net>
40357
40358         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40359         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40360         slashes when checking if last component is missing.
40361         * tests/test-canonicalize.c (main): Test this.
40362
40363         canonicalize, canonicalize-lgpl: honor // if distinct from /
40364         * modules/canonicalize (Files): Add double-slash-root.m4.
40365         * modules/canonicalize-lgpl (Files): Likewise.
40366         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40367         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40368         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40369         fallback definition.
40370         (canonicalize_filename_mode): Use it to protect //.
40371         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40372         (__realpath): Likewise.
40373         * tests/test-canonicalize.c (main): Test this.
40374         * tests/test-canonicalize-lgpl.c (main): Likewise.
40375         * modules/canonicalize-tests (Depends-on): Add same-inode.
40376         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40377
40378         canonicalize-lgpl: fix glibc bug with trailing slash
40379         * m4/canonicalize-lgpl.m4: Move contents...
40380         * m4/canonicalize.m4: ...here.
40381         (gl_CANONICALIZE_LGPL): Factor realpath check...
40382         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40383         glibc 2.3.5 bug, fixed 2005-04-27.
40384         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40385         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40386         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40387         * modules/canonicalize-lgpl (Files): Manage file rename.
40388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40389         * modules/stdlib (Makefile.am): Substitute witness.
40390         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40391         is needed.
40392         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40393         replacement is required.
40394         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40395         * doc/glibc-functions/canonicalize_file_name.texi
40396         (canonicalize_file_name): Document this.
40397         * doc/posix-functions/realpath.texi (realpath): Likewise.
40398
40399         canonicalize-lgpl: reject non-directory with trailing slash
40400         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40401         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40402         catches failures in glibc 2.3.5.
40403         * tests/test-canonicalize.c (main): Likewise.
40404
40405         canonicalize-lgpl: use native realpath if it works
40406         * lib/canonicalize-lgpl.c (realpath): Guard with
40407         FUNC_REALPATH_WORKS.
40408         * lib/stdlib.in.h (realpath): Make declaration optional based on
40409         HAVE_REALPATH.
40410         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40411         native realpath works.
40412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40413         * modules/stdlib (Makefile.am): Substitute witness.
40414
40415         canonicalize, canonicalize-lgpl: use <stdlib.h>
40416         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40417         (Include): Mention <stdlib.h>.
40418         (configure.ac): Mention functions we provide.
40419         * modules/canonicalize (configure.ac): Likewise.
40420         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40421         realpath if canonicalize_file_name is missing.
40422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40423         * modules/stdlib (Makefile.am): Substitute witnesses.
40424         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40425         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40426         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40427         * NEWS: Document this.
40428         * doc/glibc-functions/canonicalize_file_name.texi
40429         (canonicalize_file_name): Likewise.
40430         * doc/posix-functions/realpath.texi (realpath): Likewise.
40431         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40432
40433         test-canonicalize: consolidate into single C program
40434         * tests/test-canonicalize.sh: Delete; move setup into...
40435         * tests/test-canonicalize.c (main): ...the program, making it
40436         easier to run in debugger.  Add some tests.
40437         * modules/canonicalize-tests (Files): Remove unused file.
40438         (Depends-on): Add progname.
40439         (configure.ac, Makefile.am): Simplify.
40440
40441         test-canonicalize-lgpl: consolidate into single C program
40442         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40443         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40444         easier to run in debugger.  Add some tests.
40445         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40446         (configure.ac, Makefile.am): Simplify.
40447
40448         canonicalize: avoid resolvepath
40449         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40450         unnecessary checks.
40451         * lib/canonicalize.c (includes): Simplify.
40452         (canonicalize_file_name): Drop resolvepath implementation.
40453         * modules/canonicalize (Depends-on): Drop filenamecat.
40454
40455         canonicalize: don't lose errno
40456         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40457         over calls to free.
40458
40459         canonicalize: simplify errno handling
40460         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40461         assignment.
40462
40463         canonicalize, canonicalize-lgpl: update module dependencies
40464         * modules/canonicalize (Depends-on): Add extensions, lstat,
40465         pathmax, stdlib.
40466         (Files): Drop pathmax.h.
40467         (configure.ac): Adjust macro name.
40468         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40469         lstat, stdlib, sys_stat.
40470         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40471         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40472         extensions.
40473         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40474         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40475         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40476         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40477         declaration, if available.
40478         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40479         we can rely on the readlink module.
40480         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40481         (includes): Use <unistd.h> unconditionally.
40482
40483 2009-09-17  Eric Blake  <ebb9@byu.net>
40484
40485         maint: make Include sections of modules consistent
40486         * modules/alloca: Use only header name; no need to list #include.
40487         * modules/alloca-opt: Likewise.
40488         * modules/arpa_inet: Likewise.
40489         * modules/canon-host: Likewise.
40490         * modules/configmake: Likewise.
40491         * modules/dirent: Likewise.
40492         * modules/eealloc: Likewise.
40493         * modules/environ: Likewise.
40494         * modules/fchdir: Likewise.
40495         * modules/fcntl: Likewise.
40496         * modules/fcntl-h: Likewise.
40497         * modules/gethrxtime: Likewise.
40498         * modules/gettime: Likewise.
40499         * modules/ignore-value: Likewise.
40500         * modules/inet_ntop: Likewise.
40501         * modules/inet_pton: Likewise.
40502         * modules/inttypes: Likewise.
40503         * modules/isnand-nolibm: Likewise.
40504         * modules/isnanf-nolibm: Likewise.
40505         * modules/mbchar: Likewise.
40506         * modules/mbfile: Likewise.
40507         * modules/mbiter: Likewise.
40508         * modules/mbuiter: Likewise.
40509         * modules/netdb: Likewise.
40510         * modules/netinet_in: Likewise.
40511         * modules/nproc: Likewise.
40512         * modules/pagealign_alloc: Likewise.
40513         * modules/poll: Likewise.
40514         * modules/printf-frexp: Likewise.
40515         * modules/pthread: Likewise.
40516         * modules/putenv: Likewise.
40517         * modules/random_r: Likewise.
40518         * modules/relocatable-prog: Likewise.
40519         * modules/search: Likewise.
40520         * modules/select: Likewise.
40521         * modules/selinux-h: Likewise.
40522         * modules/settime: Likewise.
40523         * modules/signal: Likewise.
40524         * modules/size_max: Likewise.
40525         * modules/socklen: Likewise.
40526         * modules/ssize_t: Likewise.
40527         * modules/stdarg: Likewise.
40528         * modules/stdbool: Likewise.
40529         * modules/stddef: Likewise.
40530         * modules/stdint: Likewise.
40531         * modules/stdio: Likewise.
40532         * modules/stdlib: Likewise.
40533         * modules/string: Likewise.
40534         * modules/strings: Likewise.
40535         * modules/sys_file: Likewise.
40536         * modules/sys_ioctl: Likewise.
40537         * modules/sys_select: Likewise.
40538         * modules/sys_socket: Likewise.
40539         * modules/sys_stat: Likewise.
40540         * modules/sys_time: Likewise.
40541         * modules/sys_times: Likewise.
40542         * modules/sys_utsname: Likewise.
40543         * modules/sys_wait: Likewise.
40544         * modules/sysexits: Likewise.
40545         * modules/time: Likewise.
40546         * modules/times: Likewise.
40547         * modules/tmpfile: Likewise.
40548         * modules/trim: Likewise.
40549         * modules/unistd: Likewise.
40550         * modules/wchar: Likewise.
40551         * modules/wctype: Likewise.
40552
40553 2009-09-17  Bruno Haible  <bruno@clisp.org>
40554
40555         Make getdate.y compile on QNX and NetBSD 5 / i386.
40556         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40557         TIME_T_FITS_IN_LONG_INT.
40558         * lib/getdate.y (long_time_t): New type.
40559         (relative_time): Change type of 'seconds' field to long_time_t.
40560         (get_date): Update types of local variables. Check against overflow
40561         during conversion from long_time_t to time_t.
40562         Reported by Matt Kraai <kraai@ftbfs.org>
40563         and Hasso Tepper <hasso@netbsd.org>.
40564
40565 2009-09-17  Bruno Haible  <bruno@clisp.org>
40566
40567         * modules/COPYING: Update copyright years.
40568         * modules/README: Likeiwse.
40569         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40570         Reported by Ian Beckwith <ianb@erislabs.net>.
40571
40572 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40573
40574         * users.txt: Update references for gnuit package.
40575
40576 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40577
40578         * m4/getdelim.m4: Fix typo in copyright line.
40579
40580 2009-09-17  Bruno Haible  <bruno@clisp.org>
40581
40582         * lib/atoll.c: Use the standard header with GPL copyright.
40583         * lib/argz.in.h: Likewise.
40584         * lib/glob.c: Likewise.
40585         * lib/glob-libc.h: Likewise.
40586         * lib/random_r.c: Likewise.
40587         * lib/siglist.h: Likewise.
40588         * lib/strsignal.c: Likewise.
40589         Reported by Ian Beckwith <ianb@erislabs.net>.
40590
40591 2009-09-17  Eric Blake  <ebb9@byu.net>
40592
40593         rmdir: ensure correct dependency order
40594         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40595
40596 2009-09-17  Bruno Haible  <bruno@clisp.org>
40597
40598         Disable assertion that fails on NetBSD 5 / i386.
40599         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40600         Reported by Sam Steingold <sds@gnu.org>
40601         and Hasso Tepper <hasso@netbsd.org>.
40602
40603 2009-09-16  Eric Blake  <ebb9@byu.net>
40604
40605         unlinkdir: port to mingw
40606         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40607         on which no one can unlink a directory.
40608
40609         stdlib: sort witness names
40610         * modules/stdlib (Makefile.am): Sort replacements.
40611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40612         * lib/stdlib.in.h: Likewise.
40613
40614         parse-duration-tests: avoid link failure
40615         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40616         LIBINTL.
40617         Reported by Tom G. Christensen.
40618
40619         openat-tests: ensure unlinkat behaves like rmdir
40620         * tests/test-rmdir.c (main): Factor guts...
40621         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40622         * modules/rmdir-tests (Files): Ship new file.
40623         * modules/openat-tests: New test.
40624         * tests/test-unlinkat.c: Likewise.
40625
40626         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40627         * modules/rmdir-errno (Status, Notice): Now obsolete.
40628
40629         rmdir: work around cygwin 1.5.x and mingw bugs
40630         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40631         * lib/rmdir.c (rmdir): Work around it.
40632         * modules/rmdir (Status, Notice): No longer obsolete.
40633         (Files): Add dos.m4.
40634         (Depends-on): Add unistd.
40635         (configure.ac): Set witnesses.
40636         (License): Relax to LGPLv2+.
40637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40638         * modules/unistd (Makefile.am): Substitute witnesses.
40639         * lib/unistd.in.h (rmdir): Declare replacement.
40640         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40641         * modules/rmdir-tests: New tests.
40642         * tests/test-rmdir.c: Likewise.
40643
40644 2009-09-15  Eric Blake  <ebb9@byu.net>
40645
40646         fchdir: improve use of replacement functions
40647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40648         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40650         REPLACE_CLOSEDIR.
40651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40652         * modules/sys_stat (Makefile.am): Substitute correct witness.
40653         * modules/dirent (Makefile.am): Likewise.
40654         * modules/unistd (Makefile.am): Likewise.
40655         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40656         * lib/unistd.in.h (dup): Likewise.
40657         * lib/sys_stat.in.h (fstat): Likewise.
40658
40659         maint: ignore gnulib-tool temp files
40660         * .gitignore: Ignore files created during gnulib-tool --test.
40661
40662 2009-09-13  Jim Meyering  <meyering@redhat.com>
40663
40664         posixtm: don't reject a time that specify "60" as the number of seconds
40665         * lib/posixtm.c (posixtime): The code to reject invalid dates
40666         would also reject a time specified with the .60 suffix.
40667         But POSIX allows that, in order to accommodate leap seconds.
40668         So don't reject it.
40669         (main): Adjust tests accordingly.
40670         * modules/posixtm (Depends-on): Add stpcpy.
40671
40672 2009-09-11  Jim Meyering  <meyering@redhat.com>
40673
40674         announce-gen: include [$release_type] in emitted Subject:
40675         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40676         e.g., [stable] in the emitted Subject: line.
40677
40678 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40679
40680         Remove obsolete macros from several modules.
40681         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40682         obsolete Autoconf macros with their modern counterparts.
40683         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40684         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40685         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40686         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40687         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40688         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40690         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40691         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40692         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40693         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40694         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40695         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40696         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40697         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40698         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40699         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40700         * m4/time_r.m4 (gl_TIME_R): Likewise.
40701         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40702         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40703         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40704
40705         Fix copyright header in build-aux scripts.
40706         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40707         recommendation.
40708         * build-aux/ncftpput-ftp: Likewise.
40709         * build-aux/update-copyright: Likewise.
40710
40711 2009-09-09  Eric Blake  <ebb9@byu.net>
40712
40713         test-link: allow Linux choice of errno
40714         * tests/test-link.c (main): Relax test for alternate error.
40715
40716         strndup: fix improper m4 caching
40717         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40718         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40719         (gl_PREREQ_STRNDUP): Delete.
40720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40721         * modules/string (Makefile.am): Substitute it.
40722         * lib/string.in.h (strndup): Modernize prototype.
40723
40724         getcwd: port to mingw
40725         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40726         different from the POSIX assumptions made throughout the getcwd
40727         module; fortunately, the mingw getcwd does not need replacement.
40728         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40729         * modules/getcwd-tests: New test.
40730         * tests/test-getcwd.c: Likewise.
40731
40732         link: fix platform bugs
40733         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40734         * lib/link.c (link): Work around them.  Fix related mingw bug.
40735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40736         * modules/unistd (Makefile.am): Substitute it.
40737         * lib/unistd.in.h (link): Declare replacement.
40738         * doc/posix-functions/link.texi (link): Document this.
40739         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40740
40741         test-link: consolidate into single C program, test more cases
40742         * tests/test-link.sh: Delete.
40743         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40744         at least Cygwin and Solaris.
40745         * modules/link-tests (Files): Remove unused file.
40746         (Depends-on): Add errno, sys_stat.
40747         (Makefile.am): Simplify.
40748
40749 2009-09-08  Bruno Haible  <bruno@clisp.org>
40750
40751         Work around towlower, towupper bug on mingw.
40752         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40753         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40754         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40755         * doc/posix-functions/towupper.texi: Likewise.
40756         Reported by Eric Blake.
40757
40758 2009-09-08  Jim Meyering  <meyering@redhat.com>
40759
40760         build: don't try to run autoheader if we don't use it
40761         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40762         is not used in configure.ac.
40763
40764 2009-09-08  Eric Blake  <ebb9@byu.net>
40765
40766         euidaccess: fix compilation error
40767         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40768
40769         rawmemchr: relax license
40770         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40771         okay.
40772         Reported by Jim Meyering.
40773
40774         mkfifoat: new module
40775         * modules/mkfifoat: New file.
40776         * lib/mkfifoat.c: Likewise.
40777         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40779         * modules/sys_stat (Makefile.am): Use them.
40780         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40781         * MODULES.html.sh (File system functions): Mention module.
40782         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40783         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40784         * modules/mkfifoat-tests: New test.
40785         * tests/test-mkfifoat.c: Likewise.
40786
40787         strchrnul: relax license
40788         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40789         okay.
40790         Reported by Jim Meyering.
40791
40792 2009-09-08  Eric Blake  <ebb9@byu.net>
40793
40794         fstatat: fix compilation on Solaris
40795         * lib/fstatat.c (includes): Add fcntl.h.
40796         Reported by Pádraig Brady.
40797
40798 2009-09-07  Eric Blake  <ebb9@byu.net>
40799
40800         rename: modernize replacement
40801         * modules/rename (Depends-on): Add stdio.
40802         (configure.ac): Declare witness.
40803         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40804         stdio take care of replacement.
40805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40806         * modules/stdio (Makefile.am): Substitute them.
40807         * lib/stdio.in.h (rename): Declare replacement.
40808         * lib/rename.c (includes): Allow cross-compilation to non-windows
40809         machines.
40810         * doc/posix-functions/rename.texi (rename): Improve
40811         documentation.
40812
40813         stdio: sort witness names
40814         * modules/stdio (Makefile.am): Sort replacements.
40815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40816         * lib/stdio.in.h: Likewise.
40817
40818         getcwd: minor cleanups
40819         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40820         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40821
40822         openat: provide more convenience names
40823         * modules/faccessat (configure.ac): Add C witness.
40824         * lib/unistd.in.h (readlinkat): Fix typo.
40825         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40826         convenience wrappers.
40827         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40828         wrappers in syntax checks.
40829
40830 2009-09-06  Eric Blake  <ebb9@byu.net>
40831
40832         doc: fix comments in recent patches
40833         * lib/faccessat.c: Mention correct function.
40834         * lib/fchmodat.c: Likewise.
40835         * lib/fchownat.c: Likewise.
40836         * lib/symlinkat.c: Likewise.
40837         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40838         constants.
40839
40840         faccessat, symlinkat: continue cleanup of previous patch
40841         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40842         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40843         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40845         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40846         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40847         set.
40848
40849 2009-09-06  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40852         (fstatat): Declare if GNULIB_FSTATAT is set.
40853         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40854         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40855         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40856         * modules/fcntl-h (Files): Remove m4/openat.m4.
40857         * modules/sys_stat (Files): Remove m4/openat.m4.
40858         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40859         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40860         * modules/unistd (Files): Remove m4/openat.m4.
40861         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40862         GNULIB_OPENAT.
40863         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40864         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40866         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40867         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40868         gl_OPENAT_DEFAULTS.
40869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40870         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40871         Don't require gl_OPENAT_DEFAULTS.
40872         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40873         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40874         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40875         (gl_OPENAT_DEFAULTS): Remove macro.
40876
40877 2009-09-06  Bruno Haible  <bruno@clisp.org>
40878
40879         * modules/openat (configure.ac): Remove unneeded witness.
40880
40881 2009-09-06  Bruno Haible  <bruno@clisp.org>
40882
40883         Set errno to ENOSYS when a function is entirely unsupported.
40884         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40885         EOPNOTSUPP.
40886         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40887         * modules/chown (Depends-on): Remove errno.
40888
40889 2009-09-06  Bruno Haible  <bruno@clisp.org>
40890
40891         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40892
40893 2009-09-06  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40896
40897 2009-09-06  Ben Pfaff  <blp@gnu.org>
40898             Bruno Haible  <bruno@clisp.org>
40899
40900         Work around a glibc bug in strtok_r.
40901         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40902         Undefine if UNDEFINE_STRTOK_R is set.
40903         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40905         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40906         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40907         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40908         UNDEFINE_STRTOK_R.
40909         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40910
40911 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40912
40913         exclude: minor fix
40914         * lib/exclude.c: Include wctype.h
40915
40916 2009-09-06  Akim Demaille  <demaille@gostai.com>
40917
40918         bootstrap: improve error message
40919         * build-aux/bootstrap (find_tool): Upon failure, report the list
40920         of candidates.
40921         Honor the initial value of the envvar.
40922
40923 2009-09-05  Eric Blake  <ebb9@byu.net>
40924
40925         symlinkat: new module
40926         * modules/symlinkat: New file.
40927         * lib/symlinkat.c: Likewise.
40928         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40930         * modules/unistd (Makefile.am): Use them.
40931         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40932         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40933         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40934         * MODULES.html.sh (File system functions): Mention module.
40935         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40936         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40937         * modules/symlinkat-tests: New test.
40938         * tests/test-symlinkat.c: Likewise.
40939
40940         test-openat-safer: add more checks
40941         * tests/test-openat-safer.c (main): Check more code paths.
40942
40943 2009-09-05  Jim Meyering  <meyering@redhat.com>
40944
40945         syntax-check: detect unnecessary inclusion of openat.h
40946         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40947
40948 2009-09-05  Bruno Haible  <bruno@clisp.org>
40949
40950         Support towlower, towupper.
40951         * doc/posix-functions/towlower.texi: Mention module wctype.
40952         * doc/posix-functions/towupper.texi: Likewise.
40953         * lib/wctype.in.h (towlower, towupper): New functions.
40954         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40955         (ASSERT): New macro.
40956         (e): New variable.
40957         (main): Test also towlower, towupper. Test WEOF argument.
40958         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40959
40960 2009-09-05  Bruno Haible  <bruno@clisp.org>
40961
40962         Fix conversion behaviour when the input is invalid.
40963         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40964         mark occurring in first pass of indirect conversion.
40965         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40966         input.
40967         Found by clang's static analyzer.
40968
40969 2009-09-05  Bruno Haible  <bruno@clisp.org>
40970
40971         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40972         where direct conversion is possible.
40973
40974 2009-09-04  Eric Blake  <ebb9@byu.net>
40975
40976         openat: fail with ENOENT on empty name
40977         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40978         buffer.
40979
40980         link-follow: fix logic bug in prior patch
40981         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40982         reversed sense of yes and no in prior patch.  Avoid confusing
40983         compilation failure with desired semantics.
40984
40985         link-follow: accomodate mingw and cross-compilation
40986         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40987         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40988         cross-compilation results to -1, to make linkat easier to
40989         implement when cross-compiling.  Trivially support mingw.
40990         * modules/link-follow (configure.ac): Call new name.
40991         * NEWS: Mention this.
40992
40993 2009-09-03  Eric Blake  <ebb9@byu.net>
40994
40995         faccessat: compile replacement
40996         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40997         needed.
40998
40999         fts: fix compilation error
41000         * lib/fts.c (includes): Re-add "openat.h", for
41001         openat_needs_fchdir.
41002
41003         faccessat: new module
41004         * modules/faccessat: New file.
41005         * lib/faccessat.c: Likewise.
41006         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41008         * modules/unistd (Makefile.am): Use it.
41009         * lib/unistd.in.h (faccessat): Declare it.
41010         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41011         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41012         * MODULES.html.sh (File system functions): Mention it.
41013         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41014         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41015
41016         euidaccess: prefer POSIX over non-standard implementation
41017         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41018         * lib/euidaccess.c (euidaccess): Use it if available.
41019
41020         openat: make template easier to use
41021         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41022         AT_FUNC_F2 to be undefined.
41023         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41024         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41025         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41026         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41027         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41028         Likewise.
41029         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41030         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41031         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41032         Likewise.
41033
41034         openat: declare in POSIX headers
41035         * NEWS: Mention this.
41036         * modules/openat (configure.ac): Declare witnesses.
41037         (Depends-on): Add fcntl-h, sys_stat, unistd.
41038         (Include): Mention correct headers.
41039         * modules/fcntl-h (Depends-on): Add link-warning.
41040         (Files): Add openat.m4.
41041         (Makefile.am): Substitute witnesses.
41042         * modules/sys_stat (Files, Makefile.am): Likewise.
41043         * modules/unistd (Files, Makefile.am): Likewise.
41044         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41045         (gl_OPENAT_DEFAULTS): New macro.
41046         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41049         (SYS_STAT_H): Remove unused variable.
41050         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41051         * lib/fcntl--.h (includes): Remove unneeded header.
41052         * lib/openat-safer.c (includes): Likewise.
41053         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41054         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41055         appropriate headers.
41056         (__OPENAT_PREFIX): Delete.
41057         * lib/fcntl.in.h (openat): Provide declaration.
41058         (AT_FDCWD): Fix Solaris bug.
41059         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41060         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41061         * lib/fchmodat.c (includes):  Adjust to find declaration.
41062         * lib/fchownat.c (includes): Likewise.
41063         * lib/mkdirat.c (includes): Likewise.
41064         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41065         still visible.
41066
41067 2009-09-02  Eric Blake  <ebb9@byu.net>
41068
41069         errno: use consistently
41070         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41071         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41072         * lib/canonicalize.c (ELOOP): Likewise.
41073         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41074         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41075         * lib/lchown.c (EOPNOTSUPP): Likewise.
41076         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41077         * lib/savewd.c (ESTALE): Likewise.
41078         * lib/settime.c (ENOSYS): Likewise.
41079         * lib/utimens.c (ENOSYS): Likewise.
41080         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41081         * lib/chdir-safer.c (ELOOP): Likewise.
41082         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41083         * modules/c-stack (Depends-on): Add errno.
41084         * modules/canonicalize (Depends-on): Likewise.
41085         * modules/chdir-safer (Depends-on): Likewise.
41086         * modules/fdopendir (Depends-on): Likewise.
41087         * modules/inet_ntop (Depends-on): Likewise.
41088         * modules/inet_pton (Depends-on): Likewise.
41089         * modules/lchown (Depends-on): Likewise.
41090         * modules/openat (Depends-on): Likewise.
41091         * modules/savewd (Depends-on): Likewise.
41092         * modules/settime (Depends-on): Likewise.
41093         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41094
41095         fts: avoid leaking fds
41096         * modules/fts (Depends-on): Add cloexec.
41097         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41098         flag.
41099
41100         fts: make directory fds more robust
41101         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41102         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41103
41104         backupfile, chdir-long, fts, savedir: make safer
41105         * lib/backupfile.c (includes): Use "dirent--.h", since
41106         numbered_backup can write to stderr during readdir.
41107         * lib/savedir.c (includes): Likewise.
41108         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41109         emulation can write to stderr on failure.
41110         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41111         * lib/getcwd.c: Document why opendir_safer is unused.
41112         * lib/glob.c: Likewise.
41113         * lib/scandir.c: Likewise.
41114         * lib/openat-proc.c: Likewise, for open_safer.
41115         * modules/backupfile (Depends-on): Add dirent-safer.
41116         * modules/savedir (Depends-on): Likewise.
41117         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41118         * modules/chdir-long (Depends-on): Add openat-safer.
41119
41120         openat-safer: new module
41121         * modules/openat-safer: New file.
41122         * lib/openat-safer.c: Likewise.
41123         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41124         * lib/fcntl-safer.h (openat_safer): Declare.
41125         * lib/fcntl--.h (openat): Override.
41126         * MODULES.html.sh (File descriptor based I/O): Mention it.
41127         * lib/openat.h: Add double-inclusion guards.
41128         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41129         "fcntl--.h", so we can implement openat.
41130         * modules/openat-safer-tests: New test.
41131         * tests/test-openat-safer.c: New file.
41132
41133         dirent-safer: new module
41134         * modules/dirent-safer: New file.
41135         * lib/dirent--.h: Likewise.
41136         * lib/dirent-safer.h: Likewise.
41137         * lib/opendir-safer.c: Likewise.
41138         * m4/dirent-safer.m4: Likewise.
41139         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41140         * modules/dirent-safer-tests: New test.
41141         * tests/test-dirent-safer.c: New file.
41142         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41143
41144         fdopendir: optimize on mingw
41145         * lib/unistd.in.h (_gl_directory_name): New prototype.
41146         * lib/fchdir.c (_gl_directory_name): Implement it.
41147         (fchdir): Use it to simplify implementation.
41148         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41149         fchdir, when available, to avoid calling [f]chdir().
41150
41151         fdopendir: split into its own module
41152         * lib/openat.c (fdopendir): Move...
41153         * lib/fdopendir.c: ...into new file.
41154         * modules/fdopendir: New module.
41155         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41156         * modules/openat (Depends-on): Add fdopendir.
41157         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41158         fdopendir here.
41159         * modules/savedir (Depends-on): Only need fdopendir, not full
41160         openat.
41161         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41162         * lib/openat.h (fdopendir): Drop prototype.
41163         * lib/dirent.in.h (fdopendir): Provide prototype.
41164         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41165         * modules/dirent (Makefile.am): Substitute them.
41166         * MODULES.html.sh (File system functions): Mention it.
41167         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41168         * modules/fdopendir-tests: New file.
41169         * tests/test-fdopendir.c: Likewise.
41170
41171         fchdir: use more consistent macro convention
41172         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41173         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41174         REPLACE_FCHDIR, rather than relying on config.h macros.
41175         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41176         inside a single make-time REPLACE_FCHDIR block, rather than using
41177         the config.h FCHDIR_REPLACEMENT.
41178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41179         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41180         Manage fstat replacement.
41181         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41182         REPLACE_FCHDIR.
41183         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41184         (Makefile.am): Substitute REPLACE_FCHDIR.
41185         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41186         FCHDIR_REPLACEMENT.
41187         * lib/dup-safer.c (dup_safer): Likewise.
41188         * lib/dup2.c (rpl_dup2): Likewise.
41189         * lib/dup3.c (rpl_dup3): Likewise.
41190         * lib/open.c (rpl_open): Likewise.
41191
41192         fchdir: simplify error handling, and support dup3
41193         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41194         stdbool, malloc-posix, realloc-posix.
41195         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41196         (ensure_dirs_slot): Return false on allocation failure.
41197         (rpl_dup2): Delete.
41198         (_gl_register_dup): New function.
41199         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41200         (_gl_register_fd): Close fd on allocation failure.
41201         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41202         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41203         prototype.
41204         (rpl_dup2_fchdir): Delete prototype.
41205         * lib/open.c (open): Update caller.
41206         * lib/dup2.c (dup2): Track fchdir metadata.
41207         * lib/dup3.c (dup3): Likewise.
41208         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41210
41211 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41212
41213         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41214         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41215         don't pass arguments to AC_OUTPUT.
41216
41217 2009-09-02  Bruno Haible  <bruno@clisp.org>
41218
41219         * modules/mkdtemp (License): Relicense under LGPLv2+.
41220         Reported by Paolo Bonzini.
41221
41222 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41223
41224         Replace uses of obsolete autoconf macros in Jim's modules.
41225         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41226         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41227         can evoke a warning from autoconf when run with -Wobsolete
41228         enabled.  They were declared obsolete for good reasons (see
41229         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41230         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41231         should not continue using the deprecated macros.
41232         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41233         obsolete Autoconf macros with modern counterparts.
41234         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41235         * m4/dos.m4 (gl_AC_DOS): Likewise.
41236         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41237         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41238         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41239         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41240         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41241         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41242         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41243         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41244         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41245         Likewise.
41246         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41247         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41248         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41249         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41250         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41251         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41252
41253 2009-09-01  Eric Blake  <ebb9@byu.net>
41254
41255         fchdir: fix off-by-one bug in previous patch
41256         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41257         (_gl_unregister_fd): Delete useless if.
41258
41259 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41260
41261         maint.mk: sort the list of syntax-check rules
41262         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41263         easier to get a sense of progress when the rules are run sequentially
41264         and take a long time.
41265
41266 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41267
41268         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41269         * modules/netinet_in: Likewise.
41270         * modules/sys_file: Likewise.
41271         * modules/sys_ioctl: Likewise.
41272         * modules/sys_select: Likewise.
41273         * modules/sys_socket: Likewise.
41274         * modules/sys_stat: Likewise.
41275         * modules/sys_time: Likewise.
41276         * modules/sys_times: Likewise.
41277         * modules/sys_utsname: Likewise.
41278         * modules/sys_wait: Likewise.
41279
41280 2009-09-01  Jim Meyering  <meyering@redhat.com>
41281
41282         fts: help ensure that return values are not ignored
41283         * lib/fts_.h (__GNUC_PREREQ): Define.
41284         (__attribute_warn_unused_result__): Define.
41285         (fts_children, fts_close, fts_open, fts_read): Declare with
41286         __attribute_warn_unused_result__.
41287
41288         fts: fts_close now fails also when closing a dir file descriptor fails
41289         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41290         and propagate to caller, along with errno.
41291
41292         announce-gen: correct formatting in --help output
41293         * build-aux/announce-gen (usage): Move the one-line description in
41294         --help output "up", to where it belongs, just after Usage:.
41295
41296 2009-08-31  Eric Blake  <ebb9@byu.net>
41297
41298         fchdir: port to mingw
41299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41300         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41301         opened, then use a substitute.
41302         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41303         replacement.
41304         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41305         (_gl_register_fd): No need to check stat if open already filters
41306         all directories.
41307         (fchdir): Fix error condition to match POSIX.
41308         * modules/fchdir (Depends-on): Add sys_stat.
41309         * doc/posix-functions/open.texi (open): Document the limitation.
41310         * modules/fchdir-tests: New file.
41311         * tests/test-fchdir.c: Likewise.
41312
41313         canonicalize: allow cross-testing from cygwin to mingw
41314         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41315         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41316         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41317         Likewise.
41318         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41319         target does not support symlinks.
41320         * tests/test-canonicalize-lgpl.sh: Likewise.
41321
41322         chown: avoid compilation warning on mingw
41323         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41324         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41325         mingw.
41326         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41327         * modules/chown (Depends-on): Add errno.
41328
41329 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41330
41331         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41332         command.
41333
41334 2009-08-31  Jim Meyering  <meyering@redhat.com>
41335
41336         canonicalize: remove useless initialization
41337         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41338         initialization of local, "end".
41339
41340 2009-08-30  Bruno Haible  <bruno@clisp.org>
41341
41342         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41343         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41344         ENOSYS.
41345
41346 2009-08-30  Bruno Haible  <bruno@clisp.org>
41347
41348         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41349         /usr/xpg4/bin/tr when it exists.
41350         * tests/test-pipe-filter-gi1.sh: Likewise.
41351
41352 2009-08-30  Bruno Haible  <bruno@clisp.org>
41353
41354         Work around deficient /usr/bin/id program on Solaris.
41355         * tests/test-file-has-acl.sh (ID): New variable.
41356         * tests/test-set-mode-acl.sh (ID): Likewise.
41357         * tests/test-copy-acl.sh (ID): Likewise.
41358         * tests/test-copy-file.sh (ID): Likewise.
41359
41360 2009-08-30  Bruno Haible  <bruno@clisp.org>
41361
41362         New module 'xstriconveh'.
41363         * lib/xstriconveh.h: New file.
41364         * lib/xstriconveh.c: New file.
41365         * modules/xstriconveh: New file.
41366
41367 2009-08-30  Bruno Haible  <bruno@clisp.org>
41368
41369         Make it easier to use mem_cd_iconveh.
41370         * lib/striconveh.h (iconveh_t): New type.
41371         (iconveh_open, iconveh_close): New declarations.
41372         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41373         with a single 'const iconveh_t *' argument.
41374         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41375         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41376         with a single 'const iconveh_t *' argument.
41377         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41378         * tests/test-striconveh.c (main): Update.
41379         * NEWS: Mention the change.
41380
41381 2009-08-30  Bruno Haible  <bruno@clisp.org>
41382
41383         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41384         problem.
41385
41386 2009-08-30  Bruno Haible  <bruno@clisp.org>
41387
41388         Work around iconv_open problem on Solaris.
41389         * lib/iconv_open-solaris.gperf: New file.
41390         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41391         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41392         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41393         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41394         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41395         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41396
41397 2009-08-29  Jim Meyering  <meyering@redhat.com>
41398
41399         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41400         * top/maint.mk (cvs-check): Remove target; it was just an alias
41401         to the better-named vc-diff-check.
41402         (maintainer-distcheck): Remove rule.  It was used only from
41403         the (alpha/beta/major) target, and all of its commands but one
41404         were coreutils-specific.
41405         (vc-dist): Remove rule.
41406         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41407         Run vc-diff-check, not vc-dist.
41408         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41409
41410 2009-08-27  Bruno Haible  <bruno@clisp.org>
41411
41412         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41413         of 0.
41414
41415 2009-08-27  Bruno Haible  <bruno@clisp.org>
41416
41417         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41418         compilers.
41419         * doc/func.texi: Document the SunPRO C bug.
41420
41421 2009-08-27  Bruno Haible  <bruno@clisp.org>
41422
41423         Fix link error on Solaris.
41424         * tests/test-parse-duration.c (xstrdup): Remove function.
41425
41426 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41427
41428         ignore-value: handle pointer types, too
41429         * lib/ignore-value.h (__attribute__): Remove definition.
41430         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41431         of a more concise and more-often effective "(void) i" statement.
41432         (ignore_ptr): New function to suppress warnings from functions that
41433         return pointers, and to make it explicit that one function doesn't
41434         handle all cases.
41435
41436 2009-08-25  Bruno Haible  <bruno@clisp.org>
41437
41438         dup2: work around a Linux bug.
41439         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41440         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41441         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41442         Reported by Simon Josefsson.
41443
41444 2009-08-25  Jim Meyering  <meyering@redhat.com>
41445
41446         libguestfs uses gnulib
41447         * users.txt: Add libguestfs.
41448
41449 2009-08-24  Eric Blake  <ebb9@byu.net>
41450
41451         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41452         * lib/pipe2.c (includes): Add binary-io.h.
41453         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41454
41455 2009-08-24  Bruno Haible  <bruno@clisp.org>
41456
41457         Tolerate declared but missing accept4 syscall.
41458         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41459         available.
41460         * lib/sys_socket.in.h (accept4): If the function is already present,
41461         override it.
41462         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41463         * modules/accept4 (Makefile.am): Compile accept4.c always.
41464         Reported by Paolo Bonzini and Eric Blake.
41465
41466 2009-08-23  Bruno Haible  <bruno@clisp.org>
41467
41468         New module 'accept4'.
41469         * lib/sys_socket.in.h (accept4): New declaration.
41470         * lib/accept4.c: New file.
41471         * m4/accept4.m4: New file.
41472         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41473         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41474         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41475         HAVE_ACCEPT4.
41476         * modules/accept4: New file.
41477         * doc/glibc-functions/accept4.texi: Mention the new module.
41478
41479 2009-08-24  Jim Meyering  <meyering@redhat.com>
41480
41481         progname: also set global program_invocation_name, when possible
41482         Before this change, a libtool-enabled program that calls glibc's
41483         error function would report the program name as
41484         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41485         * modules/progname (configure.ac): Check for a declaration of
41486         program_invocation_name.
41487         * lib/progname.c:  Include <errno.h>.
41488         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41489         Set program_invocation_name.
41490
41491 2009-08-23  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/dup3.c: Include <string.h>.
41494
41495 2009-08-23  Bruno Haible  <bruno@clisp.org>
41496
41497         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41498         * lib/pipe2.c (pipe2): Likewise.
41499         Suggested by Eric Blake.
41500
41501 2009-08-23  Bruno Haible  <bruno@clisp.org>
41502
41503         Tolerate declared but missing dup3 syscall.
41504         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41505         * lib/unistd.in.h (dup3): If the function is already present,
41506         override it.
41507         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41508         * modules/dup3 (Makefile.am): Compile dup3.c always.
41509         Reported by Paolo Bonzini.
41510
41511 2009-08-23  Bruno Haible  <bruno@clisp.org>
41512
41513         Tolerate declared but missing pipe2 syscall.
41514         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41515         available.
41516         * lib/unistd.in.h (pipe2): If the function is already present,
41517         override it.
41518         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41519         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41520         Reported by Paolo Bonzini.
41521
41522 2009-08-23  Bruno Haible  <bruno@clisp.org>
41523
41524         * lib/pipe2.c (pipe2): Move #ifs inside function.
41525
41526 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41527
41528         quotearg: document limitations of quote_these_too
41529         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41530         those limitations are created.
41531         * lib/quotearg.h (set_char_quoting): Document that digits and
41532         letters that are special after backslash are not permitted.
41533         (quotearg_char): Cross-reference set_char_quoting documentation.
41534
41535 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41536
41537         quotearg: implement custom_quoting_style
41538         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41539         right_quote fields.
41540         (set_custom_quoting): New public function.
41541         (quotearg_buffer_restyled): Add left_quote and right_quote
41542         arguments, handle them very much like locale quoting, and update
41543         all uses.
41544         (quotearg_n_custom): New public function.
41545         (quotearg_n_custom_mem): New public function.
41546         (quotearg_custom): New public function.
41547         (quotearg_custom_mem): New public function.
41548         * lib/quotearg.h: Prototype and document new public functions.
41549         (enum quoting_style): For escape_quoting_style and
41550         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41551         ignored even though they're otherwise like c_quoting_style.
41552         Add custom_quoting_style member and document with comparison to
41553         clocale_quoting_style.
41554         * tests/test-quotearg.c (custom_quotes): New array.
41555         (custom_results): New array.
41556         (main): Extend to test custom quoting.
41557
41558 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41559
41560         quotearg: fix right quote escaping when it's in quote_these_too
41561         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41562         quote, be sure to prepend only one backslash.
41563         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41564         (main): Test it.
41565
41566 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41567
41568         quotearg-tests: test escaping of embedded locale quotes
41569         * tests/test-quotearg.c (struct result_strings): Add member for
41570         new input.
41571         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41572         (inputs): Add new input.
41573         (results_g): Add expected results.
41574         (flag_results): Likewise.
41575         (locale_results): Likewise.
41576         (compare_strings): Check those.
41577
41578 2009-08-23  Bruno Haible  <bruno@clisp.org>
41579
41580         Tests for module 'dup3'.
41581         * modules/dup3-tests: New file.
41582         * tests/test-dup3.c: New file.
41583
41584         New module 'dup3'.
41585         * lib/unistd.in.h (dup3): New declaration.
41586         * lib/dup3.c: New file.
41587         * m4/dup3.m4: New file.
41588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41589         HAVE_DUP3.
41590         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41591         * modules/dup3: New file.
41592         * doc/glibc-functions/dup3.texi: Mention the new module.
41593
41594 2009-08-23  Bruno Haible  <bruno@clisp.org>
41595
41596         Tweak the dup2 test.
41597         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41598         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41599         the test file is still empty. Fix argument order of lseek.
41600
41601 2009-08-23  Bruno Haible  <bruno@clisp.org>
41602
41603         Avoid test link errors when the modules getopt-gnu, gettext are used.
41604         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41606
41607 2009-08-23  Bruno Haible  <bruno@clisp.org>
41608
41609         Fix getdtablesize() on mingw.
41610         * lib/getdtablesize.c (getdtablesize): Implement differently.
41611         * lib/unistd.in.h (getdtablesize): Improve comment.
41612
41613 2009-08-23  Bruno Haible  <bruno@clisp.org>
41614
41615         New module 'mkostemp'.
41616         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41617         * lib/stdlib.in.h (mksotemp): New declaration.
41618         * lib/mkostemp.c: New file, from glibc with modifications.
41619         * lib/tempname.h (GT_FILE): Remove outdated comment.
41620         (gen_tempname): Add flags argument.
41621         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41622         (__GT_FILE): Map to 1.
41623         (small_open, large_open): Remove macros.
41624         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41625         * lib/mkstemp.c (mkstemp): Update.
41626         * lib/mkdtemp.c (mkdtemp): Likewise.
41627         * m4/mkostemp.m4: New file.
41628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41629         HAVE_MKOSTEMP.
41630         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41631         HAVE_MKOSTEMP.
41632         * modules/mkostemp: New file, based on modules/mkstemp.
41633         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41634         * NEWS: Mention the change.
41635
41636 2009-08-23  Bruno Haible  <bruno@clisp.org>
41637
41638         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41639         Reported by Eric Blake.
41640
41641 2009-08-23  Bruno Haible  <bruno@clisp.org>
41642
41643         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41644         Reported by Eric Blake.
41645
41646 2009-08-23  Bruno Haible  <bruno@clisp.org>
41647
41648         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41649         * modules/pipe2 (Depends-on): Likewise.
41650
41651 2009-08-23  Eric Blake  <ebb9@byu.net>
41652
41653         fcntl-h: add O_TTY_INIT support
41654         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41655         * tests/test-fcntl-h.c (o): Test it.
41656         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41657
41658         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41659         * modules/fcntl: Move <fcntl.h> header replacement...
41660         * modules/fcntl-h: ...to new name, so as not to collide with
41661         like-named function.
41662         * tests/test-fcntl.c: Rename...
41663         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41664         * modules/fcntl-tests: Rename...
41665         * modules/fcntl-h-tests: ...to this.  Update test file name.
41666         * modules/chdir-long (Depends-on): Update clients.
41667         * modules/chdir-safer (Depends-on): Likewise.
41668         * modules/fcntl-safer (Depends-on): Likewise.
41669         * modules/fts (Depends-on): Likewise.
41670         * modules/mkancesdirs (Depends-on): Likewise.
41671         * modules/mkdir-p (Depends-on): Likewise.
41672         * modules/open (Depends-on): Likewise.
41673         * modules/savewd (Depends-on): Likewise.
41674         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41675         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41676
41677 2009-08-22  Bruno Haible  <bruno@clisp.org>
41678
41679         * modules/binary-io (License): Relicense under LGPL.
41680         * modules/pipe2 (License): Likewise.
41681
41682 2009-08-22  Bruno Haible  <bruno@clisp.org>
41683
41684         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41685         return value.
41686         * lib/pipe-filter-gi.c (filter_init): Likewise.
41687         Reported by Eric Blake.
41688
41689 2009-08-22  Bruno Haible  <bruno@clisp.org>
41690
41691         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41692         * modules/pipe (Depends-on): Add pipe2.
41693
41694 2009-08-22  Bruno Haible  <bruno@clisp.org>
41695
41696         Tests for module 'pipe2'.
41697         * modules/pipe2-tests: New file.
41698         * tests/test-pipe2.c: New file.
41699
41700         New module 'pipe2'.
41701         * lib/unistd.in.h (pipe2): New declaration.
41702         * lib/pipe2.c: New file.
41703         * m4/pipe2.m4: New file.
41704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41705         HAVE_PIPE2.
41706         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41707         * modules/pipe2: New file.
41708         * doc/glibc-functions/pipe2.texi: Mention the new module.
41709
41710 2009-08-22  Bruno Haible  <bruno@clisp.org>
41711
41712         Reference some new glibc functions.
41713         * doc/glibc-functions/accept4.texi: New file.
41714         * doc/glibc-functions/dup3.texi: New file.
41715         * doc/glibc-functions/mkostemp.texi: New file.
41716         * doc/glibc-functions/pipe2.texi: New file.
41717         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41718         (Glibc sys/socket.h): Refer to accept4.
41719         (Glibc unistd.h): Refer to dup3, pipe2.
41720         Reported by Eric Blake.
41721
41722 2009-08-22  Jim Meyering  <meyering@redhat.com>
41723             Bruno Haible  <bruno@clisp.org>
41724
41725         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41726         This makes it so packages using automake-1.11's silent-rules option
41727         can print e.g., a single "GEN    configmake.h" line, rather than
41728         the 30+ statements that perform the job.  If you want to see the
41729         actual commands, you can still run "make V=1".
41730         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41731         so that make output is abbreviated when those variables are defined
41732         appropriately.
41733         * modules/argz: Likewise.
41734         * modules/arpa_inet: Likewise.
41735         * modules/byteswap: Likewise.
41736         * modules/configmake: Likewise.
41737         * modules/dirent: Likewise.
41738         * modules/errno: Likewise.
41739         * modules/fcntl: Likewise.
41740         * modules/float: Likewise.
41741         * modules/fnmatch: Likewise.
41742         * modules/getopt-posix: Likewise.
41743         * modules/glob: Likewise.
41744         * modules/iconv_open: Likewise.
41745         * modules/inttypes: Likewise.
41746         * modules/localcharset: Likewise.
41747         * modules/locale: Likewise.
41748         * modules/math: Likewise.
41749         * modules/netdb: Likewise.
41750         * modules/netinet_in: Likewise.
41751         * modules/poll: Likewise.
41752         * modules/posix_spawnp-tests: Likewise.
41753         * modules/sched: Likewise.
41754         * modules/search: Likewise.
41755         * modules/selinux-h: Likewise.
41756         * modules/signal: Likewise.
41757         * modules/spawn: Likewise.
41758         * modules/stdarg: Likewise.
41759         * modules/stdbool: Likewise.
41760         * modules/stddef: Likewise.
41761         * modules/stdint: Likewise.
41762         * modules/stdio: Likewise.
41763         * modules/stdlib: Likewise.
41764         * modules/string: Likewise.
41765         * modules/strings: Likewise.
41766         * modules/sys_file: Likewise.
41767         * modules/sys_ioctl: Likewise.
41768         * modules/sys_select: Likewise.
41769         * modules/sys_socket: Likewise.
41770         * modules/sys_stat: Likewise.
41771         * modules/sys_time: Likewise.
41772         * modules/sys_times: Likewise.
41773         * modules/sys_utsname: Likewise.
41774         * modules/sys_wait: Likewise.
41775         * modules/sysexits: Likewise.
41776         * modules/time: Likewise.
41777         * modules/unistd: Likewise.
41778         * modules/wchar: Likewise.
41779         * modules/wctype: Likewise.
41780
41781 2009-08-22  Jim Meyering  <meyering@redhat.com>
41782
41783         announce-gen: detect write failure
41784         * build-aux/announce-gen: Add Coda at end.
41785         Remove equivalent-but-more-verbose block at top.
41786
41787 2009-08-19  Akim Demaille  <demaille@gostai.com>
41788
41789         bootstrap: --help to stdout.
41790         * bootstrap (usage): Don't send --help to stderr.
41791         Use a here doc instead of a long string.
41792
41793 2009-08-21  Eric Blake  <ebb9@byu.net>
41794
41795         test-popen-safer: split from test-popen
41796         * tests/test-popen.c (main): Move...
41797         * tests/test-popen.h: ...into new file.
41798         * tests/test-popen-safer2.c: New file.
41799         * modules/popen-tests (Files): Add test-popen.h.
41800         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41801         Suggested by Bruno Haible.
41802
41803         test-fcntl-safer: split from test-open
41804         * tests/test-open.c (main): Move...
41805         * tests/test-open.h: ...into new file.
41806         * tests/test-fcntl-safer.c: New file.
41807         * modules/open-tests (Files): Add test-open.h.
41808         * modules/fcntl-safer-tests: New file.
41809         Suggested by Bruno Haible.
41810
41811         test-fopen-safer: split from test-fopen
41812         * tests/test-fopen.c (main): Move...
41813         * tests/test-fopen.h: ...into new file.
41814         * tests/test-fopen-safer.c: New file.
41815         * modules/fopen-tests (Files): Add test-fopen.h.
41816         * modules/fopen-safer-tests: New file.
41817         Suggested by Bruno Haible.
41818
41819 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41820
41821         popen-safer: test O_CLOEXEC at run-time.
41822         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41823
41824 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41825
41826         fcntl: move more flags to the header
41827         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41828         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41829         * lib/fcntl.in.h: Do both things here.
41830
41831 2009-08-21  Jim Meyering  <meyering@redhat.com>
41832
41833         consistently remove $@-t before redirecting to it
41834         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41835         * modules/alloca-opt: Likewise.
41836         * modules/byteswap: Likewise.
41837         * modules/fnmatch: Likewise.
41838         * modules/getopt-posix: Likewise.
41839         * modules/glob: Likewise.
41840         * modules/poll: Likewise.
41841         * modules/posix_spawnp-tests: Likewise.
41842         * modules/sys_socket: Likewise.
41843         * modules/sysexits: Likewise.
41844
41845 2009-08-21  Eric Blake  <ebb9@byu.net>
41846
41847         popen: simplify access to original popen
41848         * lib/popen.c (rpl_popen): No need to worry about popen being a
41849         macro.
41850         Reported by Bruno Haible.
41851
41852 2009-08-20  Eric Blake  <ebb9@byu.net>
41853
41854         build: avoid some compiler warnings
41855         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41856         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41857         type.
41858         (new_exclude_segment, excluded_file_pattern_p)
41859         (excluded_file_name_p): Reduce scope.
41860         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41861         old-style declaration.
41862
41863 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41864
41865         * tests/test-exclude1.sh: Handle Windows EOL.
41866         * tests/test-exclude2.sh: Likewise.
41867         * tests/test-exclude3.sh: Likewise.
41868         * tests/test-exclude4.sh: Likewise.
41869         * tests/test-exclude5.sh: Likewise.
41870         * tests/test-exclude6.sh: Likewise.
41871         * tests/test-exclude7.sh: Likewise.
41872
41873 2009-08-19  Akim Demaille  <demaille@gostai.com>
41874
41875         bootstrap: find sha1sum when named gsha1sum.
41876         * bootstrap (find_tool): New.
41877         ($SHA1SUM): New.
41878         Use it.
41879
41880 2009-08-20  Jim Meyering  <meyering@redhat.com>
41881
41882         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41883         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41884         expression that converts "." in a file name to "\." in the resulting
41885         regexp.  Start with a dummy statement, so that prior shell variable
41886         definitions are expanded portably.  Reported by Simon Josefsson.
41887
41888 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41889
41890         Fix polling for writeability of a screen buffer.
41891         * lib/poll.c: Distinguish input and screen buffers for the
41892         Win32 implementation.
41893         * lib/select.c: Likewise.
41894
41895 2009-08-19  Eric Blake  <ebb9@byu.net>
41896
41897         popen-safer: prevent popen from clobbering std descriptors
41898         * modules/popen-safer: New file.
41899         * lib/popen-safer.c: Likewise.
41900         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41901         * lib/stdio--.h (popen): Provide override.
41902         * lib/stdio-safer.h (popen_safer): Provide declaration.
41903         * tests/test-popen.c (includes): Partially test this.
41904         * modules/popen-safer-tests: New file, for more tests.
41905         * tests/test-popen-safer.c: Likewise.
41906         * MODULES.html.sh (file stream based Input/Output): Mention it.
41907
41908         tests: test some of the *-safer modules
41909         * modules/fopen-safer (Depends-on): Add fopen.
41910         * modules/fcntl-safer (Depends-on): Add fcntl.
41911         * modules/stdlib-safer (Depends-on): Add stdlib.
41912         (configure.ac): Set indicator.
41913         * modules/unistd-safer (configure.ac): Likewise.
41914         * modules/tmpfile-safer (configure.ac): Likewise.
41915         (Depends-on): Add tmpfile.
41916         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41917         active.
41918         * tests/test-fopen.c (includes): Test safer versions when they are
41919         in use.
41920         * tests/test-open.c (includes): Likewise.
41921
41922         popen: fix cygwin 1.5 bug when stdin closed
41923         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41924         * modules/popen: New file.
41925         * modules/popen-tests: Likewise.
41926         * tests/test-popen.c: Likewise.
41927         * m4/popen.m4: Likewise.
41928         * lib/popen.c: Likewise.
41929         * lib/stdio.in.h (popen): New declaration.
41930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41931         * modules/stdio (Makefile.am): Likewise.
41932         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41933
41934 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41935
41936         maint.mk: give full control over update-copyright exclusions
41937         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41938         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41939         (update-copyright): Don't force inclusion of top-level
41940         ChangeLog.  Don't force exclusion of all COPYING files, but make
41941         them the default exclusion instead.
41942
41943 2009-08-16  Bruno Haible  <bruno@clisp.org>
41944
41945         Fix test failures on Solaris 10.
41946         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41947         tests when Solaris iconv() is used.
41948         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41949         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41950         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41951         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41952         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41953
41954 2009-08-16  Bruno Haible  <bruno@clisp.org>
41955
41956         Fix test failures on Solaris 10.
41957         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41958         'tr' program and pass it as first argument.
41959         * tests/test-pipe-filter-gi1.sh: Likewise.
41960         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41961         program as first argument.
41962         * tests/test-pipe-filter-gi1.c (main): Likewise.
41963
41964 2009-08-16  Eric Blake  <ebb9@byu.net>
41965
41966         fpurge: fix previous commits
41967         * modules/fpurge (Makefile.am): Make replacement conditional,
41968         partially reverting 2007-04-29 change; missed in previous
41969         attempt.
41970         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41971         is missing.
41972
41973 2009-08-16  Bruno Haible  <bruno@clisp.org>
41974
41975         Clarify fpurge's effect on the file position.
41976         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41977         * tests/test-fpurge.c (main): Make a second pass for checking the file
41978         position.
41979
41980 2009-08-16  Bruno Haible  <bruno@clisp.org>
41981
41982         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41983         declaration of fpurge is missing.
41984         * tests/test-fpurge.c (main): Check that the file has not more contents
41985         than expected. Close the file before removing it.
41986
41987 2009-08-15  Eric Blake  <ebb9@byu.net>
41988
41989         fpurge: don't wrap working cygwin implementation
41990         * lib/fpurge.c (fpurge): Fix comment typo.
41991         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41992         1.7 to avoid replacement.
41993         * tests/test-fpurge.c (main): Enhance test.
41994
41995 2009-08-15  Eric Blake  <ebb9@byu.net>
41996         and Jim Meyering  <meyering@redhat.com>
41997
41998         test-update-copyright: skip if perl is insufficient
41999         * tests/test-update-copyright.sh: Failure to run maintainer tool
42000         should not cause testsuite failure on cygwin 1.5.
42001
42002 2009-08-14  Eric Blake  <ebb9@byu.net>
42003
42004         doc: mention more functions added in cygwin 1.7.0
42005         * doc/posix-headers/limits.texi (limits.h): Update for recent
42006         cygwin additions.
42007         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42008         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42009         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42010         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42011         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42012
42013 2009-08-14  Eric Blake  <ebb9@byu.net>
42014
42015         maint.mk: simplify update-copyright rule
42016         * top/maint.mk (update-copyright-local): Delete, and document how
42017         to do it in cfg.mk instead.
42018         (update-copyright-exclude-regexp): Delete, and document how to do
42019         it in .x-update-copyright instead.
42020         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42021         exclude ChangeLog.
42022
42023 2009-08-14  Bruno Haible  <bruno@clisp.org>
42024
42025         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42026
42027 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42028
42029         maint.mk: support update-copyright-env
42030         * top/maint.mk (update-copyright-env): Define place-holder.
42031         (update-copyright): Expand $(update-copyright-env) before
42032         invoking update-copyright.
42033
42034 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42035
42036         update-copyright: implement forced reformatting
42037         * build-aux/update-copyright: Implement and document
42038         UPDATE_COPYRIGHT_FORCE.
42039         * tests/test-update-copyright.sh: Test it.
42040
42041 2009-08-14  Eric Blake  <ebb9@byu.net>
42042         and Bruno Haible  <bruno@clisp.org>
42043
42044         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42045         * tests/test-locale.c: Revert previous patch related to NULL.
42046         * tests/test-stdio.c: Likewise.
42047         * tests/test-stdlib.c: Likewise.
42048         * tests/test-string.c: Likewise.
42049         * tests/test-unistd.c: Likewise.
42050         * modules/time-tests (Depends-on): Add verify.
42051         * modules/wchar-tests (Depends-on): Likewise.
42052         * tests/test-time.c: Test for NULL compliance.
42053         * tests/test-wchar.c: Likewise.
42054         * modules/locale (Depends-on): Add stddef.
42055         * modules/stdio (Depends-on): Likewise.
42056         * modules/stdlib (Depends-on): Likewise.
42057         * modules/string (Depends-on): Likewise.
42058         * modules/time (Depends-on): Likewise.
42059         * modules/unistd (Depends-on): Likewise.
42060         * modules/wchar (Depends-on): Likewise.
42061         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42062         * lib/stdlib.in.h (includes): Likewise.
42063         * lib/string.in.h (includes): Likewise.
42064         * lib/time.in.h (includes): Likewise.
42065         * lib/unistd.in.h (includes): Likewise.
42066         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42067         replaced.
42068         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42069         * m4/stddef_h.m4: New file.
42070         * modules/stddef: Likewise.
42071         * lib/stddef.in.h: Likewise.
42072         * modules/stddef-tests: Likewise.
42073         * tests/test-stddef.c: Likewise.
42074         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42075         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42076         * doc/posix-headers/locale.texi (locale.h): Likewise.
42077         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42078         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42079         * doc/posix-headers/string.texi (string.h): Likewise.
42080         * doc/posix-headers/time.texi (time.h): Likewise.
42081         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42082         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42083
42084 2009-08-14  Eric Blake  <ebb9@byu.net>
42085
42086         doc: improve git diff of texinfo files
42087         * .gitattributes: Add rule for *.texi files, with hint on how to
42088         use it.
42089         Copied from m4, and based on a report by Bruno Haible.
42090
42091 2009-08-14  Bruno Haible  <bruno@clisp.org>
42092
42093         Disable multithread support by default on Cygwin 1.5.x for real.
42094         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42095
42096 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42097
42098         update-copyright: much ado about intervals
42099         * build-aux/update-copyright: Implement and document
42100         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42101         of copyright year intervals.
42102         Also, document UPDATE_COPYRIGHT_YEAR.
42103         * tests/test-update-copyright.sh: Test it.
42104
42105         update-copyright: convert 2-digit to 4-digit years
42106         * build-aux/update-copyright: Implement and document.
42107         * tests/test-update-copyright.sh: Update.
42108
42109 2009-08-14  Jim Meyering  <meyering@redhat.com>
42110
42111         test-exclude: avoid coreutils "make check" failure
42112         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42113         just as in test-argmatch.c.
42114
42115 2009-08-13  Eric Blake  <ebb9@byu.net>
42116
42117         test-dup2: fix bad assumption
42118         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42119         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42120
42121         test-version-etc: fix CRLF portability issue
42122         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42123         recognize \r.
42124         * tests/test-argp-version-etc-1.sh: Likewise.
42125
42126         getopt: update client modules
42127         * modules/argp (Depends-on): Use getopt-gnu.
42128         * modules/git-merge-changelog (Depends-on): Likewise.
42129         * modules/long-options (Depends-on): Likewise.
42130         * modules/xstrtol (Depends-on): Likewise.
42131
42132 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42133
42134         * tests/test-version-etc.sh: Don't fail on different
42135         project/version.  Don't fail on CRLF differences.  Rewrite to use
42136         multiple -e instead of multiple sed forks, suggested by Eric Blake
42137         <ebb9@byu.net>.
42138         * tests/test-argp-version-etc-1.sh: Likewise.
42139
42140 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42141
42142         * tests/test-version-etc.sh: Don't fail on different
42143         project/version.
42144
42145 2009-08-12  Bruno Haible  <bruno@clisp.org>
42146
42147         Tests for modules 'getopt-posix', 'getopt-gnu'.
42148         * modules/getopt-posix-tests: New file.
42149         * tests/test-getopt.c: New file.
42150         * tests/test-getopt.h: New file.
42151         * tests/test-getopt_long.h: New file.
42152
42153         New modules 'getopt-posix', 'getopt-gnu'.
42154         * modules/getopt-gnu: New file, renamed from modules/getopt.
42155         * modules/getopt-posix: New file.
42156         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42157         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42158         (gl_GETOPT): Remove macro.
42159         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42160         Disable the test against BSD systems that declare optreset. Test
42161         against mingw bug. Test against lack of support of optional arguments
42162         on many platforms.
42163         * doc/glibc-headers/getopt.texi: Update module name and list of
42164         relevant platforms.
42165         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42166         'getopt-gnu' and more portability problems.
42167         * NEWS: Mention the changes.
42168
42169 2009-08-12  Bruno Haible  <bruno@clisp.org>
42170
42171         Ensure that optarg etc. get declared by <unistd.h>.
42172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42173         AC_USE_SYSTEM_EXTENSIONS.
42174         * modules/getopt (Depends-on): Add 'extensions'.
42175
42176 2009-08-12  Bruno Haible  <bruno@clisp.org>
42177
42178         Avoid test link errors.
42179         * modules/pipe-filter-ii-tests (Makefile.am): Define
42180         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42181         * modules/pipe-filter-gi-tests (Makefile.am): Define
42182         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42184
42185 2009-08-12  Bruno Haible  <bruno@clisp.org>
42186
42187         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42188         gl_GETOPT_SUBSTITUTE before.
42189         (gl_GETOPT): Use it.
42190         * m4/argp.m4 (gl_ARGP): Update.
42191         Reported by Sergey Poznyakoff.
42192
42193         * m4/getopt.m4: Reorder macros.
42194         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42195         (gl_GETOPT_SUBSTITUTE): Remove macro.
42196
42197 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42198
42199         Minor improvement in gitlog-to-changelog
42200
42201         * build-aux/gitlog-to-changelog: New option `--format' makes
42202         output format string configurable.
42203
42204 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42205
42206         Optimize exclude: use hash tables for non-wildcard patterns.
42207
42208         * lib/exclude.c: Include hash.h and mbuiter.h
42209         (struct exclude_pattern, exclude_segment): New data types.
42210         (struct exclude): Rewrite.
42211         (fnmatch_pattern_has_wildcards): New function.
42212         (new_exclude_segment, free_exclude_segment): New functions.
42213         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42214         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42215         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42216         * modules/exclude: Depend on hash and mbuiter.
42217
42218         * modules/exclude-tests: New file.
42219         * tests/test-exclude.c: New file.
42220         * tests/test-exclude1.sh: New file.
42221         * tests/test-exclude2.sh: New file.
42222         * tests/test-exclude3.sh: New file.
42223         * tests/test-exclude4.sh: New file.
42224         * tests/test-exclude5.sh: New file.
42225         * tests/test-exclude6.sh: New file.
42226         * tests/test-exclude7.sh: New file.
42227
42228 2009-08-12  Bruno Haible  <bruno@clisp.org>
42229
42230         Ensure that getopt() gets declared by <unistd.h>.
42231         * lib/unistd.in.h: Conditionally include getopt.h.
42232         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42233         Set GNULIB_UNISTD_H_GETOPT.
42234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42235         GNULIB_UNISTD_H_GETOPT.
42236         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42237
42238 2009-08-12  Bruno Haible  <bruno@clisp.org>
42239
42240         Clarify logic.
42241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42242         gl_replace_getopt instead of GETOPT_H.
42243
42244 2009-08-12  Bruno Haible  <bruno@clisp.org>
42245
42246         * m4/getopt.m4: Add comments.
42247
42248 2009-08-12  Bruno Haible  <bruno@clisp.org>
42249
42250         Disable multithread support by default on Cygwin 1.5.x.
42251         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42252         set gl_use_threads=no if not specified otherwise.
42253
42254 2009-08-11  Bruno Haible  <bruno@clisp.org>
42255
42256         Avoid compilation error on NetBSD 5.0.
42257         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42258         * tests/test-stdio.c: Likewise.
42259         * tests/test-stdlib.c: Likewise.
42260         * tests/test-string.c: Likewise.
42261         * tests/test-unistd.c: Likewise.
42262         Reported by Greg Troxel <gdt@ir.bbn.com>
42263         at <https://savannah.gnu.org/support/?106973>.
42264
42265 2009-08-11  Bruno Haible  <bruno@clisp.org>
42266
42267         * modules/dup2-tests (Depends-on): Remove close.
42268
42269         Undo 2009-07-19 commit.
42270         * modules/acl-tests (Depends-on): Remove close.
42271         * modules/binary-io-tests (Depends-on): Likewise.
42272         * modules/closein-tests (Depends-on): Likewise.
42273         * modules/flock-tests (Depends-on): Likewise.
42274         * modules/fsync-tests (Depends-on): Likewise.
42275         * modules/lseek-tests (Depends-on): Likewise.
42276         * modules/pipe-tests (Depends-on): Likewise.
42277         * modules/posix_spawn-tests (Depends-on): Likewise.
42278         * modules/posix_spawnp-tests (Depends-on): Likewise.
42279         * modules/stat-time-tests (Depends-on): Likewise.
42280         * modules/yesno-tests (Depends-on): Likewise.
42281
42282 2009-08-10  Bruno Haible  <bruno@clisp.org>
42283
42284         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42285
42286 2009-08-10  Bruno Haible  <bruno@clisp.org>
42287
42288         Fix a gcc warning.
42289         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42290
42291 2009-08-10  Bruno Haible  <bruno@clisp.org>
42292
42293         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42294         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42295         not only the first time.
42296         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42297         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42298         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42299         is 1, not only the the first time.
42300
42301 2009-08-10  Bruno Haible  <bruno@clisp.org>
42302
42303         Make it possible to use module 'gethostname' without module 'close'.
42304         * lib/unistd.in.h (close): Evoke a link error only if
42305         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42307         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42308         * modules/unistd (Makefile.am): Substitute
42309         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42310         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42311         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42313         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42314         * modules/sys_ioctl (Makefile.am): Substitute
42315         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42316         * modules/socket (configure.ac): On native Windows, set
42317         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42318         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42319         Reported by Sam Steingold <sds@gnu.org>.
42320
42321 2009-08-10  Bruno Haible  <bruno@clisp.org>
42322
42323         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42324         * modules/ioctl (configure.ac): Likewise.
42325
42326 2009-08-10  Bruno Haible  <bruno@clisp.org>
42327
42328         Avoid collision between gnulib wrapper and libintl wrapper.
42329         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42330         already defined in intl/printf.c.
42331         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42332         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42333
42334 2009-08-09  Bruno Haible  <bruno@clisp.org>
42335
42336         Make <sys/select.h> really self-contained, also on Solaris 10.
42337         * lib/sys_select.in.h: Include <string.h>.
42338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42339         Solaris 10 problem.
42340         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42341         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42342         Reported by Jim Meyering.
42343
42344 2009-08-09  Bruno Haible  <bruno@clisp.org>
42345
42346         Avoid warnings from 'aclocal' that are due to a use of macro name
42347         AM_XGETTEXT_OPTION that is not defined in automake.
42348         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42349         automake.
42350         * modules/error (configure.ac): Likewise.
42351         * modules/propername (configure.ac): Likewise.
42352         * modules/vasprintf (configure.ac): Likewise.
42353         * modules/verror (configure.ac): Likewise.
42354         * modules/xprintf (configure.ac): Likewise.
42355         * modules/xvasprintf (configure.ac): Likewise.
42356
42357 2009-08-08  Bruno Haible  <bruno@clisp.org>
42358
42359         Avoid compilation error in C++ mode.
42360         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42361         Reported by Sam Steingold <sds@gnu.org>.
42362
42363 2009-08-08  Bruno Haible  <bruno@clisp.org>
42364
42365         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42366         for the various Unix platforms.
42367         * doc/posix-headers/limits.texi: Update platforms list regarding
42368         HOST_NAME_MAX.
42369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42370
42371 2009-08-07  Jim Meyering  <meyering@redhat.com>
42372
42373         selinux-at: fix typo in a comment
42374         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42375         Spotted by Paolo Bonzini.
42376
42377         selinux-at: remove redundant m4 code, add documentation
42378         * modules/selinux-at (configure.ac): Remove redundant code.
42379         LIB_SELINUX is already set via the dependent module, selinux-h.
42380         (Include): Add quotes around selinux-at.h.
42381         * lib/selinux-at.h: Add documentation.
42382         Reported by Bruno Haible in
42383         http://marc.info/?l=gnulib-bug&m=124958988300749
42384
42385 2009-08-07  Bruno Haible  <bruno@clisp.org>
42386
42387         Avoid link error on MacOS X 10.3 and 10.4.
42388         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42389         on non-ELF systems.
42390         * lib/argp-pv.c (argp_program_version): Likewise.
42391         Reported by Simon Josefsson.
42392
42393 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42394
42395         * tests/test-version-etc.sh: Use $EXEEXT.
42396
42397 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42398
42399         update-copyright: update documentation to point to maint.mk
42400         * build-aux/update-copyright: Here.
42401
42402 2009-08-06  Jim Meyering  <meyering@redhat.com>
42403
42404         maint.mk: support update-copyright-local
42405         * top/maint.mk (update-copyright-local): Define place-holder.
42406         (update-copyright): Depend on $(update-copyright-local).
42407
42408 2009-08-06  Jim Meyering  <meyering@redhat.com>
42409
42410         selinux-at: new module
42411         Initially written for coreutils, this module will soon be
42412         used by findutils, too.
42413         * MODULES.html.sh [Misc]: Add selinux-at.
42414         * lib/selinux-at.h: New file, from coreutils.
42415         * lib/selinux-at.c: Likewise.
42416         * modules/selinux-at: Likewise.
42417         (License): Change from LGPL to GPL, since it depends
42418         on the GPL'd openat module.
42419
42420         doc: update README
42421         * README: Remove references to cogito.
42422         Remove cvs-repo-updating instructions from 2007.
42423         Don't imply that CVS is better if you have limited disk space.
42424
42425 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42426
42427         update-copyright: support C-style comments
42428         * build-aux/update-copyright: Implement and document.
42429         * tests/test-update-copyright.sh: Test.
42430
42431 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42432
42433         update-copyright: support omitted "(C)"
42434         * build-aux/update-copyright: Implement and document.  Also,
42435         allow variable whitespace before "(C)".
42436         * tests/test-update-copyright.sh: Test.
42437
42438 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42439
42440         update-copyright: don't trip on non-FSF copyright statements
42441         * build-aux/update-copyright: Fix so that the first correctly
42442         formatted FSF copyright statement is recognized no matter what
42443         appears before it.  Update documentation.
42444         * tests/test-update-copyright.sh: Test that.
42445
42446 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42447
42448         update-copyright: clean up code a little
42449         * build-aux/update-copyright: Append "_re" to the name of any
42450         variable holding a regular expression.
42451         Replace "old" and "new" with "stmt" in variable names.
42452         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42453         handled correctly.
42454         Format code more consistently.
42455
42456 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42457
42458         update-copyright-tests: improve portability
42459         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42460         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42461
42462 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42463
42464         update-copyright: support @copyright{} and &copy;
42465         * build-aux/update-copyright: Implement and document.
42466         * tests/test-update-copyright.sh: Test.
42467
42468 2009-08-04  Jim Meyering  <meyering@redhat.com>
42469
42470         update-copyright-tests: correctly test EOL=\r\n handling
42471         * tests/test-update-copyright.sh: Put \r at the end of some lines
42472         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42473
42474         maint.mk: make update-copyright exclusion list more configurable
42475         * top/maint.mk (update-copyright): Default to excluding COPYING,
42476         but allow an override, in case someone does want to update that file.
42477
42478         maint.mk: don't update copyright date in COPYING
42479         * top/maint.mk (update-copyright): Exclude COPYING.
42480
42481         maint.mk: add a copyright-updating rule
42482         * top/maint.mk (update-copyright): New rule.
42483         Derived from coreutils/Makefile.am.
42484
42485         update-copyright: rename some variables
42486         * build-aux/update-copyright: Rename a few variables for clarity.
42487         Tweak syntax.  List Joel E. Denny as coauthor.
42488
42489 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42490
42491         update-copyright: fix bug for 2-digit last year and add tests
42492         * build-aux/update-copyright: Fix bug.
42493         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42494         specified.
42495         * modules/update-copyright-tests: New
42496         * tests/test-update-copyright.sh: New.
42497
42498 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42499
42500         update-copyright: handle leading tabs in line prefix
42501         * build-aux/update-copyright: Count leading tabs as 8 spaces
42502         when computing margin.  This helps with the formatting of
42503         ChangeLogs, for example.
42504         Fix documentation a little.
42505
42506 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42507
42508         update-copyright: support EOL=\r\n
42509         * build-aux/update-copyright: Implement that.
42510
42511 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42512
42513         update-copyright: automatically format copyright statements
42514         * build-aux/update-copyright: Implement that.
42515         Also, be a little more predictable and safer by always failing
42516         when the full copyright format is not perfectly recognized as an
42517         unbroken whole.  Discussed at
42518         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42519         Rewrite documentation.
42520
42521 2009-08-03  Bruno Haible  <bruno@clisp.org>
42522
42523         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42524
42525 2009-08-02  Bruno Haible  <bruno@clisp.org>
42526
42527         Tests for module 'uname'.
42528         * modules/uname-tests: New file.
42529         * tests/test-uname.c: New file.
42530
42531         New module 'uname'.
42532         * lib/uname.c: New file.
42533         * m4/uname.m4: New file.
42534         * modules/uname: New file.
42535         * doc/posix-functions/uname.texi: Mention the new module.
42536
42537 2009-08-02  Bruno Haible  <bruno@clisp.org>
42538
42539         Tests for module 'sys_utsname'.
42540         * modules/sys_utsname-tests: New file.
42541         * tests/test-sys_utsname.c: New file.
42542
42543         New module 'sys_utsname'.
42544         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42545         * m4/sys_utsname_h.m4: New file.
42546         * modules/sys_utsname: New file.
42547         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42548
42549 2009-08-02  Bruno Haible  <bruno@clisp.org>
42550
42551         Implicitly initialize the sockets library.
42552         * lib/gethostname.c: Include sockets.h.
42553         (rpl_gethostname): Invoke gl_sockets_startup.
42554         * lib/socket.c: Include sockets.h.
42555         (rpl_socket): Invoke gl_sockets_startup.
42556         * modules/gethostname (Depends-on): Add sockets.
42557         * modules/socket (Depends-on): Likewise.
42558         * tests/test-poll.c: Don't include sockets.h.
42559         (main): Don't invoke gl_sockets_startup.
42560         * tests/test-select.c: Don't include sockets.h.
42561         (main): Don't invoke gl_sockets_startup.
42562
42563 2009-08-02  Bruno Haible  <bruno@clisp.org>
42564
42565         Allow multiple calls to gl_sockets_startup.
42566         * lib/sockets.c (initialized_sockets_version): New variable.
42567         (gl_sockets_startup): Do nothing if already called for this or a higher
42568         version.
42569         (gl_sockets_cleanup): Reset initialized_sockets_version.
42570
42571 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42572
42573         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42574         different project/version.
42575
42576 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42577             Bruno Haible  <bruno@clisp.org>
42578
42579         Tests for module 'pipe-filter-gi'.
42580         * modules/pipe-filter-gi-tests: New file.
42581         * tests/test-pipe-filter-gi1.sh: New file.
42582         * tests/test-pipe-filter-gi1.c: New file.
42583         * tests/test-pipe-filter-gi2.sh: New file.
42584         * tests/test-pipe-filter-gi2-main.c: New file.
42585         * tests/test-pipe-filter-gi2-child.c: New file.
42586
42587         New module 'pipe-filter-gi'.
42588         * lib/pipe-filter-gi.c: New file.
42589         * modules/pipe-filter-gi: New file.
42590
42591 2009-08-02  Bruno Haible  <bruno@clisp.org>
42592             Paolo Bonzini  <bonzini@gnu.org>
42593
42594         Tests for module 'pipe-filter-ii'.
42595         * modules/pipe-filter-ii-tests: New file.
42596         * tests/test-pipe-filter-ii1.sh: New file.
42597         * tests/test-pipe-filter-ii1.c: New file.
42598         * tests/test-pipe-filter-ii2.sh: New file.
42599         * tests/test-pipe-filter-ii2-main.c: New file.
42600         * tests/test-pipe-filter-ii2-child.c: New file.
42601
42602         New module 'pipe-filter-ii'.
42603         * lib/pipe-filter.h: New file.
42604         * lib/pipe-filter-ii.c: New file.
42605         * lib/pipe-filter-aux.h: New file.
42606         * modules/pipe-filter-ii: New file.
42607
42608 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42609
42610         * lib/gc-libgcrypt.c: Change copyright to FSF.
42611         * lib/gc-gnulib.c: Likewise.
42612
42613 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42614
42615         * lib/gethostname.c: Include limits.h.
42616
42617 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42618             Bruno Haible  <bruno@clisp.org>
42619
42620         Ensure HOST_NAME_MAX as part of the gethostname module.
42621         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42622         define also HOST_NAME_MAX.
42623         * tests/test-gethostname.c: Include <limits.h>.
42624         (main): Check also HOST_NAME_MAX.
42625         * doc/posix-headers/limits.texi: Document the mingw problem.
42626
42627 2009-08-02  Bruno Haible  <bruno@clisp.org>
42628
42629         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42630         Add comments.
42631
42632 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42633
42634         * lib/gethostname.c: Add Windows wrapper.
42635         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42636         * modules/gethostname: Depend on sys_socket & errno, for also
42637         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42638         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42639
42640 2009-07-31  Jim Meyering  <meyering@redhat.com>
42641
42642         getloadavg: fix symbol name in comment
42643         * lib/getloadavg.c: Correct a typo I introduced when adding
42644         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42645         Matt Kraai spotted the problem.
42646
42647 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42648
42649         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42650         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42651         code also if ! defined N_NAME_POINTER.
42652         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42653         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42654         but the n_name member is a 12-byte array.
42655
42656 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42657
42658         update-copyright: generalize comment handling
42659         * build-aux/update-copyright: Handle copyright statements
42660         within more comment styles.
42661         Document usage.
42662         Report any file with an external copyright holder or parse failure.
42663
42664 2009-07-29  Jim Meyering  <meyering@redhat.com>
42665
42666         mktime: correct setting of REPLACE_MKTIME
42667         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42668
42669         update-copyright: new module
42670         * modules/update-copyright: New file.
42671         * build-aux/update-copyright: New file.
42672         * MODULES.html.sh (maint+release support): Add update-copyright.
42673
42674 2009-07-27  Bruno Haible  <bruno@clisp.org>
42675
42676         Fix compilation error when <ctime> is used and mktime is replaced.
42677         * lib/time.in.h (mktime): New declaration.
42678         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42679         REPLACE_MKTIME instead of defining mktime in config.h.
42680         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42681         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42682         Reported by Ross McFarland <rwmcfa1@neces.com>.
42683
42684 2009-07-27  Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42687         Reported by Matt Kraai <mkraai@beckman.com>.
42688
42689 2009-07-25  Jim Meyering  <meyering@redhat.com>
42690
42691         maint.mk: avoid warnings about missing files
42692         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42693         diagnostic when .prev-version does not exist.
42694         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42695         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42696         nonexistent cfg.mk.
42697         Suggestions from Simon Josefsson.
42698
42699 2009-07-25  Bruno Haible  <bruno@clisp.org>
42700
42701         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42702         defined as macros. Needed on QNX 6.4.1.
42703         Reported by Matt Kraai <mkraai@beckman.com>.
42704
42705 2009-07-23  Jim Meyering  <meyering@redhat.com>
42706
42707         maint.mk: invoke "make dist" with a working value of XZ_OPT
42708         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42709
42710 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42711
42712         Make fseeko.c compile on QNX.
42713         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42714
42715 2009-07-22  Peter Simons  <simons@cryp.to>
42716
42717         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42718         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42719         * lib/md4.h: Likewise.
42720         * lib/md5.h: Likewise.
42721         * lib/sha1.h: Likewise.
42722         * lib/sha256.h: Likewise.
42723         * lib/sha512.h: Likewise.
42724
42725         tests-sha1: don't assign literal string to 'char *' variable
42726         * tests/test-sha1.c (main): Declare locals with "const" to match
42727         attributes of the right hand side.
42728
42729 2009-07-21  Eric Blake  <ebb9@byu.net>
42730
42731         dup2: fix more mingw problems
42732         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42733         fd to itself.
42734         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42735         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42736         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42737         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42738         care of mingw bugs.
42739
42740 2009-07-21  Jim Meyering  <meyering@redhat.com>
42741
42742         vc-list-files: avoid failure when /bin/sh is dash
42743         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42744         On some Debian based systems, /bin/sh is a symlink to dash, and running
42745         this command would omit the "/" following each 'tests' prefix:
42746           dash -x build-aux/vc-list-files -C . tests
42747         That is because bash and dash work differently:
42748           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42749           bash ok
42750           dash odd
42751
42752 2009-07-21  Eric Blake  <ebb9@byu.net>
42753
42754         dup2-tests: test previous patch
42755         * modules/dup2-tests: New file.
42756         * tests/test-dup2.c: Likewise.
42757         * tests/test-open.c (main): Avoid unspecified behavior.
42758         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42759         test.
42760
42761         dup2: work around mingw and cygwin 1.5 bug
42762         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42764         * modules/unistd (Makefile.am): Substitute it.
42765         * lib/unistd.in.h (dup2): Declare the replacement.
42766         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42767         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42768         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42769         * modules/execute (Depends-on): Add dup2.
42770         * modules/fseterr (Depends-on): Likewise.
42771         * modules/pipe (Depends-on): Likewise.
42772         * modules/posix_spawn-internal (Depends-on): Likewise.
42773
42774 2009-07-21  Bruno Haible  <bruno@clisp.org>
42775
42776         * modules/.gitattributes: New file.
42777
42778 2009-07-20  Bruno Haible  <bruno@clisp.org>
42779
42780         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42781         (main): Use it.
42782
42783 2009-07-20  Eric Blake  <ebb9@byu.net>
42784
42785         test-pipe: make a bit more robust.
42786         * tests/test-pipe.c (myerr): Allow error messages regardless of
42787         what we do to stderr.
42788         (test_pipe): Rearrange to avoid deadlock.
42789         (child_main): Try a larger read, to ensure we avoided deadlock.
42790         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42791         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42792         if misused.
42793
42794 2009-07-19  Jim Meyering  <meyering@redhat.com>
42795
42796         fts: avoid false-positive cycle-detection
42797         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42798         for each new command line argument.
42799
42800 2009-07-19  Bruno Haible  <bruno@clisp.org>
42801
42802         Fix build error on mingw with the modules sys_select and unistd.
42803         * modules/acl-tests (Depends-on): Add close.
42804         * modules/binary-io-tests (Depends-on): Likewise.
42805         * modules/closein-tests (Depends-on): Likewise.
42806         * modules/flock-tests (Depends-on): Likewise.
42807         * modules/fsync-tests (Depends-on): Likewise.
42808         * modules/lseek-tests (Depends-on): Likewise.
42809         * modules/pipe-tests (Depends-on): Likewise.
42810         * modules/posix_spawn-tests (Depends-on): Likewise.
42811         * modules/posix_spawnp-tests (Depends-on): Likewise.
42812         * modules/stat-time-tests (Depends-on): Likewise.
42813         * modules/yesno-tests (Depends-on): Likewise.
42814
42815 2009-07-19  Bruno Haible  <bruno@clisp.org>
42816
42817         Unify conditionals.
42818         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42819         macros, not at the compiler macros.
42820         * lib/pipe.c: Likewise.
42821         * lib/execute.c: Likewise.
42822         * lib/spawni.c: Likewise.
42823
42824 2009-07-19  Bruno Haible  <bruno@clisp.org>
42825
42826         Fix handling of closed stdin/stdout/stderr on mingw.
42827         * lib/w32spawn.h: Include unistd.h.
42828         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42829         file descriptor with O_NOINHERIT flag.
42830         (fd_safer_noinherit): New function, based on fd-safer.c.
42831         (dup_safer_noinherit): New function, based on dup-safer.c.
42832         (undup_safer_noinherit): New function.
42833         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42834         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42835         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42836         instead of fd_safer.
42837         * tests/test-pipe.c: Include <windows.h>.
42838         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42839         result.
42840
42841         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42842         from main.
42843         (test_pipe): Pass an extra argument for disambiguation.
42844         (main): Invoke parent_main or child_main.
42845
42846         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42847         consistently.
42848
42849 2009-07-18  Eric Blake  <ebb9@byu.net>
42850
42851         test-pipe: fix mingw build
42852         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42853
42854 2009-07-18  Bruno Haible  <bruno@clisp.org>
42855
42856         * modules/pipe-tests (Makefile.am): Fix typo.
42857
42858 2009-07-18  Eric Blake  <ebb9@byu.net>
42859
42860         error: fix mingw build
42861         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42862         Reported by Bruno Haible.
42863
42864         error: avoid undefined use of stdout
42865         * lib/error.c (error, error_at_line): Check that fd 1 is open
42866         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42867         is handling faults and the close_stdout module wants to report the
42868         detection of closed stdout as an error.
42869
42870 2009-07-17  Eric Blake  <ebb9@byu.net>
42871
42872         pipe: be robust in face of closed fds
42873         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42874         should cause child to misbehave.
42875         * modules/pipe-tests: New module.
42876         * tests/test-pipe.c: New file.
42877         * tests/test-pipe.sh: New file.
42878         Reported by Akim Demaille.
42879
42880 2009-07-14  Bruno Haible  <bruno@clisp.org>
42881
42882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42883         Reported by anonymous kc.
42884
42885 2009-07-07  Jim Meyering  <meyering@redhat.com>
42886
42887         maint.mk: don't look for translatable strings in *.m4 or *.mk
42888         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42889         when searching for translatable strings.
42890
42891 2009-07-05  Jim Meyering  <meyering@redhat.com>
42892
42893         remove superfluous parentheses in STREQ definition
42894         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42895         * lib/getugroups.c (STREQ): Likewise.
42896         * lib/fnmatch.c (STREQ): Likewise.
42897         Spotted by Bruno Haible.
42898
42899 2009-07-04  Jim Meyering  <meyering@redhat.com>
42900
42901         argv-iter: new module
42902         * MODULES.html.sh: Add argv-iter.
42903         * lib/argv-iter.c, lib/argv-iter.h: New files.
42904         * modules/argv-iter: New file.
42905         * modules/argv-iter-tests: New file.
42906         * tests/test-argv-iter.c: Test it.
42907
42908 2009-07-04  Bruno Haible  <bruno@clisp.org>
42909
42910         Fix assertion.
42911         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42912         contains more exact copies of a given entry than file2, leave the extra
42913         copies unpaired rather than aborting.
42914         Reported by Eric Blake.
42915
42916 2009-07-02  Bruno Haible  <bruno@clisp.org>
42917
42918         Speedup git-merge-changelog for git cherry-pick.
42919         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42920         (entries_mapping_get): New function, extracted from compute_mapping.
42921         (entries_mapping_reverse_get): New function.
42922         (compute_mapping): Add a 'full' argument. Return the result in a
42923         'struct entries_mapping'.
42924         (main): Update. Access the mappings through entries_mapping_get.
42925         Reported by Eric Blake.
42926
42927 2009-07-02  Bruno Haible  <bruno@clisp.org>
42928
42929         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42930         best_i.
42931
42932 2009-07-02  Bruno Haible  <bruno@clisp.org>
42933
42934         Speed up approximate search for matching ChangeLog entries.
42935         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42936         argument. Call fstrcmp_bounded instead of fstrcmp.
42937         (compute_mapping, try_split_merged_entry, main): Update callers.
42938
42939 2009-07-02  Bruno Haible  <bruno@clisp.org>
42940
42941         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42942
42943 2009-06-30  Bruno Haible  <bruno@clisp.org>
42944
42945         Reduce the number of uc_is_cased calls.
42946         * lib/unicase.h (casing_suffix_context_t): Add
42947         'first_char_except_ignorable' field.
42948         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42949         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42950         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42951         Update initializer.
42952         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42953         case-ignorable characters.
42954         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42955         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42956         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42957         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42958         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42959
42960 2009-06-30  Bruno Haible  <bruno@clisp.org>
42961
42962         Tests for module 'unicase/ignorable'.
42963         * modules/unicase/ignorable-tests: New file.
42964         * tests/unicase/test-ignorable.c: New file, generated by
42965         gen-uni-tables.
42966
42967         Tests for module 'unicase/cased'.
42968         * modules/unicase/cased-tests: New file.
42969         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42970         * tests/unicase/test-predicate-part1.h: New file, derived from
42971         tests/unictype/test-predicate-part1.h.
42972         * tests/unicase/test-predicate-part2.h: New file, same as
42973         tests/unictype/test-predicate-part2.h.
42974
42975         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42976         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42977         (output_casing_properties): New function.
42978         (main): Call it.
42979         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42980         * lib/unicase/cased.c: Include unictype/bitmap.h.
42981         (uc_is_cased): Define through a bitmap lookup.
42982         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42983         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42984         (uc_is_case_ignorable): Define through a bitmap lookup.
42985         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42986         lib/unictype/bitmap.h.
42987         (Depends-on): Add inline. Clean up.
42988         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42989         lib/unictype/bitmap.h.
42990         (Depends-on): Add inline. Clean up.
42991         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42992         recognition.
42993         * tests/unicase/test-u16-tolower.c (main): Likewise.
42994         * tests/unicase/test-u32-tolower.c (main): Likewise.
42995
42996 2009-06-30  Bruno Haible  <bruno@clisp.org>
42997
42998         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42999         * lib/unicase/u16-casemap.c: Likewise.
43000         * lib/unicase/u32-casemap.c: Likewise.
43001
43002 2009-06-29  Bruno Haible  <bruno@clisp.org>
43003
43004         Define u32_casefold as a wrapper around u32_ct_casefold.
43005         * lib/unicase/u32-casefold.c: Update.
43006         * modules/unicase/u32-casefold (Depends-on): Add
43007         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43008         unicase/empty-suffix-context. Clean up.
43009
43010         Define u16_casefold as a wrapper around u16_ct_casefold.
43011         * lib/unicase/u16-casefold.c: Update.
43012         * modules/unicase/u16-casefold (Depends-on): Add
43013         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43014         unicase/empty-suffix-context. Clean up.
43015
43016         Define u8_casefold as a wrapper around u8_ct_casefold.
43017         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43018         * lib/unicase/u8-casefold.c: Update.
43019         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43020         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43021
43022         Define u32_totitle as a wrapper around u32_ct_totitle.
43023         * lib/unicase/u32-totitle.c: Update.
43024         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43025         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43026
43027         Define u16_totitle as a wrapper around u16_ct_totitle.
43028         * lib/unicase/u16-totitle.c: Update.
43029         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43030         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43031
43032         Define u8_totitle as a wrapper around u8_ct_totitle.
43033         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43034         functions.
43035         (FUNC): Delegate to U_CT_TOTITLE.
43036         * lib/unicase/u8-totitle.c: Update.
43037         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43038         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43039
43040         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43041         invocation.
43042         * modules/unicase/u32-tolower (Depends-on): Add
43043         unicase/empty-prefix-context, unicase/empty-suffix-context.
43044
43045         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43046         invocation.
43047         * modules/unicase/u16-tolower (Depends-on): Add
43048         unicase/empty-prefix-context, unicase/empty-suffix-context.
43049
43050         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43051         * modules/unicase/u8-tolower (Depends-on): Add
43052         unicase/empty-prefix-context, unicase/empty-suffix-context.
43053
43054         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43055         invocation.
43056         * modules/unicase/u32-toupper (Depends-on): Add
43057         unicase/empty-prefix-context, unicase/empty-suffix-context.
43058
43059         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43060         invocation.
43061         * modules/unicase/u16-toupper (Depends-on): Add
43062         unicase/empty-prefix-context, unicase/empty-suffix-context.
43063
43064         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43065         * modules/unicase/u8-toupper (Depends-on): Add
43066         unicase/empty-prefix-context, unicase/empty-suffix-context.
43067
43068         New module 'unicase/u32-ct-casefold'.
43069         * lib/unicase/u32-ct-casefold.c: New file.
43070         * modules/unicase/u32-ct-casefold: New file.
43071
43072         New module 'unicase/u16-ct-casefold'.
43073         * lib/unicase/u16-ct-casefold.c: New file.
43074         * modules/unicase/u16-ct-casefold: New file.
43075
43076         New module 'unicase/u8-ct-casefold'.
43077         * lib/unicase/u8-ct-casefold.c: New file.
43078         * lib/unicase/u-ct-casefold.h: New file, derived from
43079         lib/unicase/u-casefold.h.
43080         * modules/unicase/u8-ct-casefold: New file.
43081
43082         New module 'unicase/u32-ct-totitle'.
43083         * lib/unicase/u32-ct-totitle.c: New file.
43084         * modules/unicase/u32-ct-totitle: New file.
43085
43086         New module 'unicase/u16-ct-totitle'.
43087         * lib/unicase/u16-ct-totitle.c: New file.
43088         * modules/unicase/u16-ct-totitle: New file.
43089
43090         New module 'unicase/u8-ct-totitle'.
43091         * lib/unicase/u8-ct-totitle.c: New file.
43092         * lib/unicase/u-ct-totitle.h: New file, derived from
43093         lib/unicase/u-totitle.h.
43094         * modules/unicase/u8-ct-totitle: New file.
43095
43096         New module 'unicase/u32-ct-tolower'.
43097         * lib/unicase/u32-ct-tolower.c: New file.
43098         * modules/unicase/u32-ct-tolower: New file.
43099
43100         New module 'unicase/u16-ct-tolower'.
43101         * lib/unicase/u16-ct-tolower.c: New file.
43102         * modules/unicase/u16-ct-tolower: New file.
43103
43104         New module 'unicase/u8-ct-tolower'.
43105         * lib/unicase/u8-ct-tolower.c: New file.
43106         * modules/unicase/u8-ct-tolower: New file.
43107
43108         New module 'unicase/u32-ct-toupper'.
43109         * lib/unicase/u32-ct-toupper.c: New file.
43110         * modules/unicase/u32-ct-toupper: New file.
43111
43112         New module 'unicase/u16-ct-toupper'.
43113         * lib/unicase/u16-ct-toupper.c: New file.
43114         * modules/unicase/u16-ct-toupper: New file.
43115
43116         New module 'unicase/u8-ct-toupper'.
43117         * lib/unicase/u8-ct-toupper.c: New file.
43118         * modules/unicase/u8-ct-toupper: New file.
43119
43120         Add context arguments to u*_casemap functions.
43121         * lib/unicase/unicasemap.h: Include unicase.h.
43122         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43123         suffix_context arguments.
43124         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43125         functions.
43126         (FUNC): Add prefix_context and suffix_context arguments. Use
43127         uc_is_cased and uc_is_case_ignorable.
43128         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43129         * lib/unicase/u16-casemap.c: Likewise.
43130         * lib/unicase/u32-casemap.c: Likewise.
43131         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43132         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43133         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43134         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43135         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43136         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43137
43138         New module 'unicase/u32-suffix-context'.
43139         * lib/unicase/u32-suffix-context.c: New file.
43140         * modules/unicase/u32-suffix-context: New file.
43141
43142         New module 'unicase/u16-suffix-context'.
43143         * lib/unicase/u16-suffix-context.c: New file.
43144         * modules/unicase/u16-suffix-context: New file.
43145
43146         New module 'unicase/u8-suffix-context'.
43147         * lib/unicase/u8-suffix-context.c: New file.
43148         * lib/unicase/u-suffix-context.h: New file.
43149         * modules/unicase/u8-suffix-context: New file.
43150
43151         New module 'unicase/empty-suffix-context'.
43152         * lib/unicase/empty-suffix-context.c: New file.
43153         * modules/unicase/empty-suffix-context: New file.
43154
43155         New module 'unicase/u32-prefix-context'.
43156         * lib/unicase/u32-prefix-context.c: New file.
43157         * modules/unicase/u32-prefix-context: New file.
43158
43159         New module 'unicase/u16-prefix-context'.
43160         * lib/unicase/u16-prefix-context.c: New file.
43161         * modules/unicase/u16-prefix-context: New file.
43162
43163         New module 'unicase/u8-prefix-context'.
43164         * lib/unicase/u8-prefix-context.c: New file.
43165         * lib/unicase/u-prefix-context.h: New file.
43166         * lib/unicase/context.h: New file.
43167         * modules/unicase/u8-prefix-context: New file.
43168
43169         New module 'unicase/empty-prefix-context'.
43170         * lib/unicase/empty-prefix-context.c: New file.
43171         * modules/unicase/empty-prefix-context: New file.
43172
43173         New module 'unicase/ignorable'.
43174         * lib/unicase/ignorable.c: New file.
43175         * modules/unicase/ignorable: New file.
43176
43177         New module 'unicase/cased'.
43178         * lib/unicase/caseprop.h: New file.
43179         * lib/unicase/cased.c: New file.
43180         * modules/unicase/cased: New file.
43181
43182         New functions for case mapping of substrings.
43183         * lib/unicase.h (casing_prefix_context_t): New type.
43184         (unicase_empty_prefix_context): New variable.
43185         (u8_casing_prefix_context, u16_casing_prefix_context,
43186         u32_casing_prefix_context, u8_casing_prefixes_context,
43187         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43188         declarations.
43189         (casing_suffix_context_t): New type.
43190         (unicase_empty_suffix_context): New variable.
43191         (u8_casing_suffix_context, u16_casing_suffix_context,
43192         u32_casing_suffix_context, u8_casing_suffixes_context,
43193         u16_casing_suffixes_context, u32_casing_suffixes_context,
43194         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43195         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43196         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43197         declarations.
43198
43199 2009-06-28  Jim Meyering  <meyering@redhat.com>
43200
43201         boostrap: indent only with spaces
43202         * build-aux/bootstrap: Indent only with spaces, never TABs.
43203
43204         bootstrap: split long lines
43205         * build-aux/bootstrap: Keep line length < 80.
43206
43207         bootstrap: sync from coreutils
43208         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43209         just as autoreconf does.  Verify a list of prerequisite
43210         package-name,version-number pairs if defined in bootstrap.conf.
43211         Refer to README-prereq, if prerequisites are not satisfied.
43212
43213 2009-06-27  Eric Blake  <ebb9@byu.net>
43214
43215         tests: add test for bogus NULL definition
43216         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43217         * tests/test-stdlib.c: Likewise.
43218         * tests/test-string.c: Likewise.
43219         * tests/test-locale.c: Likewise.
43220         * tests/test-unistd.c: Likewise.
43221         * modules/stdio-tests (Depends-on): Add verify.
43222         * modules/stdlib-tests (Depends-on): Likewise.
43223         * modules/string-tests (Depends-on): Likewise.
43224         * modules/locale-tests (Depends-on): Likewise.
43225         * modules/unistd-tests (Depends-on): Likewise.
43226
43227 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43228
43229         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43230         self-explaining comment.
43231         * m4/selinux-selinux-h: Update serial.
43232         (gl_LIBSELINUX): New macro, adding a warning for missing development
43233         packages to code extracted from...
43234         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43235         Add warning for missing development packages here, too.
43236
43237 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43238
43239         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43240
43241 2009-06-25  Eric Blake  <ebb9@byu.net>
43242
43243         version-etc: fix regression
43244         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43245         gcc.
43246         (version_etc): Use it, to catch bugs with trailing NULL.
43247         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43248         (version_etc_va): Fix logic bug.
43249         * modules/version-etc-tests: Add test.
43250         * tests/test-version-etc.c: New file.
43251         * tests/test-version-etc.sh: Likewise.
43252
43253 2009-06-25  Sam Steingold  <sds@gnu.org>
43254
43255         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43256         mbtowc declaration.
43257
43258 2009-06-25  Eric Blake  <ebb9@byu.net>
43259
43260         fpurge: migrate into <stdio.h>
43261         * lib/fpurge.h: Delete...
43262         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43263         * lib/fpurge.c (fpurge): Change declaring header.
43264         * modules/fpurge (Files): Drop deleted file.
43265         (Depends-on): Add stdio.
43266         (configure.ac): Set witness.
43267         * modules/stdio (Makefile.am): Support fpurge macros.
43268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43269         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43270         * lib/fflush.c: Update client.
43271         * tests/test-fpurge.c: Likewise.
43272         * NEWS: Mention the change.
43273
43274 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43275
43276         * lib/argp-version-etc.c (program_authors): Add const
43277         qualifier.
43278         * lib/version-etc.c: Fix typos in the comments.
43279         * modules/argp-version-etc: Depends on version-etc.
43280
43281 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43282
43283         argp-version-etc: new module.
43284
43285         * lib/argp-version-etc.c: New file.
43286         * lib/argp-version-etc.h: New file.
43287         * modules/argp-version-etc: New file.
43288         * modules/argp-version-etc-tests: New file.
43289         * tests/test-argp-version-etc.c: New test.
43290         * tests/test-argp-version-etc-1.sh: New test.
43291
43292 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43293
43294         Provide additional interfaces and documentation for version-etc
43295         module.
43296
43297         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43298         interfaces.
43299         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43300         prototypes.
43301
43302 2009-06-24  Bruno Haible  <bruno@clisp.org>
43303
43304         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43305         HAVE_LIB${NAME} macro.
43306         Reported by Sam Steingold <sds@gnu.org>.
43307
43308 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43309
43310         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43311         needed.
43312
43313 2009-06-21  Bruno Haible  <bruno@clisp.org>
43314
43315         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43316         work.
43317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43318         together with LIB${NAME}, LTLIB${NAME}.
43319         Reported by Sam Steingold <sds@gnu.org>.
43320
43321 2009-06-20  Jim Meyering  <meyering@redhat.com>
43322
43323         tests: make sc_require_test_exit_idiom more generic
43324         * top/maint.mk (Exit_witness_file): New overridable variable.
43325         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43326         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43327
43328 2009-06-19  Jim Meyering  <meyering@redhat.com>
43329
43330         hash: reverse order of src/dst parameters in an internal interface
43331         * lib/hash.c (transfer_entries): Reverse order of parameters to
43332         put DST before SRC.  Adjust callers.
43333
43334         tests: test-hash: avoid wholesale duplication
43335         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43336         Instead, use a loop and add a single conditional.
43337
43338         tests: test-hash: allow seed selection via a command line argument
43339         * tests/test-hash.c (get_seed): New function.
43340         (main): Use it.
43341
43342 2009-06-19  Eric Blake  <ebb9@byu.net>
43343
43344         hash: avoid memory leak on allocation failure
43345         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43346         failure.  Factor repeated algorithm...
43347         (transfer_entries): ...into new helper routine.
43348         (hash_delete): React to hash_rehash return value.
43349
43350         hash: reduce memory pressure in hash_rehash no-op case
43351         * lib/hash.c (next_prime): Avoid overflow.
43352         (hash_initialize): Factor bucket size computation...
43353         (compute_bucket_size): ...into new helper function.
43354         (hash_rehash): Use new function and open coding to reduce memory
43355         pressure, and avoid a memory leak in USE_OBSTACK code.
43356         Reported by Jim Meyering.
43357
43358 2009-06-18  Eric Blake  <ebb9@byu.net>
43359
43360         hash: make rotation more obvious
43361         * modules/hash (Depends-on): Add bitrotate and stdint.
43362         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43363         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43364         (SIZE_MAX): Rely on headers for definition.
43365         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43366         (raw_hasher): Use rotr_sz.
43367         Suggested by Jim Meyering.
43368
43369         hash: fix memory leak in last patch
43370         * lib/hash.c (hash_rehash): Avoid memory leak.
43371
43372         hash: avoid no-op rehashing
43373         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43374
43375         hash: provide default callback functions
43376         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43377         (hash_initialize): Use them as defaults.
43378         * tests/test-hash.c (main): Test this.
43379
43380         hash: minor optimization
43381         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43382         when possible.
43383         (hash_initialize): Document this promise.
43384         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43385         * tests/test-hash.c (hash_compare_strings): Test this.
43386
43387 2009-06-18  Bruno Haible  <bruno@clisp.org>
43388
43389         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43390         going to be replaced anyway.
43391
43392 2009-06-18  Bruno Haible  <bruno@clisp.org>
43393
43394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43395         in one place.
43396         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43397         be replaced anyway.
43398
43399 2009-06-18  Eric Blake  <ebb9@byu.net>
43400
43401         hash: check for resize before insertion
43402         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43403         threshold before insertion, so that a pathological hash_rehash
43404         that fills every bucket can still trigger another rehash.
43405
43406 2009-06-18  Jim Meyering  <meyering@redhat.com>
43407
43408         hash-tests: add a loop around the small tests
43409         * tests/test-hash.c (main): Repeat small tests with selected
43410         small initial table sizes.
43411
43412 2009-06-17  Eric Blake  <ebb9@byu.net>
43413
43414         hash: minor cleanups
43415         * lib/hash.h (hash_entry): Make opaque, by moving...
43416         * lib/hash.c (hash_entry): ...here.
43417         (hash_insert): Clarify restrictions on what can be inserted.
43418         (hash_get_next): Clarify when it is safe to remove an element
43419         during traversal.
43420         (check_tuning): Skip verification when tuning is known safe.
43421         (hash_initialize): Clarify restrictions on tuning.
43422
43423 2009-06-17  Jim Meyering  <jim@meyering.net>
43424         and Eric Blake  <ebb9@byu.net>
43425
43426         hash-tests: new module
43427         * modules/hash-tests: New file.
43428         * tests/test-hash.c: New file.
43429
43430 2009-06-17  Eric Blake  <ebb9@byu.net>
43431
43432         strstr-simple: document new module
43433         * MODULES.html.sh: Document new module.
43434
43435         strstr, strcasestr: replace on platforms with broken memchr
43436         * modules/strstr: Split into...
43437         * modules/strstr-simple: ...new module that does not care about
43438         performance, but does care about glibc bug.
43439         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43440         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43441         if platform memchr is broken, per Debian bug 521737.
43442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43443         memchr.
43444         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43445         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43446         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43447         * modules/mountlist (Depends-on): Add strstr-simple.
43448         * modules/gen-uni-tables (Depends-on): Likewise.
43449         * modules/argz (Depends-on): Add strstr.
43450
43451 2009-06-17  Bruno Haible  <bruno@clisp.org>
43452
43453         * modules/posix_spawn-internal (Depends-on): Add errno.
43454
43455 2009-06-17  Bruno Haible  <bruno@clisp.org>
43456
43457         Define missing ESTALE on Interix 3.5.
43458         * lib/errno.in.h (ESTALE): Assign a value if missing.
43459         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43460         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43461         missing.
43462         * doc/posix-headers/errno.texi: Mention the Interix bug.
43463         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43464
43465 2009-06-15  Eric Blake  <ebb9@byu.net>
43466
43467         memchr, memchr2: add valgrind exception
43468         * lib/memchr.valgrind: New file.
43469         * lib/memchr2.valgrind: New file.
43470         * modules/memchr (Files): Distribute valgrind file.
43471         * modules/memchr2 (Files): Likewise.
43472
43473         docs: memchr is no longer obsolete
43474         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43475         * lib/string.in.h (memchr): Simplify logic.
43476
43477 2009-06-14  Jim Meyering  <meyering@redhat.com>
43478
43479         link-follow: fix the "checking..." message to not mention trailing slash
43480         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43481         never considered trailing slashes.
43482
43483 2009-06-14  Bruno Haible  <bruno@clisp.org>
43484
43485         * m4/memchr.m4: Mention also the bug on IA-64.
43486         * doc/posix-functions/memchr.texi: Likewise.
43487
43488 2009-06-12  Eric Blake  <ebb9@byu.net>
43489
43490         memchr: detect broken x86_64 and alpha implementations
43491         * modules/memchr-tests (Depends-on): Move mmap detection...
43492         * modules/memchr (Depends-on): ...here.
43493         (configure.ac): Set indicator.
43494         * lib/string.in.h (memchr): Declare replacement.
43495         * modules/string (Makefile.am): Trigger replacement.
43496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43497         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43498         bugs.
43499         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43500         * modules/getpagesize (License): Relax license.
43501
43502 2009-06-11  Bruno Haible  <bruno@clisp.org>
43503
43504         * lib/idpriv.h: Add more references.
43505
43506 2009-06-08  Bruno Haible  <bruno@clisp.org>
43507
43508         Tests for module 'idpriv-droptemp'.
43509         * modules/idpriv-droptemp-tests: New file.
43510         * tests/test-idpriv-droptemp.sh: New file.
43511         * tests/test-idpriv-droptemp.su.sh: New file.
43512         * tests/test-idpriv-droptemp.c: New file.
43513
43514         New module 'idpriv-droptemp'.
43515         * lib/idpriv-droptemp.c: New file.
43516         * modules/idpriv-droptemp: New file.
43517
43518 2009-06-08  Bruno Haible  <bruno@clisp.org>
43519
43520         Tests for module 'idpriv-drop'.
43521         * modules/idpriv-drop-tests: New file.
43522         * tests/test-idpriv-drop.sh: New file.
43523         * tests/test-idpriv-drop.su.sh: New file.
43524         * tests/test-idpriv-drop.c: New file.
43525
43526         New module 'idpriv-drop'.
43527         * lib/idpriv.h: New file.
43528         * lib-idpriv-drop.c: New file.
43529         * m4/idpriv.m4: New file.
43530         * modules/idpriv-drop: New file.
43531
43532 2009-06-08  Bruno Haible  <bruno@clisp.org>
43533
43534         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43535         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43536         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43537         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43538         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43539         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43540         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43541
43542 2009-06-08  Eric Blake  <ebb9@byu.net>
43543
43544         test-strstr: use memory fence, when possible
43545         * tests/test-strstr.c (main): Use memory fence, in order to be
43546         more likely to trigger Debian bug 521737.
43547         * modules/strstr-tests (Files): Pull in additional files.
43548
43549         memchr: no longer obsolete, for wider field testing
43550         * modules/memchr (Status, Notice): Delete, this module is no
43551         longer obsolete.
43552         * modules/vasnprintf (Depends-on): Add memchr.
43553
43554 2009-06-07  Jim Meyering  <meyering@redhat.com>
43555
43556         hash: declare some functions with the warn_unused_result attribute
43557         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43558
43559 2009-06-07  Bruno Haible  <bruno@clisp.org>
43560
43561         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43562         Reported by Eric Blake.
43563
43564 2009-06-06  Eric Blake  <ebb9@byu.net>
43565
43566         test-alignof: fix typo with long double
43567         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43568         compiler error.
43569
43570 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43571
43572         Escape non-texinfo { and }s.
43573         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43574         markup error.
43575
43576 2009-06-04  Jim Meyering  <meyering@redhat.com>
43577
43578         gitlog-to-changelog: don't infloop on an empty commit log
43579         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43580         Reported by Boris Petersen <transacid@centerim.org>.
43581
43582 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43583
43584         version-etc: extend for packagers
43585         Add three new configure options, intended for packagers:
43586           --with-packager="packager name"
43587           --with-packager-version="packager-specific version"
43588           --with-packager-bug-reports="packager bug reporting"
43589         An example with coreutils:
43590           $ ./configure \
43591             --with-packager=Gentoo \
43592             --with-packager-bug-report=http://bugs.gentoo.org/ \
43593             --with-packager-version="patchset 1.6"
43594           $ ./src/ls --version | head -n2
43595           ls (GNU coreutils) 7.1-dirty
43596           Packaged by Gentoo (patchset 1.6)
43597         Note that the bug reporting info via --help doesn't show up because
43598         coreutils uses its own custom emit_bug_reporting_address() implementation
43599         in src/system.h.  If it didn't, it'd look like:
43600           $ ./src/ls --help | tail -n4
43601           Report bugs to <bug-coreutils@gnu.org>.
43602           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43603           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43604           General help using GNU software: <http://www.gnu.org/gethelp/>.
43605         * lib/version-etc.c: Print new information, if provided.
43606         * m4/version-etc.m4: New file.
43607         * modules/version-etc (Files): Add m4/version-etc.m4.
43608         (configure.ac): Add gl_VERSION_ETC.
43609
43610 2009-05-31  Bruno Haible  <bruno@clisp.org>
43611
43612         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43613         and 'int64_t'.
43614         * modules/alignof-tests (Dependencies): Add stdint.
43615         Reported by Eric Blake.
43616
43617 2009-05-31  Bruno Haible  <bruno@clisp.org>
43618
43619         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43620         restriction due to compiler bugs.
43621         Reported by Eric Blake.
43622
43623 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43624             Bruno Haible  <bruno@clisp.org>
43625
43626         Fix test-alignof failure.
43627         * lib/alignof.h (alignof_slot): New macro.
43628         (alignof_type): New macro, with the same semantics as the previous
43629         'alignof'.
43630         (alignof): Alias to alignof_slot.
43631         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43632         check that the results are usable as constant expressions.
43633
43634 2009-05-31  Bruno Haible  <bruno@clisp.org>
43635
43636         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43637         * tests/test-memchr.c (main): Check that memchr does not read past the
43638         first occurrence of the byte.
43639         * tests/test-strstr.c (main): Update comment.
43640         Suggested by Eric Blake.
43641
43642 2009-05-30  Bruno Haible  <bruno@clisp.org>
43643
43644         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43645         detail how to use dumpbin.
43646         Reported by David Byron <dbyron@dbyron.com>.
43647
43648 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43649
43650         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43651
43652 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43653
43654         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43655
43656 2009-05-28  Bruno Haible  <bruno@clisp.org>
43657
43658         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43659         build-aux/ files.
43660
43661 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43662
43663         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43664
43665 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43666
43667         * gnulib-tool (sed_transform_main_lib_file)
43668         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43669         regexps.
43670
43671 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43672
43673         * tests/test-strstr.c: Add another self-test.
43674         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43675         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43676
43677 2009-05-23  Bruno Haible  <bruno@clisp.org>
43678
43679         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43680         change.
43681
43682 2009-05-21  Bruno Haible  <bruno@clisp.org>
43683
43684         Simplify use of mode_t varargs.
43685         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43686         uses 'mode_t' or 'int'.
43687         * lib/openat.c (openat): Likewise.
43688         * lib/open-safer.c (open_safer): Likewise.
43689         * m4/mode_t.m4: New file.
43690         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43691         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43692         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43693         * modules/open (Files): Add m4/mode_t.m4.
43694         * modules/openat (Files): Likewise.
43695         * modules/fcntl-safer (Files): Likewise.
43696         Suggested by Eric Blake.
43697
43698 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43699
43700         * doc/glibc-functions/fallocate.texi: New file.
43701         * doc/gnulib.texi: Include it.
43702
43703 2009-05-21  Eric Blake  <ebb9@byu.net>
43704             Bruno Haible  <bruno@clisp.org>
43705
43706         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43707         invocations.
43708         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43709
43710 2009-05-21  Eric Blake  <ebb9@byu.net>
43711             Bruno Haible  <bruno@clisp.org>
43712
43713         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43714         include_next. Fix of 2008-11-20 commit.
43715         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43716         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43717         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43718         NEXT_MATH_H.
43719         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43720         instead of NEXT_MATH_H.
43721
43722 2009-05-21  Bruno Haible  <bruno@clisp.org>
43723
43724         Avoid redefinition warnings for SIZE_MAX.
43725         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43726         Reported by Simon Josefsson.
43727
43728 2009-05-21  Bruno Haible  <bruno@clisp.org>
43729
43730         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43731         AC_CACHE_VAL.
43732
43733 2009-05-20  Bruno Haible  <bruno@clisp.org>
43734
43735         Make zeroptr.h work on mingw.
43736         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43737         mprotect.
43738         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43739         * modules/memchr2-tests (configure.ac): Likewise.
43740         * modules/memcmp-tests (configure.ac): Likewise.
43741         * modules/memmem-tests (configure.ac): Likewise.
43742         * modules/memrchr-tests (configure.ac): Likewise.
43743         Reported by Simon Josefsson.
43744
43745 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43746
43747         * tests/test-glob.c: Include string.h for strcmp prototype.
43748
43749 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43750
43751         * modules/getdelim (Depends-on): Add explicit stdint, although it
43752         was implicitly already pulled in via realloc-posix.
43753         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43754
43755 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43756
43757         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43758         G. Christensen" <tgc@jupiterrise.com>.
43759         * m4/sys_socket_h.m4: Check for sa_family_t.
43760         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43761         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43762         * tests/test-sys_socket.c: Check that sa_family_t works.
43763
43764 2009-05-18  Eric Blake  <ebb9@byu.net>
43765
43766         maint.mk: allow gnulib_dir in VPATH build
43767         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43768
43769 2009-05-15  Jim Meyering  <meyering@redhat.com>
43770
43771         maint.mk: Give gnulib_dir a default definition.
43772         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43773         Thus, most packages no longer need to specify this variable in cfg.mk
43774
43775 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43776
43777         rename.m4: fix typos that would make non-mingw cross-configure fail
43778         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43779
43780 2009-05-13  Eric Blake  <ebb9@byu.net>
43781
43782         mmap-anon: avoid out-of-order autoconf expansion
43783         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43784         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43785         * modules/memchr-tests (Depends-on): Add extensions.
43786         * modules/memchr2-tests (Depends-on): Add extensions.
43787         * modules/memcmp-tests (Depends-on): Add extensions.
43788         * modules/memmem-tests (Depends-on): Add extensions.
43789         * modules/memrchr-tests (Depends-on): Add extensions.
43790
43791 2009-05-13  Bruno Haible  <bruno@clisp.org>
43792
43793         Make some tests ISO C 99 compliant.
43794         * tests/zerosize-ptr.h: New file.
43795         * tests/test-memchr.c: Include zerosize-ptr.h.
43796         (main): Use a zero-size object pointer instead of NULL.
43797         * tests/test-memchr2.c: Include zerosize-ptr.h.
43798         (main): Use a zero-size object pointer instead of NULL.
43799         * tests/test-memcmp.c: Include zerosize-ptr.h.
43800         (main): Use a zero-size object pointer instead of NULL.
43801         * tests/test-memmem.c: Include zerosize-ptr.h.
43802         (main): Use a zero-size object pointer instead of NULL.
43803         * tests/test-memrchr.c: Include zerosize-ptr.h.
43804         (main): Use a zero-size object pointer instead of NULL.
43805         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43806         m4/mmap-anon.m4.
43807         (Depends-on): Add getpagesize.
43808         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43809         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43810         m4/mmap-anon.m4.
43811         (Depends-on): Add getpagesize.
43812         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43813         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43814         m4/mmap-anon.m4.
43815         (Depends-on): Add getpagesize.
43816         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43817         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43818         m4/mmap-anon.m4.
43819         (Depends-on): Add getpagesize.
43820         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43821         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43822         m4/mmap-anon.m4.
43823         (Depends-on): Add getpagesize.
43824         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43825
43826 2009-05-12  Bruno Haible  <bruno@clisp.org>
43827
43828         Tests for module 'alignof'.
43829         * modules/alignof-tests: New file.
43830         * tests/test-alignof.c: New file.
43831
43832 2009-05-12  Bruno Haible  <bruno@clisp.org>
43833
43834         Fix alignof macro.
43835         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43836         vendor compilers that are always correct.
43837
43838 2009-05-12  Bruno Haible  <bruno@clisp.org>
43839
43840         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43841         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43842         not whether its fully works.
43843
43844 2009-05-12  Bruno Haible  <bruno@clisp.org>
43845
43846         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43847
43848 2009-05-12  Jim Meyering  <meyering@redhat.com>
43849
43850         * top/maint.mk: Adjust backslash alignment.
43851
43852 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43853
43854         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43855
43856 2009-05-11  Eric Blake  <ebb9@byu.net>
43857
43858         argp: avoid undefined behavior
43859         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43860         macros.
43861
43862 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43863
43864         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43865         user.name to prevent git commit from complaining.
43866
43867 2009-05-10  Bruno Haible  <bruno@clisp.org>
43868
43869         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43870         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43871         it rewrites every file name only once.
43872         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43873
43874 2009-05-08  Bruno Haible  <bruno@clisp.org>
43875
43876         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43877         instead of 'max'.
43878
43879 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43880
43881         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43882         sockaddr_storage test.
43883
43884 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43885
43886         * modules/sys_socket (Makefile.am): Substitute
43887         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43888         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43889         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43890         * tests/test-sys_socket.c: Check sockaddr_storage.
43891
43892 2009-05-08  Bruno Haible  <bruno@clisp.org>
43893
43894         New module 'alignof'.
43895         * lib/alignof.h: New file.
43896         * modules/alignof: New file.
43897
43898 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43899             Bruno Haible  <bruno@clisp.org>
43900
43901         Fix test-file-has-acl on FreeBSD.
43902         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43903         mask is implicitly added.
43904         * tests/test-file-has-acl.c: Include <signal.h>.
43905         (main): Terminate the test after 5 seconds.
43906         * modules/acl-tests (configure.ac): Check for alarm function.
43907
43908 2009-05-04  Bruno Haible  <bruno@clisp.org>
43909
43910         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43911         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43912         * modules/errno (configure.ac): Drop AC_REQUIRE.
43913         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43914         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43915
43916 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43917
43918         * modules/glob-tests: New module.
43919         * tests/test-glob.c: Add.
43920
43921 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43922
43923         * modules/fnmatch-tests: New module.
43924         * tests/test-fnmatch.c: Add.
43925
43926 2009-05-04  Eric Blake  <ebb9@byu.net>
43927
43928         maint: make the new no-submodule-changes rule VPATH-safe
43929         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43930
43931 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43932             Bruno Haible  <bruno@clisp.org>
43933
43934         acl: Fix infinite loop on FreeBSD.
43935         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43936         of return value from acl_get_entry.
43937         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43938         Likewise.
43939
43940 2009-05-03  Bruno Haible  <bruno@clisp.org>
43941
43942         * lib/acl-internal.h (acl_entries): Clarify return value.
43943         * lib/acl_entries.c (acl_entries): Likewise.
43944
43945 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43946
43947         Bug fix in acl module.
43948         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43949
43950 2009-05-03  Bruno Haible  <bruno@clisp.org>
43951
43952         Create gperf-generated file in the source dir, not in the build dir.
43953         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43954         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43955         * modules/unicase/locale-language (unicase/locale-languages.h):
43956         Likewise.
43957         * modules/unicase/special-casing (unicase/special-casing-table.h):
43958         Likewise.
43959         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43960         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43961         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43962         Reported by Ralf Wildenhues.
43963
43964 2009-05-03  Bruno Haible  <bruno@clisp.org>
43965
43966         * modules/fnmatch (Description, configure.ac): Taken from
43967         fnmatch-posix.
43968         * modules/fnmatch-posix: Turn into a symbolic reference to the
43969         'fnmatch' module, and deprecate.
43970         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43971
43972 2009-05-03  Bruno Haible  <bruno@clisp.org>
43973
43974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43975         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43976         Reported by Ralf Wildenhues.
43977
43978 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43979
43980         * m4/fnmatch.m4: Fix fnmatch re-define.
43981
43982 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43983
43984         priv-set: new module and tests; adapt write-any-file
43985         * lib/priv-set.c: New file.
43986         * lib/priv-set.h: New file.
43987         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43988         * lib/write-any-file.c: Simplify by using priv-set module.
43989         * m4/priv-set.m4: New file.
43990         * modules/priv-set: New file.
43991         * modules/unlinkdir: Add dependency on priv-set module.
43992         * modules/write-any-file: Likewise.
43993
43994         Tests for module 'priv-set'.
43995         * modules/priv-set-tests: New file.
43996         * tests/test-priv-set.c: New file.
43997
43998 2009-05-03  Jim Meyering  <meyering@redhat.com>
43999             Bruno Haible  <bruno@clisp.org>
44000
44001         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44002         use the converted UTF-8 variant of the name instead.
44003
44004 2009-05-03  Jim Meyering  <meyering@redhat.com>
44005
44006         tests: tighten some getdate tests
44007         * tests/test-getdate.c (main): Tighten tests: require equality,
44008         not just greater than.  Set TZ envvar to UTC0.
44009
44010 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44011
44012         getdate: correctly interpret "next monday" when run on a Monday
44013         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44014         that e.g., "next tues" (when run on a tuesday) results in a date
44015         that is one week in the future, and not today's date.
44016         I.e., add a week when the wday is the same as the current one.
44017         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44018         and earlier by Martin Bernreuther and Jan Minář.
44019         * tests/test-getdate.c (main): Check that "next DAY" is always in
44020         the future and that "last DAY" is always in the past.
44021
44022 2009-05-02  Jim Meyering  <meyering@redhat.com>
44023
44024         build: ensure that a release build fails when a submodule is unclean
44025         * top/maint.mk (no-submodule-changes): New rule.
44026         (alpha beta major): Depend on it.
44027
44028 2009-05-02  Bruno Haible  <bruno@clisp.org>
44029
44030         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44031         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44032         shell variable gl_fnmatch_required to detect which variant is
44033         requested.
44034         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44035         gl_FUNC_FNMATCH_POSIX.
44036         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44037         exclude fnmatch-posix.
44038
44039 2009-05-02  Bruno Haible  <bruno@clisp.org>
44040
44041         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44042         * modules/mbsrtowcs (License): Change to LGPLv2+.
44043         * modules/strnlen1 (License): Likewise.
44044         Reported by Simon Josefsson.
44045
44046 2009-05-02  Bruno Haible  <bruno@clisp.org>
44047
44048         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44049         "cross".
44050         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44051         gnulib-tool was called with option --source-base=lib.
44052
44053 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44054
44055         Use automake *-local hooks without commands, for extensibility.
44056         * modules/localcharset (Makefile.am): Rename install-exec-local
44057         rule to install-exec-localcharset, and make it a prerequisite of
44058         install-exec-local.  Likewise, rename the uninstall-local rule to
44059         uninstall-localcharset, and make it a prerequisite of the former.
44060
44061 2009-05-01  Bruno Haible  <bruno@clisp.org>
44062
44063         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44064         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44065         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44067         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44068         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44069         m4/locale-zh.m4, m4/codeset.m4.
44070
44071         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44072         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44073         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44074         m4/locale-zh.m4.
44075
44076         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44077         REPLACE_WCRTOMB if mbstate_t must be replaced.
44078         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44079         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44080
44081 2009-05-01  Bruno Haible  <bruno@clisp.org>
44082
44083         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44084         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44085         dngettext, dcngettext, textdomain, bindtextdomain,
44086         bind_textdomain_codeset): Undefine before redefining.
44087
44088 2009-04-30  Bruno Haible  <bruno@clisp.org>
44089
44090         Fix bug introduced on 2009-04-25.
44091         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44092         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44093         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44094         is defined.
44095         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44096         is defined.
44097         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44098         is defined.
44099         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44100
44101 2009-04-28  Bruno Haible  <bruno@clisp.org>
44102
44103         Comment tweaks.
44104         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44105         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44106         * lib/unicase.h (u*_casexfrm): Likewise.
44107         Reported by Paolo Bonzini.
44108
44109 2009-04-28  Bruno Haible  <bruno@clisp.org>
44110
44111         Fix a compilation error.
44112         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44113         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44114         Reported by Jim Meyering.
44115
44116 2009-04-27  Bruno Haible  <bruno@clisp.org>
44117
44118         New module 'libunistring'.
44119         * modules/libunistring: New file.
44120         * m4/libunistring.m4: New file.
44121         * MODULES.html.sh (Unicode string functions): Add it.
44122
44123 2009-04-27  Eric Blake  <ebb9@byu.net>
44124
44125         maint.mk: allow package-specific header to provide <config.h>
44126         * top/maint.mk (sc_require_config_h): New variable.
44127         (sc_require_config_h, sc_require_config_h_first): Use it.
44128
44129 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44130
44131         * top/maint.mk (sc_avoid_if_before_free): Except
44132         useless-if-before-free script.
44133
44134 2009-04-27  Eric Blake  <ebb9@byu.net>
44135
44136         maintainer-makefile: depend on all required helper scripts
44137         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44138         useless-if-before-free.
44139         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44140         version, rather than assuming gnulib checkout is available.
44141         Reported by Simen Josefsson.
44142
44143 2009-04-26  Bruno Haible  <bruno@clisp.org>
44144
44145         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44146         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44147         "../" or "..".
44148
44149 2009-04-26  Bruno Haible  <bruno@clisp.org>
44150
44151         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44152         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44153         AC_LIB_HAVE_LINKFLAGS.
44154
44155 2009-04-26  Bruno Haible  <bruno@clisp.org>
44156
44157         Simplify calling convention of u*_conv_from_encoding.
44158         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44159         u32_conv_from_encoding): Expect a resultbuf argument and return the
44160         result directly as a pointer.
44161         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44162         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44163         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44164         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44165         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44166         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44167         Update.
44168         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44169         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44170         * lib/vasnprintf.c (VASNPRINTF): Update.
44171         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44172         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44173         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44174         * NEWS: Mention the change.
44175
44176 2009-04-26  Bruno Haible  <bruno@clisp.org>
44177
44178         Simplify calling convention of u*_conv_to_encoding.
44179         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44180         u32_conv_to_encoding): Expect a resultbuf argument and return the
44181         result directly as a pointer.
44182         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44183         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44184         freeing scaled_offsets if mem_iconveha failed.
44185         * lib/unicase/u-casexfrm.h (FUNC): Update.
44186         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44187         * lib/vasnprintf.c (VASNPRINTF): Update.
44188         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44189         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44190         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44191         * NEWS: Mention the change.
44192
44193 2009-04-26  Bruno Haible  <bruno@clisp.org>
44194
44195         Avoid test failures on AIX and OSF/1.
44196         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44197         malloc(0).
44198         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44199         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44200         Likewise.
44201         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44202         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44203         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44204         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44205         * doc/posix-functions/malloc.texi: Document the portability problem
44206         related to malloc(0).
44207
44208 2009-04-26  Bruno Haible  <bruno@clisp.org>
44209
44210         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44211         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44212         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44213
44214 2009-04-25  Bruno Haible  <bruno@clisp.org>
44215
44216         Avoid link error when creating a namespace clean library.
44217         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44218         as macro with arguments if already defined as an alias.
44219         * lib/signbitf.c (gl_signbitf): Don't undefine.
44220         * lib/signbitd.c (gl_signbitd): Don't undefine.
44221         * lib/signbitl.c (gl_signbitl): Don't undefine.
44222
44223 2009-04-25  Jim Meyering  <meyering@redhat.com>
44224
44225         vc-list-files: fix another quoting bug
44226         * build-aux/vc-list-files: Avoid sed backslash expansion
44227         of pathological directory names.
44228
44229 2009-04-25  Eric Blake  <ebb9@byu.net>
44230
44231         vc-list-files: fix shell quoting error
44232         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44233         timestamp.
44234
44235 2009-04-25  Jim Meyering  <meyering@redhat.com>
44236
44237         vc-list-files: restore lost functionality with subdir argument
44238         * build-aux/vc-list-files: When given a non-"." sub-directory
44239         argument, substitute the $dir/ prefix back onto each resulting name.
44240         Otherwise, coreutils' root_tests check would fail.
44241
44242 2009-04-24  Eric Blake  <ebb9@byu.net>
44243
44244         vc-list-files: ignore git symlinks
44245         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44246         than ls-files, to ignore git symlinks.
44247
44248         maint.mk: import improvements from m4
44249         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44250         (move_if_change): Delete unused macro.
44251         (news-date-check, vc-diff-check): Support VPATH builds.
44252         (announcement): Likewise.  Split --bootstrap-tools list...
44253         (boostrap-tools): ...into separate list, which can be overridden
44254         in cfg.mk.
44255         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44256         requiring dependency on useless-if-before-free module.
44257         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44258         Support VPATH builds.
44259
44260 2009-04-24  Jim Meyering  <meyering@redhat.com>
44261
44262         maint.mk: remove coreutils-specific rules and variables
44263         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44264         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44265         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44266
44267         maint.mk: remove obsolete rule
44268         * top/maint.mk (rel-check): Remove rule.
44269         (WGET, WGETFLAGS): Remove now-unused variables.
44270
44271 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44272
44273         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44274         consistency.
44275
44276         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44277         '$(PATH_SEPARATOR)' instead of ':'.
44278
44279 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44280
44281         * lib/getopt1.c (main): Use 'const' for static array.
44282
44283 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44284
44285         * top/maint.mk: Sync with coreutils.
44286         * NEWS: Explain incompatibilities.
44287
44288 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44289             Bruno Haible  <bruno@clisp.org>
44290
44291         Fix cross-compilation results.
44292         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44293         statement, as third argument of AC_TRY_RUN.
44294         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44295         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44296         Likewise.
44297         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44298         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44299         Likewise.
44300         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44301         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44302         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44303
44304 2009-04-20  Bruno Haible  <bruno@clisp.org>
44305
44306         Avoid test failure on mingw.
44307         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44308
44309 2009-04-20  Bruno Haible  <bruno@clisp.org>
44310
44311         Avoid compilation error on mingw.
44312         * modules/localename-tests (Depends-on): Add locale.
44313
44314 2009-04-19  Bruno Haible  <bruno@clisp.org>
44315
44316         Support for building a shared library on Windows platforms.
44317         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44318         (main): Test the presence of UNINORM_NFC here.
44319         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44320         (main): Test the presence of UNINORM_NFD here.
44321         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44322         (main): Test the presence of UNINORM_NFKC here.
44323         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44324         (main): Test the presence of UNINORM_NFKD here.
44325
44326 2009-04-19  Bruno Haible  <bruno@clisp.org>
44327
44328         Avoid a compiler warning.
44329         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44330         Change type of variable 'sequence'.
44331
44332 2009-04-19  Bruno Haible  <bruno@clisp.org>
44333
44334         * modules/configmake (Makefile.am): When the contents of configmake.h
44335         does not change, arrange to preserve its modification time.
44336
44337 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44338
44339         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44340         gettext domain.
44341
44342 2009-04-16  Jim Meyering  <meyering@redhat.com>
44343
44344         useless-if-before-free: improve conversion code
44345         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44346         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44347
44348 2009-04-14  Bruno Haible  <bruno@clisp.org>
44349
44350         * modules/fcntl (Depends-on): Add extensions.
44351         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44352
44353 2009-04-12  Ben Pfaff  <blp@gnu.org>
44354
44355         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44356         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44357
44358 2009-03-20  Ben Pfaff  <blp@gnu.org>
44359
44360         Make rename replace existing destinations on Windows.
44361         * m4/rename.m4: Add test for Mingw.
44362         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44363         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44364         * doc/posix-functions/rename.texi: Document.
44365
44366 2009-04-10  Bruno Haible  <bruno@clisp.org>
44367
44368         New include file "iconveh.h".
44369         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44370         * lib/striconveh.h: Include it.
44371         (enum iconv_ilseq_handler): Remove definition.
44372         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44373         striconveh.h.
44374         * lib/striconveha.c: Include striconveh.h.
44375         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44376         * modules/striconveh (Files): Add lib/iconveh.h.
44377         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44378         lib/striconveh.h.
44379
44380 2009-04-10  Bruno Haible  <bruno@clisp.org>
44381
44382         * lib/uniconv.h: Update comment.
44383
44384 2009-04-10  Bruno Haible  <bruno@clisp.org>
44385
44386         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44387         always.
44388         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44389         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44390         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44391         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44392         "unistring-notinline.h", so that the function gets defined always.
44393         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44394         * lib/unistr/u8-uctomb.c: Likewise.
44395         * lib/unistr/u16-mbtouc.c: Likewise.
44396         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44397         * lib/unistr/u16-uctomb.c: Likewise.
44398         * lib/unistr/u32-mbtouc.c: Likewise.
44399         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44400         * lib/unistr/u32-uctomb.c: Likewise.
44401
44402 2009-04-10  Bruno Haible  <bruno@clisp.org>
44403
44404         Mark 'utime' obsolete.
44405         * modules/utime (Status, Notice): New sections.
44406         Suggested by Jim Meyering.
44407
44408         Fix cross-compile guess for utime test.
44409         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44410         autoconf.
44411         * doc/posix-functions/utime.texi: Give more precisions.
44412         Reported by Jan <ipif@ymail.com>.
44413
44414 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44415
44416         filevercmp: correct today's change
44417         * lib/filevercmp.c: Also handle coreutils' test inputs.
44418         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44419
44420         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44421         for reporting it.
44422         * lib/filevercmp.c: Special handle for "", "." and "..".
44423         * tests/test-filevercmp.c: Enlarge the set suite.
44424
44425 2009-04-07  Jim Meyering  <meyering@redhat.com>
44426
44427         useless-if-before-free: show how to remove braced useless free, too
44428         * build-aux/useless-if-before-free: still only in a comment, though.
44429
44430 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44431
44432         maint.mk: import changes to syntax-check macros from coreutils
44433         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44434         Use them in the relevant macros.
44435
44436 2009-04-06  Bruno Haible  <bruno@clisp.org>
44437
44438         Fix unportable use of bit-fields.
44439         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44440         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44441         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44442
44443 2009-04-06  Bruno Haible  <bruno@clisp.org>
44444
44445         Avoid test failures on AIX and OSF/1.
44446         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44447         that malloc(0) = NULL.
44448         * tests/unicase/test-u8-tolower.c (check): Likewise.
44449         * tests/unicase/test-u8-totitle.c (check): Likewise.
44450         * tests/unicase/test-u8-toupper.c (check): Likewise.
44451         * tests/unicase/test-u16-casefold.c (check): Likewise.
44452         * tests/unicase/test-u16-tolower.c (check): Likewise.
44453         * tests/unicase/test-u16-totitle.c (check): Likewise.
44454         * tests/unicase/test-u16-toupper.c (check): Likewise.
44455         * tests/unicase/test-u32-casefold.c (check): Likewise.
44456         * tests/unicase/test-u32-tolower.c (check): Likewise.
44457         * tests/unicase/test-u32-totitle.c (check): Likewise.
44458         * tests/unicase/test-u32-toupper.c (check): Likewise.
44459         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44460         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44461         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44462         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44463         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44464         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44465         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44466         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44467         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44468         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44469         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44470         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44471
44472 2009-04-05  Bruno Haible  <bruno@clisp.org>
44473
44474         Work around an autoconf limitation.
44475         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44476         comment line if it would be longer than 3 KB.
44477
44478 2009-04-05  Bruno Haible  <bruno@clisp.org>
44479
44480         Avoid test failure with libiconv-1.13.
44481         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44482         of the expected test results.
44483
44484 2009-04-05  Bruno Haible  <bruno@clisp.org>
44485
44486         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44487         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44488         that it should be installed.
44489
44490 2009-04-05  Bruno Haible  <bruno@clisp.org>
44491
44492         * gnulib-tool: New option --copy-file.
44493         (func_usage): Document it.
44494         (func_dest_tmpfilename): Moved out of func_import.
44495         (func_add_file, func_update_file): New functions, extracted from
44496         func_import.
44497         (func_import): Update.
44498
44499 2009-04-05  Karl Berry  <karl@gnu.org>
44500
44501         * README: prominently mention gnulib-tool.
44502         Rearrange sections so getting the code is near the top.
44503
44504 2009-04-05  Bruno Haible  <bruno@clisp.org>
44505
44506         * lib/unicase.h: Mention u*_cmp2.
44507         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44508         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44509         * lib/unicase/ulc-casecmp.c: Likewise.
44510         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44511         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44512         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44513         unistr/u8-cmp.
44514         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44515         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44516         unistr/u16-cmp.
44517         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44518         unistr/u32-cmp.
44519
44520         * lib/uninorm.h: Mention u*_cmp2.
44521         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44522         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44523         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44524         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44525         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44526         unistr/u8-cmp.
44527         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44528         unistr/u16-cmp.
44529         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44530         unistr/u32-cmp.
44531
44532         New module 'unistr/u32-cmp2'.
44533         * lib/unistr/u32-cmp2.c: New file.
44534         * modules/unistr/u32-cmp2: New file.
44535
44536         New module 'unistr/u16-cmp2'.
44537         * lib/unistr/u16-cmp2.c: New file.
44538         * modules/unistr/u16-cmp2: New file.
44539
44540         New module 'unistr/u8-cmp2'.
44541         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44542         * lib/unistr/u8-cmp2.c: New file.
44543         * lib/unistr/u-cmp2.h: New file.
44544         * modules/unistr/u8-cmp2: New file.
44545
44546 2009-04-05  Bruno Haible  <bruno@clisp.org>
44547
44548         * lib/unictype.h (uc_property_is_valid): New macro.
44549         * tests/unictype/test-pr_byname.c (main): Use it.
44550
44551         * lib/unistr.h: Doc fixes.
44552         * lib/uniconv.h: Doc fixes.
44553         * lib/unictype.h: Doc fixes.
44554
44555 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44556
44557         Port coreutils 7.2 to Solaris 8.
44558
44559         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44560         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44561         for Solaris 8.  This is a bit of a hack, as it means it's the
44562         caller's responsibility to add -lnsl if needed, but most likely it
44563         won't be needed since only getaddrinfo uses this and getaddrinfo
44564         isn't needed on Solaris 8.
44565
44566         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44567         problem to Solaris 8 encountered with coreutils 7.2, which
44568         resulted in a message "fnmatch.c:292: warning: passing argument 4
44569         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44570         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44571
44572 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44573
44574         * m4/ld-version-script.m4: Add FIXME comment.
44575
44576 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44577
44578         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44579         SOVERSION variable.
44580
44581 2009-04-02  Bruno Haible  <bruno@clisp.org>
44582
44583         * Makefile (info, html, dvi, pdf): Combine the rules.
44584         Suggested by Jim Meyering.
44585
44586 2009-04-01  Bruno Haible  <bruno@clisp.org>
44587
44588         * Makefile (info, html, dvi, pdf): New targets.
44589         Reported by Reuben Thomas <rrt@sc3d.org>.
44590
44591 2009-04-01  Bruno Haible  <bruno@clisp.org>
44592
44593         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44594         can be put into PATH.
44595         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44596
44597 2009-04-01  Bruno Haible  <bruno@clisp.org>
44598
44599         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44600
44601 2009-04-01  Bruno Haible  <bruno@clisp.org>
44602
44603         Rename module 'visibility'.
44604         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44605         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44606         * doc/gnulib.texi: Update.
44607         * MODULES.html.sh (Misc): Update.
44608         * NEWS: Mention the change.
44609
44610 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44611
44612         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44613         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44614         Eric Blake <ebb9@byu.net> for review.
44615         * MODULES.html.sh: Add lib-msvc-compat.
44616         * doc/gnulib.texi: Link to new section.
44617         * m4/ld-output-def.m4: New file.
44618         * doc/ld-output-def.texi: New file.
44619
44620 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44621
44622         Rename ld-version-script to lib-symbol-versions.  Suggested by
44623         Bruno Haible <bruno@clisp.org>.
44624         * modules/ld-version-script: Renamed to lib-symbol-versions.
44625         * doc/ld-version-script.texi: Fix module name.
44626         * MODULES.html.sh: Add lib-symbol-versions.
44627
44628 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44629
44630         * modules/u64-tests: New file.
44631         * tests/test-u64.c: New file.
44632
44633 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44634
44635         * MODULES.html.sh: Mention u64.
44636         * modules/u64: New module.
44637         * modules/crypto/sha512: Depend on u64 module instead of providing
44638         u64.h.
44639
44640 2009-03-27  Eric Blake  <ebb9@byu.net>
44641
44642         test-strerror: make debugging EAI_SYSTEM easier
44643         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44644         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44645         failure was EAI_SYSTEM.
44646
44647 2009-03-25  Bruno Haible  <bruno@clisp.org>
44648
44649         Fix a problem with --enable-relocatable on Solaris 7.
44650         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44651         since 2008-02-24.
44652
44653 2009-03-25  Eric Blake  <ebb9@byu.net>
44654
44655         test-sockets: avoid gcc warning
44656         * tests/test-sockets.c (main): Silence compiler warning.
44657
44658 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44659
44660         New modules nproc, pthread, contributed by Glen Lenker.
44661
44662         * MODULES.html.sh: Add pthread, nproc.
44663         * lib/nproc.c: New file.
44664         * lib/nproc.h: New file.
44665         * lib/pthread.in.h: New file.
44666         * m4/pthread.m4: New file.
44667         * modules/nproc: New file.
44668         * modules/pthread: New file.
44669
44670 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44671
44672         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44673         New variable.
44674
44675 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44676
44677         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44678         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44679         * tests/test-filevercmp.c: Add tests for backup suffixes.
44680
44681 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44682
44683         * modules/stdlib (Depends-on): Add stdint, needed when defining
44684         struct random_data on, for example, HP-UX 10.20.  Reported by
44685         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44686
44687 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44688
44689         * lib/readline.c (readline): Call fflush on stdout after printing
44690         prompt.
44691
44692 2009-03-20  Bruno Haible  <bruno@clisp.org>
44693
44694         Remove dependency from 'close' module to -lws2_32 on native Windows.
44695         * lib/close-hook.h: New file.
44696         * lib/close-hook.c: New file.
44697         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44698         w32sock.h.
44699         (_gl_close_fd_maybe_socket): Remove function.
44700         (rpl_close): Invoke execute_all_close_hooks instead of
44701         _gl_close_fd_maybe_socket.
44702         * lib/sockets.c: Include close-hook.h, w32sock.h.
44703         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44704         (close_sockets_hook): New variable.
44705         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44706         (gl_sockets_cleanup): Unregister it.
44707         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44708         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44709         * modules/close-hook: New file.
44710         * modules/close (Files): Remove lib/w32sock.h.
44711         (Depends-on): Add close-hook.
44712         (Link): Remove section.
44713         * modules/sockets (Files): Add lib/w32sock.h.
44714         (Depends-on): Add close-hook.
44715         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44716         invocation.
44717         * NEWS: Mention that LIB_CLOSE is gone.
44718
44719 2009-03-23  Eric Blake  <ebb9@byu.net>
44720
44721         signal-tests: test previous patch
44722         * tests/test-signal.c: New file.
44723         * modules/signal-tests: Likewise.
44724
44725         signal.h: always support 'volatile sig_atomic_t'
44726         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44727         (gl_SIGNAL_H_DEFAULTS): Add a default.
44728         * modules/signal (Makefile.am): Substitute if needed.
44729         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44730         users can blindly add volatile.
44731         * doc/posix-headers/signal.texi (signal.h): Document it.
44732         Reported by Matthew Woehlke.
44733
44734 2009-03-23  Jim Meyering  <meyering@redhat.com>
44735
44736         pathmax: PATH_MAX: use pathconf only when available
44737         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44738         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44739         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44740         This avoids a link failure in a PSP cross-compilation environment
44741         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44742
44743         * lib/vasnprintf.c (divide): Fix typo in comment.
44744
44745 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44746
44747         * gnulib-tool (func_filter_filelist): Fix comment.
44748
44749 2009-03-20  Bruno Haible  <bruno@clisp.org>
44750
44751         Make sockets.h self-contained.
44752         * lib/sockets.c: Include sockets.h first.
44753         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44754
44755 2009-03-19  Eric Blake  <ebb9@byu.net>
44756
44757         doc: mention more functions added in cygwin 1.7.0
44758         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44759         addition.
44760         * doc/posix-functions/log2f.texi: Likewise.
44761
44762 2009-03-19  Jim Meyering  <meyering@redhat.com>
44763
44764         fsusage: avoid syntax error due to statement-before-declaration
44765         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44766         after all declarations.  Reported by Matthew Woehlke in
44767         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44768
44769 2009-03-18  Eric Blake  <ebb9@byu.net>
44770
44771         build-aux/compile: sync from automake
44772         * build-aux/compile: New file, from automake.
44773         * config/srclist.txt: Mention build-aux/compile.
44774
44775 2009-03-17  Bruno Haible  <bruno@clisp.org>
44776
44777         * lib/git-merge-changelog.c: Fix typo in comment.
44778         Reported by Reuben Thomas <rrt@sc3d.org>.
44779
44780 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44781
44782         * m4/regex.m4: update and improve help for
44783         --without-included-regex.
44784
44785 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44786
44787         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44788         failure on missing include files.
44789
44790 2009-03-17  Eric Blake  <ebb9@byu.net>
44791
44792         doc: mention more functions added in cygwin 1.7.0
44793         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44794         addition.
44795         * doc/posix-functions/fwscanf.texi: Likewise.
44796         * doc/posix-functions/swprintf.texi: Likewise.
44797         * doc/posix-functions/swscanf.texi: Likewise.
44798         * doc/posix-functions/vfwprintf.texi: Likewise.
44799         * doc/posix-functions/vfwscanf.texi: Likewise.
44800         * doc/posix-functions/vswprintf.texi: Likewise.
44801         * doc/posix-functions/vswscanf.texi: Likewise.
44802         * doc/posix-functions/vwprintf.texi: Likewise.
44803         * doc/posix-functions/vwscanf.texi: Likewise.
44804         * doc/posix-functions/wcscasecmp.texi: Likewise.
44805         * doc/posix-functions/wcsdup.texi: Likewise.
44806         * doc/posix-functions/wcsftime.texi: Likewise.
44807         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44808         * doc/posix-functions/wprintf.texi: Likewise.
44809         * doc/posix-functions/wscanf.texi: Likewise.
44810         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44811
44812 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44813
44814         maint.mk: really add $(AM_MAKEFLAGS)
44815         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44816         was inadvertently omitted in the last commit.
44817         Spotted by Bruno Haible.
44818
44819         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44820         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44821         $(AM_MAKEFLAGS)' rather than plain `make'.
44822
44823         gnulib-tool: execute $MAKE not make
44824         * gnulib-tool: Default $MAKE to 'make'.
44825         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44826         than make.  Initialize $MAKE in the do-autobuild script.
44827
44828         gnulib-tool: use $MAKE not make in generated files
44829         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44830         make, in generated files.  Initialize $MAKE in the do-autobuild
44831         script.
44832
44833         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44834
44835         GNUmakefile: disable parallelism only for multiple, recursive targets
44836         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44837         additions in the Makefile.
44838         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44839         by Automake.
44840         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44841         are listed on the command line and at least one of them is
44842         listed in $(ALL_RECURSIVE_TARGETS).
44843
44844 2009-03-14  Bruno Haible  <bruno@clisp.org>
44845
44846         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44847         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44848         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44849         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44850         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44851         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44852         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44853         unistr/u8-uctomb.
44854         * modules/unistr/u8-strchr (Depends-on): Likewise.
44855         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44856         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44857         unistr/u16-uctomb.
44858         * modules/unistr/u16-strchr (Depends-on): Likewise.
44859         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44860
44861 2009-03-12  Bruno Haible  <bruno@clisp.org>
44862
44863         Work around select() bug on Interix 3.5.
44864         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44865         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44866         * m4/select.m4: New file.
44867         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44868         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44869         * modules/select (Files): Add m4/select.m4.
44870         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44871         * modules/nanosleep (Depends-on): Add select.
44872         * modules/poll (Depends-on): Likewise.
44873         * doc/posix-functions/select.texi: Mention the Interix bug.
44874         Reported by Markus Duft <mduft@gentoo.org>.
44875
44876         * lib/select.c: Renamed from lib/winsock-select.c.
44877         * modules/select (Files): Add lib/select.c, remove
44878         lib/winsock-select.c.
44879         (configure.ac): Update.
44880
44881 2009-03-12  Jim Meyering  <meyering@redhat.com>
44882
44883         avoid gcc warnings about unused macro definitions
44884         * lib/readtokens.c (STREQ): Remove unused definition.
44885         * lib/xmalloc.c (SIZE_MAX): Likewise.
44886         * lib/openat-die.c (N_): Likewise.
44887         * lib/mountlist.c (SIZE_MAX): Remove definition.
44888         Instead, include <stdint.h>.
44889         * lib/readutmp.c: Likewise.
44890         * modules/readutmp (Depends-on): Add stdint.
44891         * modules/mountlist (Depends-on): Add stdint.
44892         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44893
44894 2009-03-10  Bruno Haible  <bruno@clisp.org>
44895
44896         Tests for module 'mbmemcasecoll'.
44897         * modules/mbmemcasecoll-tests: New file.
44898         * tests/test-mbmemcasecoll1.sh: New file.
44899         * tests/test-mbmemcasecoll2.sh: New file.
44900         * tests/test-mbmemcasecoll3.sh: New file.
44901         * tests/test-mbmemcasecoll.c: New file.
44902
44903         New module 'mbmemcasecoll'.
44904         * lib/mbmemcasecoll.h: New file.
44905         * lib/mbmemcasecoll.c: New file.
44906         * modules/mbmemcasecoll: New file.
44907
44908         * tests/test-mbmemcasecmp.h: New file, extracted from
44909         tests/test-mbmemcasecmp.c.
44910         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44911         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44912         (main): Update.
44913         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44914
44915 2009-03-09  Bruno Haible  <bruno@clisp.org>
44916
44917         Tests for module 'mbmemcasecmp'.
44918         * modules/mbmemcasecmp-tests: New file.
44919         * tests/test-mbmemcasecmp1.sh: New file.
44920         * tests/test-mbmemcasecmp2.sh: New file.
44921         * tests/test-mbmemcasecmp3.sh: New file.
44922         * tests/test-mbmemcasecmp.c: New file.
44923
44924         New module 'mbmemcasecmp'.
44925         * lib/mbmemcasecmp.h: New file.
44926         * lib/mbmemcasecmp.c: New file.
44927         * modules/mbmemcasecmp: New file.
44928
44929 2009-03-09  Bruno Haible  <bruno@clisp.org>
44930
44931         Tests for module 'unicase/ulc-casecoll'.
44932         * modules/unicase/ulc-casecoll-tests: New file.
44933         * tests/unicase/test-ulc-casecoll1.sh: New file.
44934         * tests/unicase/test-ulc-casecoll2.sh: New file.
44935         * tests/unicase/test-ulc-casecoll.c: New file.
44936
44937         New module 'unicase/ulc-casecoll'.
44938         * lib/unicase.h (ulc_casecoll): New declaration.
44939         * lib/unicase/ulc-casecoll.c: New file.
44940         * modules/unicase/ulc-casecoll: New file.
44941
44942         New module 'unicase/ulc-casexfrm'.
44943         * lib/unicase.h (ulc_casexfrm): New declaration.
44944         * lib/unicase/ulc-casexfrm.c: New file.
44945         * modules/unicase/ulc-casexfrm: New file.
44946
44947 2009-03-09  Bruno Haible  <bruno@clisp.org>
44948
44949         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44950         invocations.
44951
44952         * m4/mbscasecmp.m4: Remove file.
44953         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44954         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44955
44956         * m4/mbscasestr.m4: Remove file.
44957         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44958         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44959
44960         * m4/mbschr.m4: Remove file.
44961         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44962         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44963
44964         * m4/mbscspn.m4: Remove file.
44965         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44966         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44967
44968         * m4/mbslen.m4: Remove file.
44969         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44970         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44971
44972         * m4/mbsncasecmp.m4: Remove file.
44973         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44974         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44975
44976         * m4/mbsnlen.m4: Remove file.
44977         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44978         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44979
44980         * m4/mbspbrk.m4: Remove file.
44981         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44982         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44983
44984         * m4/mbspcasecmp.m4: Remove file.
44985         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44986         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44987
44988         * m4/mbsrchr.m4: Remove file.
44989         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44990         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44991
44992         * m4/mbssep.m4: Remove file.
44993         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44994         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44995
44996         * m4/mbsspn.m4: Remove file.
44997         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44998         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44999
45000         * m4/mbsstr.m4: Remove file.
45001         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45002         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45003
45004         * m4/mbstok_r.m4: Remove file.
45005         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45006         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45007
45008         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45009
45010         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45011         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45012
45013         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45014
45015 2009-03-08  Bruno Haible  <bruno@clisp.org>
45016
45017         Tests for module 'unicase/ulc-casecmp'.
45018         * modules/unicase/ulc-casecmp-tests: New file.
45019         * tests/unicase/test-ulc-casecmp1.sh: New file.
45020         * tests/unicase/test-ulc-casecmp2.sh: New file.
45021         * tests/unicase/test-ulc-casecmp.c: New file.
45022
45023         New module 'unicase/ulc-casecmp'.
45024         * lib/unicase.h (ulc_casecmp): New declaration.
45025         * lib/unicase/ulc-casecmp.c: New file.
45026         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45027         'const SRC_UNIT *'.
45028         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45029         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45030         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45031         * modules/unicase/ulc-casecmp: New file.
45032
45033         Tests for module 'unicase/u32-is-cased'.
45034         * modules/unicase/u32-is-cased-tests: New file.
45035         * tests/unicase/test-u32-is-cased.c: New file.
45036
45037         Tests for module 'unicase/u16-is-cased'.
45038         * modules/unicase/u16-is-cased-tests: New file.
45039         * tests/unicase/test-u16-is-cased.c: New file.
45040
45041         Tests for module 'unicase/u8-is-cased'.
45042         * modules/unicase/u8-is-cased-tests: New file.
45043         * tests/unicase/test-u8-is-cased.c: New file.
45044         * tests/unicase/test-is-cased.h: New file.
45045
45046         New module 'unicase/u32-is-cased'.
45047         * lib/unicase/u32-is-cased.c: New file.
45048         * modules/unicase/u32-is-cased: New file.
45049
45050         New module 'unicase/u16-is-cased'.
45051         * lib/unicase/u16-is-cased.c: New file.
45052         * modules/unicase/u16-is-cased: New file.
45053
45054         New module 'unicase/u8-is-cased'.
45055         * lib/unicase/u8-is-cased.c: New file.
45056         * lib/unicase/u-is-cased.h: New file.
45057         * modules/unicase/u8-is-cased: New file.
45058
45059         Tests for module 'unicase/u32-is-casefolded'.
45060         * modules/unicase/u32-is-casefolded-tests: New file.
45061         * tests/unicase/test-u32-is-casefolded.c: New file.
45062
45063         Tests for module 'unicase/u16-is-casefolded'.
45064         * modules/unicase/u16-is-casefolded-tests: New file.
45065         * tests/unicase/test-u16-is-casefolded.c: New file.
45066
45067         Tests for module 'unicase/u8-is-casefolded'.
45068         * modules/unicase/u8-is-casefolded-tests: New file.
45069         * tests/unicase/test-u8-is-casefolded.c: New file.
45070         * tests/unicase/test-is-casefolded.h: New file.
45071
45072         New module 'unicase/u32-is-casefolded'.
45073         * lib/unicase/u32-is-casefolded.c: New file.
45074         * modules/unicase/u32-is-casefolded: New file.
45075
45076         New module 'unicase/u16-is-casefolded'.
45077         * lib/unicase/u16-is-casefolded.c: New file.
45078         * modules/unicase/u16-is-casefolded: New file.
45079
45080         New module 'unicase/u8-is-casefolded'.
45081         * lib/unicase/u8-is-casefolded.c: New file.
45082         * modules/unicase/u8-is-casefolded: New file.
45083
45084         Tests for module 'unicase/u32-is-titlecase'.
45085         * modules/unicase/u32-is-titlecase-tests: New file.
45086         * tests/unicase/test-u32-is-titlecase.c: New file.
45087
45088         Tests for module 'unicase/u16-is-titlecase'.
45089         * modules/unicase/u16-is-titlecase-tests: New file.
45090         * tests/unicase/test-u16-is-titlecase.c: New file.
45091
45092         Tests for module 'unicase/u8-is-titlecase'.
45093         * modules/unicase/u8-is-titlecase-tests: New file.
45094         * tests/unicase/test-u8-is-titlecase.c: New file.
45095         * tests/unicase/test-is-titlecase.h: New file.
45096
45097         New module 'unicase/u32-is-titlecase'.
45098         * lib/unicase/u32-is-titlecase.c: New file.
45099         * modules/unicase/u32-is-titlecase: New file.
45100
45101         New module 'unicase/u16-is-titlecase'.
45102         * lib/unicase/u16-is-titlecase.c: New file.
45103         * modules/unicase/u16-is-titlecase: New file.
45104
45105         New module 'unicase/u8-is-titlecase'.
45106         * lib/unicase/u8-is-titlecase.c: New file.
45107         * modules/unicase/u8-is-titlecase: New file.
45108
45109         Tests for module 'unicase/u32-is-lowercase'.
45110         * modules/unicase/u32-is-lowercase-tests: New file.
45111         * tests/unicase/test-u32-is-lowercase.c: New file.
45112
45113         Tests for module 'unicase/u16-is-lowercase'.
45114         * modules/unicase/u16-is-lowercase-tests: New file.
45115         * tests/unicase/test-u16-is-lowercase.c: New file.
45116
45117         Tests for module 'unicase/u8-is-lowercase'.
45118         * modules/unicase/u8-is-lowercase-tests: New file.
45119         * tests/unicase/test-u8-is-lowercase.c: New file.
45120         * tests/unicase/test-is-lowercase.h: New file.
45121
45122         New module 'unicase/u32-is-lowercase'.
45123         * lib/unicase/u32-is-lowercase.c: New file.
45124         * modules/unicase/u32-is-lowercase: New file.
45125
45126         New module 'unicase/u16-is-lowercase'.
45127         * lib/unicase/u16-is-lowercase.c: New file.
45128         * modules/unicase/u16-is-lowercase: New file.
45129
45130         New module 'unicase/u8-is-lowercase'.
45131         * lib/unicase/u8-is-lowercase.c: New file.
45132         * modules/unicase/u8-is-lowercase: New file.
45133
45134         Tests for module 'unicase/u32-is-uppercase'.
45135         * modules/unicase/u32-is-uppercase-tests: New file.
45136         * tests/unicase/test-u32-is-uppercase.c: New file.
45137
45138         Tests for module 'unicase/u16-is-uppercase'.
45139         * modules/unicase/u16-is-uppercase-tests: New file.
45140         * tests/unicase/test-u16-is-uppercase.c: New file.
45141
45142         Tests for module 'unicase/u8-is-uppercase'.
45143         * modules/unicase/u8-is-uppercase-tests: New file.
45144         * tests/unicase/test-u8-is-uppercase.c: New file.
45145         * tests/unicase/test-is-uppercase.h: New file.
45146
45147         New module 'unicase/u32-is-uppercase'.
45148         * lib/unicase/u32-is-uppercase.c: New file.
45149         * modules/unicase/u32-is-uppercase: New file.
45150
45151         New module 'unicase/u16-is-uppercase'.
45152         * lib/unicase/u16-is-uppercase.c: New file.
45153         * modules/unicase/u16-is-uppercase: New file.
45154
45155         New module 'unicase/u8-is-uppercase'.
45156         * lib/unicase/u8-is-uppercase.c: New file.
45157         * modules/unicase/u8-is-uppercase: New file.
45158
45159         New module 'unicase/u32-is-invariant'.
45160         * lib/unicase/u32-is-invariant.c: New file.
45161         * modules/unicase/u32-is-invariant: New file.
45162
45163         New module 'unicase/u16-is-invariant'.
45164         * lib/unicase/u16-is-invariant.c: New file.
45165         * modules/unicase/u16-is-invariant: New file.
45166
45167         New module 'unicase/u8-is-invariant'.
45168         * lib/unicase/u8-is-invariant.c: New file.
45169         * lib/unicase/invariant.h: New file.
45170         * lib/unicase/u-is-invariant.h: New file.
45171         * modules/unicase/u8-is-invariant: New file.
45172
45173         Tests for module 'unicase/u32-casecoll'.
45174         * modules/unicase/u32-casecoll-tests: New file.
45175         * tests/unicase/test-u32-casecoll.c: New file.
45176
45177         Tests for module 'unicase/u16-casecoll'.
45178         * modules/unicase/u16-casecoll-tests: New file.
45179         * tests/unicase/test-u16-casecoll.c: New file.
45180
45181         Tests for module 'unicase/u8-casecoll'.
45182         * modules/unicase/u8-casecoll-tests: New file.
45183         * tests/unicase/test-u8-casecoll.c: New file.
45184
45185         New module 'unicase/u32-casecoll'.
45186         * lib/unicase/u32-casecoll.c: New file.
45187         * modules/unicase/u32-casecoll: New file.
45188
45189         New module 'unicase/u16-casecoll'.
45190         * lib/unicase/u16-casecoll.c: New file.
45191         * modules/unicase/u16-casecoll: New file.
45192
45193         New module 'unicase/u8-casecoll'.
45194         * lib/unicase/u8-casecoll.c: New file.
45195         * lib/unicase/u-casecoll.h: New file.
45196         * modules/unicase/u8-casecoll: New file.
45197
45198         New module 'unicase/u32-casexfrm'.
45199         * lib/unicase/u32-casexfrm.c: New file.
45200         * modules/unicase/u32-casexfrm: New file.
45201
45202         New module 'unicase/u16-casexfrm'.
45203         * lib/unicase/u16-casexfrm.c: New file.
45204         * modules/unicase/u16-casexfrm: New file.
45205
45206         New module 'unicase/u8-casexfrm'.
45207         * lib/unicase/u8-casexfrm.c: New file.
45208         * lib/unicase/u-casexfrm.h: New file.
45209         * modules/unicase/u8-casexfrm: New file.
45210
45211         Tests for module 'unicase/u32-casecmp'.
45212         * modules/unicase/u32-casecmp-tests: New file.
45213         * tests/unicase/test-u32-casecmp.c: New file.
45214
45215         Tests for module 'unicase/u16-casecmp'.
45216         * modules/unicase/u16-casecmp-tests: New file.
45217         * tests/unicase/test-u16-casecmp.c: New file.
45218
45219         Tests for module 'unicase/u8-casecmp'.
45220         * modules/unicase/u8-casecmp-tests: New file.
45221         * tests/unicase/test-u8-casecmp.c: New file.
45222         * tests/unicase/test-casecmp.h: New file.
45223
45224         New module 'unicase/u32-casecmp'.
45225         * lib/unicase/u32-casecmp.c: New file.
45226         * modules/unicase/u32-casecmp: New file.
45227
45228         New module 'unicase/u16-casecmp'.
45229         * lib/unicase/u16-casecmp.c: New file.
45230         * modules/unicase/u16-casecmp: New file.
45231
45232         New module 'unicase/u8-casecmp'.
45233         * lib/unicase/u8-casecmp.c: New file.
45234         * lib/unicase/u-casecmp.h: New file.
45235         * modules/unicase/u8-casecmp: New file.
45236
45237         Tests for module 'unicase/u32-casefold'.
45238         * modules/unicase/u32-casefold-tests: New file.
45239         * tests/unicase/test-u32-casefold.c: New file.
45240
45241         Tests for module 'unicase/u16-casefold'.
45242         * modules/unicase/u16-casefold-tests: New file.
45243         * tests/unicase/test-u16-casefold.c: New file.
45244
45245         Tests for module 'unicase/u8-casefold'.
45246         * modules/unicase/u8-casefold-tests: New file.
45247         * tests/unicase/test-u8-casefold.c: New file.
45248
45249         New module 'unicase/u32-casefold'.
45250         * lib/unicase/u32-casefold.c: New file.
45251         * modules/unicase/u32-casefold: New file.
45252
45253         New module 'unicase/u16-casefold'.
45254         * lib/unicase/u16-casefold.c: New file.
45255         * modules/unicase/u16-casefold: New file.
45256
45257         New module 'unicase/u8-casefold'.
45258         * lib/unicase/u8-casefold.c: New file.
45259         * lib/unicase/u-casefold.h: New file.
45260         * modules/unicase/u8-casefold: New file.
45261
45262         New module 'unicase/tocasefold'.
45263         * lib/unicase/casefold.h: New file.
45264         * lib/unicase/tocasefold.c: New file.
45265         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45266         * modules/unicase/tocasefold: New file.
45267
45268         Tests for module 'unicase/u32-totitle'.
45269         * modules/unicase/u32-totitle-tests: New file.
45270         * tests/unicase/test-u32-totitle.c: New file.
45271
45272         Tests for module 'unicase/u16-totitle'.
45273         * modules/unicase/u16-totitle-tests: New file.
45274         * tests/unicase/test-u16-totitle.c: New file.
45275
45276         Tests for module 'unicase/u8-totitle'.
45277         * modules/unicase/u8-totitle-tests: New file.
45278         * tests/unicase/test-u8-totitle.c: New file.
45279
45280         New module 'unicase/u32-totitle'.
45281         * lib/unicase/u32-totitle.c: New file.
45282         * modules/unicase/u32-totitle: New file.
45283
45284         New module 'unicase/u16-totitle'.
45285         * lib/unicase/u16-totitle.c: New file.
45286         * modules/unicase/u16-totitle: New file.
45287
45288         New module 'unicase/u8-totitle'.
45289         * lib/unicase/u8-totitle.c: New file.
45290         * lib/unicase/u-totitle.h: New file.
45291         * modules/unicase/u8-totitle: New file.
45292
45293         Tests for module 'unicase/u32-tolower'.
45294         * modules/unicase/u32-tolower-tests: New file.
45295         * tests/unicase/test-u32-tolower.c: New file.
45296
45297         Tests for module 'unicase/u16-tolower'.
45298         * modules/unicase/u16-tolower-tests: New file.
45299         * tests/unicase/test-u16-tolower.c: New file.
45300
45301         Tests for module 'unicase/u8-tolower'.
45302         * modules/unicase/u8-tolower-tests: New file.
45303         * tests/unicase/test-u8-tolower.c: New file.
45304
45305         New module 'unicase/u32-tolower'.
45306         * lib/unicase/u32-tolower.c: New file.
45307         * modules/unicase/u32-tolower: New file.
45308
45309         New module 'unicase/u16-tolower'.
45310         * lib/unicase/u16-tolower.c: New file.
45311         * modules/unicase/u16-tolower: New file.
45312
45313         New module 'unicase/u8-tolower'.
45314         * lib/unicase/u8-tolower.c: New file.
45315         * modules/unicase/u8-tolower: New file.
45316
45317         Tests for module 'unicase/u32-toupper'.
45318         * modules/unicase/u32-toupper-tests: New file.
45319         * tests/unicase/test-u32-toupper.c: New file.
45320
45321         Tests for module 'unicase/u16-toupper'.
45322         * modules/unicase/u16-toupper-tests: New file.
45323         * tests/unicase/test-u16-toupper.c: New file.
45324
45325         Tests for module 'unicase/u8-toupper'.
45326         * modules/unicase/u8-toupper-tests: New file.
45327         * tests/unicase/test-u8-toupper.c: New file.
45328
45329         New module 'unicase/u32-toupper'.
45330         * lib/unicase/u32-toupper.c: New file.
45331         * modules/unicase/u32-toupper: New file.
45332
45333         New module 'unicase/u16-toupper'.
45334         * lib/unicase/u16-toupper.c: New file.
45335         * modules/unicase/u16-toupper: New file.
45336
45337         New module 'unicase/u8-toupper'.
45338         * lib/unicase/u8-toupper.c: New file.
45339         * modules/unicase/u8-toupper: New file.
45340
45341         New module 'unicase/u32-casemap'.
45342         * lib/unicase/u32-casemap.c: New file.
45343         * modules/unicase/u32-casemap: New file.
45344
45345         New module 'unicase/u16-casemap'.
45346         * lib/unicase/u16-casemap.c: New file.
45347         * modules/unicase/u16-casemap: New file.
45348
45349         New module 'unicase/u8-casemap'.
45350         * lib/unicase/unicasemap.h: New file.
45351         * lib/unicase/u8-casemap.c: New file.
45352         * lib/unicase/u-casemap.h: New file.
45353         * modules/unicase/u8-casemap: New file.
45354
45355         New module 'unicase/special-casing'.
45356         * lib/unicase/special-casing.h: New file.
45357         * lib/unicase/special-casing.c: New file.
45358         * lib/unicase/special-casing-table.gperf: New file, generated by
45359         gen-uni-tables.c.
45360         * modules/unicase/special-casing: New file.
45361
45362         Tests for module 'unicase/locale-language'.
45363         * modules/unicase/locale-language-tests: New file.
45364         * tests/unicase/test-locale-language.sh: New file.
45365         * tests/unicase/test-locale-language.c: New file.
45366
45367         New module 'unicase/locale-language'.
45368         * lib/unicase/locale-language.c: New file.
45369         * lib/unicase/locale-languages.gperf: New file.
45370         * modules/unicase/locale-language: New file.
45371
45372         Generate more tables for case conversion and case folding.
45373         * lib/gen-uni-tables.c (SCC_*): New enum items.
45374         (struct special_casing_rule): New type.
45375         (casing_rules, num_casing_rules, allocated_casing_rules): New
45376         variables.
45377         (add_casing_rule, fill_casing_rules): New functions.
45378         (struct casefold_rule): New type.
45379         (casefolding_rules, num_casefolding_rules,
45380         allocated_casefolding_rules): New variables.
45381         (fill_casefolding_rules): New function.
45382         (unicode_casefold): New variable.
45383         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45384         sort_casing_rules, output_casing_rules): New functions.
45385         (main): Accept to more arguments: SpecialCasing.txt and
45386         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45387         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45388         Output mapping for casefolding.
45389
45390         * lib/unicase.h: Include stdbool.h, uninorm.h.
45391         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45392         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45393         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45394         arguments.
45395         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45396         resultp arguments.
45397         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45398         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45399         resultp arguments.
45400         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45401         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45402         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45403         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45404         declarations.
45405         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45406
45407 2009-03-08  Bruno Haible  <bruno@clisp.org>
45408
45409         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45410         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45411         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45412         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45413
45414 2009-03-07  Bruno Haible  <bruno@clisp.org>
45415
45416         Adjust u*_normcmp, u*_normcoll API.
45417         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45418         u16_normcoll, u32_normcoll): Change failure conventions.
45419         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45420         errno and return -1.
45421         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45422
45423 2009-03-07  Bruno Haible  <bruno@clisp.org>
45424
45425         Tests for module 'uninorm/u32-normcoll'.
45426         * modules/uninorm/u32-normcoll-tests: New file.
45427         * tests/uninorm/test-u32-normcoll.c: New file.
45428
45429         Tests for module 'uninorm/u16-normcoll'.
45430         * modules/uninorm/u16-normcoll-tests: New file.
45431         * tests/uninorm/test-u16-normcoll.c: New file.
45432
45433         Tests for module 'uninorm/u8-normcoll'.
45434         * modules/uninorm/u8-normcoll-tests: New file.
45435         * tests/uninorm/test-u8-normcoll.c: New file.
45436
45437 2009-03-07  Bruno Haible  <bruno@clisp.org>
45438
45439         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45440         tests/uninorm/test-u32-normcmp.c.
45441         * tests/uninorm/test-u32-normcmp.c: Include it.
45442         (test_nonascii): New function, extracted from main. Add some more
45443         tests.
45444         (main): Invoke test_ascii and test_nonascii.
45445         * modules/uninorm/u32-normcmp-tests (Files): Add
45446         tests/uninorm/test-u32-normcmp.h.
45447         (Depends-on): Remove uninorm/u32-normcmp.
45448
45449         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45450         tests/uninorm/test-u16-normcmp.c.
45451         * tests/uninorm/test-u16-normcmp.c: Include it.
45452         (test_nonascii): New function, extracted from main. Add some more
45453         tests.
45454         (main): Invoke test_ascii and test_nonascii.
45455         * modules/uninorm/u16-normcmp-tests (Files): Add
45456         tests/uninorm/test-u16-normcmp.h.
45457         (Depends-on): Remove uninorm/u16-normcmp.
45458
45459         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45460         tests/uninorm/test-u8-normcmp.c.
45461         * tests/uninorm/test-u8-normcmp.c: Include it.
45462         (test_nonascii): New function, extracted from main. Add some more
45463         tests.
45464         (main): Invoke test_ascii and test_nonascii.
45465         * modules/uninorm/u8-normcmp-tests (Files): Add
45466         tests/uninorm/test-u8-normcmp.h.
45467         (Depends-on): Remove uninorm/u8-normcmp.
45468
45469 2009-03-07  Bruno Haible  <bruno@clisp.org>
45470
45471         New module 'uninorm/u32-normcoll'.
45472         * lib/uninorm/u32-normcoll.c: New file.
45473         * modules/uninorm/u32-normcoll: New file.
45474
45475         New module 'uninorm/u16-normcoll'.
45476         * lib/uninorm/u16-normcoll.c: New file.
45477         * modules/uninorm/u16-normcoll: New file.
45478
45479         New module 'uninorm/u8-normcoll'.
45480         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45481         declarations.
45482         * lib/uninorm/u8-normcoll.c: New file.
45483         * lib/uninorm/u-normcoll.h: New file.
45484         * modules/uninorm/u8-normcoll: New file.
45485
45486         New module 'uninorm/u32-normxfrm'.
45487         * lib/uninorm/u32-normxfrm.c: New file.
45488         * modules/uninorm/u32-normxfrm: New file.
45489
45490         New module 'uninorm/u16-normxfrm'.
45491         * lib/uninorm/u16-normxfrm.c: New file.
45492         * modules/uninorm/u16-normxfrm: New file.
45493
45494         New module 'uninorm/u8-normxfrm'.
45495         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45496         declarations.
45497         * lib/uninorm/u8-normxfrm.c: New file.
45498         * lib/uninorm/u-normxfrm.h: New file.
45499         * modules/uninorm/u8-normxfrm: New file.
45500
45501 2009-03-07  Bruno Haible  <bruno@clisp.org>
45502
45503         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45504         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45505         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45506
45507 2009-03-07  Bruno Haible  <bruno@clisp.org>
45508
45509         New module 'memxfrm'.
45510         * lib/memxfrm.h: New file.
45511         * lib/memxfrm.c: New file.
45512         * modules/memxfrm: New file.
45513
45514 2009-03-07  Bruno Haible  <bruno@clisp.org>
45515
45516         New module 'memcmp2'.
45517         * lib/memcmp2.h: New file.
45518         * lib/memcmp2.c: New file.
45519         * modules/memcmp2: New file.
45520
45521 2009-03-07  Bruno Haible  <bruno@clisp.org>
45522
45523         Tests for module 'uninorm/decomposing-form'.
45524         * modules/uninorm/decomposing-form-tests: New file.
45525         * tests/uninorm/test-decomposing-form.c: New file.
45526
45527         New module 'uninorm/decomposing-form'.
45528         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45529         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45530         Add 'decomposing_variant' field.
45531         * lib/uninorm/decomposing-form.c: New file.
45532         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45533         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45534         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45535         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45536         * modules/uninorm/decomposing-form: New file.
45537         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45538         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45539
45540 2009-03-07  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45543         strings.
45544
45545 2009-03-06  Bruno Haible  <bruno@clisp.org>
45546
45547         Tests for module 'uninorm/u32-normcmp'.
45548         * tests/uninorm/test-u32-normcmp.c: New file.
45549         * modules/uninorm/u32-normcmp-tests: New file.
45550
45551         Tests for module 'uninorm/u16-normcmp'.
45552         * tests/uninorm/test-u16-normcmp.c: New file.
45553         * modules/uninorm/u16-normcmp-tests: New file.
45554
45555         Tests for module 'uninorm/u8-normcmp'.
45556         * tests/uninorm/test-u8-normcmp.c: New file.
45557         * modules/uninorm/u8-normcmp-tests: New file.
45558
45559         New module 'uninorm/u32-normcmp'.
45560         * lib/uninorm/u32-normcmp.c: New file.
45561         * modules/uninorm/u32-normcmp: New file.
45562
45563         New module 'uninorm/u16-normcmp'.
45564         * lib/uninorm/u16-normcmp.c: New file.
45565         * modules/uninorm/u16-normcmp: New file.
45566
45567         New module 'uninorm/u8-normcmp'.
45568         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45569         declarations.
45570         * lib/uninorm/u8-normcmp.c: New file.
45571         * lib/uninorm/u-normcmp.h: New file.
45572         * modules/uninorm/u8-normcmp: New file.
45573
45574 2009-03-06  Bruno Haible  <bruno@clisp.org>
45575
45576         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45577         Reported by Eric Blake.
45578
45579 2009-03-06  Eric Blake  <ebb9@byu.net>
45580             Bruno Haible  <bruno@clisp.org>
45581
45582         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45583         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45584         condition.
45585         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45586         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45587         condition.
45588         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45589
45590 2009-03-06  Eric Blake  <ebb9@byu.net>
45591
45592         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45593         to avoid compiler warnings.
45594         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45595
45596 2009-03-05  Bruno Haible  <bruno@clisp.org>
45597
45598         * tests/test-ftell.c (main): Disable test beyond end of file on
45599         FreeMiNT.
45600         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45601
45602 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45603
45604         * lib/filevercmp.c: Move hidden files up in ordering.
45605         * tests/test-filevercmp.c: Add tests for hidden files.
45606
45607 2009-03-04  Bruno Haible  <bruno@clisp.org>
45608
45609         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45610         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45611         AM_CFLAGS.
45612         Reported by Simon Josefsson.
45613
45614 2009-03-03  Bruno Haible  <bruno@clisp.org>
45615
45616         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45617         Reported by Simon Josefsson.
45618
45619         * doc/ld-version-script.texi: Update node reference.
45620
45621 2009-03-03  Bruno Haible  <bruno@clisp.org>
45622
45623         * modules/visibility (License): Change to 'unlimited'.
45624         Suggested by Simon Josefsson.
45625
45626 2009-03-03  Jim Meyering  <meyering@redhat.com>
45627
45628         unlinkdir: cannot_unlink_dir may modify process state
45629         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45630         it's neither thread-safe nor appropriate for use in a library.
45631
45632 2009-03-03  Eric Blake  <ebb9@byu.net>
45633
45634         test-closein: silence test under Darwin
45635         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45636         care if it dies from EPIPE or EBADF.
45637
45638 2009-03-03  Bruno Haible  <bruno@clisp.org>
45639
45640         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45641         earlier.
45642         * doc/visibility.texi: Fix @node and @section.
45643
45644 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45645
45646         * doc/gnulib.texi: Link to sections for ld version script and
45647         visibility.
45648         * doc/visibility.texi: Add @node and @section.
45649         * modules/ld-version-script: New module.
45650         * m4/ld-version-script.m4: New file.
45651         * doc/ld-version-script.texi: New file.
45652
45653 2009-03-02  David Lutterkort  <lutter@redhat.com>
45654
45655         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45656         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45657
45658 2009-03-02  Bruno Haible  <bruno@clisp.org>
45659
45660         * doc/visibility.texi: Mention libtool's -export-symbols option.
45661
45662 2009-03-02  Jim Meyering  <meyering@redhat.com>
45663
45664         announce-gen: new option: --no-print-checksums
45665         * build-aux/announce-gen (usage): Describe it.
45666         (print_checksums): Print a newline here, not in the [*] footnote.
45667         (main): Honor it.
45668
45669 2009-03-01  Bruno Haible  <bruno@clisp.org>
45670
45671         Use socklen_t in the native Windows replacements prototypes.
45672         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45673         instead of 'int'.
45674         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45675         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45676         * modules/getsockopt (Depends-on): Add socklen.
45677         * modules/setsockopt (Depends-on): Add socklen.
45678
45679 2009-03-01  Bruno Haible  <bruno@clisp.org>
45680
45681         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45682         least 4.2.
45683
45684 2009-03-01  Eric Blake  <ebb9@byu.net>
45685             Bruno Haible  <bruno@clisp.org>
45686
45687         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45688         error messages.
45689         * lib/wait-process.c (wait_subprocess): Omit error message about
45690         deadly signal sent to the child of termsigp != NULL.
45691
45692 2009-03-01  Eric Blake  <ebb9@byu.net>
45693
45694         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45695
45696 2009-03-01  Bruno Haible  <bruno@clisp.org>
45697
45698         Avoid a gcc warning.
45699         * tests/test-sched.c (b): Make global.
45700         Reported by Eric Blake.
45701
45702 2009-01-19  Martin Lambers  <marlam@marlam.de>
45703
45704         Provide POSIX semantics for socket timeout options on W32.
45705         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45706         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45707         * modules/setsockopt: Depend on sys_time module for struct timeval.
45708         * modules/getsockopt: Depend on sys_time module for struct timeval.
45709
45710 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45711
45712         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45713         __USE_GNU, for consistency with netdb.in.h.
45714         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45715
45716 2009-03-01  Bruno Haible  <bruno@clisp.org>
45717
45718         More support for FreeMiNT.
45719         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45720         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45721
45722 2009-03-01  Bruno Haible  <bruno@clisp.org>
45723
45724         More support for FreeMiNT.
45725         * lib/fpurge.c (fpurge): Correct last commit.
45726         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45727
45728 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45729
45730         Fix unportable awk script in vc-list-files.
45731         * build-aux/vc-list-files: In the replacement awk script, use
45732         substr with a second argument of 1, not zero.
45733         Report by Simon Josefsson.
45734
45735 2009-02-28  Bruno Haible  <bruno@clisp.org>
45736
45737         More support for FreeMiNT.
45738         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45739         to FreeMiNT today.
45740         * lib/fwriting.c (fwriting): Likewise.
45741         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45742
45743 2009-02-28  Bruno Haible  <bruno@clisp.org>
45744
45745         * tests/test-freadseek.c (main): Disable test beyond end of file on
45746         FreeMiNT.
45747         * tests/test-ftello.c (main): Likewise.
45748         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45749
45750 2009-02-28  Bruno Haible  <bruno@clisp.org>
45751
45752         Add tentative support for FreeMiNT.
45753         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45754         * lib/fpurge.c (fpurge): Likewise.
45755         * lib/freadable.c (freadable): Likewise.
45756         * lib/freading.c (freading): Likewise.
45757         * lib/freadptr.c (freadptr): Likewise.
45758         * lib/freadseek.c (freadptrinc): Likewise.
45759         * lib/fseeko.c (rpl_fseeko): Likewise.
45760         * lib/fseterr.c (fseterr): Likewise.
45761         * lib/fwritable.c (fwritable): Likewise.
45762         * lib/fwriting.c (fwriting): Likewise.
45763         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45764         Hourihane.
45765         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45766
45767 2009-02-28  Bruno Haible  <bruno@clisp.org>
45768
45769         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45770         SIGCHLD.
45771         Reported by Jim Meyering.
45772
45773 2009-02-28  Bruno Haible  <bruno@clisp.org>
45774
45775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45776         Mention the results of these tests on various platforms.
45777         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45778         order.
45779         * doc/posix-functions/printf.texi: Likewise.
45780         * doc/posix-functions/snprintf.texi: Likewise.
45781         * doc/posix-functions/sprintf.texi: Likewise.
45782         * doc/posix-functions/vfprintf.texi: Likewise.
45783         * doc/posix-functions/vprintf.texi: Likewise.
45784         * doc/posix-functions/vsnprintf.texi: Likewise.
45785         * doc/posix-functions/vsprintf.texi: Likewise.
45786         * doc/glibc-functions/obstack_printf.texi: Likewise.
45787         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45788
45789 2009-02-28  Bruno Haible  <bruno@clisp.org>
45790
45791         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45792         Reported by Loïc Minier <lool@dooz.org>.
45793
45794 2009-02-27  Bruno Haible  <bruno@clisp.org>
45795
45796         * gnulib-tool (func_import): Make the sed expression used to create the
45797         sed script for updating the .gitignore file POSIX compliant.
45798         Reported by Eric Blake.
45799
45800 2009-02-27  Bruno Haible  <bruno@clisp.org>
45801
45802         * gnulib-tool (sed): Don't alias as "sed --posix".
45803         Reported by Eric Blake.
45804
45805 2009-02-27  Bruno Haible  <bruno@clisp.org>
45806
45807         Avoid test link errors.
45808         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45809         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45810         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45811         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45813
45814 2009-02-27  Bruno Haible  <bruno@clisp.org>
45815
45816         Avoid spurious "(cached)" in configure output.
45817         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45818         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45819         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45820         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45821         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45822         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45823         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45824         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45825         Reported by Eric Blake.
45826
45827 2009-02-27  Eric Blake  <ebb9@byu.net>
45828
45829         printf: fix regression in previous patch
45830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45831
45832 2009-02-27  Bruno Haible  <bruno@clisp.org>
45833
45834         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45835         value.
45836         * lib/stdint.in.h: Likewise.
45837         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45838
45839 2009-02-27  Eric Blake  <ebb9@byu.net>
45840
45841         doc: mention more functions added in cygwin 1.7.0
45842         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45843         addition.
45844         * doc/posix-functions/open_wmemstream.texi: Likewise.
45845         * doc/posix-functions/wcsnlen.texi: Likewise.
45846         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45847         * doc/posix-functions/wcstod.texi: Likewise.
45848         * doc/posix-functions/wcstof.texi: Likewise.
45849         * doc/posix-functions/wcstoimax.texi: Likewise.
45850         * doc/posix-functions/wcstok.texi: Likewise.
45851         * doc/posix-functions/wcstoumax.texi: Likewise.
45852
45853         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45855         * doc/posix-functions/fprintf.texi: Update.
45856         * doc/posix-functions/printf.texi: Update.
45857         * doc/posix-functions/snprintf.texi: Update.
45858         * doc/posix-functions/sprintf.texi: Update.
45859         * doc/posix-functions/vfprintf.texi: Update.
45860         * doc/posix-functions/vprintf.texi: Update.
45861         * doc/posix-functions/vsnprintf.texi: Update.
45862         * doc/posix-functions/vsprintf.texi: Update.
45863         * doc/glibc-functions/obstack_printf.texi: Update.
45864         * doc/glibc-functions/obstack_vprintf.texi: Update.
45865
45866 2009-02-26  Eric Blake  <ebb9@byu.net>
45867
45868         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45869         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45870         compilation bug by using runtime conversion.
45871         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45872         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45873         * modules/ceill-tests (Files): Use nan.h.
45874         * modules/floorl-tests (Files): Likewise.
45875         * modules/frexpl-tests (Files): Likewise.
45876         * modules/isnanl-tests (Files): Likewise.
45877         * modules/ldexpl-tests (Files): Likewise.
45878         * modules/roundl-tests (Files): Likewise.
45879         * modules/truncl-tests (Files): Likewise.
45880         * tests/test-ceill.c (main): Use a working NaN.
45881         * tests/test-floorl.c (main): Likewise.
45882         * tests/test-frexpl.c (main): Likewise.
45883         * tests/test-isnan.c (test_long_double): Likewise.
45884         * tests/test-isnanl.h (main): Likewise.
45885         * tests/test-ldexpl.h (main): Likewise.
45886         * tests/test-roundl.h (main): Likewise.
45887         * tests/test-truncl.h (main): Likewise.
45888         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45889
45890 2009-02-26  Eric Blake  <ebb9@byu.net>
45891             Bruno Haible  <bruno@clisp.org>
45892
45893         Work around a *printf bug with %ls on Solaris.
45894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45895         precision is specified, sprintf stops converting the wide string
45896         argument when the number of bytes that have been produced by this
45897         conversion equals or exceeds the precision.
45898         * doc/posix-functions/fprintf.texi: Update.
45899         * doc/posix-functions/printf.texi: Update.
45900         * doc/posix-functions/snprintf.texi: Update.
45901         * doc/posix-functions/sprintf.texi: Update.
45902         * doc/posix-functions/vfprintf.texi: Update.
45903         * doc/posix-functions/vprintf.texi: Update.
45904         * doc/posix-functions/vsnprintf.texi: Update.
45905         * doc/posix-functions/vsprintf.texi: Update.
45906         * doc/glibc-functions/obstack_printf.texi: Update.
45907         * doc/glibc-functions/obstack_vprintf.texi: Update.
45908
45909 2009-02-26  Eric Blake  <ebb9@byu.net>
45910
45911         stdlib: favor compiler check of random.h
45912         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45913         to avoid an ObjC random.h installed by Swarm.
45914
45915 2009-02-26  Bruno Haible  <bruno@clisp.org>
45916
45917         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45918         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45919         Reported by Gary V. Vaughan <gary@gnu.org>.
45920
45921 2009-02-26  Bruno Haible  <bruno@clisp.org>
45922
45923         Fix *printf behaviour regarding the %ls directive.
45924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45925         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45926         NEED_PRINTF_DIRECTIVE_LS.
45927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45928         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45929         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45930         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45931         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45932         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45933         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45938         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45939         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45942         * doc/posix-functions/fprintf.texi: Update.
45943         * doc/posix-functions/printf.texi: Update.
45944         * doc/posix-functions/snprintf.texi: Update.
45945         * doc/posix-functions/sprintf.texi: Update.
45946         * doc/posix-functions/vfprintf.texi: Update.
45947         * doc/posix-functions/vprintf.texi: Update.
45948         * doc/posix-functions/vsnprintf.texi: Update.
45949         * doc/posix-functions/vsprintf.texi: Update.
45950         * doc/glibc-functions/obstack_printf.texi: Update.
45951         * doc/glibc-functions/obstack_vprintf.texi: Update.
45952         Reported by Eric Blake.
45953
45954 2009-02-25  Bruno Haible  <bruno@clisp.org>
45955
45956         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45957         with known value.
45958         Reported by Gary V. Vaughan <gary@gnu.org>.
45959
45960 2009-02-25  Bruno Haible  <bruno@clisp.org>
45961
45962         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45963         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45964         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45965         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45966         Reported by Gary V. Vaughan <gary@gnu.org>.
45967
45968 2009-02-25  Bruno Haible  <bruno@clisp.org>
45969
45970         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45971         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45972         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45973         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45974         Reported by Gary V. Vaughan <gary@gnu.org>.
45975
45976 2009-02-25  Eric Blake  <ebb9@byu.net>
45977
45978         tests: skip fseek/ftell tests if ungetc is broken
45979         * m4/ungetc.m4: New file.
45980         * modules/fseek-tests: Split test, so ungetc dependency is
45981         separate from rest of test.
45982         * modules/fseeko-tests: Likewise.
45983         * modules/ftell-tests: Likewise.
45984         * modules/ftello-tests: Likewise.
45985         * tests/test-fseek.c (main): Isolate ungetc dependency.
45986         * tests/test-fseeko.c (main): Likewise.
45987         * tests/test-ftell.c (main): Likewise.
45988         * tests/test-ftello.c (main): Likewise.
45989         * tests/test-fseek2.sh: New file.
45990         * tests/test-fseeko2.sh: Likewise.
45991         * tests/test-ftell2.sh: Likewise.
45992         * tests/test-ftello2.sh: Likewise.
45993
45994 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45995
45996         test-getaddrinfo: fix usage of skip return code 77
45997         * tests/test-gettaddrinfo.c: Return skip code 77 only
45998         for first occurance of skip (4x77 is not 77)
45999
46000 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46001
46002         strtod: avoid C99 decl-after-statement
46003         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46004
46005 2009-02-24  Eric Blake  <ebb9@byu.net>
46006
46007         strtod: detect HP-UX 11.31 bug
46008         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46009         Reported by Gary V. Vaughan.
46010
46011 2009-02-23  Bruno Haible  <bruno@clisp.org>
46012
46013         Fix invalid read past end of memory block.
46014         * lib/vasnprintf.c (DCHAR_SET): Define.
46015         (local_wcslen): Define only when needed.
46016         (local_strnlen, local_wcsnlen): New functions.
46017         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46018         directives that involve a conversion ourselves.
46019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46020         wcsnlen, mbrtowc, wcrtomb.
46021         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46022         * tests/test-vasprintf-posix.c (test_function): Likewise.
46023         * tests/test-snprintf-posix.h (test_function): Likewise.
46024         * tests/test-sprintf-posix.h (test_function): Likewise.
46025         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46026
46027 2009-02-22  Bruno Haible  <bruno@clisp.org>
46028
46029         Implement new clarified decomposition of Hangul syllables.
46030         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46031         of type LTV, return only a pairwise decomposition.
46032         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46033         Likewise.
46034         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46035         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46036         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46037
46038 2009-02-22  Bruno Haible  <bruno@clisp.org>
46039
46040         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46041         zero-length results and shrink excess allocated memory.
46042         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46043         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46044         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46045         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46046         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46047         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46048         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46049         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46050         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46051         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46052         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46053         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46054
46055 2009-02-21  Bruno Haible  <bruno@clisp.org>
46056
46057         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46058         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46059         spaces after a period. Put a space between a macro name and its
46060         argument list. Trivial rewordings.
46061         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46062         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46063         (main): Return 0 explicitly.
46064
46065 2009-02-21  Bruno Haible  <bruno@clisp.org>
46066
46067         Tests for module 'uninorm/filter'.
46068         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46069         * modules/uninorm/filter-tests: New file.
46070
46071         New module 'uninorm/filter'.
46072         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46073         uninorm_filter_flush, uninorm_filter_free): New declarations.
46074         * lib/uninorm/uninorm-filter.c: New file.
46075         * modules/uninorm/filter: New file.
46076
46077 2009-02-21  Bruno Haible  <bruno@clisp.org>
46078
46079         Tests for module 'uninorm/nfkc'.
46080         * tests/uninorm/test-nfkc.c: New file.
46081         * tests/uninorm/test-u8-nfkc.c: New file.
46082         * tests/uninorm/test-u16-nfkc.c: New file.
46083         * tests/uninorm/test-u32-nfkc.c: New file.
46084         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46085         * tests/uninorm/test-u32-nfkc-big.c: New file.
46086         * modules/uninorm/nfkc-tests: New file.
46087
46088         New module 'uninorm/nfkc'.
46089         * lib/uninorm/nfkc.c: New file.
46090         * modules/uninorm/nfkc: New file.
46091
46092         Tests for module 'uninorm/nfkd'.
46093         * tests/uninorm/test-nfkd.c: New file.
46094         * tests/uninorm/test-u8-nfkd.c: New file.
46095         * tests/uninorm/test-u16-nfkd.c: New file.
46096         * tests/uninorm/test-u32-nfkd.c: New file.
46097         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46098         * tests/uninorm/test-u32-nfkd-big.c: New file.
46099         * modules/uninorm/nfkd-tests: New file.
46100
46101         New module 'uninorm/nfkd'.
46102         * lib/uninorm/nfkd.c: New file.
46103         * modules/uninorm/nfkd: New file.
46104
46105         Tests for module 'uninorm/nfc'.
46106         * tests/uninorm/test-nfc.c: New file.
46107         * tests/uninorm/test-u8-nfc.c: New file.
46108         * tests/uninorm/test-u16-nfc.c: New file.
46109         * tests/uninorm/test-u32-nfc.c: New file.
46110         * tests/uninorm/test-u32-nfc-big.sh: New file.
46111         * tests/uninorm/test-u32-nfc-big.c: New file.
46112         * modules/uninorm/nfc-tests: New file.
46113
46114         New module 'uninorm/nfc'.
46115         * lib/uninorm/nfc.c: New file.
46116         * modules/uninorm/nfc: New file.
46117
46118         Tests for module 'uninorm/nfd'.
46119         * tests/uninorm/test-nfd.c: New file.
46120         * tests/uninorm/test-u8-nfd.c: New file.
46121         * tests/uninorm/test-u16-nfd.c: New file.
46122         * tests/uninorm/test-u32-nfd.c: New file.
46123         * tests/uninorm/test-u32-nfd-big.sh: New file.
46124         * tests/uninorm/test-u32-nfd-big.c: New file.
46125         * tests/uninorm/test-u32-normalize-big.h: New file.
46126         * tests/uninorm/test-u32-normalize-big.c: New file.
46127         * tests/uninorm/NormalizationTest.txt: New file, created from
46128         Unicode 5.1.0 NormalizationTest.txt.
46129         * modules/uninorm/nfd-tests: New file.
46130
46131         New module 'uninorm/nfd'.
46132         * lib/uninorm/nfd.c: New file.
46133         * modules/uninorm/nfd: New file.
46134
46135         New module 'uninorm/u32-normalize'.
46136         * lib/uninorm/u32-normalize.c: New file.
46137         * modules/uninorm/u32-normalize: New file.
46138
46139         New module 'uninorm/u16-normalize'.
46140         * lib/uninorm/u16-normalize.c: New file.
46141         * modules/uninorm/u16-normalize: New file.
46142
46143         New module 'uninorm/u8-normalize'.
46144         * lib/uninorm/u8-normalize.c: New file.
46145         * lib/uninorm/normalize-internal.h: New file.
46146         * lib/uninorm/u-normalize-internal.h: New file.
46147         * modules/uninorm/u8-normalize: New file.
46148
46149         New module 'uninorm/decompose-internal'.
46150         * lib/uninorm/decompose-internal.c: New file.
46151         * modules/uninorm/decompose-internal: New file.
46152
46153         Tests for module 'uninorm/composition'.
46154         * tests/uninorm/test-composition.c: New file.
46155         * modules/uninorm/composition-tests: New file.
46156
46157         New module 'uninorm/composition'.
46158         * lib/uninorm/composition.c: New file.
46159         * lib/uninorm/composition-table.gperf: New file, generated by
46160         gen-uni-tables.
46161         * modules/uninorm/composition: New file.
46162
46163         Tests for module 'uninorm/compat-decomposition'.
46164         * tests/uninorm/test-compat-decomposition.c: New file.
46165         * modules/uninorm/compat-decomposition-tests: New file.
46166
46167         New module 'uninorm/compat-decomposition'.
46168         * lib/uninorm/decompose-internal.h: New file.
46169         * lib/uninorm/compat-decomposition.c: New file.
46170         * modules/uninorm/compat-decomposition: New file.
46171
46172         Tests for module 'uninorm/canonical-decomposition'.
46173         * tests/uninorm/test-canonical-decomposition.c: New file.
46174         * modules/uninorm/canonical-decomposition-tests: New file.
46175
46176         New module 'uninorm/canonical-decomposition'.
46177         * lib/uninorm/canonical-decomposition.c: New file.
46178         * modules/uninorm/canonical-decomposition: New file.
46179
46180         Tests for module 'uninorm/decomposition'.
46181         * tests/uninorm/test-decomposition.c: New file.
46182         * modules/uninorm/decomposition-tests: New file.
46183
46184         New module 'uninorm/decomposition'.
46185         * lib/uninorm/decomposition.c: New file.
46186         * modules/uninorm/decomposition: New file.
46187
46188         New module 'uninorm/decomposition-table'.
46189         * lib/uninorm/decomposition-table.h: New file.
46190         * lib/uninorm/decomposition-table.c: New file.
46191         * lib/uninorm/decomposition-table1.h: New file, generated by
46192         gen-uni-tables.
46193         * lib/uninorm/decomposition-table2.h: New file, generated by
46194         gen-uni-tables.
46195         * modules/uninorm/decomposition-table: New file.
46196
46197         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46198         (UC_DECOMP_*): New enumeration items.
46199         (get_decomposition): New function.
46200         (struct decomp_table): New type.
46201         (output_decomposition, output_decomposition_tables): New functions.
46202         (unicode_composition_exclusions): New variable.
46203         (fill_composition_exclusions, debug_output_composition_tables): New
46204         functions.
46205         (main): Accept one more argument. Invoke fill_composition_exclusions.
46206         Output decomposition and composition tables.
46207
46208         New module 'uninorm/base'.
46209         * lib/uninorm.h: New file.
46210         * lib/unictype.h: Update comment.
46211         * modules/uninorm/base: New file.
46212
46213 2009-02-21  David Lutterkort  <lutter@redhat.com>
46214
46215         Tests for module 'safe-alloc'.
46216         * tests/test-safe-alloc.c: New file.
46217         * modules/safe-alloc-tests: New file.
46218
46219         New module 'safe-alloc'.
46220         * lib/safe-alloc.h: New file.
46221         * lib/safe-alloc.c: New file.
46222         * m4/safe-alloc.m4: New file.
46223         * modules/safe-alloc: New file.
46224         * doc/safe-alloc.texi: New file.
46225         * doc/gnulib.texi: Include it.
46226         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46227         safe-alloc.
46228
46229 2009-02-18  Bruno Haible  <bruno@clisp.org>
46230
46231         Fix link error on non-glibc systems.
46232         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46233         variable.
46234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46235
46236 2009-02-18  Jim Meyering  <meyering@redhat.com>
46237
46238         fts: avoid used-uninitialized error due to recent change
46239         * lib/fts.c (fts_read): Guard uses of the new member,
46240         parent->fts_n_dirs_remaining, since it's not relevant for
46241         the parent of a directory specified on the command-line.
46242
46243 2009-02-17  James Youngman  <jay@gnu.org>
46244             Bruno Haible  <bruno@clisp.org>
46245
46246         * m4/include_next.m4: Reformulate comment.
46247
46248 2009-02-16  Jim Meyering  <meyering@redhat.com>
46249
46250         fts: add #if guards so that the fts_lgpl module still builds
46251         * lib/fts.c: Guard just-added hash-table-using parts with
46252         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46253         Reported by Simon Josefsson.
46254
46255 2009-02-15  Bruno Haible  <bruno@clisp.org>
46256
46257         * modules/array-mergesort-tests: New file.
46258         * tests/test-array-mergesort.c: New file.
46259
46260         New module 'array-mergesort'.
46261         * modules/array-mergesort: New file.
46262         * lib/array-mergesort.h: New file.
46263
46264 2009-02-15  Bruno Haible  <bruno@clisp.org>
46265
46266         Fix 2009-02-07 commit.
46267         * lib/gen-uni-tables.c (output_predicate, output_category,
46268         output_combclass, output_bidi_category, output_decimal_digit,
46269         output_digit, output_numeric, output_mirror, output_scripts,
46270         output_ident_category, output_simple_mapping): Fix format directives.
46271         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46272
46273 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46274
46275         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46276         fixes are available from IBM.
46277
46278 2009-02-13  Jim Meyering  <meyering@redhat.com>
46279
46280         fts: arrange not to stat non-directories in more cases
46281         This makes GNU find (when it doesn't need to stat each file)
46282         *much* more efficient at traversing reiserfs file systems.
46283         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46284         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46285         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46286         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46287         (leaf_optimization_applies): New function.
46288         (LCO_hash, LCO_compare): New helper functions.
46289         (link_count_optimize_ok): New function.
46290         (fts_stat): Initialize new member (if dir).
46291         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46292         we've just stat'ed a directory.  Skip the stat call when possible.
46293         ---
46294         Note this AFS-related exchange:
46295         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46296         and note find's pioctl call in find/fstype.c.
46297         But that is necessary only if you want to enable the
46298         optimization for AFS, and for now, I don't.
46299
46300         fts: move a function definition "up" (no semantic change)
46301         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46302         "up" to precede upcoming use of a related function.
46303
46304 2009-02-11  Jim Meyering  <meyering@redhat.com>
46305
46306         fts: correct internal computation of nlinks (optimization-related)
46307         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46308         whether the current entry is a directory, so don't test it.
46309
46310 2009-02-10  Bruno Haible  <bruno@clisp.org>
46311
46312         Tests for module 'uniwbrk/ulc-wordbreaks'.
46313         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46314         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46315         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46316
46317         Tests for module 'uniwbrk/u32-wordbreaks'.
46318         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46319         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46320
46321         Tests for module 'uniwbrk/u16-wordbreaks'.
46322         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46323         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46324
46325         Tests for module 'uniwbrk/u8-wordbreaks'.
46326         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46327         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46328
46329 2009-02-10  Bruno Haible  <bruno@clisp.org>
46330
46331         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46332         property.
46333         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46334         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46335         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46336
46337 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46338
46339         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46340         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46341
46342 2009-02-10  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46345         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46346         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46347         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46348         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46349         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46350
46351 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46352
46353         * lib/sockets.h (gl_fd_to_handle): New function.
46354
46355         * tests/test-sockets.c: Call gl_fd_to_handle.
46356
46357 2009-02-09  Bruno Haible  <bruno@clisp.org>
46358
46359         * doc/havelib.texi: Document the conventions on bi-arch systems.
46360
46361 2009-02-08  Bruno Haible  <bruno@clisp.org>
46362
46363         Document the AC_LIB_LINKFLAGS macro.
46364         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46365         * doc/gnulib.texi: Include it.
46366
46367 2009-02-08  Bruno Haible  <bruno@clisp.org>
46368
46369         Fix wrong order of sections, compared to TOC.
46370         * doc/gnulib.texi: Include relocatable-maint.texi after the
46371         "Regular expressions" node, not before.
46372
46373 2009-02-08  Bruno Haible  <bruno@clisp.org>
46374
46375         Tests for module 'unicase/totitle'.
46376         * modules/unicase/totitle-tests: New file.
46377
46378         Tests for module 'unicase/tolower'.
46379         * modules/unicase/tolower-tests: New file.
46380
46381         Tests for module 'unicase/toupper'.
46382         * modules/unicase/toupper-tests: New file.
46383         * tests/unicase/test-mapping-part1.h: New file.
46384         * tests/unicase/test-mapping-part2.h: New file.
46385
46386         New module 'unicase/totitle'.
46387         * modules/unicase/totitle: New file.
46388         * lib/unicase/totitle.c: New file.
46389
46390         New module 'unicase/tolower'.
46391         * modules/unicase/tolower: New file.
46392         * lib/unicase/tolower.c: New file.
46393
46394         New module 'unicase/toupper'.
46395         * modules/unicase/toupper: New file.
46396         * lib/unicase/toupper.c: New file.
46397         * lib/unicase/simple-mapping.h: New file.
46398
46399         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46400         (mapping_table): New structure.
46401         (output_simple_mapping): New function.
46402         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46403         * modules/gen-uni-tables (Description): Update.
46404         * lib/unicase/toupper.h: New file, automatically generated by
46405         gen-uni-tables.
46406         * lib/unicase/tolower.h: New file, automatically generated by
46407         gen-uni-tables.
46408         * lib/unicase/totitle.h: New file, automatically generated by
46409         gen-uni-tables.
46410         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46411         gen-uni-tables.
46412         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46413         gen-uni-tables.
46414         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46415         gen-uni-tables.
46416
46417         New module 'unicase/base'.
46418         * modules/unicase/base: New file.
46419         * lib/unicase.h: New file.
46420
46421 2009-02-08  Bruno Haible  <bruno@clisp.org>
46422
46423         New module 'uniwbrk/ulc-wordbreaks'.
46424         * modules/uniwbrk/ulc-wordbreaks: New file.
46425         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46426
46427         New module 'uniwbrk/u32-wordbreaks'.
46428         * modules/uniwbrk/u32-wordbreaks: New file.
46429         * lib/uniwbrk/u32-wordbreaks.c: New file.
46430
46431         New module 'uniwbrk/u16-wordbreaks'.
46432         * modules/uniwbrk/u16-wordbreaks: New file.
46433         * lib/uniwbrk/u16-wordbreaks.c: New file.
46434
46435         New module 'uniwbrk/u8-wordbreaks'.
46436         * modules/uniwbrk/u8-wordbreaks: New file.
46437         * lib/uniwbrk/u8-wordbreaks.c: New file.
46438         * lib/uniwbrk/u-wordbreaks.h: New file.
46439
46440         New module 'uniwbrk/table'.
46441         * modules/uniwbrk/table: New file.
46442         * lib/uniwbrk/wbrktable.h: New file.
46443         * lib/uniwbrk/wbrktable.c: New file.
46444
46445         New module 'uniwbrk/wordbreak-property'.
46446         * modules/uniwbrk/wordbreak-property: New file.
46447         * lib/uniwbrk/wordbreak-property.c: New file.
46448
46449         * lib/gen-uni-tables.c (WBP_*): New enum items.
46450         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46451         (unicode_org_wbp): New variable.
46452         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46453         New functions.
46454         (wbp_table): New structure.
46455         (output_wbp, output_wbrk_tables): New functions.
46456         (main): Accept additional argument. Invoke fill_org_wbp,
46457         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46458         output_wbrk_tables.
46459         * modules/gen-uni-tables (Description): Update.
46460         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46461         gen-uni-tables.
46462
46463         New module 'uniwbrk/base'.
46464         * modules/uniwbrk/base: New file.
46465         * lib/uniwbrk.h: New file.
46466
46467 2009-02-08  Bruno Haible  <bruno@clisp.org>
46468
46469         Update to Unicode 5.1.0.
46470         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46471         U+2185..U+2188.
46472         (is_property_default_ignorable_code_point): Don't include characters
46473         of category Cc or Cs and not-a-characters.
46474         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46475         U+0D79, U+109E, U+109F, U+A60C.
46476         * lib/unictype/bidi_of.h: Regenerated.
46477         * lib/unictype/blocks.h: Regenerated.
46478         * lib/unictype/categ_C.h: Regenerated.
46479         * lib/unictype/categ_Cf.h: Regenerated.
46480         * lib/unictype/categ_Cn.h: Regenerated.
46481         * lib/unictype/categ_L.h: Regenerated.
46482         * lib/unictype/categ_Ll.h: Regenerated.
46483         * lib/unictype/categ_Lm.h: Regenerated.
46484         * lib/unictype/categ_Lo.h: Regenerated.
46485         * lib/unictype/categ_Lu.h: Regenerated.
46486         * lib/unictype/categ_M.h: Regenerated.
46487         * lib/unictype/categ_Mc.h: Regenerated.
46488         * lib/unictype/categ_Me.h: Regenerated.
46489         * lib/unictype/categ_Mn.h: Regenerated.
46490         * lib/unictype/categ_N.h: Regenerated.
46491         * lib/unictype/categ_Nd.h: Regenerated.
46492         * lib/unictype/categ_Nl.h: Regenerated.
46493         * lib/unictype/categ_No.h: Regenerated.
46494         * lib/unictype/categ_P.h: Regenerated.
46495         * lib/unictype/categ_Pd.h: Regenerated.
46496         * lib/unictype/categ_Pe.h: Regenerated.
46497         * lib/unictype/categ_Pf.h: Regenerated.
46498         * lib/unictype/categ_Pi.h: Regenerated.
46499         * lib/unictype/categ_Po.h: Regenerated.
46500         * lib/unictype/categ_Ps.h: Regenerated.
46501         * lib/unictype/categ_S.h: Regenerated.
46502         * lib/unictype/categ_Sk.h: Regenerated.
46503         * lib/unictype/categ_Sm.h: Regenerated.
46504         * lib/unictype/categ_So.h: Regenerated.
46505         * lib/unictype/categ_of.h: Regenerated.
46506         * lib/unictype/combining.h: Regenerated.
46507         * lib/unictype/ctype_alnum.h: Regenerated.
46508         * lib/unictype/ctype_alpha.h: Regenerated.
46509         * lib/unictype/ctype_graph.h: Regenerated.
46510         * lib/unictype/ctype_lower.h: Regenerated.
46511         * lib/unictype/ctype_print.h: Regenerated.
46512         * lib/unictype/ctype_punct.h: Regenerated.
46513         * lib/unictype/ctype_upper.h: Regenerated.
46514         * lib/unictype/decdigit.h: Regenerated.
46515         * lib/unictype/digit.h: Regenerated.
46516         * lib/unictype/mirror.h: Regenerated.
46517         * lib/unictype/numeric.h: Regenerated.
46518         * lib/unictype/pr_alphabetic.h: Regenerated.
46519         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46520         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46521         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46522         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46523         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46524         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46525         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46526         * lib/unictype/pr_combining.h: Regenerated.
46527         * lib/unictype/pr_dash.h: Regenerated.
46528         * lib/unictype/pr_decimal_digit.h: Regenerated.
46529         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46530         * lib/unictype/pr_deprecated.h: Regenerated.
46531         * lib/unictype/pr_diacritic.h: Regenerated.
46532         * lib/unictype/pr_extender.h: Regenerated.
46533         * lib/unictype/pr_format_control.h: Regenerated.
46534         * lib/unictype/pr_grapheme_base.h: Regenerated.
46535         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46536         * lib/unictype/pr_grapheme_link.h: Regenerated.
46537         * lib/unictype/pr_id_continue.h: Regenerated.
46538         * lib/unictype/pr_id_start.h: Regenerated.
46539         * lib/unictype/pr_ideographic.h: Regenerated.
46540         * lib/unictype/pr_ignorable_control.h: Regenerated.
46541         * lib/unictype/pr_lowercase.h: Regenerated.
46542         * lib/unictype/pr_math.h: Regenerated.
46543         * lib/unictype/pr_numeric.h: Regenerated.
46544         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46545         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46546         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46547         * lib/unictype/pr_other_id_continue.h: Regenerated.
46548         * lib/unictype/pr_other_lowercase.h: Regenerated.
46549         * lib/unictype/pr_other_math.h: Regenerated.
46550         * lib/unictype/pr_punctuation.h: Regenerated.
46551         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46552         * lib/unictype/pr_soft_dotted.h: Regenerated.
46553         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46554         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46555         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46556         * lib/unictype/pr_uppercase.h: Regenerated.
46557         * lib/unictype/pr_xid_continue.h: Regenerated.
46558         * lib/unictype/pr_xid_start.h: Regenerated.
46559         * lib/unictype/pr_zero_width.h: Regenerated.
46560         * lib/unictype/scripts.h: Regenerated.
46561         * lib/unictype/scripts_byname.gperf: Regenerated.
46562         * lib/unictype/sy_java_ident.h: Regenerated.
46563         * lib/unilbrk/lbrkprop1.h: Regenerated.
46564         * lib/unilbrk/lbrkprop2.h: Regenerated.
46565         * tests/unictype/test-categ_C.c: Regenerated.
46566         * tests/unictype/test-categ_Cf.c: Regenerated.
46567         * tests/unictype/test-categ_Cn.c: Regenerated.
46568         * tests/unictype/test-categ_L.c: Regenerated.
46569         * tests/unictype/test-categ_Ll.c: Regenerated.
46570         * tests/unictype/test-categ_Lm.c: Regenerated.
46571         * tests/unictype/test-categ_Lo.c: Regenerated.
46572         * tests/unictype/test-categ_Lu.c: Regenerated.
46573         * tests/unictype/test-categ_M.c: Regenerated.
46574         * tests/unictype/test-categ_Mc.c: Regenerated.
46575         * tests/unictype/test-categ_Me.c: Regenerated.
46576         * tests/unictype/test-categ_Mn.c: Regenerated.
46577         * tests/unictype/test-categ_N.c: Regenerated.
46578         * tests/unictype/test-categ_Nd.c: Regenerated.
46579         * tests/unictype/test-categ_Nl.c: Regenerated.
46580         * tests/unictype/test-categ_No.c: Regenerated.
46581         * tests/unictype/test-categ_P.c: Regenerated.
46582         * tests/unictype/test-categ_Pd.c: Regenerated.
46583         * tests/unictype/test-categ_Pe.c: Regenerated.
46584         * tests/unictype/test-categ_Pf.c: Regenerated.
46585         * tests/unictype/test-categ_Pi.c: Regenerated.
46586         * tests/unictype/test-categ_Po.c: Regenerated.
46587         * tests/unictype/test-categ_Ps.c: Regenerated.
46588         * tests/unictype/test-categ_S.c: Regenerated.
46589         * tests/unictype/test-categ_Sk.c: Regenerated.
46590         * tests/unictype/test-categ_Sm.c: Regenerated.
46591         * tests/unictype/test-categ_So.c: Regenerated.
46592         * tests/unictype/test-ctype_alnum.c: Regenerated.
46593         * tests/unictype/test-ctype_alpha.c: Regenerated.
46594         * tests/unictype/test-ctype_graph.c: Regenerated.
46595         * tests/unictype/test-ctype_lower.c: Regenerated.
46596         * tests/unictype/test-ctype_print.c: Regenerated.
46597         * tests/unictype/test-ctype_punct.c: Regenerated.
46598         * tests/unictype/test-ctype_upper.c: Regenerated.
46599         * tests/unictype/test-decdigit.h: Regenerated.
46600         * tests/unictype/test-digit.h: Regenerated.
46601         * tests/unictype/test-numeric.h: Regenerated.
46602         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46603         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46604         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46605         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46606         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46607         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46608         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46609         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46610         * tests/unictype/test-pr_combining.c: Regenerated.
46611         * tests/unictype/test-pr_dash.c: Regenerated.
46612         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46613         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46614         * tests/unictype/test-pr_deprecated.c: Regenerated.
46615         * tests/unictype/test-pr_diacritic.c: Regenerated.
46616         * tests/unictype/test-pr_extender.c: Regenerated.
46617         * tests/unictype/test-pr_format_control.c: Regenerated.
46618         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46619         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46620         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46621         * tests/unictype/test-pr_id_continue.c: Regenerated.
46622         * tests/unictype/test-pr_id_start.c: Regenerated.
46623         * tests/unictype/test-pr_ideographic.c: Regenerated.
46624         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46625         * tests/unictype/test-pr_lowercase.c: Regenerated.
46626         * tests/unictype/test-pr_math.c: Regenerated.
46627         * tests/unictype/test-pr_numeric.c: Regenerated.
46628         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46629         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46630         Regenerated.
46631         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46632         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46633         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46634         * tests/unictype/test-pr_other_math.c: Regenerated.
46635         * tests/unictype/test-pr_punctuation.c: Regenerated.
46636         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46637         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46638         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46639         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46640         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46641         * tests/unictype/test-pr_uppercase.c: Regenerated.
46642         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46643         * tests/unictype/test-pr_xid_start.c: Regenerated.
46644         * tests/unictype/test-pr_zero_width.c: Regenerated.
46645
46646         Update to Unicode 5.1.0.
46647         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46648         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46649         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46650         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46651         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46652         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46653         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46654         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46655         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46656         (nonspacing_table_ind): Update.
46657         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46658
46659         Update to Unicode 5.1.0.
46660         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46661         code transform.
46662         * lib/uniname/uniname.c (unicode_character_name,
46663         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46664         * lib/uniname/uninames.h: Regenerated.
46665         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46666
46667 2009-02-07  Bruno Haible  <bruno@clisp.org>
46668
46669         Merge gen-ctype and gen-lbrk into a single program.
46670         * lib/gen-uni-tables.c: New file, incorporating
46671         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46672         Add directory prefixes to the names of the generated files.
46673         * lib/unictype/gen-ctype.c: Remove file.
46674         * lib/unilbrk/gen-lbrk.c: Remove file.
46675         * modules/gen-uni-tables: New file.
46676         * modules/unictype/gen-ctype: Remove file.
46677         * modules/unilbrk/gen-lbrk: Remove file.
46678
46679 2009-02-07  Bruno Haible  <bruno@clisp.org>
46680
46681         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46682
46683         New module 'unistr/u32-strcoll'.
46684         * modules/unistr/u32-strcoll: New file.
46685         * lib/unistr/u32-strcoll.c: New file.
46686
46687         New module 'unistr/u16-strcoll'.
46688         * modules/unistr/u16-strcoll: New file.
46689         * lib/unistr/u16-strcoll.c: New file.
46690
46691         New module 'unistr/u8-strcoll'.
46692         * modules/unistr/u8-strcoll: New file.
46693         * lib/unistr/u8-strcoll.c: New file.
46694         * lib/unistr/u-strcoll.h: New file.
46695
46696 2009-02-07  Bruno Haible  <bruno@clisp.org>
46697
46698         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46699         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46700         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46701         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46702         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46703         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46704
46705 2009-02-07  Bruno Haible  <bruno@clisp.org>
46706
46707         Make 64-bit clean.
46708         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46709         output_combclass, output_bidi_category, output_decimal_digit,
46710         output_digit, output_numeric, output_mirror, output_scripts,
46711         output_ident_category): Use proper width specifier in format strings.
46712
46713 2009-02-07  Bruno Haible  <bruno@clisp.org>
46714
46715         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46716         failure behaviour.
46717
46718 2009-02-07  Jim Meyering  <meyering@redhat.com>
46719
46720         regex: avoid compilation failure with upcoming gcc-4.4
46721         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46722         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46723         "... error: integer overflow in preprocessor expression".
46724
46725 2009-02-05  Ben Pfaff  <blp@gnu.org>
46726
46727         Fix link errors on Windows when close module is used.
46728         * modules/close: Add $(LIB_CLOSE) to Link section.
46729         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46730         $(LIB_CLOSE) on Windows.
46731
46732 2009-02-05  Jim Meyering  <meyering@redhat.com>
46733
46734         still avoid unused-parameter warnings, but do it cleanly
46735         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46736         (get_fs_usage): Cast to void instead.
46737         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46738         (dev_from_mount_options, read_file_system_list): Cast to void.
46739         Prompted by Bruno Haible.
46740
46741 2009-02-04  Jim Meyering  <meyering@redhat.com>
46742
46743         fsusage.c: correct copyright year
46744         * lib/fsusage.c: Reflect year in which the change is pushed into
46745
46746         avoid misc. warnings
46747         * lib/fsusage.c (UNUSED_PARAM): Define.
46748         (get_fs_usage): Mark parameter "disk" as unused.
46749         * lib/getugroups.c (getgrent): Use "void" in prototype.
46750         * lib/mountlist.c: Mark unused parameters.
46751         (read_file_system_list): Declare a local with "const".
46752         * lib/nanosleep.c (getnow): Declare static.
46753         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46754
46755         dirfd: set errno upon failure
46756         * lib/dirfd.c: Include <errno.h>.
46757         Set errno to ENOTSUP when returning -1.
46758         * modules/dirfd (Depends-on): Add errno.
46759         Suggested by John Kodis <kodis@comcast.net>.
46760
46761 2009-02-01  Bruno Haible  <bruno@clisp.org>
46762
46763         Don't assume sizeof (long) >= sizeof (void *).
46764         * lib/memcmp.c: Include stdint.h.
46765         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46766         srcp2 to 'const byte *'.
46767         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46768         types to uintptr_t.
46769         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46770         * modules/memcmp (Depends-on): Add stdint.
46771         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46772
46773 2009-01-30  Eric Blake  <ebb9@byu.net>
46774
46775         fix more require-before-expand issues
46776         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46777         expand, AC_PROG_AWK.
46778         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46779
46780 2009-01-28  Eric Blake  <ebb9@byu.net>
46781
46782         version-etc: use consistent URL formatting
46783         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46784         Improve formatting.  Use fputs for string without %.
46785
46786 2009-01-28  Jim Meyering  <meyering@redhat.com>
46787
46788         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46789         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46790         "underquoted definition of NAME" from autoconf-2.59.
46791
46792 2009-01-28  Bruno Haible  <bruno@clisp.org>
46793
46794         * doc/gnulib.texi: Add "Obsolete modules" to index.
46795
46796 2009-01-28  Jim Meyering  <meyering@redhat.com>
46797
46798         useless-if-before-free: recognize more variants
46799         * build-aux/useless-if-before-free: Also recognize e.g.,
46800         if (NULL != p) free (p);
46801
46802 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46803
46804         test-getaddrinfo: skip (don't fail) this test when there's no network
46805         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46806         on the presumption that it means you lack network access.
46807
46808 2009-01-26  Jim Meyering  <meyering@redhat.com>
46809
46810         fflush: avoid warnings on modern systems
46811         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46812         pos and result, into scopes where they're used.
46813
46814 2009-01-26  Eric Blake  <ebb9@byu.net>
46815
46816         Silence warning reintroduced by recent extensions patch.
46817         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46818         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46819         autoconf.
46820
46821         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46822         * m4/00gnulib.m4: New file.
46823         * gnulib-tool (func_get_filelist): Always use it.
46824         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46825         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46826
46827 2009-01-25  Bruno Haible  <bruno@clisp.org>
46828
46829         Make test-quotearg work on MacOS X and AIX.
46830         * tests/test-quotearg.sh: New file.
46831         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46832         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46833         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46834         include <libintl.h>.
46835         (fake_locale): Remove variable.
46836         (gettext, dgettext, dcgettext): Remove functions.
46837         (main): Instead of setting a fake locale, set a real locale. Call
46838         textdomain and bindtextdomain.
46839         * modules/quotearg-tests (Files): Add the new files.
46840         (Depends-on): Add gettext, setenv, unsetenv.
46841         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46842         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46843         Augment TESTS_ENVIRONMENT.
46844
46845 2009-01-25  Bruno Haible  <bruno@clisp.org>
46846
46847         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46848         fr_FR.ISO8859-1 locale on MacOS X.
46849         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46850         ja_JP.eucJP locale on MacOS X.
46851         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46852         zh_CN.GB18030 locale on MacOS X.
46853
46854 2009-01-25  Bruno Haible  <bruno@clisp.org>
46855
46856         Avoid link errors on MacOS X 10.3.
46857         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46858         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46859
46860 2009-01-25  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46863         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46864         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46865         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46866         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46867         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46868         posix_spawnattr_init, posix_spawnattr_setsigmask,
46869         posix_spawnattr_setflags, posix_spawnattr_destroy.
46870
46871         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46872         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46873         * modules/execute (Files): Remove m4/posix_spawn.m4.
46874         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46875         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46876         posix_spawnattr_init, posix_spawnattr_setsigmask,
46877         posix_spawnattr_setflags, posix_spawnattr_destroy.
46878
46879 2009-01-25  Bruno Haible  <bruno@clisp.org>
46880
46881         * lib/glthread/threadlib.c: Include <stdlib.h>.
46882
46883 2009-01-25  Bruno Haible  <bruno@clisp.org>
46884
46885         * lib/glthread/threadlib.c (dummy): New declaration.
46886
46887 2009-01-25  Bruno Haible  <bruno@clisp.org>
46888
46889         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46890         multibyte characters also for the GB18030 encoding. Don't crash when
46891         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46892
46893 2009-01-25  Bruno Haible  <bruno@clisp.org>
46894
46895         Avoid redefining 'struct random_data' on OSF/1 5.1.
46896         * lib/stdlib.in.h: Include <random.h> if it exists.
46897         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46898         HAVE_RANDOM_H. Include <random.h> when testing whether
46899         'struct random_data' exists.
46900         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46901
46902 2009-01-25  Bruno Haible  <bruno@clisp.org>
46903
46904         Don't install charset.alias on MacOS X >= 10.3.
46905         * lib/localcharset.c (DARWIN7): New macro.
46906         (get_charset_aliases): Hardcode the result for Darwin7.
46907         * modules/localcharset (install-exec-local): Don't install
46908         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46909
46910 2009-01-25  Bruno Haible  <bruno@clisp.org>
46911
46912         Don't install charset.alias on mingw and Cygwin.
46913         * modules/localcharset (install-exec-local): Don't install
46914         charset.alias on mingw and Cygwin, if the file does not yet exist.
46915         The result for these platforms is hardcoded in localcharset.c.
46916
46917 2009-01-25  Bruno Haible  <bruno@clisp.org>
46918
46919         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46921         before requiring AC_USE_SYSTEM_EXTENSIONS.
46922
46923 2009-01-25  Jim Meyering  <meyering@redhat.com>
46924
46925         c-strtod: avoid warnings
46926         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46927         "assignment discards qualifiers from pointer target type" warnings.
46928
46929 2009-01-24  Bruno Haible  <bruno@clisp.org>
46930
46931         Add support for non-UTF-8 locales on MacOS X.
46932         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46933         canonical encodings. For Darwin 7 and newer, don't map traditional
46934         encodings to UTF-8.
46935         Reported by Vincent Lefevre <vincent@vinc17.org>
46936         at <http://savannah.gnu.org/bugs/?25235>.
46937
46938 2009-01-24  Bruno Haible  <bruno@clisp.org>
46939
46940         * doc/gnulib.texi (Obsolete modules): New section.
46941         Reported by Mike Frysinger <vapier@gentoo.org>.
46942
46943 2009-01-24  Bruno Haible  <bruno@clisp.org>
46944
46945         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46946         (%.dvi): New rule.
46947
46948 2009-01-24  Bruno Haible  <bruno@clisp.org>
46949
46950         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46951         Reported by Eric Blake.
46952
46953 2009-01-24  Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46956         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46957         Reported by Gary V. Vaughan <gary@gnu.org>.
46958
46959 2009-01-24  Bruno Haible  <bruno@clisp.org>
46960
46961         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46962
46963 2009-01-23  Bruno Haible  <bruno@clisp.org>
46964
46965         Make c-strtod, c-strtold usable in libraries.
46966         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46967         (C_STRTOD): Call strdup instead of xstrdup.
46968         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46969         * modules/c-strtold (Depends-on): Likewise.
46970         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46971         * NEWS: Mention the change.
46972         Reported by Michael Gold <mgold@ncf.ca>.
46973
46974 2009-01-23  Jim Meyering  <meyering@redhat.com>
46975
46976         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46977         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46978         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46979
46980 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46981
46982         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46983         GNU CoreUtils.
46984         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46985         * modules/version-etc (Description): Update.
46986
46987 2009-01-22  Bruno Haible  <bruno@clisp.org>
46988
46989         Cache the C locale object.
46990         * lib/c-strtod.c (c_locale_cache): New variable.
46991         (c_locale): New function.
46992         (C_STRTOD): Use it, and don't call freelocale.
46993         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46994         Suggested by Paolo Bonzini.
46995
46996 2009-01-21  Bruno Haible  <bruno@clisp.org>
46997
46998         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46999         conditions other than overflow.
47000
47001 2009-01-21  Bruno Haible  <bruno@clisp.org>
47002
47003         * lib/c-strtod.c: Include errno.h.
47004         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47005         value from STRTOD_L and STRTOD.
47006
47007 2009-01-21  Bruno Haible  <bruno@clisp.org>
47008         and Jim Meyering  <meyering@redhat.com>
47009
47010         nanosleep: skip configure test (fail it) for apple universal builds
47011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47012         universal builds, assume that nanosleep does not work.
47013         * modules/nanosleep (Depends-on): Add multiarch.
47014
47015         mktime: skip configure test (fail it) for apple universal builds
47016         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47017         universal builds, assume that mktime does not work.
47018         * modules/mktime (Depends-on): Add multiarch.
47019
47020 2009-01-21  Eric Blake  <ebb9@byu.net>
47021
47022         multiarch: avoid expand-before-require warning
47023         * modules/multiarch (configure.ac): Require, rather than expand,
47024         gl_MULTIARCH.
47025         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47026         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47027         enforce that all clients require it.  Partial reversion of
47028         2008-12-29 patch.
47029
47030         error: avoid expand-before-require warning
47031         * modules/errno (configure.ac): Require, rather than expand,
47032         gl_HEADER_ERRNO_H.
47033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47034         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47035         enforce that all clients require it.
47036
47037         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47038         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47039         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47040         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47041
47042 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47043
47044         Revert:
47045         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47046
47047         regex: do not depend on obsolete modules.
47048         * modules/regex: Remove memcmp and memmove.
47049
47050 2009-01-20  Bruno Haible  <bruno@clisp.org>
47051
47052         Make the 'link' module link on Windows NT 4.
47053         * lib/link.c (_WIN32_WINNT): Don't define.
47054         (CreateHardLinkFuncType): New type.
47055         (CreateHardLinkFunc, initialized): New variables.
47056         (initialize): New function.
47057         (link): Invoke CreateHardLink indirectly through the function pointer.
47058
47059 2009-01-20  Bruno Haible  <bruno@clisp.org>
47060
47061         Fix compilation failure on mingw.
47062         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47063
47064 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47065
47066         * doc/c-strtod.texi: Mention a couple of restrictions.
47067
47068 2009-01-20  Jim Meyering  <meyering@redhat.com>
47069
47070         gettimeofday: move more declarations out of functions
47071         * lib/gettimeofday.c: Move extern declarations of tzset and
47072         gmtime out of containing functions.  Prompted by Bruno Haible.
47073
47074 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47075
47076         regex: do not depend on obsolete modules.
47077         * modules/regex: Remove memcmp and memmove.
47078
47079 2009-01-19  Bruno Haible  <bruno@clisp.org>
47080
47081         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47082         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47083         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47084         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47085         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47086
47087 2009-01-19  Bruno Haible  <bruno@clisp.org>
47088
47089         * tests/test-link.c: Include <errno.h>.
47090         (main): Exit with code 77 when a hard link cannot be created due to
47091         the file system.
47092         * tests/test-link.sh: Skip test when a hard link cannot be created due
47093         to the file system.
47094         Suggested by Eric Blake.
47095
47096 2009-01-19  Martin Lambers  <marlam@marlam.de>
47097
47098         * modules/link-tests: New file.
47099         * tests/test-link.sh: New file.
47100         * tests/test-link.c: New file.
47101
47102 2009-01-19  Eric Blake  <ebb9@byu.net>
47103
47104         doc: mention another function added in cygwin 1.7.0
47105         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47106         Another new function in cygwin 1.7.
47107
47108 2009-01-19  Bruno Haible  <bruno@clisp.org>
47109
47110         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47111         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47112         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47113         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47114         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47115         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47116         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47117         * m4/md4.m4 (gl_MD4): Likewise.
47118         * m4/md5.m4 (gl_MD5): Likewise.
47119         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47120         * m4/sha1.m4 (gl_SHA1): Likewise.
47121         * m4/sha256.m4 (gl_SHA256): Likewise.
47122         * m4/sha512.m4 (gl_SHA512): Likewise.
47123
47124 2009-01-19  Bruno Haible  <bruno@clisp.org>
47125
47126         * modules/uniname/uniname-tests (Depends-on): Add progname.
47127         * tests/uniname/test-uninames.c: Include progname.h.
47128         (main): Call set_program_name.
47129
47130         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47131         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47132         (main): Call set_program_name.
47133
47134         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47135         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47136         (main): Call set_program_name.
47137
47138         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47139         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47140         (main): Call set_program_name.
47141
47142         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47143         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47144         (main): Call set_program_name.
47145
47146         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47147         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47148         (main): Call set_program_name.
47149
47150         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47151         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47152         (main): Call set_program_name.
47153
47154         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47155         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47156         (main): Call set_program_name.
47157
47158         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47159         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47160         (main): Call set_program_name.
47161
47162 2009-01-19  Eric Blake  <ebb9@byu.net>
47163
47164         test-unistd: test previous patch
47165         * tests/test-unistd.c: Test *_FILENO macros.
47166
47167         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47168         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47169         Guarantee a definition.
47170         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47171         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47172         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47173         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47174         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47175         Likewise.
47176         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47177         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47178         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47179         Likewise.
47180         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47181         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47182         (STDERR_FILENO): Likewise.
47183         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47184         (STDERR_FILENO): Likewise.
47185         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47186         (STDERR_FILENO): Likewise.
47187         Reported by Elbert Pol.
47188
47189 2009-01-19  Eric Blake  <ebb9@byu.net>
47190
47191         doc: mention more functions added in cygwin 1.7.0
47192         * doc/posix-functions/abort.texi (abort): Update wording related
47193         to cygwin.
47194         * doc/posix-functions/daylight.texi (daylight): Likewise.
47195         * doc/posix-functions/optarg.texi (optarg): Likewise.
47196         * doc/posix-functions/optarg.texi (opterr): Likewise.
47197         * doc/posix-functions/optarg.texi (optind): Likewise.
47198         * doc/posix-functions/optarg.texi (optopt): Likewise.
47199         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47200         worked in 1.5.x, and was withdrawn in 1.7.
47201         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47202         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47203         cygwin versions.
47204         * doc/posix-functions/perror.texi (perror): Likewise.
47205         * doc/posix-functions/printf.texi (printf): Likewise.
47206         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47207         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47208         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47209         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47210         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47211         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47212         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47213         Likewise.
47214         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47215         Likewise.
47216         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47217         this function.
47218         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47219         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47220         Likewise.
47221         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47222         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47223         * doc/posix-functions/confstr.texi (confstr): Likewise.
47224         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47225         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47226         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47227         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47228         * doc/posix-functions/fputws.texi (fputws): Likewise.
47229         * doc/posix-functions/fwide.texi (fwide): Likewise.
47230         * doc/posix-functions/getwc.texi (getwc): Likewise.
47231         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47232         * doc/posix-functions/putwc.texi (putwc): Likewise.
47233         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47234         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47235         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47236         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47237         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47238         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47239         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47240         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47241         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47242         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47243         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47244
47245 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47246
47247         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47248         * lib/ioctl.c: Include <sys/ioctl.h>.
47249
47250 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47251
47252         * modules/getdate-tests (Depends-on): Add progname.
47253         * tests/test-getdate.c: Use progname module, to avoid link errors
47254         on non-glibc systems.
47255
47256 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47257
47258         * modules/filenamecat-tests (Depends-on): Add progname.
47259         * modules/fstrcmp-tests (Depends-on): Likewise.
47260
47261         * tests/test-filenamecat.c: Use progname module, to avoid link
47262         errors on non-glibc systems.
47263         * tests/test-fstrcmp.c: Likewise.
47264
47265 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47266
47267         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47268         * lib/gettimeofday.c: Move extern declaration out of function.
47269
47270 2009-01-18  Bruno Haible  <bruno@clisp.org>
47271
47272         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47273         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47274         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47275
47276 2009-01-18  Bruno Haible  <bruno@clisp.org>
47277
47278         * lib/strftime.c (MEMPCPY): Remove unused macro.
47279         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47280
47281 2009-01-18  Martin Lambers  <marlam@marlam.de>
47282
47283         New module 'link'.
47284         * lib/unistd.in.h (link): New declaration.
47285         * lib/link.c: New file.
47286         * m4/link.m4: New file.
47287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47288         HAVE_LINK.
47289         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47290         * modules/link: New file.
47291         * doc/posix-functions/link.texi: Mention the new module.
47292
47293 2009-01-18  Bruno Haible  <bruno@clisp.org>
47294
47295         * tests/test-avltree_list.c (main): Call set_program_name.
47296         * tests/test-avltree_oset.c (main): Likewise.
47297         * tests/test-obstack-printf.c: Include progname.h.
47298         (main): Call set_program_name.
47299         * tests/test-quotearg.c: Include progname.h.
47300         (main): Call set_program_name.
47301         * tests/test-xmemdup0.c: Include progname.h.
47302         (main): Call set_program_name.
47303
47304 2009-01-18  Bruno Haible  <bruno@clisp.org>
47305
47306         New module 'alphasort'.
47307         * lib/dirent.in.h (alphasort): New declaration.
47308         * lib/alphasort.c: New file, from glibc with modifications.
47309         * m4/alphasort.m4: New file.
47310         * modules/alphasort: New file.
47311         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47312         HAVE_ALPHASORT.
47313         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47314         HAVE_ALPHASORT.
47315         * doc/posix-functions/alphasort.texi: Mention the new module and the
47316         portability problems.
47317
47318 2009-01-18  Bruno Haible  <bruno@clisp.org>
47319
47320         New module 'scandir'.
47321         * lib/dirent.in.h (scandir): New declaration.
47322         * lib/scandir.c: New file, from glibc with modifications.
47323         * m4/scandir.m4: New file.
47324         * modules/scandir: New file.
47325         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47326         HAVE_SCANDIR.
47327         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47328         HAVE_SCANDIR.
47329         * doc/posix-functions/scandir.texi: Mention the new module and the
47330         portability problems.
47331
47332 2009-01-17  Bruno Haible  <bruno@clisp.org>
47333
47334         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47335         Update documentation.
47336         (func_remove_suffix): Escape all dots in the suffix. Update
47337         documentation.
47338         (func_filter_filelist): Update documentation.
47339         Reported by Ralf Wildenhues.
47340
47341 2009-01-17  Bruno Haible  <bruno@clisp.org>
47342
47343         * modules/dprintf-posix-tests: New file.
47344         * tests/test-dprintf-posix.sh: New file.
47345         * tests/test-dprintf-posix.c: New file.
47346
47347         New modules 'dprintf', 'dprintf-posix'.
47348         * lib/stdio.in.h (dprintf): New declaration.
47349         * lib/dprintf.c: New file.
47350         * m4/dprintf.m4: New file.
47351         * m4/dprintf-posix.m4: New file.
47352         * modules/dprintf: New file.
47353         * modules/dprintf-posix: New file.
47354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47355         HAVE_DPRINTF, REPLACE_DPRINTF.
47356         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47357         HAVE_DPRINTF, REPLACE_DPRINTF.
47358         * doc/posix-functions/dprintf.texi: Mention the new modules.
47359
47360 2009-01-17  Bruno Haible  <bruno@clisp.org>
47361
47362         * modules/vdprintf-posix-tests: New file.
47363         * tests/test-vdprintf-posix.sh: New file.
47364         * tests/test-vdprintf-posix.c: New file.
47365
47366         New modules 'vdprintf', 'vdprintf-posix'.
47367         * lib/stdio.in.h (vdprintf): New declaration.
47368         * lib/vdprintf.c: New file.
47369         * m4/vdprintf.m4: New file.
47370         * m4/vdprintf-posix.m4: New file.
47371         * modules/vdprintf: New file.
47372         * modules/vdprintf-posix: New file.
47373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47374         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47375         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47376         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47377         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47378
47379 2009-01-17  Bruno Haible  <bruno@clisp.org>
47380
47381         Fix replacement of fopen on mingw.
47382         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47383         mingw.
47384
47385 2009-01-17  Bruno Haible  <bruno@clisp.org>
47386
47387         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47388         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47389
47390 2009-01-17  Bruno Haible  <bruno@clisp.org>
47391
47392         Avoid test-fflush2.sh failure on mingw.
47393         * tests/test-fflush2.c: Include binary-io.h.
47394         (main): Put standard input into binary mode.
47395         * modules/fflush-tests (Depends-on): Add binary-io.
47396
47397 2009-01-17  Bruno Haible  <bruno@clisp.org>
47398
47399         * lib/wchar.in.h: In another particular situation, include only the
47400         system's <wchar.h> file.
47401         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47402         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47403         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47404
47405 2009-01-17  Bruno Haible  <bruno@clisp.org>
47406
47407         Support for stripping executables in --enable-relocatable.
47408         * build-aux/install-reloc: Expect one more argument, or an environment
47409         variable RELOC_STRIP_PROG. If set, strip the destination program and
47410         its wrapper.
47411         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47412         RELOC_STRIP_PROG.
47413         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47414         to set RELOCATABLE_STRIP.
47415         * NEWS: Mention the new Makefile requirement.
47416
47417 2009-01-17  Bruno Haible  <bruno@clisp.org>
47418
47419         * build-aux/install-reloc: Remove debugging information left over by
47420         C compiler on MacOS X.
47421
47422 2009-01-17  Bruno Haible  <bruno@clisp.org>
47423
47424         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47425         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47426         _NSGetExecutablePath.
47427
47428 2009-01-16  Jim Meyering  <meyering@redhat.com>
47429
47430         strerror: avoid warnings about discarding "const"
47431         * lib/strerror.c (rpl_strerror): Instead of returning a const
47432         string from each and every "case", use a variable, and add a single
47433         cast after the switch.
47434
47435 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47436
47437         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47438
47439 2009-01-16  Bruno Haible  <bruno@clisp.org>
47440
47441         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47442         array initializer syntax that also works in C++ mode.
47443         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47444
47445 2009-01-16  Jim Meyering  <meyering@redhat.com>
47446
47447         poll: suppress a warning
47448         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47449         to ignore "...unsigned expression < 0 is always false" warnings.
47450
47451 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47452
47453         poll: remove declarations of unused variables
47454         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47455         sockbuf and optlen.
47456
47457 2009-01-15  Bruno Haible  <bruno@clisp.org>
47458
47459         Make fflush-after-ungetc POSIX compliant on BSD systems.
47460         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47461         (clear_ungetc_buffer): Implement also for other systems.
47462         (rpl_fflush): On glibc systems, invoke
47463         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47464         clear_ungetc_buffer after fetching the stream's position, not before.
47465
47466 2009-01-15  Bruno Haible  <bruno@clisp.org>
47467
47468         Make fflush-after-ungetc POSIX compliant on glibc systems.
47469         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47470         after ungetc.
47471         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47472         (rpl_fflush): On glibc systems, simply call the system's fflush
47473         function after clearing the ungetc buffer.
47474         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47475         Instead, lseek only to the end of file, then use the system's fseeko
47476         for the rest. On glibc systems, reset the EOF indicator bit.
47477
47478 2009-01-15  Jim Meyering  <meyering@redhat.com>
47479
47480         openmp.m4: revert quote-adding change, for portability to older autoconf
47481         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47482         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47483         Simon Josefsson noticed the problem when using autoconf-2.61.
47484
47485 2009-01-15  Bruno Haible  <bruno@clisp.org>
47486
47487         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47488         * tests/test-fflush2.c (ASSERT): Always fail.
47489         (main): Add two tests for fflush() after ungetc(), taking into account
47490         the Austin Group's clarification.
47491         Suggested by Eric Blake.
47492
47493 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47494
47495         mktime.m4: remove K&R-style function prototypes
47496         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47497         for the Sun C++ compiler.
47498
47499 2009-01-14  Bruno Haible  <bruno@clisp.org>
47500
47501         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47502         while including <wchar.h>.
47503         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47504         the system's <wchar.h> file.
47505         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47506
47507 2009-01-14  Bruno Haible  <bruno@clisp.org>
47508
47509         * m4/csharp.m4: Don't mention gettext on the serial number line.
47510         * m4/csharpexec.m4: Likewise.
47511         * m4/eaccess.m4: Likewise.
47512         * m4/javaexec.m4: Likewise.
47513         * m4/sig_atomic_t.m4: Likewise.
47514         * m4/tmpdir.m4: Likewise.
47515         * m4/intldir.m4: Bump gettext version.
47516         * m4/lib-ld.m4: Likewise.
47517
47518 2009-01-14  Bruno Haible  <bruno@clisp.org>
47519
47520         * lib/progname.c (set_program_name): Add more comments.
47521         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47522
47523 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47524
47525         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47526         were sys/stat.h does not define it.
47527
47528 2009-01-14  Jim Meyering  <meyering@redhat.com>
47529
47530         many *.m4 files: improve m4 quoting
47531         99% of this change was performed by running the following commands:
47532         git ls-files | grep '\.m4$' | xargs perl -pi \
47533           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47534           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47535           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47536           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47537         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47538         The remainder were to add Copyright dates, increment serial numbers,
47539         undo some changes in comments, exclude m4/intl.m4, and add quotes
47540         around the "1" in ",1" where the unusual spacing prohibited the
47541         above regexps from doing the job.  For more details, see
47542         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47543         * m4/acl.m4: Modified.
47544         * m4/afs.m4: Likewise.
47545         * m4/alloca.m4: Likewise.
47546         * m4/argp.m4: Likewise.
47547         * m4/argz.m4: Likewise.
47548         * m4/atexit.m4: Likewise.
47549         * m4/bison-i18n.m4: Likewise.
47550         * m4/bison.m4: Likewise.
47551         * m4/byteswap.m4: Likewise.
47552         * m4/c-stack.m4: Likewise.
47553         * m4/c-strtod.m4: Likewise.
47554         * m4/calloc.m4: Likewise.
47555         * m4/canonicalize-lgpl.m4: Likewise.
47556         * m4/chown.m4: Likewise.
47557         * m4/clock_time.m4: Likewise.
47558         * m4/codeset.m4: Likewise.
47559         * m4/copy-file.m4: Likewise.
47560         * m4/csharp.m4: Likewise.
47561         * m4/csharpcomp.m4: Likewise.
47562         * m4/csharpexec.m4: Likewise.
47563         * m4/d-ino.m4: Likewise.
47564         * m4/d-type.m4: Likewise.
47565         * m4/dirfd.m4: Likewise.
47566         * m4/double-slash-root.m4: Likewise.
47567         * m4/eaccess.m4: Likewise.
47568         * m4/eealloc.m4: Likewise.
47569         * m4/environ.m4: Likewise.
47570         * m4/errno_h.m4: Likewise.
47571         * m4/euidaccess.m4: Likewise.
47572         * m4/execute.m4: Likewise.
47573         * m4/fatal-signal.m4: Likewise.
47574         * m4/fchdir.m4: Likewise.
47575         * m4/fcntl_h.m4: Likewise.
47576         * m4/fileblocks.m4: Likewise.
47577         * m4/filenamecat.m4: Likewise.
47578         * m4/findprog.m4: Likewise.
47579         * m4/flexmember.m4: Likewise.
47580         * m4/fnmatch.m4: Likewise.
47581         * m4/fopen.m4: Likewise.
47582         * m4/fpending.m4: Likewise.
47583         * m4/fprintf-posix.m4: Likewise.
47584         * m4/free.m4: Likewise.
47585         * m4/frexp.m4: Likewise.
47586         * m4/frexpl.m4: Likewise.
47587         * m4/fsusage.m4: Likewise.
47588         * m4/ftruncate.m4: Likewise.
47589         * m4/gc-camellia.m4: Likewise.
47590         * m4/gc-random.m4: Likewise.
47591         * m4/gc.m4: Likewise.
47592         * m4/getaddrinfo.m4: Likewise.
47593         * m4/getcwd-abort-bug.m4: Likewise.
47594         * m4/getcwd-path-max.m4: Likewise.
47595         * m4/getdate.m4: Likewise.
47596         * m4/getdomainname.m4: Likewise.
47597         * m4/getgroups.m4: Likewise.
47598         * m4/gethostname.m4: Likewise.
47599         * m4/gethrxtime.m4: Likewise.
47600         * m4/getline.m4: Likewise.
47601         * m4/getloadavg.m4: Likewise.
47602         * m4/getndelim2.m4: Likewise.
47603         * m4/getpass.m4: Likewise.
47604         * m4/gettext.m4: Likewise.
47605         * m4/gettime.m4: Likewise.
47606         * m4/gettimeofday.m4: Likewise.
47607         * m4/gnulib-common.m4: Likewise.
47608         * m4/group-member.m4: Likewise.
47609         * m4/host-os.m4: Likewise.
47610         * m4/iconv.m4: Likewise.
47611         * m4/iconv_open.m4: Likewise.
47612         * m4/inet_ntop.m4: Likewise.
47613         * m4/inet_pton.m4: Likewise.
47614         * m4/inline.m4: Likewise.
47615         * m4/intldir.m4: Likewise.
47616         * m4/intlmacosx.m4: Likewise.
47617         * m4/intmax.m4: Likewise.
47618         * m4/intmax_t.m4: Likewise.
47619         * m4/inttypes.m4: Likewise.
47620         * m4/inttypes_h.m4: Likewise.
47621         * m4/inttypes-pri.m4: Likewise.
47622         * m4/isapipe.m4: Likewise.
47623         * m4/isnand.m4: Likewise.
47624         * m4/isnanf.m4: Likewise.
47625         * m4/isnanl.m4: Likewise.
47626         * m4/javacomp.m4: Likewise.
47627         * m4/javaexec.m4: Likewise.
47628         * m4/jm-winsz1.m4: Likewise.
47629         * m4/jm-winsz2.m4: Likewise.
47630         * m4/lchown.m4: Likewise.
47631         * m4/lcmessage.m4: Likewise.
47632         * m4/ldexpl.m4: Likewise.
47633         * m4/lib-ld.m4: Likewise.
47634         * m4/lib-link.m4: Likewise.
47635         * m4/libsigsegv.m4: Likewise.
47636         * m4/link-follow.m4: Likewise.
47637         * m4/localcharset.m4: Likewise.
47638         * m4/locale-fr.m4: Likewise.
47639         * m4/locale-ja.m4: Likewise.
47640         * m4/locale-tr.m4: Likewise.
47641         * m4/locale-zh.m4: Likewise.
47642         * m4/lock.m4: Likewise.
47643         * m4/longlong.m4: Likewise.
47644         * m4/ls-mntd-fs.m4: Likewise.
47645         * m4/lstat.m4: Likewise.
47646         * m4/malloc.m4: Likewise.
47647         * m4/mathl.m4: Likewise.
47648         * m4/mbrtowc.m4: Likewise.
47649         * m4/mbstate_t.m4: Likewise.
47650         * m4/mbswidth.m4: Likewise.
47651         * m4/memchr.m4: Likewise.
47652         * m4/memcmp.m4: Likewise.
47653         * m4/memcpy.m4: Likewise.
47654         * m4/memmem.m4: Likewise.
47655         * m4/memmove.m4: Likewise.
47656         * m4/mempcpy.m4: Likewise.
47657         * m4/memrchr.m4: Likewise.
47658         * m4/memset.m4: Likewise.
47659         * m4/minmax.m4: Likewise.
47660         * m4/mkdir-slash.m4: Likewise.
47661         * m4/mkdtemp.m4: Likewise.
47662         * m4/mktime.m4: Likewise.
47663         * m4/mmap-anon.m4: Likewise.
47664         * m4/mountlist.m4: Likewise.
47665         * m4/nanosleep.m4: Likewise.
47666         * m4/nls.m4: Likewise.
47667         * m4/nocrash.m4: Likewise.
47668         * m4/open.m4: Likewise.
47669         * m4/openat.m4: Likewise.
47670         * m4/openmp.m4: Likewise.
47671         * m4/pathmax.m4: Likewise.
47672         * m4/perl.m4: Likewise.
47673         * m4/physmem.m4: Likewise.
47674         * m4/pipe.m4: Likewise.
47675         * m4/po.m4: Likewise.
47676         * m4/poll.m4: Likewise.
47677         * m4/posixtm.m4: Likewise.
47678         * m4/posixver.m4: Likewise.
47679         * m4/printf-frexp.m4: Likewise.
47680         * m4/printf-frexpl.m4: Likewise.
47681         * m4/printf-posix.m4: Likewise.
47682         * m4/printf-posix-rpl.m4: Likewise.
47683         * m4/printf.m4: Likewise.
47684         * m4/progtest.m4: Likewise.
47685         * m4/putenv.m4: Likewise.
47686         * m4/readline.m4: Likewise.
47687         * m4/readlink.m4: Likewise.
47688         * m4/readutmp.m4: Likewise.
47689         * m4/realloc.m4: Likewise.
47690         * m4/regex.m4: Likewise.
47691         * m4/relocatable.m4: Likewise.
47692         * m4/relocatable-lib.m4: Likewise.
47693         * m4/rename-dest-slash.m4: Likewise.
47694         * m4/rename.m4: Likewise.
47695         * m4/rmdir-errno.m4: Likewise.
47696         * m4/rmdir.m4: Likewise.
47697         * m4/roundf.m4: Likewise.
47698         * m4/roundl.m4: Likewise.
47699         * m4/rpmatch.m4: Likewise.
47700         * m4/save-cwd.m4: Likewise.
47701         * m4/selinux-selinux-h.m4: Likewise.
47702         * m4/setenv.m4: Likewise.
47703         * m4/settime.m4: Likewise.
47704         * m4/sig2str.m4: Likewise.
47705         * m4/sig_atomic_t.m4: Likewise.
47706         * m4/signalblocking.m4: Likewise.
47707         * m4/signbit.m4: Likewise.
47708         * m4/sigpipe.m4: Likewise.
47709         * m4/sockets.m4: Likewise.
47710         * m4/sockpfaf.m4: Likewise.
47711         * m4/st_dm_mode.m4: Likewise.
47712         * m4/stat-time.m4: Likewise.
47713         * m4/stdbool.m4: Likewise.
47714         * m4/stdint.m4: Likewise.
47715         * m4/stdint_h.m4: Likewise.
47716         * m4/stpcpy.m4: Likewise.
47717         * m4/stpncpy.m4: Likewise.
47718         * m4/strcase.m4: Likewise.
47719         * m4/strchrnul.m4: Likewise.
47720         * m4/strcspn.m4: Likewise.
47721         * m4/strdup.m4: Likewise.
47722         * m4/strftime.m4: Likewise.
47723         * m4/strndup.m4: Likewise.
47724         * m4/strnlen.m4: Likewise.
47725         * m4/strpbrk.m4: Likewise.
47726         * m4/strptime.m4: Likewise.
47727         * m4/strsep.m4: Likewise.
47728         * m4/strtod.m4: Likewise.
47729         * m4/strtoimax.m4: Likewise.
47730         * m4/strtok_r.m4: Likewise.
47731         * m4/strtol.m4: Likewise.
47732         * m4/strtoll.m4: Likewise.
47733         * m4/strtoul.m4: Likewise.
47734         * m4/strtoull.m4: Likewise.
47735         * m4/strtoumax.m4: Likewise.
47736         * m4/strverscmp.m4: Likewise.
47737         * m4/threadlib.m4: Likewise.
47738         * m4/timegm.m4: Likewise.
47739         * m4/tm_gmtoff.m4: Likewise.
47740         * m4/tmpdir.m4: Likewise.
47741         * m4/tmpfile.m4: Likewise.
47742         * m4/tzset.m4: Likewise.
47743         * m4/uintmax_t.m4: Likewise.
47744         * m4/unlinkdir.m4: Likewise.
47745         * m4/unlocked-io.m4: Likewise.
47746         * m4/uptime.m4: Likewise.
47747         * m4/userspec.m4: Likewise.
47748         * m4/utimbuf.m4: Likewise.
47749         * m4/utime.m4: Likewise.
47750         * m4/utimes-null.m4: Likewise.
47751         * m4/utimes.m4: Likewise.
47752         * m4/vararrays.m4: Likewise.
47753         * m4/vasnprintf.m4: Likewise.
47754         * m4/vfprintf-posix.m4: Likewise.
47755         * m4/vprintf-posix.m4: Likewise.
47756         * m4/wait-process.m4: Likewise.
47757         * m4/wchar_t.m4: Likewise.
47758         * m4/wint_t.m4: Likewise.
47759         * m4/write-any-file.m4: Likewise.
47760         * m4/yield.m4: Likewise.
47761
47762 2009-01-13  Bruno Haible  <bruno@clisp.org>
47763
47764         Avoid test-copy-file.sh failures when ACL support insufficient.
47765         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47766         TESTS_ENVIRONMENT.
47767         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47768         Reported by Jim Meyering.
47769
47770 2009-01-13  Bruno Haible  <bruno@clisp.org>
47771
47772         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47773         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47774         * modules/unistdio/u8-printf-parse (Files): Likewise.
47775         * modules/unistdio/u32-printf-parse (Files): Likewise.
47776         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47777
47778 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47779
47780         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47781         and m4/inttypes_h.m4 too.
47782
47783 2009-01-12  Eric Blake  <ebb9@byu.net>
47784
47785         tests: IRIX 6.2 cc can't compile -0.0 into .data
47786         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47787         rather than at compile-time.
47788         * tests/test-floorl.c (minus_zero): Likewise.
47789         * tests/test-frexpl.c (minus_zero): Likewise.
47790         * tests/test-isnan.c (minus_zerol): Likewise.
47791         * tests/test-isnanl.h (minus_zero): Likewise.
47792         * tests/test-ldexpl.c (minus_zero): Likewise.
47793         * tests/test-roundl.c (minus_zero): Likewise.
47794         * tests/test-signbit.c (minus_zerol): Likewise.
47795         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47796         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47797         * tests/test-truncl.c (minus_zero): Likewise.
47798         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47799         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47800         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47801
47802 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47803
47804         regex: fix glibc bug 9697
47805         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47806         handling.
47807
47808 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47809
47810         regex: fix glibc bug 697
47811         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47812         being NULL also if there are no backreferences.
47813
47814 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47815
47816         regex: merge glibc changes
47817         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47818         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47819         re_string_skip_chars, re_string_reconstruct): Likewise.
47820         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47821
47822 2009-01-07  Jim Meyering  <meyering@redhat.com>
47823
47824         poll: filter through cppi
47825         * lib/poll.c: Indent cpp directives to reflect nesting.
47826
47827 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47828
47829         poll: don't return uninitialized
47830         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47831
47832 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47833
47834         avoid compile failure on AIX 6.1
47835         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47836         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47837
47838 2009-01-04  Jim Meyering  <meyering@redhat.com>
47839
47840         remove duplicate inclusion of <stdio.h>
47841         * tests/test-fprintf-posix.c: Likewise.
47842         * tests/test-printf-posix.c: Likewise.
47843         * tests/test-snprintf-posix.c: Likewise.
47844         * tests/test-sprintf-posix.c: Likewise.
47845         * tests/test-vasprintf-posix.c: Likewise.
47846         * tests/test-vfprintf-posix.c: Likewise.
47847         * tests/test-vprintf-posix.c: Likewise.
47848         * tests/test-vsnprintf-posix.c: Likewise.
47849         * tests/test-vsprintf-posix.c: Likewise.
47850
47851 2009-01-03  Jim Meyering  <meyering@redhat.com>
47852
47853         gnulib-tool: fix sed-based filtering
47854         * gnulib-tool (func_filter_filelist): Remove extra backslash
47855         in sed_fff_filter definition.
47856
47857 2009-01-02  Jim Meyering  <meyering@redhat.com>
47858
47859         strftime: avoid compilation failure on Solaris 2.6
47860         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47861         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47862         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47863         be available.  Reported by Tom G. Christensen.  Details in
47864         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47865
47866 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47867             Bruno Haible  <bruno@clisp.org>
47868
47869         Speed up gnulib-tool by doing more string processing through shell
47870         built-ins.
47871         * gnulib-tool (fast_func_append): New variable.
47872         (func_remove_prefix, func_remove_suffix): New functions.
47873         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47874         (func_filter_filelist): New function.
47875         (func_get_dependencies): Use func_remove_suffix instead of sed.
47876         (func_get_automake_snippet): Use func_filter_filelist instead of a
47877         subshell and sed invocation.
47878
47879 2009-01-01  Bruno Haible  <bruno@clisp.org>
47880
47881         Fix a security bug.
47882         * gnulib-tool (func_import, import, update): Don't allow the characters
47883         '"', '$', '`', '\' in macro arguments that become part of commands that
47884         are evaluated.
47885
47886 2009-01-01  Bruno Haible  <bruno@clisp.org>
47887
47888         * gnulib-tool (func_reset_sigpipe): Add more comments.
47889
47890 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47891
47892         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47893         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47894         already know the answer.
47895
47896 2009-01-01  Jim Meyering  <meyering@redhat.com>
47897
47898         * lib/version-etc.c (version_etc_va): Update copyright year.
47899
47900 2008-12-30  Bruno Haible  <bruno@clisp.org>
47901
47902         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47903         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47904         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47905
47906 2008-12-29  Eric Blake  <ebb9@byu.net>
47907
47908         multiarch: avoid autoconf AC_REQUIRE bug
47909         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47910         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47911         2.63 and older.
47912         Reported by Bruno Haible, and analyzed in
47913         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47914
47915 2008-12-29  Bruno Haible  <bruno@clisp.org>
47916
47917         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47918         files in subdirectories correctly.
47919         Reported by Ralf Wildenhues.
47920
47921 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47922
47923         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47924         rather than 'join FILE -', for Solaris join.
47925
47926 2008-12-29  Bruno Haible  <bruno@clisp.org>
47927
47928         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47929         quoting.
47930         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47931         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47932         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47933         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47934         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47935         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47936         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47937         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47938         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47939         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47940         * m4/nls.m4 (AM_NLS): Likewise.
47941         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47942         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47943         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47944         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47945         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47946         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47947         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47948         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47949         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47950         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47951         * m4/xsize.m4 (gl_XSIZE): Likewise.
47952         Suggested by Jim Meyering.
47953
47954 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47955
47956         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47957         * lib/parse-duration.c: use a switch instead of cascading if's.
47958
47959 2008-12-29  Eric Blake  <ebb9@byu.net>
47960
47961         wchar.h: supply WEOF on Irix 5.3
47962         * lib/wchar.in.h (wint_t): Also supply WEOF.
47963         * lib/wctype.in.h (wint_t): Likewise.
47964         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47965         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47966         Reported by Tom G. Christensen.
47967
47968 2008-12-26  Bruno Haible  <bruno@clisp.org>
47969
47970         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47971         i486, i586, i686.
47972
47973 2008-12-26  Bruno Haible  <bruno@clisp.org>
47974
47975         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47976
47977 2008-12-26  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47980         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47981         not __STDC_CONSTANT_MACROS.
47982         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47983
47984 2008-12-25  Bruno Haible  <bruno@clisp.org>
47985
47986         Add support for universal builds to vasnprintf.
47987         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47988         universal builds, guess no.
47989         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47990         * modules/vasprintf-posix (Depends-on): Likewise.
47991         * modules/fprintf-posix (Depends-on): Likewise.
47992         * modules/vfprintf-posix (Depends-on): Likewise.
47993         * modules/snprintf-posix (Depends-on): Likewise.
47994         * modules/vsnprintf-posix (Depends-on): Likewise.
47995         * modules/sprintf-posix (Depends-on): Likewise.
47996         * modules/vsprintf-posix (Depends-on): Likewise.
47997         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47998         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47999         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48000         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48001         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48002         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48003         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48004
48005         Add support for universal builds to <inttypes.h>.
48006         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48007         _SCNu64_PREFIX): In Apple
48008         universal builds, define directly, using _LP64.
48009         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48010         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48011         * modules/inttypes (Depends-on): Add multiarch.
48012         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48013
48014         Add support for universal builds to <stdint.h>.
48015         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48016         universal builds, define directly, using _LP64.
48017         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48018         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48019         and size_t.
48020         * modules/stdint (Depends-on): Add multiarch.
48021         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48022
48023         New module 'multiarch'.
48024         * modules/multiarch: New file.
48025         * m4/multiarch.m4: New file.
48026
48027 2008-12-25  Bruno Haible  <bruno@clisp.org>
48028
48029         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48030
48031 2008-12-25  Bruno Haible  <bruno@clisp.org>
48032
48033         * modules/btowc (License): Relicense under LGPLv2+.
48034         * modules/mbsinit (License): Likewise.
48035         * modules/mbrtowc (License): Likewise.
48036         * modules/wcrtomb (License): Likewise.
48037         * modules/streq (License): Likewise.
48038         Reported by David Lutterkort <lutter@redhat.com>.
48039
48040 2008-12-23  Bruno Haible  <bruno@clisp.org>
48041
48042         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48043
48044 2008-12-23  Bruno Haible  <bruno@clisp.org>
48045
48046         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48048         GETADDRINFO_LIB, not in LIBS.
48049         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48050         * modules/canon-host (Link): Likewise.
48051         * NEWS: Mention the change.
48052         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48053         GETADDRINFO_LIB.
48054
48055 2008-12-22  Bruno Haible  <bruno@clisp.org>
48056
48057         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48058         * doc/posix-functions/iswalpha_l.texi: Likewise.
48059         * doc/posix-functions/iswblank_l.texi: Likewise.
48060         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48061         * doc/posix-functions/iswctype_l.texi: Likewise.
48062         * doc/posix-functions/iswdigit_l.texi: Likewise.
48063         * doc/posix-functions/iswgraph_l.texi: Likewise.
48064         * doc/posix-functions/iswlower_l.texi: Likewise.
48065         * doc/posix-functions/iswprint_l.texi: Likewise.
48066         * doc/posix-functions/iswpunct_l.texi: Likewise.
48067         * doc/posix-functions/iswspace_l.texi: Likewise.
48068         * doc/posix-functions/iswupper_l.texi: Likewise.
48069         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48070         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48071         * doc/posix-functions/open_wmemstream.texi: Likewise.
48072         * doc/posix-functions/swscanf.texi: Likewise.
48073         * doc/posix-functions/towctrans_l.texi: Likewise.
48074         * doc/posix-functions/towlower.texi: Likewise.
48075         * doc/posix-functions/towlower_l.texi: Likewise.
48076         * doc/posix-functions/towupper.texi: Likewise.
48077         * doc/posix-functions/towupper_l.texi: Likewise.
48078         * doc/posix-functions/vfwprintf.texi: Likewise.
48079         * doc/posix-functions/vfwscanf.texi: Likewise.
48080         * doc/posix-functions/vswscanf.texi: Likewise.
48081         * doc/posix-functions/vwprintf.texi: Likewise.
48082         * doc/posix-functions/vwscanf.texi: Likewise.
48083         * doc/posix-functions/wcpcpy.texi: Likewise.
48084         * doc/posix-functions/wcpncpy.texi: Likewise.
48085         * doc/posix-functions/wcscasecmp.texi: Likewise.
48086         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48087         * doc/posix-functions/wcscoll_l.texi: Likewise.
48088         * doc/posix-functions/wcsdup.texi: Likewise.
48089         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48090         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48091         * doc/posix-functions/wcsnlen.texi: Likewise.
48092         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48093         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48094         * doc/posix-functions/wctrans_l.texi: Likewise.
48095         * doc/posix-functions/wctype_l.texi: Likewise.
48096         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48097         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48098         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48099         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48100         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48101         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48102         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48103         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48104         * doc/glibc-functions/wcschrnul.texi: Likewise.
48105         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48106         * doc/glibc-functions/wcstod_l.texi: Likewise.
48107         * doc/glibc-functions/wcstof_l.texi: Likewise.
48108         * doc/glibc-functions/wcstol_l.texi: Likewise.
48109         * doc/glibc-functions/wcstold_l.texi: Likewise.
48110         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48111         * doc/glibc-functions/wcstoq.texi: Likewise.
48112         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48113         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48114         * doc/glibc-functions/wcstouq.texi: Likewise.
48115         * doc/glibc-functions/wmempcpy.texi: Likewise.
48116
48117 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48118             Eric Blake  <ebb9@byu.net>
48119             Paolo Bonzini  <bonzini@gnu.org>
48120             Bruno Haible  <bruno@clisp.org>
48121
48122         Make c-stack work on Haiku.
48123         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48124         (c_stack_action): Use SA_ONSTACK flag.
48125
48126 2008-12-22  Bruno Haible  <bruno@clisp.org>
48127
48128         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48129
48130 2008-12-22  Bruno Haible  <bruno@clisp.org>
48131
48132         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48133         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48134         being overridden.
48135         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48136         New macros.
48137         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48138         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48139         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48140         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48141
48142 2008-12-22  Bruno Haible  <bruno@clisp.org>
48143
48144         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48145         from test code.
48146
48147 2008-12-22  Eric Blake  <ebb9@byu.net>
48148
48149         Avoid gcc warnings on cygwin.
48150         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48151         Avoid unused variable.
48152         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48153         Likewise.
48154
48155 2008-12-22  Bruno Haible  <bruno@clisp.org>
48156
48157         Remove HAVE_MBRTOWC conditionals.
48158         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48159         (mbscasecmp): Assume mbrtowc function.
48160         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48161         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48162         * lib/mbschr.c: Include mbuiter.h unconditionally.
48163         (mbschr): Assume mbrtowc function.
48164         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48165         (mbscspn): Assume mbrtowc function.
48166         * lib/mbslen.c: Include mbuiter.h unconditionally.
48167         (mbslen): Assume mbrtowc function.
48168         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48169         (mbsncasecmp): Assume mbrtowc function.
48170         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48171         (mbsnlen): Assume mbrtowc function.
48172         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48173         (mbspbrk): Assume mbrtowc function.
48174         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48175         (mbspcasecmp): Assume mbrtowc function.
48176         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48177         (mbsrchr): Assume mbrtowc function.
48178         * lib/mbssep.c: Include mbuiter.h unconditionally.
48179         (mbssep): Assume mbrtowc function.
48180         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48181         (mbsspn): Assume mbrtowc function.
48182         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48183         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48184         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48185         (mbstok_r): Assume mbrtowc function.
48186         * lib/propername.c: Include mbuiter.h unconditionally.
48187         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48188         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48189         (trim2): Assume mbrtowc function.
48190         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48191         (mbsnwidth): Assume mbrtowc function.
48192         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48193         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48194         fallback definitions.
48195         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48196
48197 2008-12-22  Bruno Haible  <bruno@clisp.org>
48198
48199         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48200
48201 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48202
48203         * modules/regex: Request emulations for the mb*/wc* functions we need.
48204         * m4/regex.m4: Don't look for those functions here.
48205         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48206
48207 2008-12-22  Bruno Haible  <bruno@clisp.org>
48208
48209         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48210
48211 2008-12-21  Bruno Haible  <bruno@clisp.org>
48212
48213         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48214         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48215         (Include): Remove conditionalization.
48216         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48217         (Include): Remove conditionalization.
48218         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48219         (Include): Remove conditionalization.
48220         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48221         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48222         * NEWS: Mention the change.
48223         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48224         via Sergey Poznyakoff <gray@gnu.org.ua>.
48225
48226 2008-12-21  Bruno Haible  <bruno@clisp.org>
48227
48228         * MODULES.html.sh (Extended multibyte and wide character utilities
48229         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48230         wcrtomb, wcsrtombs.
48231         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48232         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48233         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48234         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48235
48236 2008-12-21  Bruno Haible  <bruno@clisp.org>
48237
48238         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48239
48240 2008-12-21  Bruno Haible  <bruno@clisp.org>
48241
48242         * modules/wcsnrtombs-tests: New file.
48243         * tests/test-wcsnrtombs1.sh: New file.
48244         * tests/test-wcsnrtombs2.sh: New file.
48245         * tests/test-wcsnrtombs3.sh: New file.
48246         * tests/test-wcsnrtombs4.sh: New file.
48247         * tests/test-wcsnrtombs.c: New file.
48248
48249         New module 'wcsnrtombs'.
48250         * lib/wchar.in.h (wcsnrtombs): New declaration.
48251         * lib/wcsnrtombs.c: New file.
48252         * lib/wcsrtombs-state.c: New file.
48253         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48254         (internal_state): Remove variable.
48255         * m4/wcsnrtombs.m4: New file.
48256         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48257         compilation units.
48258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48259         HAVE_WCSNRTOMBS.
48260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48261         HAVE_WCSNRTOMBS.
48262         * modules/wcsnrtombs: New file.
48263         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48264         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48265
48266 2008-12-21  Bruno Haible  <bruno@clisp.org>
48267
48268         * modules/wcsrtombs-tests: New file.
48269         * tests/test-wcsrtombs1.sh: New file.
48270         * tests/test-wcsrtombs2.sh: New file.
48271         * tests/test-wcsrtombs3.sh: New file.
48272         * tests/test-wcsrtombs4.sh: New file.
48273         * tests/test-wcsrtombs.c: New file.
48274
48275         New module 'wcsrtombs'.
48276         * lib/wchar.in.h (wcsrtombs): New declaration.
48277         * lib/wcsrtombs.c: New file.
48278         * m4/wcsrtombs.m4: New file.
48279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48280         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48282         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48283         * modules/wcsrtombs: New file.
48284         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48285         bugs.
48286
48287 2008-12-21  Bruno Haible  <bruno@clisp.org>
48288
48289         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48290         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48291         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48292         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48293         if not correct.
48294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48295         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48296         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48297         m4/locale-zh.m4, m4/codeset.m4.
48298         * doc/posix-functions/wcrtomb.texi: Document the bug.
48299
48300 2008-12-21  Bruno Haible  <bruno@clisp.org>
48301
48302         Work around a btowc() bug on IRIX 6.5.
48303         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48304         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48305         REPLACE_WTOBC if not.
48306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48307         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48308         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48309
48310 2008-12-21  Bruno Haible  <bruno@clisp.org>
48311
48312         * modules/wcrtomb-tests: New file.
48313         * tests/test-wcrtomb.sh: New file.
48314         * tests/test-wcrtomb.c: New file.
48315
48316         New module 'wcrtomb'.
48317         * lib/wchar.in.h (wcrtomb): New declaration.
48318         * lib/wcrtomb.c: New file.
48319         * m4/wcrtomb.m4: New file.
48320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48321         HAVE_WCRTOMB.
48322         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48323         HAVE_WCRTOMB.
48324         * modules/wcrtomb: New file.
48325         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48326
48327 2008-12-21  Bruno Haible  <bruno@clisp.org>
48328
48329         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48330         * modules/mbsrtowcs (Files): Likewise.
48331         * modules/wctob (Files): Likewise.
48332         * modules/c-strcase-tests (Files): Likewise.
48333         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48334         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48335         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48336         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48337         * modules/vasnprintf-posix-tests (Files): Likewise.
48338
48339 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48340
48341         gitlog-to-changelog: pass all command-line arguments to git-log
48342         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48343         it is sometimes convenient to filter the commits in various ways.
48344         gitlog-to-changelog only allows --since to specify a start date,
48345         but git-log itself supports many other filtering mechanisms.
48346         At the moment, I want to filter by branch name.  Rather than
48347         adding a --branch option to gitlog-to-changelog, it seems more
48348         flexible to simply pass all options directly to git-log and let
48349         git do the work.  Notice that this effectively makes --since a
48350         redundant option for gitlog-to-changelog, but removing it would
48351         require current usage to change since calls would then require
48352         an additional '--'.
48353
48354 2008-12-21  Bruno Haible  <bruno@clisp.org>
48355
48356         * modules/mbsnrtowcs-tests: New file.
48357         * tests/test-mbsnrtowcs1.sh: New file.
48358         * tests/test-mbsnrtowcs2.sh: New file.
48359         * tests/test-mbsnrtowcs3.sh: New file.
48360         * tests/test-mbsnrtowcs4.sh: New file.
48361         * tests/test-mbsnrtowcs.c: New file.
48362
48363         New module 'mbsnrtowcs'.
48364         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48365         * lib/mbsnrtowcs.c: New file.
48366         * lib/mbsrtowcs-state.c: New file.
48367         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48368         (internal_state): Remove variable.
48369         * m4/mbsnrtowcs.m4: New file.
48370         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48371         compilation units.
48372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48373         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48374         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48375         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48376         * modules/mbsnrtowcs: New file.
48377         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48378         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48379         portability problem.
48380
48381 2008-12-21  Bruno Haible  <bruno@clisp.org>
48382
48383         Work around mbsrtowcs bug.
48384         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48385         (gl_FUNC_MBSRTOWCS): Invoke it.
48386         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48387         m4/locale-zh.m4.
48388         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48389
48390 2008-12-21  Bruno Haible  <bruno@clisp.org>
48391
48392         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48393
48394 2008-12-21  Bruno Haible  <bruno@clisp.org>
48395
48396         Update doc for AIX.
48397         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48398         16-bit wchar_t type.
48399         * doc/posix-functions/btowc.texi: Likewise.
48400         * doc/posix-functions/fgetwc.texi: Likewise.
48401         * doc/posix-functions/fgetws.texi: Likewise.
48402         * doc/posix-functions/fputwc.texi: Likewise.
48403         * doc/posix-functions/fputws.texi: Likewise.
48404         * doc/posix-functions/fwide.texi: Likewise.
48405         * doc/posix-functions/fwprintf.texi: Likewise.
48406         * doc/posix-functions/fwscanf.texi: Likewise.
48407         * doc/posix-functions/getwchar.texi: Likewise.
48408         * doc/posix-functions/getwc.texi: Likewise.
48409         * doc/posix-functions/iswalnum.texi: Likewise.
48410         * doc/posix-functions/iswalpha.texi: Likewise.
48411         * doc/posix-functions/iswblank.texi: Likewise.
48412         * doc/posix-functions/iswcntrl.texi: Likewise.
48413         * doc/posix-functions/iswctype.texi: Likewise.
48414         * doc/posix-functions/iswdigit.texi: Likewise.
48415         * doc/posix-functions/iswgraph.texi: Likewise.
48416         * doc/posix-functions/iswlower.texi: Likewise.
48417         * doc/posix-functions/iswprint.texi: Likewise.
48418         * doc/posix-functions/iswpunct.texi: Likewise.
48419         * doc/posix-functions/iswspace.texi: Likewise.
48420         * doc/posix-functions/iswupper.texi: Likewise.
48421         * doc/posix-functions/iswxdigit.texi: Likewise.
48422         * doc/posix-functions/mbrtowc.texi: Likewise.
48423         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48424         * doc/posix-functions/mbstowcs.texi: Likewise.
48425         * doc/posix-functions/mbtowc.texi: Likewise.
48426         * doc/posix-functions/putwchar.texi: Likewise.
48427         * doc/posix-functions/putwc.texi: Likewise.
48428         * doc/posix-functions/swprintf.texi: Likewise.
48429         * doc/posix-functions/tolower.texi: Likewise.
48430         * doc/posix-functions/toupper.texi: Likewise.
48431         * doc/posix-functions/towctrans.texi: Likewise.
48432         * doc/posix-functions/ungetwc.texi: Likewise.
48433         * doc/posix-functions/vswprintf.texi: Likewise.
48434         * doc/posix-functions/wcrtomb.texi: Likewise.
48435         * doc/posix-functions/wcscat.texi: Likewise.
48436         * doc/posix-functions/wcschr.texi: Likewise.
48437         * doc/posix-functions/wcscmp.texi: Likewise.
48438         * doc/posix-functions/wcscoll.texi: Likewise.
48439         * doc/posix-functions/wcscpy.texi: Likewise.
48440         * doc/posix-functions/wcscspn.texi: Likewise.
48441         * doc/posix-functions/wcsftime.texi: Likewise.
48442         * doc/posix-functions/wcslen.texi: Likewise.
48443         * doc/posix-functions/wcsncat.texi: Likewise.
48444         * doc/posix-functions/wcsncmp.texi: Likewise.
48445         * doc/posix-functions/wcsncpy.texi: Likewise.
48446         * doc/posix-functions/wcspbrk.texi: Likewise.
48447         * doc/posix-functions/wcsrchr.texi: Likewise.
48448         * doc/posix-functions/wcsrtombs.texi: Likewise.
48449         * doc/posix-functions/wcsspn.texi: Likewise.
48450         * doc/posix-functions/wcsstr.texi: Likewise.
48451         * doc/posix-functions/wcstod.texi: Likewise.
48452         * doc/posix-functions/wcstof.texi: Likewise.
48453         * doc/posix-functions/wcstoimax.texi: Likewise.
48454         * doc/posix-functions/wcstok.texi: Likewise.
48455         * doc/posix-functions/wcstold.texi: Likewise.
48456         * doc/posix-functions/wcstoll.texi: Likewise.
48457         * doc/posix-functions/wcstol.texi: Likewise.
48458         * doc/posix-functions/wcstombs.texi: Likewise.
48459         * doc/posix-functions/wcstoull.texi: Likewise.
48460         * doc/posix-functions/wcstoul.texi: Likewise.
48461         * doc/posix-functions/wcstoumax.texi: Likewise.
48462         * doc/posix-functions/wcswidth.texi: Likewise.
48463         * doc/posix-functions/wcsxfrm.texi: Likewise.
48464         * doc/posix-functions/wctob.texi: Likewise.
48465         * doc/posix-functions/wctomb.texi: Likewise.
48466         * doc/posix-functions/wctrans.texi: Likewise.
48467         * doc/posix-functions/wctype.texi: Likewise.
48468         * doc/posix-functions/wcwidth.texi: Likewise.
48469         * doc/posix-functions/wmemchr.texi: Likewise.
48470         * doc/posix-functions/wmemcmp.texi: Likewise.
48471         * doc/posix-functions/wmemcpy.texi: Likewise.
48472         * doc/posix-functions/wmemmove.texi: Likewise.
48473         * doc/posix-functions/wmemset.texi: Likewise.
48474         * doc/posix-functions/wprintf.texi: Likewise.
48475         * doc/posix-functions/wscanf.texi: Likewise.
48476
48477 2008-12-21  Bruno Haible  <bruno@clisp.org>
48478
48479         Update doc for HP-UX 11.11.
48480         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48481         in HP-UX version 11.00, not in all versions of HP-UX 11.
48482         * doc/posix-functions/fwide.texi: Likewise.
48483         * doc/posix-functions/fwprintf.texi: Likewise.
48484         * doc/posix-functions/fwscanf.texi: Likewise.
48485         * doc/posix-functions/inet_ntop.texi: Likewise.
48486         * doc/posix-functions/inet_pton.texi: Likewise.
48487         * doc/posix-functions/mbrlen.texi: Likewise.
48488         * doc/posix-functions/mbrtowc.texi: Likewise.
48489         * doc/posix-functions/mbsinit.texi: Likewise.
48490         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48491         * doc/posix-functions/swprintf.texi: Likewise.
48492         * doc/posix-functions/swscanf.texi: Likewise.
48493         * doc/posix-functions/towctrans.texi: Likewise.
48494         * doc/posix-functions/vfwprintf.texi: Likewise.
48495         * doc/posix-functions/vswprintf.texi: Likewise.
48496         * doc/posix-functions/vwprintf.texi: Likewise.
48497         * doc/posix-functions/wcrtomb.texi: Likewise.
48498         * doc/posix-functions/wcsrtombs.texi: Likewise.
48499         * doc/posix-functions/wcsstr.texi: Likewise.
48500         * doc/posix-functions/wctob.texi: Likewise.
48501         * doc/posix-functions/wctrans.texi: Likewise.
48502         * doc/posix-functions/wmemchr.texi: Likewise.
48503         * doc/posix-functions/wmemcmp.texi: Likewise.
48504         * doc/posix-functions/wmemcpy.texi: Likewise.
48505         * doc/posix-functions/wmemmove.texi: Likewise.
48506         * doc/posix-functions/wmemset.texi: Likewise.
48507         * doc/posix-functions/wprintf.texi: Likewise.
48508         * doc/posix-functions/wscanf.texi: Likewise.
48509
48510 2008-12-21  Bruno Haible  <bruno@clisp.org>
48511
48512         Work around a portability problem.
48513         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48514         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48515
48516 2008-12-20  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48519         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48520         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48522         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48523
48524         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48525         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48526         set.
48527         (GNULIB_defined_mbstate_t): New macro.
48528         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48529         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48530         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48531         reuses the system's mbrtowc function but works around the bugs.
48532         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48533         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48534         macros.
48535         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48536         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48537         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48538         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48539         REPLACE_MBSINIT if mbsinit needs to be overridden.
48540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48541         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48542         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48543         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48544         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48545         m4/locale-zh.m4.
48546         (Depends): Add mbsinit.
48547         * modules/mbsinit (Depends): Add mbrtowc.
48548         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48549
48550 2008-12-20  Bruno Haible  <bruno@clisp.org>
48551
48552         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48553         so that there are no conversion errors on AIX.
48554         * tests/test-mbsrtowcs.c (main): LIkewise.
48555
48556 2008-12-20  Bruno Haible  <bruno@clisp.org>
48557
48558         Work around wctob bug on Solaris <= 9.
48559         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48560         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48562         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48563         * modules/wctob (Files): Add m4/locale-fr.m4.
48564         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48565
48566 2008-12-20  Bruno Haible  <bruno@clisp.org>
48567
48568         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48569         /dev/null.
48570         * tests/test-select-in.sh: Likewise.
48571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48572
48573 2008-12-20  Bruno Haible  <bruno@clisp.org>
48574
48575         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48576         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48577         Cygwin 1.5.x.
48578
48579 2008-12-20  Bruno Haible  <bruno@clisp.org>
48580
48581         Ensure mbstate_t is defined on HP-UX 11.11.
48582         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48583         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48584         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48585         AC_USE_SYSTEM_EXTENSIONS.
48586         * modules/fnmatch (Depends-on): Add extensions.
48587         * modules/mbrlen (Depends-on): Likewise.
48588         * modules/mbrtowc (Depends-on): Likewise.
48589         * modules/mbsinit (Depends-on): Likewise.
48590         * modules/mbsrtowcs (Depends-on): Likewise.
48591         * modules/mbswidth (Depends-on): Likewise.
48592         * modules/quotearg (Depends-on): Likewise.
48593         * modules/strftime (Depends-on): Likewise.
48594
48595 2008-12-20  Bruno Haible  <bruno@clisp.org>
48596
48597         Ensure wctob is declared on IRIX 6.5.
48598         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48599         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48600         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48602         of HAVE_WCTOB.
48603         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48604         HAVE_WCTOB.
48605         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48606
48607 2008-12-19  Bruno Haible  <bruno@clisp.org>
48608
48609         * modules/mbsrtowcs-tests: New file.
48610         * tests/test-mbsrtowcs1.sh: New file.
48611         * tests/test-mbsrtowcs2.sh: New file.
48612         * tests/test-mbsrtowcs3.sh: New file.
48613         * tests/test-mbsrtowcs4.sh: New file.
48614         * tests/test-mbsrtowcs.c: New file.
48615
48616         New module 'mbsrtowcs'.
48617         * lib/wchar.in.h (mbsrtowcs): New declaration.
48618         * lib/mbsrtowcs.c: New file.
48619         * m4/mbsrtowcs.m4: New file.
48620         * modules/mbsrtowcs: New file.
48621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48622         HAVE_MBSRTOWCS.
48623         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48624         HAVE_MBSRTOWCS.
48625         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48626
48627 2008-12-19  Bruno Haible  <bruno@clisp.org>
48628
48629         New module 'mbrlen'.
48630         * lib/wchar.in.h (mbrlen): New declaration.
48631         * lib/mbrlen.c: New file.
48632         * m4/mbrlen.m4: New file.
48633         * modules/mbrlen: New file.
48634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48635         HAVE_MBRLEN.
48636         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48637         HAVE_MBRLEN.
48638         * doc/posix-functions/mbrlen.texi: Document the new module.
48639
48640 2008-12-19  Bruno Haible  <bruno@clisp.org>
48641
48642         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48643         * modules/mbrtowc (Depends-on): Add verify.
48644         Suggested by Paul Eggert.
48645
48646 2008-12-18  Bruno Haible  <bruno@clisp.org>
48647
48648         * modules/mbsinit-tests: New file.
48649         * tests/test-mbsinit.sh: New file.
48650         * tests/test-mbsinit.c: New file.
48651
48652 2008-12-18  Bruno Haible  <bruno@clisp.org>
48653
48654         * modules/mbrtowc-tests: New file.
48655         * tests/test-mbrtowc1.sh: New file.
48656         * tests/test-mbrtowc2.sh: New file.
48657         * tests/test-mbrtowc3.sh: New file.
48658         * tests/test-mbrtowc4.sh: New file.
48659         * tests/test-mbrtowc.c: New file.
48660
48661         New module 'mbrtowc'.
48662         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48663         mbsinit and mbrtowc.
48664         (mbrtowc): New declaration.
48665         * lib/mbrtowc.c: New file.
48666         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48667         * modules/mbrtowc: New file.
48668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48669         HAVE_MBRTOWC.
48670         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48671         HAVE_MBRTOWC.
48672         * doc/posix-functions/mbrtowc.texi: Document the new module.
48673
48674 2008-12-18  Bruno Haible  <bruno@clisp.org>
48675
48676         New module 'wctob'.
48677         * lib/wchar.in.h (wctob): New declaration.
48678         * lib/wctob.c: New file.
48679         * m4/wctob.m4: New file.
48680         * modules/wctob: New file.
48681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48682         HAVE_WCTOB.
48683         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48684         * doc/posix-functions/wctob.texi: Document the new module.
48685
48686 2008-12-18  Bruno Haible  <bruno@clisp.org>
48687
48688         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48689         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48690
48691 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48692
48693         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48694         G. Christensen" <tgc@jupiterrise.com>.
48695
48696         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48697         G. Christensen" <tgc@jupiterrise.com>.
48698
48699         * lib/flock.c: Need to include string.h.  Reported by "Tom
48700         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48701         <ebb9@byu.net>.
48702
48703 2008-12-18  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/locale-ja.m4: New file, from GNU gettext.
48706
48707 2008-12-17  Bruno Haible  <bruno@clisp.org>
48708
48709         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48710         Suggested by Eric Blake.
48711
48712 2008-12-17  Bruno Haible  <bruno@clisp.org>
48713
48714         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48715
48716 2008-12-17  Bruno Haible  <bruno@clisp.org>
48717
48718         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48719         * modules/mbsinit (Depends-on): Add verify.
48720         Suggested by Paul Eggert.
48721
48722 2008-12-17  Bruno Haible  <bruno@clisp.org>
48723
48724         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48725         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48726         gl_FUNC_MBRTOWC.
48727         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48728         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48729         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48730         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48731         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48732         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48733         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48734         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48735         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48736         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48737         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48738         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48739         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48740         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48741         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48742         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48743         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48744         * modules/trim (configure.ac): Likewise.
48745
48746 2008-12-17  Bruno Haible  <bruno@clisp.org>
48747
48748         * modules/btowc-tests: New file.
48749         * tests/test-btowc1.sh: New file.
48750         * tests/test-btowc2.sh: New file.
48751         * tests/test-btowc.c: New file.
48752
48753         New module 'btowc'.
48754         * lib/wchar.in.h (btowc): New declaration.
48755         * lib/btowc.c: New file.
48756         * m4/btowc.m4: New file.
48757         * modules/btowc: New file.
48758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48759         HAVE_BTOWC.
48760         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48761         * doc/posix-functions/btowc.texi: Document the new module.
48762
48763 2008-12-17  Bruno Haible  <bruno@clisp.org>
48764
48765         New module 'mbsinit'.
48766         * lib/wchar.in.h (mbsinit): New declaration.
48767         * lib/mbsinit.c: New file.
48768         * m4/mbsinit.m4: New file.
48769         * modules/mbsinit: New file.
48770         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48771         HAVE_MBSINIT.
48772         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48773         HAVE_MBSINIT.
48774         * doc/posix-functions/mbsinit.texi: Document the new module.
48775
48776 2008-12-16  Bruno Haible  <bruno@clisp.org>
48777
48778         * lib/unistd.in.h: Add comment.
48779         * tests/test-environ.c: Don't include <stdlib.h>.
48780
48781 2008-12-16  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/parse-duration.h (parse_duration): Document return value
48784         convention.
48785         * lib/parse-duration.c: Include specification header first. Add
48786         comments.
48787         (_): Remove macro.
48788         (parse_year_month_day, parse_hour_minute_second): Move side effects
48789         outside of strchr call.
48790         (parse_non_iso8601): Move side effects outside of isspace call.
48791         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48792         call.
48793
48794 2008-12-16  Bruno Haible  <bruno@clisp.org>
48795
48796         * tests/test-parse-duration.sh: Produce no output when the test
48797         succeeds.
48798
48799 2008-12-16  Bruno Haible  <bruno@clisp.org>
48800
48801         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48802         expressions.
48803
48804 2008-12-15  Bruno Haible  <bruno@clisp.org>
48805
48806         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48807         * doc/glibc-functions/flistxattr.texi: Likewise.
48808         * doc/glibc-functions/fopencookie.texi: Likewise.
48809         * doc/glibc-functions/fremovexattr.texi: Likewise.
48810         * doc/glibc-functions/fsetxattr.texi: Likewise.
48811         * doc/glibc-functions/getxattr.texi: Likewise.
48812         * doc/glibc-functions/lgetxattr.texi: Likewise.
48813         * doc/glibc-functions/listxattr.texi: Likewise.
48814         * doc/glibc-functions/llistxattr.texi: Likewise.
48815         * doc/glibc-functions/lremovexattr.texi: Likewise.
48816         * doc/glibc-functions/lsetxattr.texi: Likewise.
48817         * doc/glibc-functions/removexattr.texi: Likewise.
48818         * doc/glibc-functions/setxattr.texi: Likewise.
48819         * doc/posix-functions/open_memstream.texi: Likewise.
48820
48821 2008-12-15  Eric Blake  <ebb9@byu.net>
48822
48823         Update doc for cygwin 1.7.
48824         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48825         functions.
48826         * doc/posix-functions/fchmodat.texi: Likewise.
48827         * doc/posix-functions/fchownat.texi: Likewise.
48828         * doc/posix-functions/fdopendir.texi: Likewise.
48829         * doc/posix-functions/fmemopen.texi: Likewise.
48830         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48831         * doc/posix-functions/fstatat.texi: Likewise.
48832         * doc/posix-functions/futimens.texi: Likewise.
48833         * doc/posix-functions/gai_strerror.texi: Likewise.
48834         * doc/posix-functions/getaddrinfo.texi: Likewise.
48835         * doc/posix-functions/getnameinfo.texi: Likewise.
48836         * doc/posix-functions/if_freenameindex.texi: Likewise.
48837         * doc/posix-functions/if_indextoname.texi: Likewise.
48838         * doc/posix-functions/if_nameindex.texi: Likewise.
48839         * doc/posix-functions/if_nametoindex.texi: Likewise.
48840         * doc/posix-functions/insque.texi: Likewise.
48841         * doc/posix-functions/linkat.texi: Likewise.
48842         * doc/posix-functions/llrint.texi: Likewise.
48843         * doc/posix-functions/llrintf.texi: Likewise.
48844         * doc/posix-functions/llrintl.texi: Likewise.
48845         * doc/posix-functions/lockf.texi: Likewise.
48846         * doc/posix-functions/lrintl.texi: Likewise.
48847         * doc/posix-functions/mkdirat.texi: Likewise.
48848         * doc/posix-functions/mkfifoat.texi: Likewise.
48849         * doc/posix-functions/mknodat.texi: Likewise.
48850         * doc/posix-functions/mq_close.texi: Likewise.
48851         * doc/posix-functions/mq_getattr.texi: Likewise.
48852         * doc/posix-functions/mq_notify.texi: Likewise.
48853         * doc/posix-functions/mq_open.texi: Likewise.
48854         * doc/posix-functions/mq_receive.texi: Likewise.
48855         * doc/posix-functions/mq_send.texi: Likewise.
48856         * doc/posix-functions/mq_setattr.texi: Likewise.
48857         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48858         * doc/posix-functions/mq_timedsend.texi: Likewise.
48859         * doc/posix-functions/mq_unlink.texi: Likewise.
48860         * doc/posix-functions/open_memstream.texi: Likewise.
48861         * doc/posix-functions/openat.texi: Likewise.
48862         * doc/posix-functions/posix_fadvise.texi: Likewise.
48863         * doc/posix-functions/posix_fallocate.texi: Likewise.
48864         * doc/posix-functions/posix_madvise.texi: Likewise.
48865         * doc/posix-functions/posix_memalign.texi: Likewise.
48866         * doc/posix-functions/posix_openpt.texi: Likewise.
48867         * doc/posix-functions/readlinkat.texi: Likewise.
48868         * doc/posix-functions/remque.texi: Likewise.
48869         * doc/posix-functions/renameat.texi: Likewise.
48870         * doc/posix-functions/rintl.texi: Likewise.
48871         * doc/posix-functions/sem_unlink.texi: Likewise.
48872         * doc/posix-functions/shm_open.texi: Likewise.
48873         * doc/posix-functions/shm_unlink.texi: Likewise.
48874         * doc/posix-functions/signgam.texi: Likewise.
48875         * doc/posix-functions/sigset.texi: Likewise.
48876         * doc/posix-functions/stpcpy.texi: Likewise.
48877         * doc/posix-functions/stpncpy.texi: Likewise.
48878         * doc/posix-functions/strerror.texi: Likewise.
48879         * doc/posix-functions/strtod.texi: Likewise.
48880         * doc/posix-functions/symlinkat.texi: Likewise.
48881         * doc/posix-functions/unlinkat.texi: Likewise.
48882         * doc/posix-functions/utimensat.texi: Likewise.
48883         * doc/glibc-functions/bindresvport.texi: Likewise.
48884         * doc/glibc-functions/dn_expand.texi: Likewise.
48885         * doc/glibc-functions/exp10.texi: Likewise.
48886         * doc/glibc-functions/exp10f.texi: Likewise.
48887         * doc/glibc-functions/fgetxattr.texi: Likewise.
48888         * doc/glibc-functions/flistxattr.texi: Likewise.
48889         * doc/glibc-functions/fopencookie.texi: Likewise.
48890         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48891         * doc/glibc-functions/fremovexattr.texi: Likewise.
48892         * doc/glibc-functions/fsetxattr.texi: Likewise.
48893         * doc/glibc-functions/getifaddrs.texi: Likewise.
48894         * doc/glibc-functions/getxattr.texi: Likewise.
48895         * doc/glibc-functions/lgetxattr.texi: Likewise.
48896         * doc/glibc-functions/listxattr.texi: Likewise.
48897         * doc/glibc-functions/llistxattr.texi: Likewise.
48898         * doc/glibc-functions/lremovexattr.texi: Likewise.
48899         * doc/glibc-functions/lsetxattr.texi: Likewise.
48900         * doc/glibc-functions/pow10.texi: Likewise.
48901         * doc/glibc-functions/pow10f.texi: Likewise.
48902         * doc/glibc-functions/rcmd_af.texi: Likewise.
48903         * doc/glibc-functions/removexattr.texi: Likewise.
48904         * doc/glibc-functions/res_init.texi: Likewise.
48905         * doc/glibc-functions/res_mkquery.texi: Likewise.
48906         * doc/glibc-functions/res_query.texi: Likewise.
48907         * doc/glibc-functions/res_querydomain.texi: Likewise.
48908         * doc/glibc-functions/res_send.texi: Likewise.
48909         * doc/glibc-functions/rresvport_af.texi: Likewise.
48910         * doc/glibc-functions/setxattr.texi: Likewise.
48911         * doc/glibc-functions/strcasestr.texi: Likewise.
48912
48913 2008-12-15  Bruno Haible  <bruno@clisp.org>
48914
48915         Fix compilation error on OSF/1 4.0.
48916         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48917         <sys/time.h>, simply delegate to the system header.
48918         Reported by Daniel Richard G. <oss@teragram.com>.
48919
48920 2008-12-15  Bruno Haible  <bruno@clisp.org>
48921
48922         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48923         * doc/posix-functions/fchmodat.texi: Likewise.
48924         * doc/posix-functions/fchownat.texi: Likewise.
48925         * doc/posix-functions/fdopendir.texi: Likewise.
48926         * doc/posix-functions/fstatat.texi: Likewise.
48927         * doc/posix-functions/mkdirat.texi: Likewise.
48928         * doc/posix-functions/unlinkat.texi: Likewise.
48929
48930 2008-12-14  Bruno Haible  <bruno@clisp.org>
48931
48932         Update doc for POSIX:2008.
48933         * doc/posix-functions/faccessat.texi: New file.
48934         * doc/posix-functions/fchmodat.texi: New file.
48935         * doc/posix-functions/fchownat.texi: New file.
48936         * doc/posix-functions/fdopendir.texi: New file.
48937         * doc/posix-functions/fstatat.texi: New file.
48938         * doc/posix-functions/futimens.texi: New file.
48939         * doc/posix-functions/linkat.texi: New file.
48940         * doc/posix-functions/mkdirat.texi: New file.
48941         * doc/posix-functions/mkfifoat.texi: New file.
48942         * doc/posix-functions/mknodat.texi: New file.
48943         * doc/posix-functions/open_wmemstream.texi: New file.
48944         * doc/posix-functions/openat.texi: New file.
48945         * doc/posix-functions/psiginfo.texi: New file.
48946         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48947         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48948         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48949         * doc/posix-functions/readlinkat.texi: New file.
48950         * doc/posix-functions/renameat.texi: New file.
48951         * doc/posix-functions/strerror_l.texi: New file.
48952         * doc/posix-functions/symlinkat.texi: New file.
48953         * doc/posix-functions/unlinkat.texi: New file.
48954         * doc/posix-functions/utimensat.texi: New file.
48955         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48956
48957 2008-12-14  Bruno Haible  <bruno@clisp.org>
48958
48959         Update doc for POSIX:2008.
48960         * doc/posix-functions/alphasort.texi: Renamed from
48961         doc/glibc-functions/alphasort.texi.
48962         * doc/posix-functions/dirfd.texi: Renamed from
48963         doc/glibc-functions/dirfd.texi.
48964         * doc/posix-functions/dprintf.texi: Renamed from
48965         doc/glibc-functions/dprintf.texi.
48966         * doc/posix-functions/duplocale.texi: Renamed from
48967         doc/glibc-functions/duplocale.texi.
48968         * doc/posix-functions/fexecve.texi: Renamed from
48969         doc/glibc-functions/fexecve.texi.
48970         * doc/posix-functions/fmemopen.texi: Renamed from
48971         doc/glibc-functions/fmemopen.texi.
48972         * doc/posix-functions/freelocale.texi: Renamed from
48973         doc/glibc-functions/freelocale.texi.
48974         * doc/posix-functions/getdate_err.texi: Renamed from
48975         doc/glibc-functions/getdate_err.texi.
48976         * doc/posix-functions/isalnum_l.texi: Renamed from
48977         doc/glibc-functions/isalnum_l.texi.
48978         * doc/posix-functions/isalpha_l.texi: Renamed from
48979         doc/glibc-functions/isalpha_l.texi.
48980         * doc/posix-functions/isblank_l.texi: Renamed from
48981         doc/glibc-functions/isblank_l.texi.
48982         * doc/posix-functions/iscntrl_l.texi: Renamed from
48983         doc/glibc-functions/iscntrl_l.texi.
48984         * doc/posix-functions/isdigit_l.texi: Renamed from
48985         doc/glibc-functions/isdigit_l.texi.
48986         * doc/posix-functions/isgraph_l.texi: Renamed from
48987         doc/glibc-functions/isgraph_l.texi.
48988         * doc/posix-functions/islower_l.texi: Renamed from
48989         doc/glibc-functions/islower_l.texi.
48990         * doc/posix-functions/isprint_l.texi: Renamed from
48991         doc/glibc-functions/isprint_l.texi.
48992         * doc/posix-functions/ispunct_l.texi: Renamed from
48993         doc/glibc-functions/ispunct_l.texi.
48994         * doc/posix-functions/isspace_l.texi: Renamed from
48995         doc/glibc-functions/isspace_l.texi.
48996         * doc/posix-functions/isupper_l.texi: Renamed from
48997         doc/glibc-functions/isupper_l.texi.
48998         * doc/posix-functions/iswalnum_l.texi: Renamed from
48999         doc/glibc-functions/iswalnum_l.texi.
49000         * doc/posix-functions/iswalpha_l.texi: Renamed from
49001         doc/glibc-functions/iswalpha_l.texi.
49002         * doc/posix-functions/iswblank_l.texi: Renamed from
49003         doc/glibc-functions/iswblank_l.texi.
49004         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49005         doc/glibc-functions/iswcntrl_l.texi.
49006         * doc/posix-functions/iswctype_l.texi: Renamed from
49007         doc/glibc-functions/iswctype_l.texi.
49008         * doc/posix-functions/iswdigit_l.texi: Renamed from
49009         doc/glibc-functions/iswdigit_l.texi.
49010         * doc/posix-functions/iswgraph_l.texi: Renamed from
49011         doc/glibc-functions/iswgraph_l.texi.
49012         * doc/posix-functions/iswlower_l.texi: Renamed from
49013         doc/glibc-functions/iswlower_l.texi.
49014         * doc/posix-functions/iswprint_l.texi: Renamed from
49015         doc/glibc-functions/iswprint_l.texi.
49016         * doc/posix-functions/iswpunct_l.texi: Renamed from
49017         doc/glibc-functions/iswpunct_l.texi.
49018         * doc/posix-functions/iswspace_l.texi: Renamed from
49019         doc/glibc-functions/iswspace_l.texi.
49020         * doc/posix-functions/iswupper_l.texi: Renamed from
49021         doc/glibc-functions/iswupper_l.texi.
49022         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49023         doc/glibc-functions/iswxdigit_l.texi.
49024         * doc/posix-functions/isxdigit_l.texi: Renamed from
49025         doc/glibc-functions/isxdigit_l.texi.
49026         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49027         doc/glibc-functions/mbsnrtowcs.texi.
49028         * doc/posix-functions/mkdtemp.texi: Renamed from
49029         doc/glibc-functions/mkdtemp.texi.
49030         * doc/posix-functions/newlocale.texi: Renamed from
49031         doc/glibc-functions/newlocale.texi.
49032         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49033         doc/glibc-functions/nl_langinfo_l.texi.
49034         * doc/posix-functions/open_memstream.texi: Renamed from
49035         doc/glibc-functions/open_memstream.texi.
49036         * doc/posix-functions/opterr.texi: Renamed from
49037         doc/glibc-functions/opterr.texi.
49038         * doc/posix-functions/optind.texi: Renamed from
49039         doc/glibc-functions/optind.texi.
49040         * doc/posix-functions/optopt.texi: Renamed from
49041         doc/glibc-functions/optopt.texi.
49042         * doc/posix-functions/psignal.texi: Renamed from
49043         doc/glibc-functions/psignal.texi.
49044         * doc/posix-functions/scandir.texi: Renamed from
49045         doc/glibc-functions/scandir.texi.
49046         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49047         doc/glibc-functions/sched_get_priority_min.texi.
49048         * doc/posix-functions/signgam.texi: Renamed from
49049         doc/glibc-functions/signgam.texi.
49050         * doc/posix-functions/stpcpy.texi: Renamed from
49051         doc/glibc-functions/stpcpy.texi.
49052         * doc/posix-functions/stpncpy.texi: Renamed from
49053         doc/glibc-functions/stpncpy.texi.
49054         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49055         doc/glibc-functions/strcasecmp_l.texi.
49056         * doc/posix-functions/strcoll_l.texi: Renamed from
49057         doc/glibc-functions/strcoll_l.texi.
49058         * doc/posix-functions/strfmon_l.texi: Renamed from
49059         doc/glibc-functions/strfmon_l.texi.
49060         * doc/posix-functions/strftime_l.texi: Renamed from
49061         doc/glibc-functions/strftime_l.texi.
49062         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49063         doc/glibc-functions/strncasecmp_l.texi.
49064         * doc/posix-functions/strndup.texi: Renamed from
49065         doc/glibc-functions/strndup.texi.
49066         * doc/posix-functions/strnlen.texi: Renamed from
49067         doc/glibc-functions/strnlen.texi.
49068         * doc/posix-functions/strsignal.texi: Renamed from
49069         doc/glibc-functions/strsignal.texi.
49070         * doc/posix-functions/strxfrm_l.texi: Renamed from
49071         doc/glibc-functions/strxfrm_l.texi.
49072         * doc/posix-functions/timer_gettime.texi: Renamed from
49073         doc/glibc-functions/timer_gettime.texi.
49074         * doc/posix-functions/tolower_l.texi: Renamed from
49075         doc/glibc-functions/tolower_l.texi.
49076         * doc/posix-functions/toupper_l.texi: Renamed from
49077         doc/glibc-functions/toupper_l.texi.
49078         * doc/posix-functions/towctrans_l.texi: Renamed from
49079         doc/glibc-functions/towctrans_l.texi.
49080         * doc/posix-functions/towlower_l.texi: Renamed from
49081         doc/glibc-functions/towlower_l.texi.
49082         * doc/posix-functions/towupper_l.texi: Renamed from
49083         doc/glibc-functions/towupper_l.texi.
49084         * doc/posix-functions/uselocale.texi: Renamed from
49085         doc/glibc-functions/uselocale.texi.
49086         * doc/posix-functions/vdprintf.texi: Renamed from
49087         doc/glibc-functions/vdprintf.texi.
49088         * doc/posix-functions/wcpcpy.texi:
49089         Renamed from doc/glibc-functions/wcpcpy.texi.
49090         * doc/posix-functions/wcpncpy.texi: Renamed from
49091         doc/glibc-functions/wcpncpy.texi.
49092         * doc/posix-functions/wcscasecmp.texi: Renamed from
49093         doc/glibc-functions/wcscasecmp.texi.
49094         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49095         doc/glibc-functions/wcscasecmp_l.texi.
49096         * doc/posix-functions/wcscoll_l.texi: Renamed from
49097         doc/glibc-functions/wcscoll_l.texi.
49098         * doc/posix-functions/wcsdup.texi: Renamed from
49099         doc/glibc-functions/wcsdup.texi.
49100         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49101         doc/glibc-functions/wcsncasecmp.texi.
49102         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49103         doc/glibc-functions/wcsncasecmp_l.texi.
49104         * doc/posix-functions/wcsnlen.texi: Renamed from
49105         doc/glibc-functions/wcsnlen.texi.
49106         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49107         doc/glibc-functions/wcsnrtombs.texi.
49108         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49109         doc/glibc-functions/wcsxfrm_l.texi.
49110         * doc/posix-functions/wctrans_l.texi: Renamed from
49111         doc/glibc-functions/wctrans_l.texi.
49112         * doc/posix-functions/wctype_l.texi: Renamed from
49113         doc/glibc-functions/wctype_l.texi.
49114         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49115         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49116         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49117         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49118         these subsections.
49119         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49120         Remove sections.
49121
49122 2008-12-14  Bruno Haible  <bruno@clisp.org>
49123
49124         Update doc for POSIX:2008.
49125         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49126
49127 2008-12-14  Bruno Haible  <bruno@clisp.org>
49128
49129         Update doc for POSIX:2008.
49130         * doc/pastposix-functions/bcmp.texi: Renamed from
49131         doc/posix-functions/bcmp.texi.
49132         * doc/pastposix-functions/bcopy.texi: Renamed from
49133         doc/posix-functions/bcopy.texi.
49134         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49135         doc/posix-functions/bsd_signal.texi.
49136         * doc/pastposix-functions/bzero.texi: Renamed from
49137         doc/posix-functions/bzero.texi.
49138         * doc/pastposix-functions/ecvt.texi: Renamed from
49139         doc/posix-functions/ecvt.texi.
49140         * doc/pastposix-functions/fcvt.texi: Renamed from
49141         doc/posix-functions/fcvt.texi.
49142         * doc/pastposix-functions/ftime.texi: Renamed from
49143         doc/posix-functions/ftime.texi.
49144         * doc/pastposix-functions/gcvt.texi: Renamed from
49145         doc/posix-functions/gcvt.texi.
49146         * doc/pastposix-functions/getcontext.texi: Renamed from
49147         doc/posix-functions/getcontext.texi.
49148         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49149         doc/posix-functions/gethostbyaddr.texi.
49150         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49151         doc/posix-functions/gethostbyname.texi.
49152         * doc/pastposix-functions/getwd.texi: Renamed from
49153         doc/posix-functions/getwd.texi.
49154         * doc/pastposix-functions/h_errno.texi: Renamed from
49155         doc/posix-functions/h_errno.texi.
49156         * doc/pastposix-functions/index.texi: Renamed from
49157         doc/posix-functions/index.texi.
49158         * doc/pastposix-functions/makecontext.texi: Renamed from
49159         doc/posix-functions/makecontext.texi.
49160         * doc/pastposix-functions/mktemp.texi: Renamed from
49161         doc/posix-functions/mktemp.texi.
49162         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49163         doc/posix-functions/pthread_attr_getstackaddr.texi.
49164         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49165         doc/posix-functions/pthread_attr_setstackaddr.texi.
49166         * doc/pastposix-functions/rindex.texi: Renamed from
49167         doc/posix-functions/rindex.texi.
49168         * doc/pastposix-functions/scalb.texi: Renamed from
49169         doc/posix-functions/scalb.texi.
49170         * doc/pastposix-functions/setcontext.texi: Renamed from
49171         doc/posix-functions/setcontext.texi.
49172         * doc/pastposix-functions/swapcontext.texi: Renamed from
49173         doc/posix-functions/swapcontext.texi.
49174         * doc/pastposix-functions/ualarm.texi: Renamed from
49175         doc/posix-functions/ualarm.texi.
49176         * doc/pastposix-functions/usleep.texi: Renamed from
49177         doc/posix-functions/usleep.texi.
49178         * doc/pastposix-functions/vfork.texi: Renamed from
49179         doc/posix-functions/vfork.texi.
49180         * doc/pastposix-functions/wcswcs.texi: Renamed from
49181         doc/posix-functions/wcswcs.texi.
49182         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49183         (Function Substitutes): Update.
49184
49185 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49186
49187         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49188         m4/strerror.m4.
49189
49190 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49191             Bruno Haible  <bruno@clisp.org>
49192
49193         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49194
49195 2008-12-13  Bruno Haible  <bruno@clisp.org>
49196
49197         * modules/strtoull (Depends-on): Remove unistd.
49198
49199 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49200
49201         * modules/strtoull (Depends-on): Add stdlib.
49202
49203 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49204
49205         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49206
49207 2008-12-10  Jim Meyering  <meyering@redhat.com>
49208
49209         gl_ASSERT: don't say assertions are disabled when they're not
49210         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49211         "checking whether to enable assertions... no", when they are in
49212         fact enabled.  This is solely a bug in the output of configure.
49213         In spite of saying "no", NDEBUG was not defined in that case.
49214         Also, as noted by Eric Blake, leave assertions enabled upon
49215         --enable-assert=INVALID.
49216
49217 2008-12-10  Bruno Haible  <bruno@clisp.org>
49218
49219         Change MODULES.html to refer to POSIX:2008 where possible.
49220         * MODULES.html.sh (POSIX2008_URL): New variable.
49221         (posix_headers): Remove sys/timeb, ucontext.
49222         (posix2001_headers): New variable.
49223         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49224         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49225         index, makecontext, mktemp, pthread_attr_getstackaddr,
49226         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49227         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49228         (posix2001_functions): New variable.
49229         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49230         otherwise.
49231
49232 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49233
49234         add missing include to parse-duration.c
49235         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49236         * modules/parse-duration (Depends-on): Add xalloc.
49237
49238         fix sed script reading maint.mk
49239         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49240         (syntax-check-rules): Use it.
49241
49242 2008-12-09  Bruno Haible  <bruno@clisp.org>
49243
49244         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49245         MacOS X 10.4/PowerPC.
49246         Reported by Simon Josefsson.
49247
49248 2008-12-08  Jim Meyering  <meyering@redhat.com>
49249
49250         work around mingw's lack of some S_IF definitions
49251         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49252         Reported by Simon Josefsson.
49253
49254 2008-12-08  Bruno Haible  <bruno@clisp.org>
49255
49256         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49257         applied to variables. Needed on MacOS X 10.4/PowerPC.
49258         Reported by Simon Josefsson.
49259
49260 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49261         and Eric Blake  <ebb9@byu.net>
49262
49263         assert: honor --enable-assert
49264         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49265         order to honor --enable-assert, rather than treating it as a
49266         synonym for --disable-assert.
49267
49268 2008-12-08  Jim Meyering  <meyering@redhat.com>
49269
49270         * lib/posixtm.c: Remove now-useless declaration of mktime.
49271
49272         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49273
49274 2008-12-07  Bruno Haible  <bruno@clisp.org>
49275
49276         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49277         test_once): Mark functions as static.
49278         * tests/test-tls.c (test_tls): Likewise.
49279
49280 2008-12-07  Bruno Haible  <bruno@clisp.org>
49281
49282         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49283         iconv_register_autodetect.
49284
49285 2008-12-07  Jim Meyering  <meyering@redhat.com>
49286
49287         posixtm.c: avoid a warning
49288         * lib/posixtm.c (posixtime): Don't initialize tm0.
49289         It's no longer needed to placate gcc4's -Wuninitialized,
49290         and the attempt to placate would elicit a new warning.
49291
49292         unicodeio.c: mark unused parameters
49293         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49294         (fallback_failure_callback): Likewise.
49295
49296 2008-12-07  Bruno Haible  <bruno@clisp.org>
49297
49298         * gnulib-tool (func_create_testdir): When building the tests
49299         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49300         Reported by Simon Josefsson.
49301
49302 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49303
49304         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49305
49306 2008-12-06  Bruno Haible  <bruno@clisp.org>
49307
49308         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49309         Suggested by Eric Blake.
49310
49311 2008-12-06  Bruno Haible  <bruno@clisp.org>
49312
49313         Fix a c-stack test failure on MacOS X.
49314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49315         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49316         handler for SIGBUS as well.
49317         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49318         install a signal handler for SIGBUS as well.
49319         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49320
49321 2008-12-06  Bruno Haible  <bruno@clisp.org>
49322
49323         Advocacy documentation.
49324         * doc/gnulib-intro.texi (Benefits): New section.
49325         * doc/gnulib.texi: Update.
49326
49327 2008-12-06  Bruno Haible  <bruno@clisp.org>
49328
49329         Document the 'manywarnings' module.
49330         * doc/manywarnings.texi: New file.
49331         * doc/gnulib.texi: Include it.
49332
49333 2008-12-05  Eric Blake  <ebb9@byu.net>
49334
49335         tests: silence some gcc warnings
49336         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49337         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49338         type mismatches.
49339
49340 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49341             Bruno Haible  <bruno@clisp.org>
49342
49343         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49344
49345 2008-11-29  Jim Meyering  <meyering@redhat.com>
49346
49347         unicodeio.c: mark unused parameters
49348         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49349         (fallback_failure_callback): Likewise.
49350
49351         fts: fix a thinko
49352         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49353         (set_stat_type): Return S_IF*-valued "type" directly.
49354         Prompted by James Youngman's spotting a related bug.
49355         Confirmed by further testing through find.
49356
49357         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49358         * lib/fts.c (D_TYPE): Define.
49359         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49360         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49361         (s_ifmt_shift_bits): New function.
49362         (set_stat_type): New function.
49363         (fts_build): When not calling fts_stat, call set_stat_type
49364         to propagate dirent.d_type info to fts_read caller.
49365         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49366         fts_statp->st_mode type information may be valid.
49367
49368 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49369
49370         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49371         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49372         <sds@gnu.org>.
49373
49374 2008-11-20  Bruno Haible  <bruno@clisp.org>
49375
49376         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49377         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49378         INCLUDE_NEXT.
49379         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49380         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49381         * modules/math (Makefile.am): Substitute
49382         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49383         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49384
49385 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49386             Bruno Haible  <bruno@clisp.org>
49387
49388         * lib/stdint.in.h: Define all type macros so that their expansion is
49389         a single typedef'ed token. Fixes a compilation failure in Boost which
49390         does "using ::int8_t;".
49391
49392 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49393
49394         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49395         gl_MANYWARN_ALL_GCC.
49396         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49397         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49398         * modules/manywarnings: New file.
49399         * MODULES.html.sh: Mention manywarnings module.
49400
49401 2008-11-18  Bruno Haible  <bruno@clisp.org>
49402
49403         * doc/gnulib-tool.texi (Unit tests): New section.
49404
49405 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49406
49407         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49408         paths like 'lib/po/foo.po'.
49409
49410 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49411
49412         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49413         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49414
49415 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49416
49417         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49418         parameter works.
49419
49420 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49421
49422         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49423
49424 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49425
49426         * modules/parse-duration-tests: New file.
49427         * tests/test-parse-duration.sh: New file.
49428         * tests/test-parse-duration.c: New file.
49429
49430         New module 'parse-duration'.
49431         * lib/parse-duration.h: New file.
49432         * lib/parse-duration.c: New file.
49433         * modules/parse-duration: New file.
49434
49435 2008-11-17  Bruno Haible  <bruno@clisp.org>
49436
49437         * tests/test-select-out.sh: Comment out the first pipe test.
49438         Reported by Simon Josefsson.
49439
49440 2008-11-17  Bruno Haible  <bruno@clisp.org>
49441
49442         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49444         gl_HOSTENT.
49445
49446 2008-11-17  Bruno Haible  <bruno@clisp.org>
49447
49448         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49449         -lnetwork and -lnet. Needed for Haiku and BeOS.
49450
49451 2008-11-16  Bruno Haible  <bruno@clisp.org>
49452
49453         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49454
49455 2008-11-16  Bruno Haible  <bruno@clisp.org>
49456
49457         Avoid test failure on Haiku.
49458         * tests/test-fsync.c: Include <errno.h>.
49459         (main): Don't require that fsync (0) fails.
49460
49461 2008-11-15  Bruno Haible  <bruno@clisp.org>
49462
49463         New module 'hostent'.
49464         * modules/hostent: New file.
49465         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49466
49467 2008-11-15  Bruno Haible  <bruno@clisp.org>
49468
49469         New module 'servent'.
49470         * modules/servent: New file.
49471         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49472
49473 2008-11-15  Bruno Haible  <bruno@clisp.org>
49474
49475         Avoid generating same test program with two different rules.
49476         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49477         test-frexp to test-frexp-nolibm.
49478         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49479         test-frexpl to test-frexpl-nolibm.
49480
49481 2008-11-15  Bruno Haible  <bruno@clisp.org>
49482
49483         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49484         $(FREXPL_LIBM).
49485
49486 2008-11-15  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/netdb.in.h: Activate the definitions also when the system's
49489         <netdb.h> has 'struct addrinfo'.
49490         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49491         EAI_OVERFLOW or AI_NUMERICSERV.
49492         * doc/posix-headers/netdb.texi: Document the problem.
49493
49494 2008-11-15  Bruno Haible  <bruno@clisp.org>
49495
49496         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49497
49498         Make the 'sched' module work on platforms where <sched.h> exists but
49499         is incomplete (such as Haiku).
49500         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49501         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49502         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49503         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49504         HAVE_STRUCT_SCHED_PARAM.
49505         * modules/sched (Depends-on): Add include_next.
49506         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49507         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49508         * doc/posix-headers/sched.texi: Document the issue.
49509
49510 2008-11-13  Jim Meyering  <meyering@redhat.com>
49511
49512         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49513         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49514         test would fail due to the difference in the Report bugs to ...
49515         line.  The expected address is empty, "<>", while the actual
49516         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49517
49518 2008-11-12  Bruno Haible  <bruno@clisp.org>
49519
49520         lstat: don't compile lstat.c on systems lacking lstat
49521         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49522         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49523         Reported by Daniel P. Berrange via Jim Meyering.
49524
49525 2008-11-12  Jim Meyering  <meyering@redhat.com>
49526
49527         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49528
49529 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49530
49531         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49532         instead.
49533
49534 2008-11-12  Bruno Haible  <bruno@clisp.org>
49535
49536         * lib/unicodeio.c: Include unistr.h.
49537         (utf8_wctomb): Remove function.
49538         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49539
49540 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49541
49542         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49543         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49544         <bruno@clisp.org>.
49545         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49546
49547 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49548
49549         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49550         * doc/gnulib.texi: Add section for warnings.
49551
49552 2008-11-11  Bruno Haible  <bruno@clisp.org>
49553
49554         * lib/sockets.h: Add a comment.
49555
49556 2008-11-11  Karl Berry  <karl@gnu.org>
49557
49558         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49559
49560 2008-11-11  Eric Blake  <ebb9@byu.net>
49561
49562         fdl.texi: avoid git symlinks
49563         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49564
49565 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49566
49567         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49568
49569 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49570
49571         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49572         (gl_WARN_ADD): Substitute $2 if literal.
49573
49574 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49575
49576         * m4/warning.m4: Remove.
49577
49578 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49579
49580         * m4/warnings.m4: Almost complete rewrite. :-)
49581
49582 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49583
49584         * modules/warnings: New module.
49585         * m4/warnings.m4: New file.
49586         * MODULES.html.sh: Mention warnings module.
49587         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49588         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49589
49590 2008-11-10  Eric Blake  <ebb9@byu.net>
49591
49592         fdl.texi: make a symlink to the latest version
49593         * doc/standards.texi: Revert today's earlier change.
49594         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49595         * doc/fdl.texi: ...and replace this with a symlink to the newer
49596         fdl-1.3.texi.
49597
49598 2008-11-10  Bruno Haible  <bruno@clisp.org>
49599
49600         * tests/test-select-fd.c (main): Accept the result file name as fourth
49601         argument.
49602         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49603         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49604
49605 2008-11-10  Bruno Haible  <bruno@clisp.org>
49606
49607         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49608         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49609         as autoconf-substituted macros.
49610         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49611         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49612         gl_NETDB_H_DEFAULTS. Set these variables.
49613         * modules/netdb (Makefile.am): Substitute these variables.
49614
49615 2008-11-10  Eric Blake  <ebb9@byu.net>
49616
49617         standards.texi: include correct file for FDL 1.3
49618         * doc/standards.texi (GNU Free Documentation License): Change
49619         include file to pull in FDL 1.3, not 1.2.
49620
49621         fdl.texi: revert accidental change to license
49622         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49623
49624 2008-11-10  Bruno Haible  <bruno@clisp.org>
49625
49626         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49627         cross-compiling guesses also when the native compile gives no result.
49628
49629 2008-11-10  Bruno Haible  <bruno@clisp.org>
49630
49631         * lib/spawni.c (__spawni): Force variable into the stack.
49632
49633 2008-11-10  Bruno Haible  <bruno@clisp.org>
49634
49635         Add support for Haiku.
49636         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49637         glibc and BeOS, but also on Haiku.
49638         * lib/fpurge.c (fpurge): Likewise.
49639         * lib/freadable.c (freadable): Likewise.
49640         * lib/freadahead.c (freadahead): Likewise.
49641         * lib/freading.c (freading): Likewise.
49642         * lib/freadptr.c (freadptr): Likewise.
49643         * lib/freadseek.c (freadptrinc): Likewise.
49644         * lib/fseeko.c (rpl_fseeko): Likewise.
49645         * lib/fseterr.c (fseterr): Likewise.
49646         * lib/fwritable.c (fwritable): Likewise.
49647         * lib/fwriting.c (fwriting): Likewise.
49648         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49649
49650 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49651
49652         * lib/config.charset: Treat Haiku like BeOS.
49653
49654 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49655
49656         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49657         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49658
49659 2008-11-08  Bruno Haible  <bruno@clisp.org>
49660
49661         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49662         AC_CACHE_CHECK.
49663
49664 2008-11-08  Bruno Haible  <bruno@clisp.org>
49665
49666         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49667
49668 2008-11-08  Bruno Haible  <bruno@clisp.org>
49669
49670         * tests/test-select-fd.c: New file.
49671         * tests/test-select-in.sh: New file.
49672         * tests/test-select-out.sh: New file.
49673         * tests/test-select-stdin.c: New file.
49674         * modules/select-tests (Files): Add the new files.
49675         (Depends-on): Add gettimeofday.
49676         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49677         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49678         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49679
49680 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49681             Bruno Haible  <bruno@clisp.org>
49682
49683         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49684
49685 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49686
49687         * build-aux/pmccabe2html: Added support for C++ source files.
49688
49689 2008-11-05  Ben Pfaff  <blp@gnu.org>
49690
49691         Fix lib/close.c build on Windows.
49692         * modules/close (Files): Add lib/w32sock.h.
49693
49694 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49695
49696         Accept Bison's NEWS format.
49697         * build-aux/announce-gen (print_news_deltas): Tweak
49698         $re_prefix.
49699
49700 2008-11-04  Bruno Haible  <bruno@clisp.org>
49701
49702         * modules/random_r (Maintainer): Add glibc.
49703
49704 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49705
49706         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49707         by karl@freefriends.org (Karl Berry).
49708         * doc/alloca.texi: Likewise.
49709         * doc/c-ctype.texi: Likewise.
49710         * doc/c-strcase.texi: Likewise.
49711         * doc/c-strcaseeq.texi: Likewise.
49712         * doc/c-strcasestr.texi: Likewise.
49713         * doc/c-strstr.texi: Likewise.
49714         * doc/c-strtod.texi: Likewise.
49715         * doc/c-strtold.texi: Likewise.
49716         * doc/ctime.texi: Likewise.
49717         * doc/error.texi: Likewise.
49718         * doc/fdl.texi: Likewise.
49719         * doc/gcd.texi: Likewise.
49720         * doc/getdate.texi: Likewise.
49721         * doc/gnulib-intro.texi: Likewise.
49722         * doc/gnulib-tool.texi: Likewise.
49723         * doc/gnulib.texi: Likewise.
49724         * doc/inet_ntoa.texi: Likewise.
49725         * doc/maintain.texi: Likewise.
49726         * doc/make-stds.texi: Likewise.
49727         * doc/quote.texi: Likewise.
49728         * doc/regexprops-generic.texi: Likewise.
49729         * doc/standards.texi: Likewise.
49730         * doc/verify.texi: Likewise.
49731         * doc/visibility.texi: Likewise.
49732         * doc/gnulib.texi (GNU Free Documentation License): Include
49733         fdl-1.3.texi instead of fdl.texi.
49734
49735 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49736
49737         * doc/fdl-1.3.texi: New file, from
49738         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49739         * modules/fdl-1.3: Add.
49740         * MODULES.html.sh: Add fdl-1.3.
49741
49742 2008-11-03  Bruno Haible  <bruno@clisp.org>
49743
49744         Make determination of absolute name of header file work with AIX xlc.
49745         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49746         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49747         preprocessing.
49748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49749         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49750
49751 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49752
49753         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49754         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49755         <ludo@gnu.org>.
49756
49757 2008-11-02  Bruno Haible  <bruno@clisp.org>
49758
49759         Mark 'strpbrk' obsolete.
49760         * modules/strpbrk (Status, Notice): New sections.
49761         * modules/strtok_r (Depends-on): Add strpbrk.
49762
49763 2008-11-02  Bruno Haible  <bruno@clisp.org>
49764
49765         Mark 'strdup' obsolete.
49766         * modules/strdup (Status, Notice): New sections.
49767         * modules/findprog (Depends-on): Add strdup.
49768         * modules/getaddrinfo (Depends-on): Likewise.
49769         * modules/localename (Depends-on): Likewise.
49770         * modules/relocatable-lib (Depends-on): Likewise.
49771         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49772         * modules/relocatable-prog (Depends-on): Likewise.
49773         * modules/trim (Depends-on): Likewise.
49774         * modules/unictype/gen-ctype (Depends-on): Likewise.
49775         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49776
49777 2008-11-02  Bruno Haible  <bruno@clisp.org>
49778
49779         Mark 'strcspn' obsolete.
49780         * modules/strcspn (Status, Notice): New sections.
49781
49782 2008-11-02  Bruno Haible  <bruno@clisp.org>
49783
49784         Mark 'rmdir' obsolete.
49785         * modules/rmdir (Status, Notice): New sections.
49786         * modules/clean-temp (Depends-on): Add rmdir.
49787         * modules/openat (Depends-on): Likewise.
49788
49789 2008-11-02  Bruno Haible  <bruno@clisp.org>
49790
49791         Mark 'raise' obsolete.
49792         * modules/raise (Status, Notice): New sections.
49793         (Include): Specify <signal.h>.
49794         * modules/stdio (Depends-on): Add raise.
49795         * modules/write (Depends-on): Likewise.
49796
49797 2008-11-02  Bruno Haible  <bruno@clisp.org>
49798
49799         Mark 'memset' obsolete.
49800         * modules/memset (Status, Notice): New sections.
49801
49802 2008-11-02  Bruno Haible  <bruno@clisp.org>
49803
49804         Mark 'memmove' obsolete.
49805         * modules/memmove (Status, Notice): New sections.
49806         * modules/argp (Depends-on): Add memmove.
49807         * modules/argz (Depends-on): Likewise.
49808         * modules/canonicalize (Depends-on): Likewise.
49809         * modules/canonicalize-lgpl (Depends-on): Likewise.
49810         * modules/fts (Depends-on): Likewise.
49811         * modules/getcwd (Depends-on): Likewise.
49812         * modules/human (Depends-on): Likewise.
49813         * modules/regex (Depends-on): Likewise.
49814         * modules/striconveh (Depends-on): Likewise.
49815         * modules/trim (Depends-on): Likewise.
49816         * modules/unistr/u8-move (Depends-on): Likewise.
49817         * modules/unistr/u16-move (Depends-on): Likewise.
49818         * modules/unistr/u32-move (Depends-on): Likewise.
49819
49820 2008-11-02  Bruno Haible  <bruno@clisp.org>
49821
49822         Mark 'memcpy' obsolete.
49823         * modules/memcpy (Status, Notice): New sections.
49824
49825 2008-11-02  Bruno Haible  <bruno@clisp.org>
49826
49827         Mark 'memcmp' obsolete.
49828         * modules/memcmp (Status, Notice): New sections.
49829         * modules/argmatch (Depends-on): Add memchr.
49830         * modules/backupfile (Depends-on): Likewise.
49831         * modules/c-strcasestr (Depends-on): Likewise.
49832         * modules/crypto/des (Depends-on): Likewise.
49833         * modules/csharpcomp (Depends-on): Likewise.
49834         * modules/fnmatch (Depends-on): Likewise.
49835         * modules/git-merge-changelog (Depends-on): Likewise.
49836         * modules/isnand (Depends-on): Likewise.
49837         * modules/isnand-nolibm (Depends-on): Likewise.
49838         * modules/isnanf (Depends-on): Likewise.
49839         * modules/isnanf-nolibm (Depends-on): Likewise.
49840         * modules/isnanl (Depends-on): Likewise.
49841         * modules/isnanl-nolibm (Depends-on): Likewise.
49842         * modules/mbchar (Depends-on): Likewise.
49843         * modules/memcoll (Depends-on): Likewise.
49844         * modules/quotearg (Depends-on): Likewise.
49845         * modules/regex (Depends-on): Likewise.
49846         * modules/relocatable-prog (Depends-on): Likewise.
49847         * modules/same (Depends-on): Likewise.
49848         * modules/signbit (Depends-on): Likewise.
49849         * modules/strcasestr-simple (Depends-on): Likewise.
49850         * modules/unictype/gen-ctype (Depends-on): Likewise.
49851         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49852         * modules/uniname/uniname (Depends-on): Likewise.
49853         * modules/unistr/u8-cmp (Depends-on): Likewise.
49854
49855 2008-11-02  Bruno Haible  <bruno@clisp.org>
49856
49857         Mark 'memchr' obsolete.
49858         * modules/memchr (Status, Notice): New sections.
49859         * modules/argp (Depends-on): Add memchr.
49860         * modules/base64 (Depends-on): Likewise.
49861         * modules/c-strcasestr (Depends-on): Likewise.
49862         * modules/chdir-long (Depends-on): Likewise.
49863         * modules/fnmatch (Depends-on): Likewise.
49864         * modules/getsubopt (Depends-on): Likewise.
49865         * modules/git-merge-changelog (Depends-on): Likewise.
49866         * modules/glob (Depends-on): Likewise.
49867         * modules/strcasestr-simple (Depends-on): Likewise.
49868         * modules/strnlen (Depends-on): Likewise.
49869
49870 2008-11-02  Bruno Haible  <bruno@clisp.org>
49871
49872         Mark 'atexit' obsolete.
49873         * modules/atexit (Status, Notice): New sections.
49874         * modules/chdir-long (Depends-on): Add atexit.
49875         * modules/wait-process (Depends-on): Likewise.
49876
49877 2008-11-02  Bruno Haible  <bruno@clisp.org>
49878
49879         * gnulib-tool: New option --with-obsolete.
49880         (func_usage): Document it.
49881         (func_modules_transitive_closure): Drop obsolete dependencies if
49882         incobsolete is not true.
49883         (func_import): Read and save the incobsolete variable to the cache.
49884
49885 2008-11-02  Bruno Haible  <bruno@clisp.org>
49886
49887         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49888         * gnulib-tool: New option --extract-status.
49889         (func_usage): Document it.
49890         (sed_extract_prog): Recognize it.
49891         (func_get_status): New function.
49892
49893 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49894
49895         * modules/sockets (License): Change from LGPL to LGPLv2+.
49896
49897 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49898
49899         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49900
49901 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49902
49903         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49904         Mention times and sys_times.
49905         * modules/sys_times, modules/sys_times-tests: New modules.
49906         * modules/times, modules/times-tests: Likewise
49907         * m4/sys_times_h.m4: New file.
49908         * lib/sys_times.in.h: Likewise
49909         * lib/times.c: Likewise.
49910         * tests/test-sys_times.c: Likewise.
49911         * tests/test-times.c: Likewise.
49912         * doc/posix-headers/sys_times.texi: Update.
49913         * doc/posix-functions/times.texi: Update.
49914
49915 2008-10-28  Jim Meyering  <meyering@redhat.com>
49916
49917         * modules/tempname (Depends-on): Add lstat.
49918
49919         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49920
49921 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49922
49923         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49924         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49925         using idiom used elsewhere in gnulib.
49926
49927 2008-10-27  Jim Meyering  <meyering@redhat.com>
49928
49929         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49930
49931 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49932
49933         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49934         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49935         programs.
49936         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49937
49938 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49939
49940         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49941
49942 2008-10-27  Bruno Haible  <bruno@clisp.org>
49943
49944         * tests/test-lstat.c: Include <stdio.h>.
49945
49946 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49947
49948         * modules/lstat-tests: New module.
49949         * tests/test-lstat.c: New file.
49950
49951 2008-10-26  Jim Meyering  <meyering@redhat.com>
49952
49953         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49954
49955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49956             Bruno Haible  <bruno@clisp.org>
49957
49958         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49959         * modules/configmake (Include): Add a note that the include must come
49960         after all system headers.
49961         * lib/javaversion.c: Include configmake.h after all other includes.
49962
49963 2008-10-26  Bruno Haible  <bruno@clisp.org>
49964
49965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49966         HAVE_STRUCT_RANDOM_DATA to 1.
49967         (gl_STDLIB_H): Simplify.
49968
49969 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49970
49971         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49972         substitute HAVE_STRUCT_RANDOM_DATA.
49973         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49974         random_data.
49975         * modules/stdlib (Makefile.am): Substitute
49976         HAVE_STRUCT_RANDOM_DATA.
49977
49978 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49979
49980         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49981         * doc/gnulib-intro.texi (Copyright): Likewise.
49982
49983 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49984
49985         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49986         findings.
49987
49988 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49989             Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/unistd.in.h: Include <winsock2.h>.
49992         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49993         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49994         Provide dummy declarations.
49995         (gethostname): Override.
49996         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49997         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49998         gl_PREREQ_SYS_H_WINSOCK2.
49999         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50000         * doc/posix-functions/gethostname.texi: More details.
50001
50002 2008-10-25  Bruno Haible  <bruno@clisp.org>
50003
50004         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50005         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50006         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50007
50008         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50009         here ...
50010         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50011         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50012         gl_UNISTD_H_DEFAULTS.
50013
50014 2008-10-25  Eric Blake  <ebb9@byu.net>
50015
50016         signbit: avoid spurious compiler failure
50017         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50018         declarations inside function.
50019
50020 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50021             Bruno Haible  <bruno@clisp.org>
50022
50023         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50024         * modules/random_r (Depends-on): Add stdint.
50025
50026 2008-10-24  Bruno Haible  <bruno@clisp.org>
50027
50028         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50029         Eggert.
50030         * modules/strerror (License): Likewise.
50031
50032 2008-10-24  Jim Meyering  <meyering@redhat.com>
50033
50034         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50035         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50036
50037 2008-10-24  Eric Blake  <ebb9@byu.net>
50038
50039         getgroups: fix compilation when getgroups is available
50040         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50041         but with <config.h> override of getgroups disabled.
50042
50043 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50044
50045         * doc/gnulib.texi (Header files): Add note about C++ problems.
50046         Explained by Bruno Haible <bruno@clisp.org>.
50047
50048 2008-10-23  Bruno Haible  <bruno@clisp.org>
50049
50050         Define a dummy SA_NODEFER macro on Interix.
50051         * lib/signal.in.h (SA_NODEFER): Define fallback.
50052         Reported by Aleksey Cheusov <cheusov@tut.by> via
50053         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50054
50055 2008-10-23  Bruno Haible  <bruno@clisp.org>
50056
50057         * modules/freadahead (License): Change to LGPLv2+.
50058         Suggested by Simon Josefsson.
50059
50060 2008-10-23  Jim Meyering  <meyering@redhat.com>
50061
50062         random_r: new module
50063         * modules/random_r: New file.
50064         * m4/random_r.m4: New file.
50065         * lib/random_r.c: New file, from glibc.
50066         * modules/random_r-tests: New file.
50067         * tests/test-random_r.c: New file.
50068         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50069          Declare.
50070         (RAND_MAX): Define.
50071         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50072         * modules/stdlib: Substitute them, too.
50073         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50074         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50075         * doc/glibc-functions/random_r.texi: Likewise.
50076         * doc/glibc-functions/setstate_r.texi: Likewise.
50077         * doc/glibc-functions/srandom_r.texi: Likewise.
50078         * config/srclist.txt: Mention it.
50079
50080 2008-10-23  David Lutterkort  <lutter@redhat.com>
50081
50082         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50083         link requirement
50084
50085 2008-10-23  Jim Meyering  <meyering@redhat.com>
50086
50087         selinux-h: mark parameters of stub functions as intentionally unused
50088         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50089         * lib/se-context.in.h: Likewise.
50090
50091 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50092
50093         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50094
50095 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50096
50097         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50098
50099 2008-10-22  Eric Blake  <ebb9@byu.net>
50100
50101         glthread/thread: avoid compiler warning
50102         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50103         Add unreachable abort to silence compiler.
50104
50105 2008-10-22  Eric Blake  <ebb9@byu.net>
50106
50107         netdb: also supply struct addrinfo for cygwin 1.5.x
50108         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50109         older cygwin.
50110         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50111         cygwin.
50112         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50113
50114 2008-10-22  Bruno Haible  <bruno@clisp.org>
50115
50116         * users.txt: Update entry about pspp.
50117
50118 2008-10-21  Bruno Haible  <bruno@clisp.org>
50119
50120         Simplification.
50121         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50122         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50123
50124         Simplification.
50125         * lib/ioctl.c (ioctl): Don't undefine.
50126         * lib/socket.c (socket): Don't undefine.
50127
50128         Remove unused module indicator macros.
50129         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50130         GNULIB_$1 as a C macro.
50131
50132         * doc/posix-functions/close.texi: Undo last change.
50133         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50134         Windows platforms.
50135
50136 2008-10-21  Bruno Haible  <bruno@clisp.org>
50137
50138         Add gethostname() declaration to <unistd.h>.
50139         * lib/unistd.in.h (gethostname): New declaration.
50140         * lib/gethostname.c: Include <unistd.h>.
50141         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50142         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50144         and HAVE_GETHOSTNAME.
50145         * modules/gethostname (Depends-on): Add unistd.
50146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50147         (Include): Specify <unistd.h>.
50148         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50149         HAVE_GETHOSTNAME.
50150         * tests/test-gethostname.c: Include <unistd.h> first.
50151
50152 2008-10-21  Bruno Haible  <bruno@clisp.org>
50153
50154         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50155         * modules/select-tests (Depends-on): Likewise.
50156         Reported by Simon Josefsson.
50157
50158 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50159
50160         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50161         * lib/accept.c: New file, based on winsock.c.
50162         * lib/bind.c: New file, based on winsock.c.
50163         * lib/connect.c: New file, based on winsock.c.
50164         * lib/getpeername.c: New file, based on winsock.c.
50165         * lib/getsockname.c: New file, based on winsock.c.
50166         * lib/getsockopt.c: New file, based on winsock.c.
50167         * lib/ioctl.c: New file, based on winsock.c.
50168         * lib/listen.c: New file, based on winsock.c.
50169         * lib/recv.c: New file, based on winsock.c.
50170         * lib/recvfrom.c: New file, based on winsock.c.
50171         * lib/send.c: New file, based on winsock.c.
50172         * lib/sendto.c: New file, based on winsock.c.
50173         * lib/setsockopt.c: New file, based on winsock.c.
50174         * lib/shutdown.c: New file, based on winsock.c.
50175         * lib/socket.c: New file, based on winsock.c.
50176         * lib/w32sock.h: New file, based on winsock.c.
50177         * lib/winsock.c: Remove file.
50178         * modules/accept: Likewise.
50179         * modules/bind: Likewise.
50180         * modules/connect: Likewise.
50181         * modules/getpeername: Likewise.
50182         * modules/getsockname: Likewise.
50183         * modules/getsockopt: Likewise.
50184         * modules/ioctl: Likewise.
50185         * modules/listen: Likewise.
50186         * modules/recv: Likewise.
50187         * modules/recvfrom: Likewise.
50188         * modules/send: Likewise.
50189         * modules/sendto: Likewise.
50190         * modules/setsockopt: Likewise.
50191         * modules/shutdown: Likewise.
50192         * modules/socket: Use socket.c instead of winsock.c.
50193         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50194         * doc/posix-functions/accept.texi: Doc fix.
50195         * doc/posix-functions/bind.texi: Doc fix.
50196         * doc/posix-functions/close.texi: Doc fix.
50197         * doc/posix-functions/connect.texi: Doc fix.
50198         * doc/posix-functions/getpeername.texi: Doc fix.
50199         * doc/posix-functions/getsockname.texi: Doc fix.
50200         * doc/posix-functions/getsockopt.texi: Doc fix.
50201         * doc/posix-functions/ioctl.texi: Doc fix.
50202         * doc/posix-functions/listen.texi: Doc fix.
50203         * doc/posix-functions/recv.texi: Doc fix.
50204         * doc/posix-functions/recvfrom.texi: Doc fix.
50205         * doc/posix-functions/send.texi: Doc fix.
50206         * doc/posix-functions/sendto.texi: Doc fix.
50207         * doc/posix-functions/setsockopt.texi: Doc fix.
50208         * doc/posix-functions/shutdown.texi: Doc fix.
50209         * doc/posix-functions/socket.texi: Doc fix.
50210
50211 2008-10-20  Bruno Haible  <bruno@clisp.org>
50212
50213         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50214         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50215         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50216         as an alias for SIGABRT.
50217         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50218         (sigaction): Map it to SIGABRT.
50219         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50220
50221 2008-10-20  Bruno Haible  <bruno@clisp.org>
50222
50223         * lib/fts.c: Don't include lstat.h.
50224         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50225
50226         Move the lstat() declaration to <sys/stat.h>.
50227         * lib/lstat.h: Remove file.
50228         * lib/sys_stat.in.h: Add special invocation convention.
50229         (lstat): New declaration.
50230         * lib/lstat.c (orig_lstat): New function.
50231         (rpl_lstat): Use orig_lstat instead of lstat.
50232         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50233         AC_C_INLINE. Set REPLACE_LSTAT.
50234         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50235         and REPLACE_LSTAT.
50236         * modules/lstat (Files): Remove lib/lstat.h.
50237         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50238         (Include): Specify <sys/stat.h> instead of lstat.h.
50239         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50240         REPLACE_LSTAT.
50241         * NEWS: Mention the change.
50242
50243 2008-10-20  Bruno Haible  <bruno@clisp.org>
50244
50245         * modules/posix_spawn-tests: New file.
50246         * tests/test-posix_spawn3.c: New file.
50247
50248 2008-10-20  Bruno Haible  <bruno@clisp.org>
50249
50250         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50251         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50252         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50253         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50254         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50255
50256 2008-10-20  Bruno Haible  <bruno@clisp.org>
50257
50258         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50259         of posix_spawn on AIX 5.3.
50260
50261 2008-10-20  Bruno Haible  <bruno@clisp.org>
50262
50263         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50264
50265 2008-10-20  Bruno Haible  <bruno@clisp.org>
50266
50267         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50268         of AC_LANG_PROGRAM.
50269
50270 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50271
50272         * lib/netdb.in.h: Don't define GNU specific constants until they
50273         are supported or needed.  Reported by Bruno Haible
50274         <bruno@clisp.org>.
50275
50276 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50277
50278         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50279
50280 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50281
50282         * lib/getaddrinfo.h: Remove file.
50283         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50284         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50285         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50286         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50287         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50288         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50289         * tests/test-getaddrinfo.c: Likewise.
50290         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50291         * NEWS: Mention change.
50292
50293 2008-10-19  Bruno Haible  <bruno@clisp.org>
50294
50295         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50296
50297 2008-10-19  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/wait-process.c: Include simply <sys/wait.h>.
50300         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50301         WIFSTOPPED): Remove fallback definitions.
50302         * modules/wait-process (Depends-on): Add sys_wait.
50303
50304         New module 'sys_wait'.
50305         * modules/sys_wait: New file.
50306         * lib/sys_wait.in.h: New file, partially copied from
50307         lib/wait-process.c.
50308         * m4/sys_wait_h.m4: New file.
50309         * doc/posix-headers/sys_wait.texi: Mention the new module.
50310
50311 2008-10-19  Bruno Haible  <bruno@clisp.org>
50312
50313         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50314
50315 2008-10-19  Bruno Haible  <bruno@clisp.org>
50316
50317         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50318         * lib/wait-process.c (WAIT_T): Remove type.
50319         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50320         (wait_subprocess): Update.
50321
50322 2008-10-19  Bruno Haible  <bruno@clisp.org>
50323
50324         New module 'atoll'.
50325         * modules/atoll: New file.
50326         * lib/stdlib.in.h (atoll): New declaration.
50327         * lib/atoll.c: New file, from glibc with modifications.
50328         * m4/atoll.m4: New file.
50329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50330         HAVE_ATOLL.
50331         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50332         * doc/posix-functions/atoll.texi: Mention the new module.
50333
50334 2008-10-19  Bruno Haible  <bruno@clisp.org>
50335
50336         Add strtoull() declaration to <stdlib.h>.
50337         * lib/stdlib.in.h (strtoull): New declaration.
50338         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50339         Set HAVE_STRTOULL.
50340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50341         HAVE_STRTOULL.
50342         * modules/strtoull (Depends-on): Add stdlib.
50343         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50344         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50345         HAVE_STRTOULL.
50346
50347 2008-10-19  Bruno Haible  <bruno@clisp.org>
50348
50349         Add strtoll() declaration to <stdlib.h>.
50350         * lib/stdlib.in.h (strtoll): New declaration.
50351         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50352         Set HAVE_STRTOLL.
50353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50354         HAVE_STRTOLL.
50355         * modules/strtoll (Depends-on): Add stdlib.
50356         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50357         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50358
50359 2008-10-19  Bruno Haible  <bruno@clisp.org>
50360
50361         * modules/bcopy (Depends-on): Add strings.
50362         (Include): Specify <strings.h>.
50363
50364 2008-10-19  Bruno Haible  <bruno@clisp.org>
50365
50366         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50367
50368 2008-10-19  Bruno Haible  <bruno@clisp.org>
50369
50370         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50371         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50372         mingw.
50373
50374 2008-10-19  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/atanl.c: Don't include isnanl.h.
50377         * lib/cosl.c: Likewise.
50378         * lib/ldexpl.c: Likewise.
50379         * lib/logl.c: Likewise.
50380         * lib/sinl.c: Likewise.
50381         * lib/sqrtl.c: Likewise.
50382         * lib/tanl.c: Likewise.
50383
50384         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50385         * lib/isnanf.h: Remove file.
50386         * lib/isnand.h: Remove file.
50387         * lib/isnanl.h: Remove file.
50388         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50389         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50390         macros.
50391         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50392         HAVE_ISNANF, don't define it as a C macro.
50393         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50394         HAVE_ISNAND, don't define it as a C macro.
50395         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50396         HAVE_ISNANL, don't define it as a C macro.
50397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50398         HAVE_ISNAN[FDL].
50399         * modules/isnanf (Files): Remove lib/isnanf.h.
50400         (Depends-on): Add math.
50401         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50402         (Include): Specify <math.h> instead of isnanf.h.
50403         * modules/isnand (Files): Remove lib/isnand.h.
50404         (Depends-on): Add math.
50405         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50406         (Include): Specify <math.h> instead of isnand.h.
50407         * modules/isnanl (Files): Remove lib/isnanl.h.
50408         (Depends-on): Add math.
50409         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50410         (Include): Specify <math.h> instead of isnanl.h.
50411         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50412         HAVE_ISNAN[FDL].
50413         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50414         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50415         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50416         * NEWS: Mention the change.
50417
50418 2008-10-18  Bruno Haible  <bruno@clisp.org>
50419
50420         Add getusershell(), setusershell(), endusershell() declarations to
50421         <unistd.h>.
50422         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50423         declarations.
50424         * lib/getusershell.c: Include unistd.h.
50425         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50426         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50427         HAVE_GETUSERSHELL.
50428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50429         and HAVE_GETUSERSHELL.
50430         * modules/getusershell (Depends-on): Add unistd, extensions.
50431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50432         (Include): Specify <unistd.h>.
50433         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50434         HAVE_GETUSERSHELL.
50435
50436 2008-10-18  Bruno Haible  <bruno@clisp.org>
50437
50438         Add a getloadavg() declaration to <stdlib.h>.
50439         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50440         getloadavg declaration.
50441         (getloadavg): New declaration.
50442         * lib/getloadavg.c: Include <stdlib.h> first.
50443         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50444         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50445         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50447         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50448         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50449         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50450         (Include): Specify <stdlib.h>.
50451         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50452         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50453
50454 2008-10-18  Bruno Haible  <bruno@clisp.org>
50455
50456         * lib/dirchownmod.c: Don't include lchmod.h.
50457
50458         Move the lchmod() declaration to <sys/stat.h>.
50459         * lib/lchmod.h: Remove file.
50460         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50461         (lchmod): New declaration, moved here from lib/lchown.h.
50462         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50463         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50464         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50465         and HAVE_LCHMOD.
50466         * modules/lchmod (Files): Remove lib/lchmod.h.
50467         (Depends-on): Add sys_stat, extensions.
50468         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50469         (Include): Specify <sys/stat.h> instead of lchmod.h.
50470         * modules/sys_stat (Depends-on): Add link-warning.
50471         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50472         definition of GL_LINK_WARNING.
50473         * NEWS: Mention the change.
50474
50475 2008-10-18  Bruno Haible  <bruno@clisp.org>
50476
50477         * lib/fchdir.c: Don't include dirfd.h.
50478         * lib/fts.c: Likewise.
50479         * lib/getcwd.c: Likewise.
50480         * lib/glob.c: Likewise.
50481
50482         Move the dirfd() declaration to <dirent.h>.
50483         * lib/dirfd.h: Remove file.
50484         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50485         (dirfd): New declaration.
50486         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50487         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50488         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50489         HAVE_DECL_DIRFD.
50490         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50491         HAVE_DECL_DIRFD.
50492         * modules/dirfd (Files): Remove lib/dirfd.h.
50493         (Depends-on): Add dirent, extensions.
50494         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50495         (Include): Specify <dirent.h> instead of dirfd.h.
50496         * modules/dirent (Depends-on): Add link-warning.
50497         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50498         definition of GL_LINK_WARNING.
50499         * NEWS: Mention the change.
50500
50501 2008-10-18  Bruno Haible  <bruno@clisp.org>
50502
50503         Move the euidaccess() declaration to <unistd.h>.
50504         * lib/euidaccess.h: Remove file.
50505         * lib/unistd.in.h (euidaccess): New declaration.
50506         * lib/euidaccess.c: Don't include euidaccess.h.
50507         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50508         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50510         and HAVE_EUIDACCESS.
50511         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50512         (Depends-on): Add unistd.
50513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50514         (Include): Specify <unistd.h> instead of euidaccess.h.
50515         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50516         HAVE_EUIDACCESS.
50517         * NEWS: Mention the change.
50518
50519 2008-10-18  Bruno Haible  <bruno@clisp.org>
50520
50521         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50522
50523         Move the getdomainname() declaration to <unistd.h>.
50524         * lib/getdomainname.h: Remove file.
50525         * lib/unistd.in.h (getdomainname): New declaration.
50526         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50527         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50528         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50529         HAVE_GETDOMAINNAME.
50530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50531         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50532         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50533         (Depends-on): Add unistd, extensions.
50534         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50535         (Includes): Specify <unistd.h> instead of getdomainname.h.
50536         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50537         HAVE_GETDOMAINNAME.
50538         * NEWS: Mention the change.
50539
50540 2008-10-18  Bruno Haible  <bruno@clisp.org>
50541
50542         * modules/dirent: New file.
50543         * m4/dirent_h.m4: New file.
50544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50545         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50546         * modules/fchdir (Files): Remove lib/dirent.in.h.
50547         (Depends-on): Add dirent.
50548         (Makefile.am): Move rules to modules/dirent.
50549         * doc/posix-headers/dirent.texi: Mention the new module.
50550
50551 2008-10-18  Bruno Haible  <bruno@clisp.org>
50552
50553         Avoid -Wunused-parameter warnings in public gnulib header files.
50554         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50555         macro.
50556         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50557
50558 2008-10-18  Bruno Haible  <bruno@clisp.org>
50559
50560         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50561         * doc/glibc-functions/error.texi: Mention the module 'error'.
50562         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50563         * doc/glibc-functions/getdomainname.texi: Mention the module
50564         'getdomainname'.
50565         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50566         * doc/glibc-functions/getpagesize.texi: Mention the module
50567         'getpagesize'.
50568         * doc/glibc-functions/getusershell.texi: Mention the module
50569         'getusershell'.
50570         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50571         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50572         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50573         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50574         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50575         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50576         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50577         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50578         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50579         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50580         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50581         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50582         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50583         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50584
50585 2008-10-17  Bruno Haible  <bruno@clisp.org>
50586
50587         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50588         HP-UX and IRIX, use -0.0L.
50589         * tests/test-ceill.c (minus_zero): Likewise.
50590         * tests/test-floorl.c (minus_zero): Likewise.
50591         * tests/test-frexpl.c (minus_zero): Likewise.
50592         * tests/test-isnan.c (minus_zerol): Likewise.
50593         * tests/test-isnanl.h (minus_zero): Likewise.
50594         * tests/test-ldexpl.c (minus_zero): Likewise.
50595         * tests/test-roundl.c (minus_zero): Likewise.
50596         * tests/test-signbit.c (minus_zerol): Likewise.
50597         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50598         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50599         * tests/test-truncl.c (minus_zero): Likewise.
50600         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50601         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50602         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50603         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50604
50605 2008-10-17  Bruno Haible  <bruno@clisp.org>
50606
50607         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50608         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50609         that it gets activated only for gcc >= 3.0.
50610         * lib/dirent.in.h: Likewise.
50611         * lib/errno.in.h: Likewise.
50612         * lib/fcntl.in.h: Likewise.
50613         * lib/float.in.h: Likewise.
50614         * lib/iconv.in.h: Likewise.
50615         * lib/inttypes.in.h: Likewise.
50616         * lib/locale.in.h: Likewise.
50617         * lib/math.in.h: Likewise.
50618         * lib/netdb.in.h: Likewise.
50619         * lib/netinet_in.in.h: Likewise.
50620         * lib/search.in.h: Likewise.
50621         * lib/signal.in.h: Likewise.
50622         * lib/spawn.in.h: Likewise.
50623         * lib/stdarg.in.h: Likewise.
50624         * lib/stdint.in.h: Likewise.
50625         * lib/stdio.in.h: Likewise.
50626         * lib/stdlib.in.h: Likewise.
50627         * lib/string.in.h: Likewise.
50628         * lib/strings.in.h: Likewise.
50629         * lib/sys_file.in.h: Likewise.
50630         * lib/sys_ioctl.in.h: Likewise.
50631         * lib/sys_select.in.h: Likewise.
50632         * lib/sys_socket.in.h: Likewise.
50633         * lib/sys_stat.in.h: Likewise.
50634         * lib/sys_time.in.h: Likewise.
50635         * lib/sysexits.in.h: Likewise.
50636         * lib/time.in.h: Likewise.
50637         * lib/unistd.in.h: Likewise.
50638         * lib/wchar.in.h: Likewise.
50639         * lib/wctype.in.h: Likewise.
50640         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50641
50642 2008-10-17  Jim Meyering  <meyering@redhat.com>
50643
50644         ignore-value: don't depend on inline module
50645         * modules/ignore-value (Depends-on): Remove 'inline'.
50646         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50647         Suggestion from Bruno Haible.
50648
50649 2008-10-17  Bruno Haible  <bruno@clisp.org>
50650
50651         New implementation of condition variables for Win32.
50652         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50653         (gl_linked_waitqueue_t): New type.
50654         (gl_cond_t): Use it.
50655         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50656         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50657         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50658         (glthread_cond_init_func, glthread_cond_wait_func,
50659         glthread_cond_timedwait_func, glthread_cond_signal_func,
50660         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50661         Reimplemented on the basis of gl_linked_waitqueue_t.
50662         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50663         gl_waitqueue_t.
50664         (gl_rwlock_t): Update.
50665         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50666
50667 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50668
50669         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50670         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50671
50672 2008-10-17  Jim Meyering  <meyering@redhat.com>
50673
50674         ignore-value: new module
50675         * modules/ignore-value: New file.
50676         * lib/ignore-value.h: New file.
50677         * MODULES.html.sh (Compiler warning management): New section,
50678         just for this module.  More to come.
50679
50680 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50681
50682         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50683         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50684         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50685
50686 2008-10-16  Jim Meyering  <meyering@redhat.com>
50687
50688         openat-die.c: avoid 'no previous prototype' warning
50689         * lib/openat-die.c: Include "openat.h".
50690         Reported by Reuben Thomas <rrt@sc3d.org>.
50691
50692 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50693
50694         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50695         * lib/netdb.in.h: Fix typo.
50696         Reported by Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/netdb.in.h: Include sys/socket.h for platforms without
50699         netdb.h, to get structures like hostent on MinGW.
50700         * modules/netdb (Depends-on): Add sys_socket.
50701
50702 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50703
50704         * modules/netdb, modules/netdb-tests: New file.
50705         * m4/netdb_h.m4: New file.
50706         * lib/netdb.in.h: Add, currently just an empty file pending
50707         definitions.
50708         * tests/test-netdb.c: New file.
50709         * doc/posix-headers/netdb.texi: Mention that we replace it if
50710         needed.
50711         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50712         netdb.
50713
50714 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50715
50716         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50717         with code.
50718
50719 2008-10-13  Bruno Haible  <bruno@clisp.org>
50720
50721         * lib/glthread/cond.c (glthread_cond_wait_func,
50722         glthread_cond_timedwait_func): Add a comment.
50723
50724 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50725
50726         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50727         * tests/test-select.c: Likewise,
50728
50729 2008-10-13  Bruno Haible  <bruno@clisp.org>
50730
50731         * lib/glthread/cond.c (glthread_cond_wait_func,
50732         glthread_cond_timedwait_func): Fix variable name.
50733         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50734
50735 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50736
50737         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50738         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50739         struct sockaddr.sa_len.
50740         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50741
50742 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50743
50744         * build-aux/pmccabe2html: Add css and css_url parameters.
50745
50746 2008-10-12  Bruno Haible  <bruno@clisp.org>
50747
50748         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50749         calling aclx_get.
50750         Reported by Rainer Tammer <tammer@tammer.net>.
50751
50752 2008-10-12  Bruno Haible  <bruno@clisp.org>
50753
50754         Use msvcrt aware primitives for creation/termination of Win32 threads.
50755         * lib/glthread/thread.c: Include <process.h>.
50756         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50757         (wrapper_func): Update signature.
50758         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50759
50760 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50761             Bruno Haible  <bruno@clisp.org>
50762
50763         Provide a Win32 implementation of the 'cond' module.
50764         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50765         * lib/glthread/cond.c (glthread_cond_init_func,
50766         glthread_cond_wait_func, glthread_cond_timedwait_func,
50767         glthread_cond_signal_func, glthread_cond_broadcast_func,
50768         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50769         * modules/cond (Dependencies): Add gettimeofday.
50770
50771 2008-10-11  Bruno Haible  <bruno@clisp.org>
50772
50773         Make sleep work on older versions of mingw.
50774         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50775         only whether it exists.
50776         * doc/posix-functions/sleep.texi: Mention the problem with older
50777         versions of mingw.
50778
50779 2008-10-11  Bruno Haible  <bruno@clisp.org>
50780
50781         New module 'shutdown'.
50782         * modules/shutdown: New file.
50783         * lib/sys_socket.in.h (shutdown): New declaration.
50784         * lib/winsock.c (shutdown): New function.
50785         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50786         GNULIB_SHUTDOWN.
50787         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50788         * doc/posix-functions/shutdown.texi: Document the new module.
50789
50790 2008-10-11  Jim Meyering  <meyering@redhat.com>
50791
50792         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50793
50794 2008-10-11  Bruno Haible  <bruno@clisp.org>
50795
50796         New module 'fclose'.
50797         * modules/fclose: New file.
50798         * lib/stdio.in.h (fclose): New declaration.
50799         * lib/fclose.c: New file.
50800         * m4/fclose.m4: New file.
50801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50802         REPLACE_FCLOSE.
50803         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50804         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50805         REPLACE_FCLOSE.
50806         * modules/close (Depends-on): fclose.
50807         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50808
50809 2008-10-11  Bruno Haible  <bruno@clisp.org>
50810
50811         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50812         set errno and don't call _close.
50813
50814 2008-10-10  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50817         ACL, not afterwards. Fixes test failure on Cygwin.
50818
50819 2008-10-09  Ben Pfaff  <blp@gnu.org>
50820
50821         * build-aux/announce-gen: Fix gnulib version related part of usage
50822         message.  Die with a useful error message if no tarballs are
50823         found.
50824
50825 2008-10-10  Jim Meyering  <meyering@redhat.com>
50826
50827         bootstrap: use git's --depth=N option only if it's supported
50828         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50829         recognize the --depth option.  Reported by Pádraig Brady.
50830
50831 2008-10-09  Bruno Haible  <bruno@clisp.org>
50832
50833         New module 'ioctl'.
50834         * modules/ioctl: New file.
50835         * lib/sys_socket.in.h (ioctl): Remove declaration.
50836         * lib/winsock.c: Include <sys/ioctl.h>.
50837         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50838         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50839         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50840         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50841         * doc/posix-functions/ioctl.texi: Mention the new module.
50842
50843 2008-10-09  Bruno Haible  <bruno@clisp.org>
50844
50845         New module 'sys_ioctl'.
50846         * lib/sys_ioctl.in.h: New file.
50847         * m4/sys_ioctl_h.m4: New file.
50848         * modules/sys_ioctl: New file.
50849         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50850
50851 2008-10-09  Bruno Haible  <bruno@clisp.org>
50852
50853         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50854         * lib/winsock.c: Include <stdarg.h>.
50855         (rpl_ioctl): Change to second argument 'int' and then varargs.
50856
50857 2008-10-09  Bruno Haible  <bruno@clisp.org>
50858
50859         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50860         when the sys_socket module is present and the system has <winsock2.h>.
50861
50862 2008-10-09  Bruno Haible  <bruno@clisp.org>
50863
50864         * doc/posix-functions/close.texi: Mention module 'close' instead of
50865         module 'sys_socket'.
50866
50867 2008-10-09  Bruno Haible  <bruno@clisp.org>
50868
50869         * doc/glibc-headers/sys_ioctl.texi: New file.
50870         * doc/gnulib.texi: Include it.
50871
50872 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50873             Bruno Haible  <bruno@clisp.org>
50874
50875         Combine the two replacements of 'close'.
50876         * lib/sys_socket.in.h (close): Define to a reminder to include
50877         <unistd.h>.
50878         (_gl_close_fd_maybe_socket): New declaration.
50879         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50880         * lib/winsock.c (close): Remove undefinition.
50881         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50882         needed for the gnulib module 'close'.
50883         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50884         define to an error symbol or to a warning, if suitable.
50885         * lib/close.c: Include <sys/socket.h>.
50886         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50887         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50888         UNISTD_H_HAVE_WINSOCK2_H.
50889         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50891         UNISTD_H_HAVE_WINSOCK2_H.
50892         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50893         (configure.ac): Set a module indicator.
50894         (Makefile.am): Substitute GNULIB_CLOSE.
50895         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50896         * modules/poll-tests (Depends-on): Add close.
50897         * modules/select-tests (Depends-on): Likewise.
50898
50899 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50900             Bruno Haible  <bruno@clisp.org>
50901
50902         New module 'close'.
50903         * modules/close: New file.
50904         * lib/unistd.in.h (close): Move declaration out of the
50905         FCHDIR_REPLACEMENT scope.
50906         (_gl_unregister_fd): New declaration.
50907         * lib/close.c: New file.
50908         * lib/fchdir.c (rpl_close): Remove function.
50909         * m4/close.m4: New file.
50910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50911         close.
50912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50913         REPLACE_CLOSE.
50914         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50915         REPLACE_CLOSE.
50916         * modules/fchdir (Depends-on): Add close.
50917
50918 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50919             Bruno Haible  <bruno@clisp.org>
50920
50921         * lib/fcntl.in.h (open): Simplify conditionals.
50922         (_gl_register_fd): New declaration.
50923         * lib/fchdir.c (rpl_open): Remove function.
50924         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50925         also.
50926         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50928         open.
50929
50930 2008-10-09  Jim Meyering  <meyering@redhat.com>
50931
50932         GNUmakefile: use the more name-space-friendly "_version"
50933         * top/GNUmakefile (_dummy): Update.
50934         (_version): Rename from "version".
50935
50936 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50937             Bruno Haible  <bruno@clisp.org>
50938
50939         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50940         rpl_close.
50941         (_gl_register_fd): New function, extracted from rpl_open.
50942         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50943         (rpl_open, rpl_opendir): Use _gl_register_fd.
50944
50945 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50946
50947         Fix organization of 'open' replacement.
50948         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50949         (gl_FUNC_OPEN): Use it.
50950         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50951
50952 2008-10-08  Bruno Haible  <bruno@clisp.org>
50953
50954         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50955
50956 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50957
50958         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50959         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50960         listen).
50961
50962 2008-10-08  Eric Blake  <ebb9@byu.net>
50963
50964         GNUmakefile: add 'make version' target
50965         * top/GNUmakefile (_curr-ver): Split version update rules...
50966         (version): ...into a target.
50967
50968 2008-10-07  Bruno Haible  <bruno@clisp.org>
50969
50970         Use a more portable replacement expression for -0.0L.
50971         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50972         instead of -0.0L. Fix m4 quotation.
50973
50974         * tests/test-signbit.c: Include <float.h>.
50975         (minus_zero): New variable.
50976         (test_signbitl): Use minus_zero instead of -zero.
50977         * modules/signbit-tests (Depends-on): Add float.
50978
50979         * tests/test-ceill.c: Include <float.h>.
50980         (zero): Remove variable.
50981         (minus_zero): New variable.
50982         (main): Use minus_zero instead of -zero.
50983         * modules/ceill-tests (Depends-on): Add float.
50984
50985         * tests/test-floorl.c: Include <float.h>.
50986         (zero): Remove variable.
50987         (minus_zero): New variable.
50988         (main): Use minus_zero instead of -zero.
50989         * modules/floorl-tests (Depends-on): Add float.
50990
50991         * tests/test-roundl.c: Include <float.h>.
50992         (zero): Remove variable.
50993         (minus_zero): New variable.
50994         (main): Use minus_zero instead of -zero.
50995         * modules/roundl-tests (Depends-on): Add float.
50996
50997         * tests/test-truncl.c: Include <float.h>.
50998         (zero): Remove variable.
50999         (minus_zero): New variable.
51000         (main): Use minus_zero instead of -zero.
51001         * modules/truncl-tests (Depends-on): Add float.
51002
51003         * tests/test-frexpl.c (zero): Remove variable.
51004         (minus_zero): New variable.
51005         (main): Use minus_zero instead of -zero.
51006         * modules/frexpl-tests (Depends-on): Add float.
51007
51008         * tests/test-isnan.c (zerol): Remove variable.
51009         (minus_zerol): New variable.
51010         (test_long_double): Use minus_zerol instead of -zerol.
51011         * modules/isnan-tests (Depends-on): Add float.
51012
51013         * tests/test-isnanl.h (zero): Remove variable.
51014         (minus_zero): New variable.
51015         (main): Use minus_zero instead of -zero.
51016         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51017         * modules/isnanl-tests (Depends-on): Add float.
51018
51019         * tests/test-ldexpl.c (zero): Remove variable.
51020         (minus_zero): New variable.
51021         (main): Use minus_zero instead of -zero.
51022         * modules/ldexpl-tests (Depends-on): Add float.
51023
51024         * tests/test-snprintf-posix.h (zerol): Remove variable.
51025         (minus_zerol): New variable.
51026         (test_function): Use minus_zerol instead of -zerol.
51027         * modules/snprintf-posix-tests (Depends-on): Add float.
51028         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51029
51030         * tests/test-sprintf-posix.h (zerol): Remove variable.
51031         (minus_zerol): New variable.
51032         (test_function): Use minus_zerol instead of -zerol.
51033         * modules/sprintf-posix-tests (Depends-on): Add float.
51034         * modules/vsprintf-posix-tests (Depends-on): Add float.
51035
51036         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51037         (minus_zerol): New variable.
51038         (test_function): Use minus_zerol instead of -zerol.
51039         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51040
51041         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51042         (minus_zerol): New variable.
51043         (test_function): Use minus_zerol instead of -zerol.
51044         * modules/vasprintf-posix-tests (Depends-on): Add float.
51045
51046 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51047
51048         * MODULES.html.sh (Support for building documentation): Mention
51049         pmccabe2html.  Sort entries.
51050
51051         Add pmccabe2html module, from gnupdf.
51052         * build-aux/pmccabe.css: New file.
51053         * build-aux/pmccabe2html: New file.
51054         * m4/pmccabe2html.m4: New file.
51055         * modules/pmccabe2html: New file.
51056
51057 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51058
51059         flock: new module
51060         * MODULES.html.sh: Add to list of modules.
51061         * lib/flock.c: flock implementation for Windows and Unix systems
51062         which have fcntl.
51063         * doc/glibc-functions/flock.texi: Update documentation.
51064         * lib/sys_file.in.h: <sys/file.h> header file.
51065         * m4/flock.m4: M4 macros.
51066         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51067         * modules/flock: flock module.
51068         * modules/flock-tests: flock tests module.
51069         * modules/sys_file: sys/file.h module.
51070         * tests/test-flock.c: test suite for flock.
51071
51072 2008-10-06  Jim Meyering  <meyering@redhat.com>
51073
51074         bootstrap: check for LT_INIT more portably still ;-)
51075         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51076         Spotted by Bruno Haible.
51077
51078 2008-10-06  Eric Blake  <ebb9@byu.net>
51079
51080         test-signbit: avoid tripping Irix cc bug on -0.0L
51081         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51082         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51083         entire testsuite consistent and avoids an Irix 6.2 bug.
51084
51085 2008-10-05  Bruno Haible  <bruno@clisp.org>
51086             Jim Meyering  <jim@meyering.net>
51087
51088         Add an option for ignoring EPIPE during close_stdout.
51089         * lib/closeout.h: Include <stdbool.h>.
51090         (close_stdout_set_ignore_EPIPE): New declaration.
51091         * lib/closeout.c: Include <stdbool.h>.
51092         (ignore_EPIPE): New variable.
51093         (close_stdout_set_ignore_EPIPE): New function.
51094         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51095         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51096         failure.
51097         * modules/closeout (Depends-on): Add stdbool.
51098
51099 2008-10-05  Bruno Haible  <bruno@clisp.org>
51100
51101         * modules/accept: New file.
51102         * modules/bind: New file.
51103         * modules/connect: New file.
51104         * modules/getpeername: New file.
51105         * modules/getsockname: New file.
51106         * modules/getsockopt: New file.
51107         * modules/listen: New file.
51108         * modules/recv: New file.
51109         * modules/recvfrom: New file.
51110         * modules/send: New file.
51111         * modules/sendto: New file.
51112         * modules/setsockopt: New file.
51113         * modules/socket: New file.
51114         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51115         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51116         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51117         the particular module is requested. Add a link warning when the
51118         particular module is not requested.
51119         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51120         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51121         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51122         the particular module is requested.
51123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51124         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51125         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51126         * modules/sys_socket (Depends-on): Add link-warning.
51127         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51128         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51129         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51130         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51131         GL_LINK_WARNING.
51132         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51133         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51134         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51135         * doc/posix-functions/getpeername.texi: Mention the new module
51136         'getpeername'.
51137         * doc/posix-functions/getsockname.texi: Mention the new module
51138         'getsockname'.
51139         * doc/posix-functions/getsockopt.texi: Mention the new module
51140         'getsockopt'.
51141         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51142         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51143         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51144         * doc/posix-functions/send.texi: Mention the new module 'send'.
51145         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51146         * doc/posix-functions/setsockopt.texi: Mention the new module
51147         'setsockopt'.
51148         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51149         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51150         listen, connect, accept.
51151         * modules/select-tests (Depends-on): Likewise.
51152
51153 2008-10-05  Bruno Haible  <bruno@clisp.org>
51154
51155         * lib/winsock.c (strerror): Remove unused #undef.
51156         (rpl_close): Remove unused local variable.
51157
51158         * modules/sys_socket (Depends-on); Add errno.
51159
51160 2008-10-05  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51163         (select): Add a link warning when the 'select' module is not used.
51164         * modules/sys_select (Depends-on): Add link-warning.
51165         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51166         Suggested by Paolo Bonzini.
51167
51168 2008-10-05  Jim Meyering  <meyering@redhat.com>
51169
51170         bootstrap: check for LT_INIT more portably
51171         * build-aux/bootstrap: Avoid using grep -E, since it's not
51172         portable enough.  Suggestion from Bruno Haible.
51173
51174 2008-10-05  Bruno Haible  <bruno@clisp.org>
51175
51176         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51177         as being fixed by gnulib.
51178
51179 2008-10-05  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/select-tests: New file, mostly copied from
51182         modules/sys_select-tests.
51183         * tests/test-select.c: New file, mostly copied from
51184         tests/test-sys_select.c.
51185         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51186         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51187         (Makefile.am): Remove test_sys_select_LDADD.
51188
51189         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51190         to an undefined symbol, for an error message.
51191         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51192         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51193         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51194         winsock-select.c here.
51195         * modules/sys_select (Files): Remove lib/winsock-select.c.
51196         (Depends-on): Remove alloca.
51197         (Makefile.am): Substitute GNULIB_SELECT.
51198         * modules/select: New file.
51199         * doc/posix-functions/select.texi: Update.
51200
51201 2008-10-05  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51204         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51205         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51206         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51207         getdtablesize.
51208         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51209         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51210
51211 2008-10-05  Bruno Haible  <bruno@clisp.org>
51212
51213         * modules/getdtablesize-tests: New file.
51214         * tests/test-getdtablesize.c: New file.
51215
51216         New module 'getdtablesize'.
51217         * lib/unistd.in.h (getdtablesize): New declaration.
51218         * lib/getdtablesize.c: New file.
51219         * m4/getdtablesize.m4: New file.
51220         * modules/getdtablesize: New file.
51221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51222         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51223         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51224         HAVE_GETDTABLESIZE.
51225         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51226
51227 2008-10-05  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/sched (Makefile.am): Fix typo.
51230         Reported by Simon Josefsson.
51231
51232 2008-10-05  Jim Meyering  <meyering@redhat.com>
51233
51234         bootstrap: check for LT_INIT, too
51235         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51236         are deprecated.  Suggestion from Ralf Wildenhues.
51237
51238 2008-10-05  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51241         overriding them by ours.
51242         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51243
51244 2008-10-05  Jim Meyering  <meyering@redhat.com>
51245
51246         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51247         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51248         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51249
51250 2008-10-04  Bruno Haible  <bruno@clisp.org>
51251
51252         * modules/dup2 (License): Change to LGPLv2+.
51253         * modules/sleep (License): Likewise.
51254         * modules/perror (License): Likewise.
51255         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51256         Blake.
51257         * modules/signal (License): Likewise.
51258         * modules/sigprocmask (License): Likewise.
51259         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51260         Meyering.
51261
51262 2008-10-04  Bruno Haible  <bruno@clisp.org>
51263
51264         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51265         Reported by Rainer Tammer <tammer@tammer.net>.
51266
51267 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51268             Bruno Haible  <bruno@clisp.org>
51269
51270         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51271         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51272         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51273
51274 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51275
51276         filevercmp: new module
51277         * lib/filevercmp.h: New function filevercmp comparing version strings.
51278         * lib/filevercmp.c: Implementation of filevercmp function.
51279         * modules/filevercmp: Module metadata.
51280         * tests/test-filevercmp.c: Unit test for new module.
51281         * modules/filevercmp-tests: Unit test metadata.
51282         * MODULES.html.sh: Add filevercmp module.
51283
51284 2008-10-03  Bruno Haible  <bruno@clisp.org>
51285
51286         * lib/c-ctype.h: Add comment.
51287         Reported by Jim Meyering.
51288
51289 2008-10-02  Bruno Haible  <bruno@clisp.org>
51290
51291         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51292
51293 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51294
51295         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51296         name of bootstrap.conf accordingly.
51297
51298 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51299
51300         * build-aux/bootstrap: Install git-merge-changelog configuration
51301         items into .gitconfig if needed.
51302
51303 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51304
51305         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51306         git repository, and initialize/update it accordingly.
51307
51308 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51309
51310         * modules/fsync-tests: New file.
51311         * tests/test-fsync.c: New file.
51312
51313         New module 'fsync'.
51314         * lib/fsync.c: New file.
51315         * m4/fsync.m4: New file.
51316         * modules/fsync: New file.
51317         * lib/unistd.in.h (fsync): New declaration.
51318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51319         GNULIB_FSYNC and HAVE_FSYNC.
51320         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51321         * MODULES.html.sh (posix_functions): Add fsync.
51322         * doc/posix-functions/fsync.texi: Mention the new module.
51323
51324 2008-10-02  Jim Meyering  <meyering@redhat.com>
51325
51326         fts.c: sync with similar code from coreutils' remove.c
51327         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51328         Guard also with "#if defined __linux__", since for now at least,
51329         this code is Linux-kernel-specific.
51330
51331 2008-10-02  Jim Meyering  <meyering@redhat.com>
51332
51333         fts: bug fixes
51334         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51335         Include <sys/vfs.h>, not <sys/statfs.h>.
51336
51337         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51338         Include <sys/vfs.h>, not <sys/statfs.h>.
51339
51340 2008-10-01  Bruno Haible  <bruno@clisp.org>
51341
51342         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51343         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51344         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51345         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51346         * doc/posix-functions/posix_spawnp.texi: Likewise.
51347         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51348         whether posix_spawn actually works.
51349         * m4/pipe.m4 (gl_PIPE): Likewise.
51350         * modules/execute (Files): Add m4/posix_spawn.m4.
51351         * modules/pipe (Files): Add m4/posix_spawn.m4.
51352         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51353
51354 2008-10-01  Jim Meyering  <meyering@redhat.com>
51355
51356         remove trailing spaces
51357         * NEWS: Likewise.
51358         * lib/poll.c (poll): Likewise.
51359         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51360         * lib/winsock.c (rpl_close): Likewise.
51361         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51362         * modules/yield: Likewise.
51363         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51364         * tests/test-sys_select.c (connect_to_socket): Likewise.
51365
51366         fts.c: adjust a new interface to be more generally useful
51367         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51368         (fts_build): Adjust caller.
51369
51370 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51371
51372         * modules/cond-tests: New file.
51373         * tests/test-cond.c: New file.
51374
51375 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51376             Bruno Haible  <bruno@clisp.org>
51377
51378         * modules/cond (Dependencies): Add errno, time.
51379         * lib/glthread/cond.h: Include <time.h>.
51380         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51381         across platforms.
51382
51383 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51384             Bruno Haible  <bruno@clisp.org>
51385
51386         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51387
51388 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51389             Bruno Haible  <bruno@clisp.org>
51390
51391         * modules/tls-tests (Depends-on): Add thread, yield.
51392         (configure.ac): Remove all checks.
51393         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51394         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51395         gl_thread_self): Remove definitions. Include glthread/thread.h and
51396         glthread/yield.h instead.
51397         (test_tls): Pass an additional NULL argument to gl_thread_join.
51398
51399 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51400             Bruno Haible  <bruno@clisp.org>
51401
51402         * modules/lock-tests (Depends-on): Add thread, yield.
51403         (configure.ac): Remove all checks.
51404         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51405         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51406         gl_thread_self): Remove definitions. Include glthread/thread.h and
51407         glthread/yield.h instead.
51408         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51409         additional NULL argument to gl_thread_join.
51410
51411 2008-09-30  Bruno Haible  <bruno@clisp.org>
51412
51413         Fix the Win32 implementation of the 'thread' module.
51414         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51415         pointer type.
51416         (gl_thread_self): Invoke gl_thread_self_func.
51417         (gl_thread_self_func): New declaration.
51418         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51419         (do_init_self_key, init_self_key): New functions.
51420         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51421         Remove some fields.
51422         (running_threads, running_lock): Remove variables.
51423         (get_current_thread_handle): New function.
51424         (gl_thread_self_func, wrapper_func, glthread_create_func,
51425         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51426         simplified.
51427
51428 2008-09-30  Bruno Haible  <bruno@clisp.org>
51429
51430         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51431         files.
51432
51433 2008-09-30  Jim Meyering  <meyering@redhat.com>
51434
51435         fts.m4: correct the test for statfs.f_type
51436         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51437         when checking for statfs.f_type.
51438
51439 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51440
51441         tests: avoid some compiler warnings
51442         * tests/test-memchr.c (main): Pass NULL indirectly.
51443         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51444
51445 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51446
51447         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51448         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51449         exactly specified dayshifts.
51450         (dayshift): New rule.
51451         (rel): Add dayshift.
51452         (relative_time_table) [tomorrow, yesterday, today, now]:
51453         Use tDAY_SHIFT in place of tDAY_UNIT.
51454         * tests/test-getdate.c: Add tests for now-disallowed countable
51455         dayshifts, e.g., "4 yesterday ago".
51456
51457 2008-09-29  Bruno Haible  <bruno@clisp.org>
51458
51459         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51460         * tests/test-posix_spawn1.in.sh: Renamed from
51461         tests/test-posix_spawn.in.sh.
51462         * tests/test-posix_spawn2.c: New file.
51463         * tests/test-posix_spawn2.in.sh: New file.
51464         * modules/posix_spawnp-tests (Files): Update.
51465         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51466
51467 2008-09-29  Bruno Haible  <bruno@clisp.org>
51468
51469         Propagate effects of putenv/setenv/unsetenv to child processes.
51470         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51471         * lib/pipe.c (create_pipe): Likewise.
51472
51473 2008-09-29  Bruno Haible  <bruno@clisp.org>
51474
51475         Enable use of shell scripts as executables in mingw.
51476         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51477         run the program as a shell script.
51478         * lib/pipe.c (create_pipe): Likewise.
51479         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51480         resulting array.
51481
51482 2008-09-29  Eric Blake  <ebb9@byu.net>
51483
51484         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51485
51486 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51487
51488         * doc/posix-functions/accept.texi: Update mingw problems.
51489         * doc/posix-functions/bind.texi: Update mingw problems.
51490         * doc/posix-functions/close.texi: Update mingw problems.
51491         * doc/posix-functions/connect.texi: Update mingw problems.
51492         * doc/posix-functions/getpeername.texi: Update mingw problems.
51493         * doc/posix-functions/getsockname.texi: Update mingw problems.
51494         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51495         * doc/posix-functions/ioctl.texi: Update mingw problems.
51496         * doc/posix-functions/listen.texi: Update mingw problems.
51497         * doc/posix-functions/recv.texi: Update mingw problems.
51498         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51499         * doc/posix-functions/select.texi: Update mingw problems.
51500         * doc/posix-functions/send.texi: Update mingw problems.
51501         * doc/posix-functions/sendto.texi: Update mingw problems.
51502         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51503         * doc/posix-functions/socket.texi: Update mingw problems.
51504
51505 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51506             Bruno Haible  <bruno@clisp.org>
51507
51508         * lib/sys_select.in.h: Include sys/time.h.
51509         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51510         * modules/sys_select: Depend on sys_time.
51511         * tests/test-sys_select.c: Test that sys/select.h defines struct
51512         timeval fully.
51513
51514 2008-09-29  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51517         * lib/sys_select.in.h: Likewise.
51518
51519 2008-09-29  Bruno Haible  <bruno@clisp.org>
51520
51521         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51522
51523 2008-09-29  Bruno Haible  <bruno@clisp.org>
51524
51525         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51526         Set LIBSOCKET instead of augmenting LIBS.
51527         * modules/sockets (Link): New section.
51528         * modules/sockets-tests (test_sockets_LDADD): New variable.
51529         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51530         * modules/poll-tests (test_poll_LDADD): New variable.
51531         * NEWS: Document the change.
51532
51533 2008-09-29  Bruno Haible  <bruno@clisp.org>
51534
51535         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51536         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51537         ARPA_INET_H directly.
51538         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51539
51540 2008-09-28  Bruno Haible  <bruno@clisp.org>
51541
51542         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51543         from gl_HEADER_SYS_SOCKET.
51544         (gl_HEADER_SYS_SOCKET): Invoke it.
51545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51546
51547 2008-09-28  Bruno Haible  <bruno@clisp.org>
51548
51549         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51550         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51551         Needed on OSF/1 4.0.
51552
51553 2008-09-28  Bruno Haible  <bruno@clisp.org>
51554
51555         Override open more carefully.
51556         * lib/open.c (orig_open): New function.
51557         (rpl_open): Use orig_open instead of open.
51558         * lib/fcntl.in.h: Add special invocation convention.
51559         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51560         (gl_FUNC_OPEN): Invoke it.
51561
51562         Override freopen more carefully.
51563         * lib/freopen.c (orig_freopen): New function.
51564         (rpl_freopen): Use orig_freopen instead of freopen.
51565         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51566         (gl_FUNC_FREOPEN): Invoke it.
51567
51568         Override fopen more carefully.
51569         * lib/fopen.c (orig_fopen): New function.
51570         (rpl_fopen): Use orig_fopen instead of fopen.
51571         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51572         (gl_FUNC_FOPEN): Invoke it.
51573         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51574
51575 2008-09-28  Bruno Haible  <bruno@clisp.org>
51576
51577         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51578         SIGPIPE.
51579
51580 2008-09-28  Bruno Haible  <bruno@clisp.org>
51581
51582         * tests/test-sigaction.c (handler, main): Disable the check whether
51583         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51584         glibc systems with LinuxThreads.
51585
51586 2008-09-28  Bruno Haible  <bruno@clisp.org>
51587
51588         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51589
51590         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51591         with AIX xlc.
51592         * lib/fcntl.in.h (open): Likewise.
51593         Reported by Rainer Tammer <tammer@tammer.net>.
51594
51595 2008-09-28  Bruno Haible  <bruno@clisp.org>
51596
51597         * modules/posix_spawnp-tests: New file.
51598         * tests/test-posix_spawn.c: New file.
51599         * tests/test-posix_spawn.in.sh: New file.
51600
51601         New module 'posix_spawnp'.
51602         * modules/posix_spawnp: New file.
51603         * lib/spawnp.c: New file, from GNU libc with modifications.
51604         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51605
51606         New module 'posix_spawn'.
51607         * modules/posix_spawn: New file.
51608         * lib/spawn.c: New file, from GNU libc with modifications.
51609         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51610
51611         New module 'posix_spawnattr_destroy'.
51612         * modules/posix_spawnattr_destroy: New file.
51613         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51614         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51615         module.
51616
51617         New module 'posix_spawnattr_setsigmask'.
51618         * modules/posix_spawnattr_setsigmask: New file.
51619         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51620         modifications.
51621         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51622         new module.
51623
51624         New module 'posix_spawnattr_getsigmask'.
51625         * modules/posix_spawnattr_getsigmask: New file.
51626         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51627         modifications.
51628         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51629         new module.
51630
51631         New module 'posix_spawnattr_setsigdefault'.
51632         * modules/posix_spawnattr_setsigdefault: New file.
51633         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51634         modifications.
51635         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51636         new module.
51637
51638         New module 'posix_spawnattr_getsigdefault'.
51639         * modules/posix_spawnattr_getsigdefault: New file.
51640         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51641         modifications.
51642         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51643         new module.
51644
51645         New module 'posix_spawnattr_setschedpolicy'.
51646         * modules/posix_spawnattr_setschedpolicy: New file.
51647         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51648         modifications.
51649         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51650         new module.
51651
51652         New module 'posix_spawnattr_getschedpolicy'.
51653         * modules/posix_spawnattr_getschedpolicy: New file.
51654         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51655         modifications.
51656         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51657         new module.
51658
51659         New module 'posix_spawnattr_setschedparam'.
51660         * modules/posix_spawnattr_setschedparam: New file.
51661         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51662         modifications.
51663         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51664         new module.
51665
51666         New module 'posix_spawnattr_getschedparam'.
51667         * modules/posix_spawnattr_getschedparam: New file.
51668         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51669         modifications.
51670         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51671         new module.
51672
51673         New module 'posix_spawnattr_setpgroup'.
51674         * modules/posix_spawnattr_setpgroup: New file.
51675         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51676         modifications.
51677         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51678         module.
51679
51680         New module 'posix_spawnattr_getpgroup'.
51681         * modules/posix_spawnattr_getpgroup: New file.
51682         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51683         modifications.
51684         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51685         module.
51686
51687         New module 'posix_spawnattr_setflags'.
51688         * modules/posix_spawnattr_setflags: New file.
51689         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51690         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51691         module.
51692
51693         New module 'posix_spawnattr_getflags'.
51694         * modules/posix_spawnattr_getflags: New file.
51695         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51696         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51697         module.
51698
51699         New module 'posix_spawnattr_init'.
51700         * modules/posix_spawnattr_init: New file.
51701         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51702         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51703         module.
51704
51705         New module 'posix_spawn_file_actions_destroy'.
51706         * modules/posix_spawn_file_actions_destroy: New file.
51707         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51708         modifications.
51709         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51710         the new module.
51711
51712         New module 'posix_spawn_file_actions_addopen'.
51713         * modules/posix_spawn_file_actions_addopen: New file.
51714         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51715         modifications.
51716         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51717         the new module.
51718
51719         New module 'posix_spawn_file_actions_adddup2'.
51720         * modules/posix_spawn_file_actions_adddup2: New file.
51721         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51722         modifications.
51723         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51724         the new module.
51725
51726         New module 'posix_spawn_file_actions_addclose'.
51727         * modules/posix_spawn_file_actions_addclose: New file.
51728         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51729         modifications.
51730         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51731         the new module.
51732
51733         New module 'posix_spawn_file_actions_init'.
51734         * modules/posix_spawn_file_actions_init: New file.
51735         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51736         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51737         new module.
51738
51739         New module 'posix_spawn-internal'.
51740         * modules/posix_spawn-internal: New file.
51741         * lib/spawn_int.h: New file, from GNU libc with modifications.
51742         * lib/spawni.c: New file, from GNU libc with modifications.
51743         * m4/posix_spawn.m4: New file.
51744
51745         New module 'spawn'.
51746         * modules/spawn: New file.
51747         * lib/spawn.in.h: New file, from GNU libc with modifications.
51748         * m4/spawn_h.m4: New file.
51749         * doc/posix-headers/spawn.texi: Mention the new module.
51750
51751 2008-09-28  Bruno Haible  <bruno@clisp.org>
51752
51753         * modules/sched-tests: New file.
51754         * tests/test-sched.c: New file.
51755
51756         New module 'sched'.
51757         * modules/sched: New file.
51758         * lib/sched.in.h: New file.
51759         * m4/sched_h.m4: New file.
51760         * doc/posix-headers/sched.texi: Mention the new module.
51761
51762 2008-09-27  Eric Blake  <ebb9@byu.net>
51763
51764         Fix previous patch, and tweak references to $0.
51765         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51766         (func_version, func_gnulib_dir): Don't call this program
51767         gnulib-tool.
51768         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51769         with using $0 in function.
51770         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51771         (func_fatal_error): Reuse the name the user invoked us with.
51772
51773 2008-09-27  Bruno Haible  <bruno@clisp.org>
51774
51775         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51776         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51777         (gl_ICONV_H): Not here.
51778         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51779         instead of assigning ICONV_H directly.
51780
51781         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51783         WCHAR_H directly.
51784
51785 2008-09-27  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51788         * modules/arpa_inet (Depends-on): Add link-warning.
51789         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51790         * modules/unistd (Makefile.am): Likewise.
51791
51792 2008-09-26  Bruno Haible  <bruno@clisp.org>
51793
51794         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51795         variables.
51796         (func_version): Essentially copied from gnulib-tool.
51797         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51798         func_readlink): Copied from gnulib-tool.
51799
51800 2008-09-26  Bruno Haible  <bruno@clisp.org>
51801
51802         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51803         invoking git-version-gen.
51804
51805 2008-09-26  Bruno Haible  <bruno@clisp.org>
51806
51807         * posix-modules: Update to directory names changed on 2008-01-19.
51808         Remove commas in output before splitting into words. No more need to
51809         avoid 'ftruncate' since 2007-02-19.
51810
51811 2008-09-26  Bruno Haible  <bruno@clisp.org>
51812
51813         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51814
51815 2008-09-26  Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51818         * modules/fwriteerror (Depends-on): Add errno.
51819
51820 2008-09-26  Bruno Haible  <bruno@clisp.org>
51821
51822         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51823         * tests/test-vc-list-files-cvs.sh: Likewise.
51824
51825 2008-09-26  Bruno Haible  <bruno@clisp.org>
51826
51827         * doc/posix-headers/sys_resource.texi: Reorder items.
51828
51829 2008-09-26  Jim Meyering  <meyering@redhat.com>
51830
51831         fts: tweak inode comparison function
51832         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51833         inode numbers, as documented.
51834
51835         fts: sort dirent entries on inode number before traversing
51836         This avoids a quadratic, seek-related performance penalty when
51837         operating on a directory containing many entries (measurable at 10k;
51838         3.5 hours at 2 million entries with a cold cache) on certain types
51839         of file systems, including ext3 and ext4, but not tmpfs.
51840         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51841         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51842         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51843         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51844         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51845         (fts_build): Set the stat.st_ino member from D_INO.
51846         If it is likely to be useful, sort dirent entries on inode number.
51847
51848         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51849         and the struct statfs.f_type member.
51850         * modules/fts (Depends-on): Add d-ino.
51851
51852 2008-09-26  Bruno Haible  <bruno@clisp.org>
51853
51854         * modules/sigpipe-die (Depends-on): Add sigpipe.
51855
51856         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51857         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51858         and GNULIB_STDIO_H_SIGPIPE are set.
51859         * lib/stdio-write.c: New file.
51860         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51861         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51862         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51863         REPLACE_STDIO_WRITE_FUNCS.
51864         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51865         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51866         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51867         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51868         * modules/stdio (Files): Add lib/stdio-write.c.
51869         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51870         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51871         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51872         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51873         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51874         REPLACE_FPRINTF_POSIX.
51875         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51876         REPLACE_PRINTF_POSIX.
51877         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51878         REPLACE_VFPRINTF_POSIX.
51879         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51880         REPLACE_VPRINTF_POSIX.
51881         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51882         SIGPIPE issue.
51883         * doc/posix-functions/fputc.texi: Likewise.
51884         * doc/posix-functions/fputs.texi: Likewise.
51885         * doc/posix-functions/fwrite.texi: Likewise.
51886         * doc/posix-functions/printf.texi: Likewise.
51887         * doc/posix-functions/putc.texi: Likewise.
51888         * doc/posix-functions/putchar.texi: Likewise.
51889         * doc/posix-functions/puts.texi: Likewise.
51890         * doc/posix-functions/vfprintf.texi: Likewise.
51891         * doc/posix-functions/vprintf.texi: Likewise.
51892
51893         * modules/safe-write (Depends-on): Add write.
51894
51895         * modules/sigpipe-tests: New file.
51896         * tests/test-sigpipe.c: New file.
51897         * tests/test-sigpipe.sh: New file.
51898
51899         * modules/write: New file.
51900         * lib/unistd.in.h: Include <sys/types.h>.
51901         (write): New declaration.
51902         * lib/write.c: New file.
51903         * m4/write.m4: New file.
51904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51905         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51906         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51907         GNULIB_WRITE, REPLACE_WRITE.
51908         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51909         and the SIGPIPE issue.
51910
51911         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51912         (raise): New declaration.
51913         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51914         (ext_signal): New function.
51915         (rpl_raise): New function.
51916         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51917         GNULIB_SIGNAL_H_SIGPIPE.
51918         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51919         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51920
51921         * modules/sigpipe: New file.
51922         * m4/sigpipe.m4: New file.
51923
51924 2008-09-25  Derek Price  <derek@ximbiot.com>
51925             Bruno Haible  <bruno@clisp.org>
51926
51927         * gnulib-tool (func_import): Report all license incompatibilities, not
51928         just the first one.
51929
51930 2008-09-25  Bruno Haible  <bruno@clisp.org>
51931
51932         * gnulib-tool (func_import): When computing the edits, consider not
51933         only the Makefile.ams that exist but also those that will be generated.
51934
51935 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51936
51937         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51938         fixes gnulib-tool --test warning about duplicate dependency.
51939
51940 2008-09-25  Bruno Haible  <bruno@clisp.org>
51941
51942         * gnulib-tool: Don't ask the user to perform edits in the generated
51943         Makefile.ams.
51944         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51945         apply to the Makefile.am being generated.
51946         (func_emit_tests_Makefile_am): Execute edits that apply to the
51947         Makefile.am being generated.
51948         (func_import): Setup list of Makefile.am edits before emitting the
51949         Makefile.ams, not at the end.
51950         (func_create_testdir): Update.
51951         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51952
51953 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51954
51955         * gnulib-tool (func_import): Store the --tests-base option in the
51956         comment in gnulib-cache.m4.
51957
51958 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51959
51960         * NEWS: Document increased portability that sys_select now provides.
51961
51962         * lib/sys_select.in.h: Install select wrapper.
51963         * lib/sys_socket.in.h: Use more descriptive name when there is no
51964         select wrapper.
51965         * lib/winsock-select.c: New.
51966         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51967         Require gl_HEADER_SYS_SOCKET.
51968         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51969         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51970         * tests/test-sys_select.c: Add functional tests.
51971
51972 2008-09-24  Eric Blake  <ebb9@byu.net>
51973
51974         open, fopen: close fd leak in last patch
51975         * lib/open.c (rpl_open): Close fd before returning error.
51976         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51977         * doc/posix-functions/open.texi (open): Document that Irix also
51978         has the bug.
51979         * doc/posix-functions/fopen.texi (fopen): Likewise.
51980         Reported by Paolo Bonzini.
51981
51982 2008-09-24  Bruno Haible  <bruno@clisp.org>
51983
51984         Ensure that a filename ending in a slash cannot be used to access a
51985         non-directory.
51986         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51987         to check whether it's really a directory.
51988         * lib/fopen.c: Include fcntl.h, unistd.h.
51989         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51990         and fdopen().
51991         * modules/fopen (Depends-on): Add unistd.
51992         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51993         * tests/test-fopen.c (main): Likewise.
51994         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51995         * doc/posix-functions/fopen.texi: Likewise.
51996         Reported by Eric Blake.
51997
51998 2008-09-23  Eric Blake  <ebb9@byu.net>
51999
52000         c-stack: avoid compiler optimizations when provoking overflow
52001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52002         recursion harder to optimize, to ensure a stack overflow occurs.
52003         * tests/test-c-stack.c (recurse): Likewise.
52004         Borrowed from libsigsegv.
52005
52006         c-stack: work around Irix sigaltstack bug
52007         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52008         whether sigaltstack uses wrong end of stack_t (copied in part from
52009         libsigsegv).
52010         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52011         Irix bug, without requiring an over-allocation.
52012         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52013         bug.
52014
52015         fopen: document mingw bug on directories
52016         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52017         not allowing a stream visiting a directory, even though reading
52018         from such a stream is not portable.
52019
52020 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52021
52022         * lib/poll.c: Rewrite.
52023         * modules/poll: Depend on alloca.
52024
52025 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52026
52027         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52028         instead define prototypes for a full set of wrappers.  Ensure
52029         that Cygwin does not use the compatibility code, which is only
52030         for MinGW.
52031         * lib/winsock.c: New.
52032         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52033         * modules/sys_socket: Add lib/winsock.c.
52034
52035         * modules/poll-tests: Add errno and perror.
52036         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52037
52038 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52039
52040         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52041
52042 2008-09-23  Bruno Haible  <bruno@clisp.org>
52043
52044         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52045         * doc/glibc-functions/*: Likewise.
52046
52047 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52048
52049         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52050         success.
52051
52052 2008-09-22  Eric Blake  <ebb9@byu.net>
52053             Bruno Haible  <bruno@clisp.org>
52054
52055         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52056         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52057         supply %A but mishandle pseudo-NaN.
52058         Reported by Simon Josefsson.
52059
52060 2008-09-21  Bruno Haible  <bruno@clisp.org>
52061
52062         * tests/test-lock.c (main): Tweak skip message.
52063         * tests/test-tls.c (main): Likewise.
52064
52065 2008-09-21  Bruno Haible  <bruno@clisp.org>
52066
52067         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52068         whether 'struct sigaction' has sa_sigaction here...
52069         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52070         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52071
52072 2008-09-21  Bruno Haible  <bruno@clisp.org>
52073
52074         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52075         section.
52076         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52077         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52078         the new section.
52079         (Support for obsolete systems lacking POSIX:2001): New section.
52080         (String handling <string.h>): Move strdup to the new section.
52081         Suggested by Simon Josefsson and Paolo Bonzini.
52082
52083 2008-09-21  Bruno Haible  <bruno@clisp.org>
52084
52085         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52086         exponents in %e and %g results on 'long double'. Needed for mingw's
52087         improved *printf functions.
52088         * tests/test-vasprintf-posix.c (test_function): Likewise.
52089         * tests/test-snprintf-posix.h (test_function): Likewise.
52090         * tests/test-sprintf-posix.h (test_function): Likewise.
52091         Reported by Eric Blake.
52092
52093 2008-09-21  Bruno Haible  <bruno@clisp.org>
52094
52095         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52096         * tests/test-sprintf-posix.h (test_function): Likewise.
52097
52098 2008-09-21  Bruno Haible  <bruno@clisp.org>
52099
52100         * modules/getpass (Depends-on): Add strdup-posix.
52101
52102         New module 'strdup-posix'.
52103         * modules/strdup-posix: New file.
52104         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52105         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52107         REPLACE_STRDUP.
52108         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52109         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52111         strdup-posix.
52112
52113         * modules/strdup (Depends-on): Remove malloc-posix.
52114
52115 2008-09-20  Bruno Haible  <bruno@clisp.org>
52116
52117         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52118         Wildenhues.
52119
52120 2008-09-20  Bruno Haible  <bruno@clisp.org>
52121
52122         Ensure that wint_t gets defined on IRIX 5.3.
52123         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52124         * lib/wctype.in.h (wint_t): Likewise.
52125         (__wctype_wint_t): Remove type.
52126         (isw*): Use wint_t instead of __wctype_wint_t.
52127         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52128         * modules/wchar (Files): Add m4/wint_t.m4.
52129         (Makefile.am): Substitute HAVE_WINT_T.
52130         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52131         * tests/test-wctype.c: Check that wint_t is defined.
52132         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52133         * doc/posix-headers/wctype.texi: Likewise.
52134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52135
52136 2008-09-18  Bruno Haible  <bruno@clisp.org>
52137
52138         * gnulib-tool (func_exit): Update comment.
52139
52140 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52141
52142         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52143         assumes strdup exists and does not depend on strdup to return
52144         ENOMEM on out of memory conditions.
52145
52146 2008-09-18  Bruno Haible  <bruno@clisp.org>
52147
52148         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52149         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52150         digits for the exponent.
52151
52152 2008-09-18  Jim Meyering  <meyering@redhat.com>
52153             Bruno Haible  <bruno@clisp.org>
52154
52155         * lib/vasnprintf.c (decimal_point_char): Define also if
52156         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52157
52158 2008-09-16  Bruno Haible  <bruno@clisp.org>
52159         and Eric Blake  <ebb9@byu.net>
52160
52161         vasnprintf: support Irix 5.3
52162         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52163         that mishandle long double infinity.
52164         Reported by Tom G. Christensen.
52165
52166 2008-09-16  Bruno Haible  <bruno@clisp.org>
52167
52168         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52169         Solaris 9.
52170         * doc/glibc-functions/alphasort.texi: Likewise.
52171         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52172
52173 2008-09-16  Jim Meyering  <meyering@redhat.com>
52174
52175         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52176         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52177         a umask modification leak out of a subshell.  Otherwise, the
52178         opensolaris /bin/sh would be accepted and thus cause unwarranted
52179         failures in the coreutils test suite.
52180
52181 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52182
52183         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52184         to succeed.
52185
52186 2008-09-16  Jim Meyering  <meyering@redhat.com>
52187
52188         avoid spurious test failure when library is built without ACL support
52189         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52190         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52191         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52192         * tests/test-copy-acl.sh: Likewise.
52193
52194 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52195
52196         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52197         based on character occurrence counts.
52198
52199 2008-09-15  Eric Blake  <ebb9@byu.net>
52200
52201         tests: avoid some compiler warnings
52202         * tests/test-memchr.c (main): Pass NULL indirectly.
52203         * tests/test-closein.c (main): Avoid unused variable.
52204
52205 2008-09-15  Bruno Haible  <bruno@clisp.org>
52206
52207         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52208         are missing on OpenBSD 4.0 individually.
52209         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52210
52211 2008-09-15  Bruno Haible  <bruno@clisp.org>
52212
52213         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52214         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52215         * doc/posix-functions/perror.texi: Likewise.
52216         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52217         is missing.
52218         Reported by Eric Blake.
52219
52220         * lib/errno.in.h: Use replacement values >= 2000.
52221         Reported by Eric Blake.
52222
52223 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52224
52225         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52226         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52227         limit.
52228         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52229         compareseq was aborted.
52230
52231 2008-09-14  Bruno Haible  <bruno@clisp.org>
52232
52233         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52234         yvec_edit_count.
52235         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52236         (fstrcmp_bounded): Simplify result computation accordingly.
52237
52238 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52239
52240         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52241         (fstrcmp): Define in terms of fstrcmp_bounded.
52242         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52243         lower_bound argument.
52244         Return quickly if the result is certainly < lower_bound.
52245         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52246
52247 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52248
52249         * lib/diffseq.h (EARLY_ABORT): New macro.
52250         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52251         evaluates to true.
52252
52253 2008-09-14  Bruno Haible  <bruno@clisp.org>
52254
52255         * modules/perror-tests: New file.
52256         * tests/test-perror.sh: New file.
52257         * tests/test-perror.c: New file.
52258
52259         New module 'perror'.
52260         * lib/stdio.in.h (perror): New declaration.
52261         * lib/perror.c: New file.
52262         * m4/perror.m4: New file.
52263         * modules/perror: New file.
52264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52265         * doc/posix-functions/perror.texi: Mention the perror module.
52266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52267         REPLACE_PERROR.
52268         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52269         REPLACE_PERROR.
52270
52271 2008-09-14  Bruno Haible  <bruno@clisp.org>
52272
52273         * modules/stdio (Makefile.am): Reorder to match the order in
52274         lib/stdio.in.h.
52275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52276
52277 2008-09-13  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52280
52281 2008-09-13  Bruno Haible  <bruno@clisp.org>
52282
52283         Extend strerror to cover the added errno values.
52284         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52285         (rpl_strerror): Provide error messages for the added errno values and
52286         for the WSA* values.
52287         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52288         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52289         strerror.
52290         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52291         * modules/strerror (Depends-on): Add errno.
52292         * doc/posix-functions/strerror.texi: Document the change.
52293         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52294         and EOVERFLOW.
52295
52296 2008-09-13  Bruno Haible  <bruno@clisp.org>
52297
52298         * modules/EOVERFLOW: Remove file.
52299         * m4/eoverflow.m4: Remove file.
52300         * modules/EOVERFLOW-tests: Remove file.
52301         * tests/test-EOVERFLOW.c: Remove file.
52302         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52303         * modules/ftell (Depends-on): Likewise.
52304         * modules/getdelim (Depends-on): Likewise.
52305         * modules/getugroups (Depends-on): Likewise.
52306         * modules/poll (Depends-on): Likewise.
52307         * modules/snprintf (Depends-on): Likewise.
52308         * modules/sprintf-posix (Depends-on): Likewise.
52309         * modules/vasnprintf (Depends-on): Likewise.
52310         * modules/vasprintf (Depends-on): Likewise.
52311         * modules/vfprintf-posix (Depends-on): Likewise.
52312         * modules/vsnprintf (Depends-on): Likewise.
52313         * modules/vsprintf-posix (Depends-on): Likewise.
52314         * modules/xvasprintf (Depends-on): Likewise.
52315         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52316         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52317         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52318         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52319         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52320         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52321         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52322         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52323         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52324         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52325         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52326         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52327         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52328         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52329         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52330         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52331         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52332         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52333         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52334         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52335         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52336         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52337         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52338         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52339         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52340         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52341         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52342         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52343         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52344         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52345         * MODULES.html.sh: Remove EOVERFLOW.
52346         * NEWS: Mention the change.
52347
52348 2008-09-13  Bruno Haible  <bruno@clisp.org>
52349
52350         * modules/errno-tests: New file.
52351         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52352
52353         * lib/errno.in.h: New file.
52354         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52355         * modules/errno: New file.
52356         * doc/posix-headers/errno.texi: Update documentation.
52357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52358
52359 2008-09-13  Bruno Haible  <bruno@clisp.org>
52360
52361         * tests/test-poll.c: Use #if for native Windows, rather than testing
52362         __MSVCRT__.
52363
52364 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52365             Bruno Haible  <bruno@clisp.org>
52366
52367         * lib/glob.c: Don't include <pwd.h> on native Windows.
52368         (WINDOWS32): New macro.
52369         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52370
52371 2008-09-13  Bruno Haible  <bruno@clisp.org>
52372
52373         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52374         (ETIMEDOUT): Remove macro.
52375         (glthread_cond_timedwait_multithreaded): New declaration.
52376         (glthread_cond_timedwait): Use it.
52377         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52378         (glthread_cond_timedwait_multithreaded): New function.
52379
52380 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52381
52382         * modules/poll-tests: Do not check for io.h.
52383         * tests/test-poll.c: Check for __MSVCRT__ instead.
52384
52385 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52386
52387         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52388         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52389         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52390
52391 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52392
52393         * modules/poll-tests: New.
52394         * tests/test-poll.c: New.
52395
52396 2008-09-12  Eric Blake  <ebb9@byu.net>
52397
52398         frexp: test for NetBSD failure on -0.0
52399         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52400         not all, bugs from NetBSD 3.0 have been fixed.
52401         * doc/posix-functions/frexp.texi (frexp): Document bug.
52402         Reported by Thomas Klausner.
52403
52404         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52405         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52406         literal -0.0.
52407         Reported by Jonathan C. Patschke <jp@centtech.com>.
52408
52409 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52410
52411         * lib/glthread/cond.h: Use dummy implementation also if
52412         USE_WIN32_THREADS.
52413
52414 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52415
52416         * modules/fnmatch-posix (License): Change to LGPLv2+.
52417         * modules/fnmatch-gnu (License): Likewise.
52418
52419 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52420
52421         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52422
52423 2008-09-11  Jim Meyering  <meyering@redhat.com>
52424
52425         * users.txt: Add gtk-vnc.
52426
52427 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52428
52429         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52430         rotate amounts.
52431
52432         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52433         required for 16-bit and 8-bit rotates.
52434         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52435         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52436         UINT8_MAX instead of hard-coded constants.
52437         Suggested by Paul Eggert.
52438
52439 2008-09-07  Bruno Haible  <bruno@clisp.org>
52440
52441         * tests/test-striconveh.c (main): Check behaviour when converting from
52442         UTF-7.
52443
52444         Make striconveh work better with stateful encodings.
52445         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52446         that iconv does not increment the inptr when returning -1/EINVAL.
52447
52448 2008-09-07  Bruno Haible  <bruno@clisp.org>
52449
52450         * build-aux/config.rpath: Update according to libtool-2.2.6.
52451         * build-aux/config.libpath: Likewise.
52452
52453 2008-09-06  Bruno Haible  <bruno@clisp.org>
52454
52455         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52456         * lib/freadptr.c (freadptr): Likewise.
52457         * lib/freadseek.c (freadptrinc): Likewise.
52458         Reported by Simon Josefsson.
52459
52460 2008-09-06  Bruno Haible  <bruno@clisp.org>
52461
52462         * modules/freadptr (License): Change to LGPLv2+.
52463         * modules/freadseek (License): Likewise.
52464         Suggested by Eric Blake.
52465
52466         * modules/memchr2 (License): Change to LGPLv2+.
52467         Approved by Eric Blake.
52468
52469 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52470             Bruno Haible  <bruno@clisp.org>
52471
52472         Make gnulib-tool work with native 'sed' on AIX.
52473         * gnulib-tool (sed_noop): New variable.
52474         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52475         func_add_or_update, func_create_testdir): Use it to initialize sed
52476         script variables.
52477         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52478
52479 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52480             Bruno Haible  <bruno@clisp.org>
52481
52482         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52483         also works after #include directives.
52484
52485 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52486
52487         getdate.y: reject an out-of-range timezone value
52488         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52489         the range [-24...+24].  When specified with only one or two digits,
52490         * tests/test-getdate.c: Tests for the fix.
52491         * doc/getdate.texi: Document this change.
52492
52493 2008-09-03  Bruno Haible  <bruno@clisp.org>
52494
52495         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52496
52497 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52498
52499         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52500         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52501         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52502         Blake <ebb9@byu.net>.
52503
52504         * tests/test-bitrotate.c: Add more test vectors.
52505
52506 2008-09-02  Eric Blake  <ebb9@byu.net>
52507
52508         vasnprintf-posix: handle large precision via %.*d
52509         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52510         when handling it ourselves.
52511         * tests/test-vasnprintf-posix.c (test_function): Add test.
52512         * tests/test-snprintf-posix.h (test_function): Likewise.
52513         * tests/test-sprintf-posix.h (test_function): Likewise.
52514         * tests/test-vasprintf-posix.c (test_function): Likewise.
52515         Reported by Alain Guibert.
52516
52517 2008-09-01  Eric Blake  <ebb9@byu.net>
52518
52519         c-stack: make configure-time check more robust
52520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52521         successful sigaction call.
52522         Reported by Tom G. Christensen.
52523
52524 2008-09-01  Bruno Haible  <bruno@clisp.org>
52525
52526         New module 'findprog-lgpl'.
52527         * modules/findprog-lgpl: New file.
52528         * lib/findprog-lgpl.c: New file.
52529         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52530         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52531         to decide whether to use strdup or xstrdup, concatenated_filename or
52532         xconcatenated_filename.
52533
52534 2008-09-01  Bruno Haible  <bruno@clisp.org>
52535
52536         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52537         'xconcat-filename' (GPL).
52538         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52539         (License): Change to LGPLv2+.
52540         * modules/xconcat-filename: New file.
52541         * lib/concat-filename.h (concatenated_filename): Change specification.
52542         (xconcatenated_filename): New declaration.
52543         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52544         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52545         memory situations.
52546         * lib/xconcat-filename.c: New file.
52547         * NEWS: Mention the change.
52548         * lib/findprog.c: Include concat-filename.h, not filename.h.
52549         (find_in_path): Use xconcatenated_filename instead of
52550         concatenated_filename.
52551         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52552         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52553         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52554         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52555         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52556         instead of concatenated_filename.
52557         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52558         (execute_java_class): Use xconcatenated_filename instead of
52559         concatenated_filename.
52560         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52561         * modules/javacomp (Depends-on): Likewise.
52562         * modules/javaexec (Depends-on): Likewise.
52563
52564 2008-09-01  Bruno Haible  <bruno@clisp.org>
52565
52566         Split module 'filename' into 'filename' and 'concat-filename'.
52567         * modules/filename: Keep only lib/filename.h.
52568         (License): Change to LGPLv2+.
52569         * modules/concat-filename: New file, extracted from modules/filename.
52570         * lib/filename.h (concatenated_filename): Remove declaration.
52571         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52572         * lib/concat-filename.c: Include concat-filename.h.
52573         * NEWS: Mention the change.
52574
52575 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52576
52577         * lib/bitrotate.h (rotl8, rotr8): Add.
52578
52579         * modules/bitrotate (configure.ac): Need
52580         AC_REQUIRE([AC_C_INLINE]).
52581         (Description): Mention stdint.h.  Reported by Bruno Haible
52582         <bruno@clisp.org>.
52583
52584         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52585         Paolo Bonzini <bonzini@gnu.org>.
52586
52587 2008-08-31  Bruno Haible  <bruno@clisp.org>
52588
52589         Assume Solaris specific bi-arch conventions on Solaris systems.
52590         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52591         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52592         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52593         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52594         like acl_libdirstem.
52595         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52596         acl_libdirstem.
52597         * NEWS: Mention the change.
52598         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52599
52600 2008-08-31  Jim Meyering  <meyering@redhat.com>
52601
52602         * lib/strftime.h: Add comments describing the two added arguments.
52603
52604         remove duplicate #include directives
52605         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52606         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52607
52608 2008-08-31  Bruno Haible  <bruno@clisp.org>
52609
52610         New module 'sigpipe-die'.
52611         * modules/sigpipe-die: New file.
52612         * lib/sigpipe-die.h: New file.
52613         * lib/sigpipe-die.c: New file.
52614         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52615
52616 2008-08-31  Bruno Haible  <bruno@clisp.org>
52617
52618         Don't override previously installed signal handlers.
52619         * lib/fatal-signal.c (saved_sigactions): New variable.
52620         (uninstall_handlers): Reset the signal to the saved handler, not
52621         to SIG_DFL (except when ignored).
52622         (install_handlers): Save the previous handlers.
52623
52624 2008-08-30  Bruno Haible  <bruno@clisp.org>
52625
52626         * gnulib-tool (func_reset_sigpipe): New function.
52627         (func_get_automake_snippet, func_modules_transitive_closure,
52628         func_import): Invoke it before a join command that reads from stdin,
52629         to avoid "echo: write error: Broken pipe" error messages on stderr.
52630         Reported by Sam Steingold <sds@gnu.org>.
52631
52632 2008-08-30  Bruno Haible  <bruno@clisp.org>
52633
52634         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52635         Code copied from m4/open.m4.
52636         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52637         access and the filename ends in a slash. Code copied from lib/open.c.
52638         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52639         * tests/test-fopen.c (main): Check against bug with trailing slash.
52640
52641 2008-08-29  Bruno Haible  <bruno@clisp.org>
52642
52643         Avoid some "gcc -pedantic" warnings.
52644         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52645         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52646         * lib/dirent.in.h: Likewise.
52647         * lib/fcntl.in.h: Likewise.
52648         * lib/float.in.h: Likewise.
52649         * lib/iconv.in.h: Likewise.
52650         * lib/inttypes.in.h: Likewise.
52651         * lib/locale.in.h: Likewise.
52652         * lib/math.in.h: Likewise.
52653         * lib/netinet_in.in.h: Likewise.
52654         * lib/search.in.h: Likewise.
52655         * lib/signal.in.h: Likewise.
52656         * lib/stdarg.in.h: Likewise.
52657         * lib/stdint.in.h: Likewise.
52658         * lib/stdio.in.h: Likewise.
52659         * lib/stdlib.in.h: Likewise.
52660         * lib/string.in.h: Likewise.
52661         * lib/strings.in.h: Likewise.
52662         * lib/sys_select.in.h: Likewise.
52663         * lib/sys_socket.in.h: Likewise.
52664         * lib/sys_stat.in.h: Likewise.
52665         * lib/sys_time.in.h: Likewise.
52666         * lib/sysexits.in.h: Likewise.
52667         * lib/time.in.h: Likewise.
52668         * lib/unistd.in.h: Likewise.
52669         * lib/wchar.in.h: Likewise.
52670         * lib/wctype.in.h: Likewise.
52671         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52672         * modules/fchdir (Makefile.am): Likewise.
52673         * modules/fcntl (Makefile.am): Likewise.
52674         * modules/float (Makefile.am): Likewise.
52675         * modules/iconv_open (Makefile.am): Likewise.
52676         * modules/inttypes (Makefile.am): Likewise.
52677         * modules/locale (Makefile.am): Likewise.
52678         * modules/math (Makefile.am): Likewise.
52679         * modules/netinet_in (Makefile.am): Likewise.
52680         * modules/search (Makefile.am): Likewise.
52681         * modules/signal (Makefile.am): Likewise.
52682         * modules/stdarg (Makefile.am): Likewise.
52683         * modules/stdint (Makefile.am): Likewise.
52684         * modules/stdio (Makefile.am): Likewise.
52685         * modules/stdlib (Makefile.am): Likewise.
52686         * modules/string (Makefile.am): Likewise.
52687         * modules/strings (Makefile.am): Likewise.
52688         * modules/sys_select (Makefile.am): Likewise.
52689         * modules/sys_socket (Makefile.am): Likewise.
52690         * modules/sys_stat (Makefile.am): Likewise.
52691         * modules/sys_time (Makefile.am): Likewise.
52692         * modules/sysexits (Makefile.am): Likewise.
52693         * modules/time (Makefile.am): Likewise.
52694         * modules/unistd (Makefile.am): Likewise.
52695         * modules/wchar (Makefile.am): Likewise.
52696         * modules/wctype (Makefile.am): Likewise.
52697         Reported by Reuben Thomas <rrt@sc3d.org>.
52698
52699 2008-08-29  Bruno Haible  <bruno@clisp.org>
52700
52701         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52702         any more.
52703
52704 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52705
52706         * MODULES.html.sh (Misc): Add bitrotate.
52707
52708         * modules/bitrotate: New file.
52709
52710         * lib/bitrotate.h: New file.
52711
52712         * modules/bitrotate-tests: New file.
52713
52714         * tests/test-bitrotate.c: New file.
52715
52716         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52717         on the bitrotate module.
52718
52719         * lib/arctwo.c: Use new bitrotate module.
52720
52721 2008-08-29  Jim Meyering  <meyering@redhat.com>
52722
52723         bootstrap: merge changes from coreutils
52724         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52725         of copied files.  Remove a kludge, now that this is fixed.
52726         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52727         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52728         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52729
52730 2008-08-29  Bruno Haible  <bruno@clisp.org>
52731
52732         * MODULES.html.sh: Remove --cvs-urls option.
52733
52734 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52735
52736         maint.mk: adjust to file name change
52737         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52738
52739 2008-08-28  Jim Meyering  <meyering@redhat.com>
52740
52741         * modules/getndelim2 (License): Relicense to LGPLv2+.
52742         Approved by Richard Stallman for the version of 1995, and by
52743         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52744
52745 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52746
52747         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52748         dummy if one is not available.  Do not touch them if
52749         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52750         (getc_maybe_unlocked): New.
52751         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52752
52753 2008-08-26  Eric Blake  <ebb9@byu.net>
52754
52755         doc/INSTALL: resync from autoconf
52756         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52757         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52758         moving...
52759         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52760         * INSTALL: Regenerate.
52761         * INSTALL.ISO: New file.
52762         * INSTALL.UTF-8: Likewise.
52763
52764 2008-08-26  Jim Meyering  <meyering@redhat.com>
52765
52766         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52767         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52768         these definitions conditional, so that they may be overridden, too.
52769
52770 2008-08-26  Bruno Haible  <bruno@clisp.org>
52771
52772         Generate INSTALL file variants with prettier quotes.
52773         * doc/Makefile (INSTALL_PRELUDE): New macro.
52774         (INSTALL): Use it.
52775         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52776
52777 2008-08-26  Bruno Haible  <bruno@clisp.org>
52778
52779         Run makeinfo in an English locale.
52780         * doc/Makefile (MAKEINFO): New variable.
52781
52782 2008-08-26  Bruno Haible  <bruno@clisp.org>
52783
52784         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52785         Suggested by Eric Blake.
52786
52787 2008-08-25  Bruno Haible  <bruno@clisp.org>
52788
52789         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52790
52791 2008-08-25  Eric Blake  <ebb9@byu.net>
52792
52793         c-stack: test that stack overflow can be caught
52794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52795         that platform allows handling stack overflow; at least OS/2 EMX
52796         has sigaltstack, but crashes before transferring control to
52797         handler on stack overflow.
52798         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52799         check for HAVE_STACK_OVERFLOW_HANDLING.
52800         Reported by Elbert Pol.
52801
52802 2008-08-25  Bruno Haible  <bruno@clisp.org>
52803
52804         * doc/posix-functions/strftime.texi: Fix description of strftime
52805         module.
52806
52807 2008-08-24  Bruno Haible  <bruno@clisp.org>
52808
52809         * tests/uniwidth/test-uc_width2.c: New file.
52810         * tests/uniwidth/test-uc_width2.sh: New file.
52811         * modules/uniwidth/width-tests (Files): Add the new files.
52812         (TESTS): Add uniwidth/test-uc_width2.sh.
52813         (TESTS_ENVIRONMENT): New variable.
52814         (check_PROGRAMS): Add test-uc_width2.
52815         (test_uc_width2_SOURCES): New variable.
52816
52817         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52818         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52819         not 0x00AB.
52820         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52821
52822 2008-08-22  Eric Blake  <ebb9@byu.net>
52823
52824         test-lock, test-tls: mention why a test is skipped
52825         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52826         skipped.
52827         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52828
52829         count-one-bits: relax license
52830         * modules/count-one-bits (License): Relicense to LGPLv2+.
52831         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52832
52833 2008-08-22  Andreas Schwab  <schwab@suse.de>
52834
52835         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52836         Remove spurious space in assignment.
52837
52838 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52839
52840         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52841         Paul Eggert <eggert@CS.UCLA.EDU>.
52842
52843 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52844
52845         * modules/gettext: Add m4/threadlib.m4.
52846
52847 2008-08-19  Eric Blake  <ebb9@byu.net>
52848
52849         test-c-stack: fix compilation failure on FreeBSD 5.0
52850         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52851         headers before <sys/resource.h>.
52852         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52853         the bug.
52854         Reported by Nelson H. F. Beebe.
52855
52856         strverscmp: migrate from "strverscmp.h" to <string.h>
52857         * modules/string (Makefile.am): Add new hooks.
52858         * modules/strverscmp (Files): Remove strverscmp.h.
52859         (Depends-on): Add string.
52860         (configure.ac): Add indicator.
52861         (Include): Mention new header.
52862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52863         defaults.
52864         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52865         results.
52866         * lib/strverscmp.h: Delete.
52867         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52868         * tests/test-strverscmp.c (includes): Adjust client.
52869         * lib/check-version.c (includes): Likewise.
52870         * NEWS: Document the change.
52871
52872         strverscmp: add unit test
52873         * modules/strverscmp-tests: New file.
52874         * tests/test-strverscmp.c: Likewise.
52875
52876 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52877
52878         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52879         regarding Windows crypto stuff, from Mono.
52880
52881 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52882
52883         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52884         if present, for intel RND.  Return error on failures.
52885
52886 2008-08-18  Ben Pfaff  <blp@gnu.org>
52887
52888         gitlog-to-changelog: give better diagnostic for failed pipe-open
52889         * build-aux/gitlog-to-changelog: Improve error message: suggest
52890         that the version of Git may be too old.
52891
52892 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52893
52894         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52895         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52896
52897 2008-08-18  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52900         pthread_in_use().
52901
52902 2008-08-18  Bruno Haible  <bruno@clisp.org>
52903
52904         * lib/glthread/threadlib.c: Include <pthread.h>.
52905
52906 2008-08-18  Bruno Haible  <bruno@clisp.org>
52907
52908         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52909         glthread_recursive_lock_* macros.
52910         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52911         Fix syntax error.
52912
52913 2008-08-18  Bruno Haible  <bruno@clisp.org>
52914
52915         * lib/glthread/thread.c: Avoid forcing a context switch right after
52916         thread creation.
52917
52918 2008-08-17  Bruno Haible  <bruno@clisp.org>
52919
52920         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52921         * lib/glthread/thread.h: Provide Win32 specific implementation.
52922         * modules/thread (Files): Add lib/glthread/thread.c.
52923         (Depends-on): Add lock.
52924         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52925
52926 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52927
52928         New module 'yield'.
52929         * modules/yield: New file.
52930         * lib/glthread/yield.h: New file.
52931         * m4/yield.m4: New file.
52932         * MODULES.html.sh (Multithreading): Add yield.
52933
52934 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52935
52936         New module 'thread'.
52937         * modules/thread: New file.
52938         * lib/glthread/thread.h: New file.
52939         * m4/thread.m4: New file.
52940         * MODULES.html.sh (Multithreading): Add thread.
52941
52942 2008-08-17  Bruno Haible  <bruno@clisp.org>
52943
52944         * lib/glthread/lock.h: Include <stdlib.h> always.
52945         * lib/glthread/tls.h: Likewise.
52946         * lib/glthread/cond.h: Likewise.
52947
52948 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52949
52950         New module 'cond'.
52951         * modules/cond: New file.
52952         * lib/glthread/cond.h: New file.
52953         * lib/glthread/cond.c: New file.
52954         * m4/cond.m4: New file.
52955         * MODULES.html.sh (Multithreading): Add cond.
52956
52957 2008-08-16  Eric Blake  <ebb9@byu.net>
52958
52959         c-stack: fix regression on Irix 5.3 from 2008-06-21
52960         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52961         sa_sigaction...
52962         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52963         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52965         * modules/signal (Makefile.am): Use the value.
52966         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52967         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52968         * doc/posix-headers/signal.texi (signal.h): Document this
52969         portability issue.
52970         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52971         Reported by Tom G. Christensen.
52972
52973 2008-08-17  Bruno Haible  <bruno@clisp.org>
52974
52975         New module 'threadlib'.
52976         * modules/threadlib: New file.
52977         * lib/glthread/threadlib.c: New file, extracted from
52978         lib/glthread/lock.c.
52979         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52980         functions.
52981         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52982         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52983         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52984         macros.
52985         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52986         (gl_DISABLE_THREADS): Remove macro.
52987         * modules/lock (Files): Remove build-aux/config.rpath.
52988         (Depends-on): Remove havelib. Add threadlib.
52989         (configure.ac-early): Remove section.
52990         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52991         * modules/tls (Depends-on): Remove lock. Add threadlib.
52992         (Link): New section, copied from threadlib.
52993         * MODULES.html.sh (Multithreading): Add threadlib.
52994
52995 2008-08-14  Bruno Haible  <bruno@clisp.org>
52996
52997         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52998         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52999         glthread_rwlock_unlock, glthread_rwlock_destroy,
53000         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53001         glthread_recursive_lock_destroy): Define as macros always.
53002         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53003         glthread_lock_lock.
53004         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53005         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53006         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53007         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53008         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53009         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53010         (glthread_recursive_lock_lock_func): Renamed from
53011         glthread_recursive_lock_lock.
53012         (glthread_recursive_lock_unlock_func): Renamed from
53013         glthread_recursive_lock_unlock.
53014         (glthread_recursive_lock_destroy_func): Renamed from
53015         glthread_recursive_lock_destroy.
53016
53017 2008-08-14  Bruno Haible  <bruno@clisp.org>
53018
53019         * lib/glthread/lock.h: Renamed from lib/lock.h.
53020         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53021         * lib/glthread/tls.h: Renamed from lib/tls.h.
53022         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53023         * lib/fstrcmp.c: Update includes.
53024         * lib/strsignal.c: Update includes.
53025         * modules/lock (Files, Makefile.am): Update.
53026         (Include): Change to "glthread/lock.h".
53027         * modules/tls (Files, Makefile.am): Update.
53028         (Include): Change to "glthread/tls.h".
53029         * tests/test-lock.c: Update includes.
53030         * tests/test-tls.c: Update includes.
53031         * NEWS: Mention the renamed header files.
53032
53033 2008-08-11  Jim Meyering  <meyering@redhat.com>
53034
53035         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53036
53037 2008-08-11  Eric Blake  <ebb9@byu.net>
53038
53039         test-c-stack: avoid C99-ism
53040         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53041         before statement.
53042         Reported by Alain Guibert.
53043
53044 2008-08-10  Jim Meyering  <meyering@redhat.com>
53045
53046         ensure that return value of uinttostr et al are not ignored
53047         * lib/inttostr.h (__GNUC_PREREQ): Define.
53048         (__attribute_warn_unused_result__): Define.
53049         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53050
53051 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53052
53053         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53054         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53055
53056 2008-08-07  Jim Meyering  <meyering@redhat.com>
53057
53058         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53059
53060         * modules/mkstemp (License): Relicense under LGPLv2+.
53061         * modules/tempname (License): Likewise.
53062
53063 2008-08-06  Bruno Haible  <bruno@clisp.org>
53064
53065         * lib/poll.c (poll): Further micro-optimization.
53066
53067 2008-08-06  Jim Meyering  <meyering@redhat.com>
53068
53069         inet_pton.c: use locale-independent tolower
53070         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53071         (inet_pton6): Use c_tolower rather than tolower.
53072         * modules/inet_pton (Depends-on): Add c-ctype.
53073
53074 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53075
53076         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53077         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53078
53079 2008-08-06  Jim Meyering  <meyering@redhat.com>
53080
53081         * modules/inet_pton (License): Relicense under LGPLv2+.
53082
53083 2008-08-03  Bruno Haible  <bruno@clisp.org>
53084
53085         Additional non-aborting API for lock and tls.
53086         * lib/lock.h: Include <errno.h>.
53087         (glthread_lock_init): New macro/function.
53088         (gl_lock_init): Define as wrapper around glthread_lock_init.
53089         (glthread_lock_lock): New macro/function.
53090         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53091         (glthread_lock_unlock): New macro/function.
53092         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53093         (glthread_lock_destroy): New macro/function.
53094         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53095         (glthread_rwlock_init): New macro/function.
53096         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53097         (glthread_rwlock_rdlock): New macro/function.
53098         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53099         (glthread_rwlock_wrlock): New macro/function.
53100         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53101         (glthread_rwlock_unlock): New macro/function.
53102         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53103         (glthread_rwlock_destroy): New macro/function.
53104         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53105         (glthread_recursive_lock_init): New macro/function.
53106         (gl_recursive_lock_init): Define as wrapper around
53107         glthread_recursive_lock_init.
53108         (glthread_recursive_lock_lock): New macro/function.
53109         (gl_recursive_lock_lock): Define as wrapper around
53110         glthread_recursive_lock_lock.
53111         (glthread_recursive_lock_unlock): New macro/function.
53112         (gl_recursive_lock_unlock): Define as wrapper around
53113         glthread_recursive_lock_unlock.
53114         (glthread_recursive_lock_destroy): New macro/function.
53115         (gl_recursive_lock_destroy): Define as wrapper around
53116         glthread_recursive_lock_destroy.
53117         (glthread_once): New macro/function.
53118         (gl_once): Define as wrapper around glthread_once.
53119         Update function declarations.
53120         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53121         glthread_rwlock_init. Return error code.
53122         (glthread_rwlock_rdlock_multithreaded): Renamed from
53123         glthread_rwlock_rdlock. Return error code.
53124         (glthread_rwlock_wrlock_multithreaded): Renamed from
53125         glthread_rwlock_wrlock. Return error code.
53126         (glthread_rwlock_unlock_multithreaded): Renamed from
53127         glthread_rwlock_unlock. Return error code.
53128         (glthread_rwlock_destroy_multithreaded): Renamed from
53129         glthread_rwlock_destroy. Return error code.
53130         (glthread_recursive_lock_init_multithreaded): Renamed from
53131         glthread_recursive_lock_init. Return error code.
53132         (glthread_recursive_lock_lock_multithreaded): Renamed from
53133         glthread_recursive_lock_lock. Return error code.
53134         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53135         glthread_recursive_lock_unlock. Return error code.
53136         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53137         glthread_recursive_lock_destroy. Return error code.
53138         (glthread_once_call): Make static.
53139         (glthread_once_multithreaded): Renamed from glthread_once.
53140         * lib/tls.h: Include <errno.h>.
53141         (glthread_tls_key_init): New macro/function.
53142         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53143         (glthread_tls_set): New macro/function.
53144         (gl_tls_set): Define as wrapper around glthread_tls_set.
53145         (glthread_tls_key_destroy): New macro/function.
53146         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53147         Update function declarations.
53148         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53149         glthread_tls_get.
53150         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53151
53152 2008-08-04  Eric Blake  <ebb9@byu.net>
53153
53154         gnumakefile: use space, not TAB, outside of targets
53155         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53156
53157 2008-08-02  Jim Meyering  <meyering@redhat.com>
53158
53159         getdate.y: avoid locale-dependent date parsing failure
53160         In Turkish locales, getdate would fail to recognize keywords
53161         containing a lowercase "i".  The solution is not to rely on
53162         locale-sensitive case-conversion.
53163         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53164         (lookup_word): Use c_toupper in place of toupper.
53165         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53166         Reported by Vefa Bicakci <bicave@superonline.com> in
53167         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53168         * modules/getdate (Depends-on): Add c-ctype.
53169
53170 2008-08-02  Bruno Haible  <bruno@clisp.org>
53171
53172         * gnulib-tool (func_import): When updating or creating a .gitignore
53173         file, prepend each added line with a slash, and ignore leading slashes
53174         from the existing lines.
53175         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53176
53177 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53178
53179         Portability fix for GNU make 3.79.1.
53180         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53181         versions do not understand.
53182
53183 2008-08-01  Bruno Haible  <bruno@clisp.org>
53184
53185         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53186         * tests/test-isnanf.h (zero): New variable.
53187         (main): Avoid literal -0.0f.
53188         * tests/test-isnand.h (zero): New variable.
53189         (main): Avoid literal -0.0.
53190         * tests/test-isnanl.h (zero): New variable.
53191         (main): Avoid literal -0.0L.
53192         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53193         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53194         -0.0, -0.0L.
53195         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53196         (test_signbitd): Avoid literal -0.0.
53197         (test_signbitl): Avoid literal -0.0L.
53198         * tests/test-ceilf1.c (zero): New variable.
53199         (main): Avoid literal -0.0f.
53200         * tests/test-ceill.c (zero): New variable.
53201         (main): Avoid literal -0.0L.
53202         * tests/test-floorf1.c (zero): New variable.
53203         (main): Avoid literal -0.0f.
53204         * tests/test-floorl.c (zero): New variable.
53205         (main): Avoid literal -0.0L.
53206         * tests/test-roundf1.c (zero): New variable.
53207         (main): Avoid literal -0.0f.
53208         * tests/test-round1.c (zero): New variable.
53209         (main): Avoid literal -0.0.
53210         * tests/test-roundl.c (zero): New variable.
53211         (main): Avoid literal -0.0L.
53212         * tests/test-truncf1.c (zero): New variable.
53213         (main): Avoid literal -0.0f.
53214         * tests/test-trunc1.c (zero): New variable.
53215         (main): Avoid literal -0.0.
53216         * tests/test-truncl.c (zero): New variable.
53217         (main): Avoid literal -0.0L.
53218         * tests/test-frexp.c (zero): New variable.
53219         (main): Avoid literal -0.0.
53220         * tests/test-frexpl.c (zero): New variable.
53221         (main): Avoid literal -0.0L.
53222         * tests/test-ldexpl.c (zero): New variable.
53223         (main): Avoid literal -0.0L.
53224         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53225         (zerod, zerol): New variables.
53226         (test_function): Avoid literals -0.0, -0.0L.
53227         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53228         (zerod, zerol): New variables.
53229         (test_function): Avoid literals -0.0, -0.0L.
53230         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53231         (zerod, zerol): New variables.
53232         (test_function): Avoid literals -0.0, -0.0L.
53233         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53234         (zerod, zerol): New variables.
53235         (test_function): Avoid literals -0.0, -0.0L.
53236         * tests/test-strtod.c (zero): New variable.
53237         (main): Avoid literal -0.0.
53238         Reported by Jonathan C. Patschke <jp@centtech.com>.
53239
53240 2008-07-31  Jim Meyering  <meyering@redhat.com>
53241
53242         sha256.h: correct definition of SHA224_DIGEST_SIZE
53243         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53244         Reported by Paulie Pena IV <paulie4@gmail.com>.
53245         Define as 224 / 8, rather than as a literal.
53246         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53247         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53248         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53249
53250 2008-07-31  Bruno Haible  <bruno@clisp.org>
53251
53252         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53253         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53254         Reported by Jonathan Patschke <jp@centtech.com>.
53255
53256 2008-07-31  Bruno Haible  <bruno@clisp.org>
53257
53258         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53259         Reported by Paolo Bonzini <bonzini@gnu.org>.
53260
53261 2008-07-30  Eric Blake  <ebb9@byu.net>
53262
53263         test-strtod: allow compilation without -lm
53264         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53265         Reported by Dennis Clarke <blastwave@gmail.com>.
53266
53267 2008-07-28  Jim Meyering  <meyering@redhat.com>
53268
53269         bootstrap: work also when there are no .po files in po/
53270         * build-aux/bootstrap (update_po_files): Complete the change
53271         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53272
53273 2008-07-27  Jim Meyering  <meyering@redhat.com>
53274
53275         * users.txt: Add zile.
53276
53277 2008-07-26  Ben Pfaff  <blp@gnu.org>
53278
53279         Add missing dependencies on new m4/exponent[fdl].m4 files.
53280         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53281         * modules/isnand-nolibm: Add m4/exponentd.m4.
53282         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53283         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53284         m4/isnan[fdl].m4, because the macros actually used moved.
53285         Reported by Jim Meyering.
53286
53287 2008-07-14  Ben Pfaff  <blp@gnu.org>
53288
53289         Add isinf module.
53290         * lib/isinf.c: New file.
53291         * lib/math.in.h: Define isinf macro if we have decided to replace
53292         it.
53293         * m4/isinf.m4: New file.
53294         * m4/math_h.m4: Initialize and substitute variables for isinf
53295         module.
53296         * modules/isinf: New file.
53297         * modules/isinf-tests: New file.
53298         * modules/math: Add substitutions for new module.
53299         * tests/test-isinf.c: New file.
53300         * doc/posix-functions/isinf.texi: Mention new module.
53301         * MODULES.html.sh: Mention new module.
53302
53303 2008-07-14  Ben Pfaff  <blp@gnu.org>
53304
53305         Factor out some macros for use by additional modules.
53306         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53307         exponentf.m4.
53308         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53309         exponentd.m4.
53310         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53311         file exponentl.m4.
53312         * m4/exponentf.m4: New file.
53313         * m4/exponentd.m4: New file.
53314         * m4/exponentl.m4: New file.
53315         * modules/isnanf: Use new file m4/exponentf.m4.
53316         * modules/isnand: Use new file m4/exponentd.m4.
53317         * modules/isnanl: Use new file m4/exponentl.m4.
53318
53319 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53320
53321         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53322         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53323         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53324         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53325
53326         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53327         readlink on platforms without PATH_MAX.
53328
53329 2008-07-21  Eric Blake  <ebb9@byu.net>
53330
53331         Warn, not fail, on stale version.
53332         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53333
53334         Don't allow installation with stale devel version number.
53335         * top/GNUmakefile (_is-install-target): New macro.
53336         (_curr-ver): Forbid installation with stale version number.
53337
53338 2008-07-20  Bruno Haible  <bruno@clisp.org>
53339
53340         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53341         TESTS_ENVIRONMENT.
53342         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53343
53344 2008-07-20  Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/c-stack.h (c_stack_action): Add documentation.
53347         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53348
53349 2008-07-20  Bruno Haible  <bruno@clisp.org>
53350
53351         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53352         * modules/readlink (License): Likewise.
53353
53354 2008-07-17  Eric Blake  <ebb9@byu.net>
53355
53356         * modules/c-stack (Link): Fix typo.
53357
53358         Make c-stack use libsigsegv, when available.
53359         * modules/c-stack (Depends-on): Add libsigsegv.
53360         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53361         needed.
53362         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53363         (segv_handler, overflow_handler, c_stack_action)
53364         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53365         implementation when libsigsegv is available, but only when using
53366         the library is necessary.
53367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53368         comment, explaining why XSI check fails on Linux.
53369         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53370         * tests/test-c-stack2.sh: Tweak skip message.
53371         * NEWS: Document new link-time requirements.
53372
53373 2008-07-16  Eric Blake  <ebb9@byu.net>
53374
53375         c-stack: Expose false positives when not using libsigsegv.
53376         * modules/c-stack-tests (Files): Expand test.
53377         * tests/test-c-stack.c (main): Add means to conditionally trigger
53378         non-overflow SIGSEGV.
53379         * tests/test-c-stack2.sh: New file.
53380
53381 2008-07-14  Bruno Haible  <bruno@clisp.org>
53382
53383         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53384         Reported by Eric Blake.
53385
53386 2008-07-14  Sam Steingold  <sds@gnu.org>
53387             Bruno Haible  <bruno@clisp.org>
53388
53389         New module libsigsegv.
53390         * modules/libsigsegv: New file.
53391         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53392         modifications.
53393         * MODULES.html.sh (Signal handling): New section.
53394
53395 2008-07-14  Bruno Haible  <bruno@clisp.org>
53396
53397         * modules/unictype/ctype-* (Description): Add the word "function".
53398         Improves the resulting doc in MODULES.html.
53399
53400 2008-07-12  Ben Pfaff  <blp@gnu.org>
53401
53402         Add longlong module.
53403         * modules/longlong: New file.
53404
53405 2008-07-12  Bruno Haible  <bruno@clisp.org>
53406
53407         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53408         to empty.
53409
53410 2008-07-10  Ben Pfaff  <blp@gnu.org>
53411
53412         Add isnan module.
53413         * doc/posix-functions/isnan.texi: Mention new module.
53414         * lib/math.in.h: Define isnan macro if we have decided to replace
53415         it.
53416         * m4/isnan.m4: New file.
53417         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53418         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53419         also.
53420         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53421         redundancy.
53422         * m4/math_h.m4: Initialize and substitute variables for isnan
53423         module.
53424         * modules/isnan: New file.
53425         * modules/isnan-tests: New file.
53426         * modules/math: Add substitutions for new module.
53427         * tests/test-isnan.c: New file.
53428         * MODULES.html.sh: Mention new module.
53429
53430 2008-07-10  Ben Pfaff  <blp@gnu.org>
53431
53432         Add isnanf module.
53433         * lib/isnanf.m4: New file.
53434         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53435         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53436         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53437         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53438         * modules/isnanf: New file.
53439         * modules/isnanf-tests: New file.
53440         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53441         files.
53442         * tests/test-isnanf-nolibm.c: factored most of its contents into
53443         new file tests/test-isnanf.h.
53444         * tests/test-isnanf.h: New file.
53445         * tests/test-isnanf.c: New file.
53446         * MODULES.html.sh: Mention new module.
53447         * doc/glibc-functions/isnanf.texi: Mention new module.
53448
53449 2008-07-10  Ben Pfaff  <blp@gnu.org>
53450
53451         Add isnand module.
53452         * lib/isnand.h: New file.
53453         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53454         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53455         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53456         functionality also.
53457         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53458         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53459         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53460         * modules/isnand: New file.
53461         * modules/isnand-tests: New file.
53462         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53463         files.
53464         * tests/test-isnand-nolibm.c: factored most of its contents into
53465         new file tests/test-isnand.h.
53466         * tests/test-isnand.h: New file.
53467         * tests/test-isnand.c: New file.
53468         * MODULES.html.sh: Mention new module.
53469
53470 2008-07-10  Ben Pfaff  <blp@gnu.org>
53471
53472         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53473         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53474         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53475         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53476         * modules/isnanf-nolibm: Update references to renamed files.
53477         * modules/isnand-nolibm: Likewise.
53478         * modules/isnanf-nolibm-tests: Likewise.
53479         * modules/isnand-nolibm-tests: Likewise.
53480         * lib/frexp.c: Likewise.
53481         * lib/isfinite.c: Likewise.
53482         * lib/signbitd.c: Likewise.
53483         * lib/signbitf.c: Likewise.
53484         * lib/vasnprintf.c: Likewise.
53485         * tests/test-ceilf1.c: Likewise.
53486         * tests/test-ceilf2.c: Likewise.
53487         * tests/test-floorf1.c: Likewise.
53488         * tests/test-floorf2.c: Likewise.
53489         * tests/test-frexp.c: Likewise.
53490         * tests/test-round1.c: Likewise.
53491         * tests/test-round2.c: Likewise.
53492         * tests/test-roundf1.c: Likewise.
53493         * tests/test-strtod.c: Likewise.
53494         * tests/test-trunc1.c: Likewise.
53495         * tests/test-trunc2.c: Likewise.
53496         * tests/test-truncf1.c: Likewise.
53497         * tests/test-truncf2.c: Likewise.
53498         * NEWS: Mention the renamed header files.
53499
53500 2008-07-11  Jim Meyering  <meyering@redhat.com>
53501
53502         vc-list-files: make the last-resort awk code more portable
53503         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53504         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53505         does not support it.
53506
53507 2008-07-10  Eric Blake  <ebb9@byu.net>
53508
53509         Work with tar's bootstrap.
53510         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53511         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53512         an m4 comment.
53513
53514 2008-07-09  Jim Meyering  <meyering@redhat.com>
53515
53516         posix-shell.m4: fix typo that made this test malfunction
53517         * m4/posix-shell.m4: Remove capitalization in variable name.
53518
53519 2008-07-08  Bruno Haible  <bruno@clisp.org>
53520
53521         * m4/onceonly.m4: Update comments.
53522         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53523
53524 2008-07-04  Jim Meyering  <meyering@redhat.com>
53525
53526         * users.txt: Add vc-dwim.
53527         (bison, coreutils): Use the gitweb URL.
53528
53529 2008-07-03  Jim Meyering  <meyering@redhat.com>
53530
53531         * users.txt: Add libffcall.  From Sam Steingold.
53532
53533 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53534
53535         getdate.y: do not ignore TZ with relative day, month or year offset
53536         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53537         relative-date-handling, since otherwise, the latter would clobber the
53538         sole output (an updated Start value) of the tz-handling block.
53539         * tests/test-getdate.c: Tests for the fix
53540
53541 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53542
53543         Recognize 'foo_LIBRARIES += libgnu.a'.
53544         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53545         makefile snippet has already specified an installation location,
53546         also using '+='.
53547
53548 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53549
53550         getdate.y: factor out common actions
53551         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53552         Use them in place of open-coded actions.
53553
53554 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53555
53556         Add self-test for getdate module.
53557         * modules/getdate-tests: New file.
53558         * tests/test-getdate.c: New file.
53559
53560 2008-06-29  Bruno Haible  <bruno@clisp.org>
53561
53562         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53563         .gitignore.
53564         Reported by Sylvain Beucler <beuc@beuc.net>.
53565
53566 2008-06-29  Bruno Haible  <bruno@clisp.org>
53567
53568         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53569         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53570
53571 2008-06-29  Bruno Haible  <bruno@clisp.org>
53572
53573         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53574         EXTRA_DIST.
53575         Reported by Sylvain Beucler <beuc@beuc.net>.
53576
53577 2008-06-26  Jim Meyering  <meyering@redhat.com>
53578
53579         make several modules depend on the "open" module
53580         This provides slightly increased consistency when opening-for-write
53581         the name of a non-directory spelled with a trailing slash.
53582         * modules/chdir-safer: Likewise.
53583         * modules/chown: Likewise.
53584         * modules/clean-temp: Likewise.
53585         * modules/copy-file: Likewise.
53586         * modules/fchdir: Likewise.
53587         * modules/fcntl-safer: Likewise.
53588         * modules/pipe: Likewise.
53589         * modules/utime: Likewise.
53590         Prompted by Eric Blake and Bruno Haible.
53591
53592 2008-06-24  Andreas Schwab  <schwab@suse.de>
53593
53594         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53595         literals can be used as initializers for global variables.
53596
53597 2008-06-23  Eric Blake  <ebb9@byu.net>
53598
53599         Make gnulib-cache.m4 easier to diff.
53600         * gnulib-tool (func_import): Allow newlines when reading cached
53601         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53602
53603 2008-06-23  Bruno Haible  <bruno@clisp.org>
53604
53605         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53606         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53607         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53608         m4/signalblocking.m4.
53609         (gl_PREREQ_SIGACTION): Don't invoke it.
53610         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53611         gl_PREREQ_SIG_HANDLER_H.
53612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53613         Don't check for sigaction here.
53614
53615 2008-06-23  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53618         (install_handlers): Don't set the SA_RESETHAND flag.
53619
53620 2008-06-23  Bruno Haible  <bruno@clisp.org>
53621
53622         * m4/sigaction.m4: Comment fixes.
53623         * lib/signal.in.h: Likewise.
53624
53625 2008-06-23  Eric Blake  <ebb9@byu.net>
53626
53627         Fix typo.
53628         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53629
53630         Avoid SA_ namespace.
53631         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53632         Reported by Ralf Wildenhues.
53633
53634         Avoid test failure due to SA_RESTORER.
53635         * tests/test-sigaction.c (SA_MASK): New macro.
53636         (main): Avoid failing due to extension flags being set.
53637         Reported by Jim Meyering.
53638
53639         Revert use of sig-handler.h in sigprocmask.c.
53640         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53641         it requires the existence of struct sigaction.
53642         * lib/sigprocmask.c (handler_t): Restore typedef.
53643         (rpl_signal, old_handlers): Use local type.
53644
53645 2008-06-22  Bruno Haible  <bruno@clisp.org>
53646
53647         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53648         conditionally.
53649         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53650
53651 2008-06-22  Bruno Haible  <bruno@clisp.org>
53652
53653         * doc/posix-functions/siginterrupt.texi: Move note.
53654
53655         * lib/signal.in.h (SA_RESTART): New macro.
53656         * lib/sigaction.c: Update comment.
53657
53658         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53659
53660         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53661         (gl_PREREQ_SIGPROCMASK): Invoke it.
53662         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53663
53664         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53665
53666         * lib/sigprocmask.c: Update a comment.
53667
53668 2008-06-21  Eric Blake  <ebb9@byu.net>
53669
53670         Use sigaction module rather than signal().
53671         * modules/c-stack (Depends-on): Add sigaction.
53672         * modules/fatal-signal (Depends-on): Likewise.
53673         * modules/nanosleep (Depends-on): Likewise.
53674         * modules/sigprocmask (Files): Add sig-handler.h.
53675         * modules/sigaction (Files): Likewise.
53676         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53677         Eggert.
53678         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53679         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53680         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53681         (init_fatal_signals): Likewise.
53682         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53683         (siginterrupt): Delete fallback.
53684         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53685         instead.
53686         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53687         siginterrupt.
53688
53689         New module sigaction, for mingw.
53690         * modules/sigaction: New module...
53691         * modules/sigaction-tests: ...and its test.
53692         * m4/sigaction.m4: New file.
53693         * lib/sigaction.c: Likewise.
53694         * tests/test-sigaction.c: Likewise.
53695         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53696         * modules/signal (Makefile.am): Likewise.
53697         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53698         needed.
53699         * doc/posix-headers/signal.texi (signal.h): Mention provided
53700         types.
53701         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53702         that sigaction is preferable.
53703         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53704         module.
53705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53706         sigaction.
53707
53708         Improve robustness of sigprocmask by overriding signal.
53709         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53710         is in use.
53711         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53712         (SIGKILL, SIGSTOP): Provide fallbacks.
53713         (rpl_signal): Implement.
53714         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53715         signal can be called inside handlers.
53716
53717         Fix nanosleep module on mingw.
53718         * modules/nanosleep (Depends-on): Add sys_select.
53719         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53720
53721         Fix licensing of sigprocmask.
53722         * modules/raise (License): Relicense as LGPL.
53723
53724 2008-06-21  Bruno Haible  <bruno@clisp.org>
53725
53726         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53727         result if it contains question marks.
53728         Reported by Michael Geng <linux@michaelgeng.de>.
53729
53730 2008-06-19  Bruno Haible  <bruno@clisp.org>
53731
53732         Fix CVS-ism.
53733         * doc/gnulib.texi: Include updated-stamp.texi.
53734         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53735         (updated-stamp.texi): New rule.
53736         (gnulib.info): Depend on it.
53737         * doc/.gitignore: Add updated-stamp.texi.
53738         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53739
53740 2008-06-19  Bruno Haible  <bruno@clisp.org>
53741
53742         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53743         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53744
53745 2008-06-19  Eric Blake  <ebb9@byu.net>
53746
53747         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53748         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53749         Reported by Stepan Kasal.
53750
53751 2008-06-18  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53754         Reported by Eric Blake.
53755
53756 2008-06-18  Eric Blake  <ebb9@byu.net>
53757
53758         Work around cygwin 1.5.25 strsignal bug.
53759         * tests/test-strsignal.c: Allow for const char *.
53760         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53761
53762 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53763
53764         * users.txt: Update URL to article and add author/date
53765         information.
53766
53767 2008-06-17  Bruno Haible  <bruno@clisp.org>
53768
53769         New macro gl_DISABLE_THREADS.
53770         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53771         if the user did not pass --enable-threads or --disable-threads option.
53772         (gl_DISABLE_THREADS): New macro.
53773         Reported by Eric Blake <ebb9@byu.net>.
53774
53775 2008-06-17  Bruno Haible  <bruno@clisp.org>
53776
53777         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53778         when the macro ignores it.
53779         Based on a patch by Eric Blake <ebb9@byu.net>.
53780
53781 2008-06-17  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/tls (License): Change to LGPLv2+.
53784         Reported by Eric Blake.
53785
53786 2008-06-17  Eric Blake  <ebb9@byu.net>
53787
53788         Simplify c-stack prerequisites.
53789         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53790         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53791         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53792         check.
53793         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53794         <sys/resource.h>.
53795
53796         Move c-stack test into testsuite.
53797         * modules/c-stack-tests: New file.
53798         * lib/c-stack.c [DEBUG]: Move test program...
53799         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53800         fail test if sigaltstack is lacking.
53801         * tests/test-c-stack.sh: New driver file.
53802
53803 2008-06-16  Eric Blake  <ebb9@byu.net>
53804
53805         Use raise module consistently.
53806         * modules/fatal-signal (Depends-on): Add raise.
53807         * modules/sigprocmask (Depends-on): Likewise.
53808         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53809         * lib/sigprocmask.c (sigprocmask): Likewise.
53810         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53811         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53812
53813         Fix compliance bug in sigpending.
53814         * lib/sigprocmask.c (sigpending): Return pending array via
53815         parameter, not return value.
53816
53817 2008-06-14  Eric Blake  <ebb9@byu.net>
53818
53819         Improve obstack-printf test code.
53820         * tests/test-obstack-printf.c (test_function): Fix comment, and
53821         simplify usage of obstack_* in macros.  Add a test for coverage.
53822         Reported by Bruno Haible.
53823
53824 2008-06-14  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53827         array size as a constant, not as a const variable.
53828         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53829         AC_USE_SYSTEM_EXTENSIONS.
53830         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53831         Test whether the obstack_printf function actually exists.
53832         * modules/obstack-printf (Depends-on): Add extensions.
53833         (Include): Remove obstack.h.
53834         * modules/obstack-printf-posix (Depends-on): Add extensions.
53835         (Include): Remove obstack.h.
53836
53837 2008-06-13  Eric Blake  <ebb9@byu.net>
53838
53839         Add obstack-printf and obstack-printf-posix modules.
53840         * modules/obstack-printf: New file.
53841         * modules/obstack-printf-posix: Likewise.
53842         * MODULES.html.sh (Misc): Mention them.
53843         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53844         Likewise.
53845         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53846         Likewise.
53847         * modules/stdio (Makefile.am): Accomodate new modules.
53848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53849         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53850         Declare.
53851         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53852         functions.
53853         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53854         (gl_REPLACE_OBSTACK_PRINTF): New macros
53855         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53856         * tests/test-obstack-printf.c: New file.
53857         * modules/obstack-printf-tests: Likewise.
53858         * modules/obstack-printf-posix-tests: Likewise.
53859
53860 2008-06-11  Bruno Haible  <bruno@clisp.org>
53861
53862         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53863         * lib/open.c: Include errno.h.
53864         (open): Fail when attempting to write to a file that has a trailing
53865         slash.
53866         * tests/test-open.c (main): Test against trailing slash bug.
53867         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53868
53869 2008-06-10  Bruno Haible  <bruno@clisp.org>
53870
53871         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53872         for $? to work inside the trap command, with various /bin/sh-s.
53873         * tests/test-vc-list-files-cvs.sh: Likewise.
53874
53875 2008-06-10  Bruno Haible  <bruno@clisp.org>
53876
53877         * lib/acl-internal.h: Don't include gettext.h here.
53878         * lib/set-mode-acl.c: Include gettext.h here.
53879         * lib/copy-acl.c: Likewise.
53880
53881 2008-06-10  Bruno Haible  <bruno@clisp.org>
53882
53883         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53884         * lib/wait-process.c (wait_subprocess): Likewise.
53885         * lib/execute.h (execute): Add termsigp argument.
53886         * lib/execute.c (execute): Likewise.
53887         * lib/csharpcomp.c (compile_csharp_using_pnet,
53888         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53889         * lib/csharpexec.c (execute_csharp_using_pnet,
53890         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53891         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53892         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53893         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53894         is_jikes_present): Update.
53895         * lib/javaexec.c (execute_java_class): Update.
53896         * lib/javaversion.c (execute_and_read_line): Update.
53897         * NEWS: Document the changes.
53898         Reported by Eric Blake.
53899
53900 2008-06-10  Eric Blake  <ebb9@byu.net>
53901
53902         Add missing include.
53903         * tests/test-strstr.c (includes): Add <signal.h>.
53904         * tests/test-strcasestr.c (includes): Likewise.
53905         * tests/test-memmem.c (includes): Likewise.
53906
53907 2008-06-10  Bruno Haible  <bruno@clisp.org>
53908
53909         * lib/wait-process.c (wait_subprocess): Add an assertion.
53910
53911 2008-06-10  Bruno Haible  <bruno@clisp.org>
53912
53913         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53914
53915 2008-06-10  Bruno Haible  <bruno@clisp.org>
53916
53917         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53918         using alarm().
53919         * tests/test-strcasestr.c (main): Likewise.
53920         * tests/test-strstr.c (main): Likewise.
53921
53922 2008-06-09  Bruno Haible  <bruno@clisp.org>
53923
53924         Work around the Solaris 10 ACE ACLs ABI change.
53925         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53926         declare if ACL_NO_TRIVIAL is present.
53927         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53928         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53929         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53930         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53931         define if ACL_NO_TRIVIAL is present.
53932         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53933         and use the current ABI.
53934         (file_has_acl): Use same #if condition as elsewhere.
53935         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53936         in use, and use the current ABI.
53937         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53938         Reported by Jim Meyering.
53939
53940 2008-06-09  Eric Blake  <ebb9@byu.net>
53941
53942         Work around environments that (stupidly) ignore SIGALRM.
53943         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53944         before using alarm().
53945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53946         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53947         Reported by Ian Beckwith <ianb@erislabs.net>.
53948
53949         Produce autobuild blurb earlier in log.
53950         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53951
53952 2008-06-09  Jim Meyering  <meyering@redhat.com>
53953         and OndÅ™ej Vašík  <ovasik@redhat.com>
53954
53955         utimens.c: correct kernel bug work-around
53956         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53957         failure, not success, and the kernel bug we're trying to work
53958         around affects not just the utimensat call, but also the fallback
53959         futimens call.
53960         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53961         not success.
53962         [HAVE_FUTIMENS]: Use the same work-around, here.
53963
53964 2008-06-09  Jim Meyering  <meyering@redhat.com>
53965
53966         add more guards around definition of ACE_-related code
53967         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53968         ALLOW and ACE_OWNER are also defined.
53969
53970 2008-06-08  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/acl-internal.h: Add me as co-author.
53973         * lib/file-has-acl.c: Likewise.
53974         * lib/set-mode-acl.c: Likewise.
53975         * lib/copy-acl.c: Likewise.
53976
53977 2008-06-08  Bruno Haible  <bruno@clisp.org>
53978
53979         Add support for AIX ACLs.
53980         * lib/acl-internal.h (acl_nontrivial): New declaration.
53981         * lib/file-has-acl.c (acl_nontrivial): New function.
53982         (file_has_acl): Add implementation using AIX 4 ACL API.
53983         * lib/set-mode-acl.c (qset_acl): Likewise.
53984         * lib/copy-acl.c (qcopy_acl): Likewise.
53985
53986 2008-06-08  Bruno Haible  <bruno@clisp.org>
53987
53988         Add support for HP-UX ACLs.
53989         * lib/acl-internal.h (acl_nontrivial): New declaration.
53990         * lib/file-has-acl.c (acl_nontrivial): New function.
53991         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53992         * lib/set-mode-acl.c (qset_acl): Likewise.
53993         * lib/copy-acl.c (qcopy_acl): Likewise.
53994
53995 2008-06-08  Bruno Haible  <bruno@clisp.org>
53996
53997         Add support for Cygwin ACLs.
53998         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53999         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54000         the chmod_or_fchmod call.
54001         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54002
54003 2008-06-08  Bruno Haible  <bruno@clisp.org>
54004
54005         Fix bug with setuid modes in Solaris 10+ code.
54006         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54007         succeeded, when the mode contains some special bits.
54008
54009 2008-06-08  Bruno Haible  <bruno@clisp.org>
54010
54011         Add support for Solaris 7..10 ACLs.
54012         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54013         declarations.
54014         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54015         functions.
54016         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54017         * lib/set-mode-acl.c (qset_acl): Likewise.
54018         * lib/copy-acl.c (qcopy_acl): Likewise.
54019
54020 2008-06-08  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54023         declaration.
54024         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54025         (acl_access_nontrivial): Remove MacOS X case.
54026         (file_has_acl): Use acl_extended_nontrivial.
54027         * lib/copy-acl.c (qcopy_acl): Likewise.
54028
54029 2008-06-08  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54032
54033 2008-06-08  Jim Meyering  <meyering@redhat.com>
54034
54035         * modules/acl (Maintainer): Add Bruno Haible.
54036
54037 2008-06-07  Bruno Haible  <bruno@clisp.org>
54038
54039         Improve support for Tru64 ACLs.
54040         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54041         ACL on OSF/1.
54042
54043 2008-06-07  Bruno Haible  <bruno@clisp.org>
54044
54045         Add support for MacOS X ACLs.
54046         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54047         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54048         * lib/set-mode-acl.c (qset_acl): Likewise.
54049         * lib/copy-acl.c (qcopy_acl): Likewise.
54050
54051 2008-06-07  Bruno Haible  <bruno@clisp.org>
54052
54053         Fix memory leak introduced on 2008-05-22.
54054         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54055         use.
54056
54057 2008-06-07  Bruno Haible  <bruno@clisp.org>
54058
54059         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54060         to construct an empty ACL.
54061
54062 2008-06-07  Bruno Haible  <bruno@clisp.org>
54063
54064         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54065         precisely.
54066         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54067
54068 2008-06-07  Bruno Haible  <bruno@clisp.org>
54069
54070         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54071         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54072
54073 2008-06-07  Bruno Haible  <bruno@clisp.org>
54074
54075         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54076         regardless of POSIX.
54077         * doc/posix-functions/_longjmp.texi: Likewise.
54078         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54079         SystemV platform in this case.
54080
54081 2008-06-06  Eric Blake  <ebb9@byu.net>
54082
54083         Document abort() bugs.
54084         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54085
54086         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54087         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54088         sigsetjmp.
54089         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54090         siglongjmp, but only as a macro.
54091         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54092         is obsolete.
54093         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54094
54095         Tweak documentation to cover cygwin argz bugs.
54096         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54097         argz bug fix; no code change needed since no cygwin releases
54098         occurred between the last fix and the bug being tested.
54099         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54100         module and recently fixed cygwin bugs.
54101         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54102         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54103         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54104         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54105         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54106         Likewise.
54107         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54108         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54109         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54110         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54111         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54112         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54113         Likewise.
54114
54115         Avoid gcc warning on cygwin.
54116         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54117         !ACL_NO_TRIVIAL]: Avoid unused variable.
54118
54119 2008-06-05  Eric Blake  <ebb9@byu.net>
54120
54121         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54122         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54123         git-version-gen fails to come up with a version.
54124         Reported by Simon Josefsson.
54125
54126 2008-06-05  Jim Meyering  <meyering@redhat.com>
54127             Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         utimens.c: work around a probable Linux kernel bug
54130         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54131         appears to be a kernel bug that causes utimensat to return 280
54132         instead of 0, indicating success.
54133
54134 2008-06-04  Bruno Haible  <bruno@clisp.org>
54135
54136         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54137         2008-06-01 commit.
54138
54139 2008-06-04  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54142         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54143         (file_has_acl): Use it. Save errno afterwards.
54144         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54145
54146 2008-06-03  Bruno Haible  <bruno@clisp.org>
54147
54148         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54149         draft code. Simplify #ifs.
54150         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54151         Put Solaris code after POSIX-draft code. Fix comments regarding
54152         Solaris 10, HP-UX. Mention Cygwin.
54153         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54154
54155 2008-06-03  Eric Blake  <ebb9@byu.net>
54156
54157         Provide fallback for older kernels.
54158         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54159         Provide runtime fallback if kernel lacks support.
54160         Reported by Mike Frysinger.
54161
54162 2008-06-02  Bruno Haible  <bruno@clisp.org>
54163
54164         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54165         it exists.
54166
54167 2008-06-02  Bruno Haible  <bruno@clisp.org>
54168
54169         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54170         * lib/copy-acl.c (qcopy_acl): Update comment.
54171
54172 2008-06-02  Bruno Haible  <bruno@clisp.org>
54173
54174         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54175         like ACL APIs.
54176
54177 2008-06-02  Bruno Haible  <bruno@clisp.org>
54178
54179         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54180         * tests/test-set-mode-acl.sh: Likewise.
54181         * tests/test-copy-acl.sh: Likewise.
54182         * tests/test-copy-file.sh: Likewise.
54183
54184 2008-06-02  Bruno Haible  <bruno@clisp.org>
54185
54186         * tests/test-file-has-acl.sh: Remove unused code.
54187
54188 2008-06-01  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54191         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54192         messages.
54193         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54194
54195 2008-06-01  Bruno Haible  <bruno@clisp.org>
54196
54197         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54198         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54199         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54200         APIs.
54201         * modules/acl-tests (configure.ac): Remove tests now contained in
54202         m4/acl.m4.
54203
54204 2008-06-02  Jim Meyering  <meyering@redhat.com>
54205
54206         announce-gen: use a better key-server host name
54207         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54208         it may be more consistently reliable.  Suggested by Werner Koch
54209         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54210
54211 2008-06-01  Bruno Haible  <bruno@clisp.org>
54212
54213         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54214         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54215
54216 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54217
54218         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54219
54220 2008-06-01  Bruno Haible  <bruno@clisp.org>
54221
54222         New ACL tests.
54223         * tests/test-file-has-acl.sh: New file.
54224         * tests/test-file-has-acl.c: New file.
54225         * tests/test-set-mode-acl.sh: New file.
54226         * tests/test-set-mode-acl.c: New file.
54227         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54228         * tests/test-copy-acl.c: New file.
54229         * modules/acl-tests: New file, based on modules/copy-file-tests.
54230         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54231         (Depends-on): Add acl-tests.
54232         (configure.ac): Remove checks.
54233         (Makefile.am): Don't create test-sameacls program here any more.
54234
54235 2008-06-01  Bruno Haible  <bruno@clisp.org>
54236
54237         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54238         * tests/test-sameacls.c: Include progname.h.
54239         (main): Invoke set_program_name. Portability fixes for MacOS X,
54240         Solaris, HP-UX.
54241
54242 2008-06-01  Bruno Haible  <bruno@clisp.org>
54243
54244         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54245         function.
54246         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54247
54248 2008-06-01  Bruno Haible  <bruno@clisp.org>
54249
54250         * modules/rpmatch (Depends-on): Add strdup.
54251
54252 2008-06-01  Bruno Haible  <bruno@clisp.org>
54253
54254         * lib/pipe.c: Include unistd-safer.h.
54255         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54256         * modules/pipe (Depends-on): Add unistd-safer.
54257
54258 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54259
54260         * modules/autobuild (configure.ac): Call AB_INIT.
54261
54262 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54263
54264         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54265         Suggested by Bruno Haible <bruno@clisp.org>.
54266
54267 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54268
54269         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54270         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54271         <bruno@clisp.org>.
54272
54273 2008-05-29  Eric Blake  <ebb9@byu.net>
54274
54275         Prefer new POSIX 200x interfaces over futimesat.
54276         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54277         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54278         when available.
54279         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54280
54281 2008-05-28  Bruno Haible  <bruno@clisp.org>
54282
54283         * modules/stpcpy (License): Change to LGPLv2+.
54284         Requested by David Lutterkort <dlutter@redhat.com>.
54285
54286 2008-05-27  Bruno Haible  <bruno@clisp.org>
54287
54288         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54289         current mingw.
54290         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54291
54292 2008-05-27  Bruno Haible  <bruno@clisp.org>
54293
54294         * modules/iconv_open (Link): New section, from module 'iconv'.
54295         * modules/striconv (Link): Likewise.
54296         * modules/striconveh (Link): Likewise.
54297         * modules/xstriconv (Link): Likewise.
54298         * modules/unicodeio (Link): Likewise.
54299         * modules/propername (Link): Likewise.
54300         Reported by Jim Meyering.
54301
54302 2008-05-26  Jim Meyering  <meyering@redhat.com>
54303
54304         sha256: do not artificially restrict buffer length to be < 2^32
54305         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54306         uint32_t to size_t.
54307         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54308         to match.
54309
54310         avoid unaligned access errors, e.g., on sparc
54311         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54312         direct access through a possibly-unaligned uint64* pointer.
54313         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54314         direct access through a possibly-unaligned uint32* pointer.
54315         Prompted by this patch from Tom "spot" Callaway:
54316         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54317
54318         sha512.c: fix typo in comment
54319         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54320
54321 2008-05-25  Bruno Haible  <bruno@clisp.org>
54322
54323         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54324         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54325         (Makefile.am): Update lib_SOURCES.
54326
54327 2008-05-25  Bruno Haible  <bruno@clisp.org>
54328
54329         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54330
54331 2008-05-25  Jim Meyering  <meyering@redhat.com>
54332
54333         useless-if-before-free: freed expr may have white-space differences
54334         * build-aux/useless-if-before-free: Recognize cases in which the
54335         freed expression differs from the tested one in embedded white
54336         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54337         $1 was used, so we can't make any regexp shy.  Improved tests now
54338         detect this.
54339
54340         useless-if-before-free: accept white space in the expression.
54341         * build-aux/useless-if-before-free: For now, any white space
54342         in the expression must be identical in the free argument.
54343
54344         useless-if-before-free: efficiency tweak
54345         * build-aux/useless-if-before-free: Make the expression-matching
54346         regexp "shy".
54347         Make the *outer* regexp shy, not the expr-matching one.
54348
54349         update code-in-comment to accept cast of free arg
54350         * build-aux/useless-if-before-free: Update regexp.
54351
54352 2008-05-25  Bruno Haible  <bruno@clisp.org>
54353
54354         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54355         * modules/copy-file-tests (Files, Makefile.am): Update.
54356         * tests/test-copy-file.c (func_test_copy): Update.
54357
54358 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54359
54360         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54361
54362 2008-05-23  Bruno Haible  <bruno@clisp.org>
54363
54364         Improve support for ACLs on OSF/1.
54365         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54366         Remove fallback for unknown flavors of ACLs.
54367
54368 2008-05-22  Bruno Haible  <bruno@clisp.org>
54369
54370         Add support for ACLs on OSF/1.
54371         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54372         replacements.
54373         (acl_free_text): New macro fallback.
54374         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54375         acl_free.
54376         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54377         acl_free_text function. Require AC_C_INLINE.
54378
54379 2008-05-22  Bruno Haible  <bruno@clisp.org>
54380
54381         Make copy_acl work on MacOS X 10.5.
54382         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54383         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54384         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54385         If MODE_INSIDE_ACL, don't assume that every system has the same text
54386         representation for ACLs as FreeBSD.
54387         * lib/copy-acl.c (copy_acl): Add support for platforms with
54388         !MODE_INSIDE_ACL.
54389         * lib/file-has-acl.c (file_has_acl): Likewise.
54390         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54391         FreeBSD, MacOS X, or IRIX, respectively.
54392
54393 2008-05-22  Bruno Haible  <bruno@clisp.org>
54394
54395         * lib/acl.h: Don't include <sys/acl.h>.
54396         (GETACLCNT): Move fallback to lib/acl-internal.h.
54397         * lib/acl-internal.h: Include <sys/acl.h> here.
54398         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54399
54400 2008-05-22  Bruno Haible  <bruno@clisp.org>
54401
54402         Split off copy_acl function to separate file.
54403         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54404         * lib/acl.c (copy_acl): Moved function to separate file.
54405         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54406         * modules/acl (Files): Add lib/copy-acl.c.
54407         (Makefiles.am): Augment lib_SOURCES.
54408
54409 2008-05-22  Bruno Haible  <bruno@clisp.org>
54410
54411         * modules/copy-file-tests: New file.
54412         * tests/test-copy-file.sh: New file.
54413         * tests/test-copy-file.c: New file.
54414         * tests/test-copy-file-sameacls.c: New file.
54415
54416 2008-05-22  Eric Blake  <ebb9@byu.net>
54417
54418         Avoid gcc warning.
54419         * tests/test-memcmp.c (main): Pass NULL indirectly.
54420
54421 2008-05-21  Bruno Haible  <bruno@clisp.org>
54422
54423         Add reference doc about ACLs.
54424         * doc/acl-resources.txt: New file.
54425         * doc/acl-cygwin.txt: New file.
54426
54427 2008-05-21  Bruno Haible  <bruno@clisp.org>
54428
54429         Avoid one more warning from gcc.
54430         * lib/vasnprintf.c (IF_LINT): Update comments.
54431         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54432
54433 2008-05-21  Jim Meyering  <meyering@redhat.com>
54434
54435         avoid a warning from gcc
54436         * lib/vasnprintf.c (IF_LINT): Define.
54437         (scale10_round_decimal_long_double):
54438         Use it to avoid a "may be used uninitialized" warning.
54439         (scale10_round_decimal_double): Likewise.
54440
54441 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54442
54443         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54444         declared.
54445
54446 2008-05-20  Bruno Haible  <bruno@clisp.org>
54447
54448         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54449         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54450
54451 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54452
54453         * modules/memcmp-tests: New file.
54454         * tests/test-memcmp.c: New file.
54455
54456 2008-05-19  Bruno Haible  <bruno@clisp.org>
54457
54458         * modules/propername (Notice, configure.ac): Put quoted "..." into
54459         --keyword option.
54460         * lib/propername.h: Update comments accordingly.
54461         Reported by Eric Blake.
54462
54463 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54464
54465         * modules/getpass-gnu (Depends-on): Add fseeko.
54466
54467 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54468
54469         * modules/base64-tests: New file.
54470
54471 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54472
54473         * lib/base64.c (base64_decode_ctx): If a decode context structure
54474         was passed in use it to ignore newlines.  If a context structure
54475         was _not_ passed in, continue to treat newlines as garbage (this
54476         is the historical behavior).  Formerly base64_decode.
54477         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54478         takes a decode context structure.
54479         * lib/base64.h (base64_decode): Macro for four-argument calls.
54480         (base64_decode_alloc): Likewise.
54481         * lib/base64.c (base64_decode_ctx): If a decode context structure
54482         was passed in use it to ignore newlines.  If a context structure
54483         was _not_ passed in, continue to treat newlines as garbage (this
54484         is the historical behavior).  Formerly base64_decode.
54485         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54486         takes a decode context structure.
54487         * lib/base64.h (base64_decode): Macro for four-argument calls.
54488         (base64_decode_alloc): Likewise.
54489
54490 2008-05-19  Jim Meyering  <meyering@redhat.com>
54491
54492         avoid a warning from gcc
54493         * lib/trim.c (IF_LINT): Define.
54494         (trim2): Use it to avoid a "may be used uninitialized" warning.
54495
54496         Fix doc typo.
54497         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54498
54499 2008-05-19  Bruno Haible  <bruno@clisp.org>
54500
54501         * doc/glibc-functions/getpass.texi: Document limits of other
54502         implementations.
54503
54504 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54505             Bruno Haible <bruno@clisp.org>
54506
54507         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54508
54509 2008-05-18  Bruno Haible  <bruno@clisp.org>
54510
54511         * modules/propername: New file, from GNU gettext.
54512         * lib/propername.h: New file, from GNU gettext.
54513         * lib/propername.c: New file, from GNU gettext.
54514         * MODULES.html.sh (Internationalization functions): Add propername.
54515
54516 2008-05-16  Jim Meyering  <meyering@redhat.com>
54517             Bruno Haible  <bruno@clisp.org>
54518
54519         Avoid some warnings from "gcc -Wshadow".
54520         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54521
54522 2008-05-15  Eric Blake  <ebb9@byu.net>
54523
54524         Extend previous patch to cygwin 1.7.0.
54525         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54526         fast implementation in cygwin >= 1.7.0.
54527         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54529
54530 2008-05-15  Bruno Haible  <bruno@clisp.org>
54531
54532         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54533         implementation in glibc >= 2.9.
54534         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54536
54537 2008-05-15  Bruno Haible  <bruno@clisp.org>
54538
54539         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54540         (Unicode string functions): Add unilbrk/*.
54541         Reported by Karl Berry.
54542
54543 2008-05-15  Eric Blake  <ebb9@byu.net>
54544
54545         Fix violation of <stdbool.h> replacement in regex.
54546         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54547         * lib/regexec.c (re_search_internal): Likewise.
54548         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54549
54550 2008-05-15  Jim Meyering  <meyering@redhat.com>
54551
54552         avoid distracting test output when git or cvs is not found
54553         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54554         * tests/test-vc-list-files-git.sh: Likewise.
54555
54556 2008-05-15  Eric Blake  <ebb9@byu.net>
54557
54558         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54559         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54560         glibc version.
54561         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54562         * doc/posix-functions/strstr.texi (strstr): Likewise.
54563         * lib/str-two-way.h (MAX): Sychronize with glibc.
54564
54565 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54566
54567         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54568         opr.ctx_type.
54569         (calc_first): Initialize constraint field.
54570         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54571         Fix grammar.
54572         (duplicate_node): Merge constraint field for all node types.
54573         (calc_eclosure_iter): Look at constraint field for all node types.
54574         * lib/regex_internal.c (create_cd_newstate): Don't look at
54575         opr.ctx_type.
54576
54577 2008-05-14  Bruno Haible  <bruno@clisp.org>
54578
54579         Help GCC to do better code generation.
54580         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54581         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54582         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54583         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54584         Declare with attribute 'malloc' if supported.
54585
54586 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54587
54588         use "echo STR|wc -c" rather than unportable "expr length STR"
54589         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54590         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54591
54592 2008-05-14  Jim Meyering  <meyering@redhat.com>
54593
54594         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54595         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54596         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54597         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54598         via Collin Lasse.
54599
54600 2008-05-14  Eric Blake  <ebb9@byu.net>
54601
54602         Avoid quadratic growth in gl_LIBSOURCES.
54603         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54604         Suggested by Bruno Haible.
54605
54606         Test xmemdup0.
54607         * modules/xmemdup0-tests: New file.
54608         * tests/test-xmemdup0.c: Likewise.
54609
54610 2008-05-13  Eric Blake  <ebb9@byu.net>
54611
54612         Split xmemdup0 into its own module.
54613         * modules/xmemdup0: New file.
54614         * lib/xmemdup0.h: Likewise.
54615         * lib/xmemdup0.c: Likewise.
54616         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54617         * lib/xalloc.h (xmemdup0): Remove.
54618         * lib/xmalloc.c (xmemdup0): Likewise.
54619
54620 2008-05-13  Eric Blake  <ebb9@byu.net>
54621             Bruno Haible  <bruno@clisp.org>
54622
54623         Reduce number of forks required during autoconf.
54624         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54625         and gl_LIBSOURCES_DIR.
54626         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54627         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54628         m4_syscmd per file.
54629         <m4_foreach_w>: Move...
54630         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54631
54632 2008-05-13  Eric Blake  <ebb9@byu.net>
54633
54634         * gnulib-tool: Fix various comment typos.
54635
54636 2008-05-12  Bruno Haible  <bruno@clisp.org>
54637
54638         Tailor the linebreaking algorithm.
54639         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54640
54641 2008-05-12  Bruno Haible  <bruno@clisp.org>
54642
54643         Update to Unicode 5.0.0.
54644         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54645         LBP_JV, LBP_JT. Redistribute values.
54646         (unilbrk_table): Change size.
54647         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54648         Unicode TR#14 rev. 22.
54649         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54650         LBP_JV, LBP_JT. Redistribute values.
54651         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54652         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54653         Update.
54654         * lib/unilbrk/lbrkprop1.h: Regenerated.
54655         * lib/unilbrk/lbrkprop2.h: Regenerated.
54656         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54657         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54658         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54659         Likewise.
54660         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54661         Likewise.
54662         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54663         result.
54664         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54665         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54666         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54667         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54668         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54669         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54670
54671 2008-05-11  Bruno Haible  <bruno@clisp.org>
54672
54673         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54674
54675 2008-05-11  Bruno Haible  <bruno@clisp.org>
54676
54677         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54678         * modules/unilbrk/gen-lbrk: New file.
54679
54680 2008-05-11  Bruno Haible  <bruno@clisp.org>
54681
54682         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54683         * m4/sha512.m4 (gl_SHA512): Likewise.
54684
54685 2008-05-11  Jim Meyering  <meyering@redhat.com>
54686
54687         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54688         * modules/crypto/sha256: New file.
54689         * modules/crypto/sha512: Likewise.
54690         * lib/sha256.c: Likewise.
54691         * lib/sha256.h: Likewise.
54692         * lib/sha512.c: Likewise.
54693         * lib/sha512.h: Likewise.
54694         * lib/u64.h: Likewise.
54695         * m4/sha256.m4: Likewise.
54696         * m4/sha512.m4: Likewise.
54697         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54698
54699 2008-05-10  Bruno Haible  <bruno@clisp.org>
54700
54701         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54702         (Input/Output <stdio.h>): Add xprintf.
54703         (Signal handling <signal.h>): Add strsignal.
54704         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54705         (Core language properties): Add func.
54706         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54707         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54708         strings.
54709         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54710         (Input/output): New section.
54711         (File system functions): Add openat-die, stat-macros.
54712         (Networking functions): Add sockets.
54713         (Unicode string functions): Add unictype/*.
54714         (Support for building libraries and executables): Add gperf.
54715         (Support for building documentation): Add agpl-3.0.
54716         (Misc): Add nocrash.
54717
54718 2008-05-10  Bruno Haible  <bruno@clisp.org>
54719
54720         * modules/unictype/gen-ctype: New file.
54721
54722 2008-05-10  Jim Meyering  <meyering@redhat.com>
54723
54724         Make chdir-safer.c more efficient on a system with no symlinks.
54725         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54726         also if ELOOP is zero.  Suggested by Bruno Haible.
54727
54728         Make chdir-safer.c slightly safer.
54729         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54730         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54731
54732         Avoid compile failure on systems without ELOOP (like mingw).
54733         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54734         Reported by Bruno Haible.
54735
54736 2008-05-10  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54739         (is_utf8_encoding): Use a case-insensitive comparison.
54740         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54741         streq.
54742
54743 2008-05-10  Bruno Haible  <bruno@clisp.org>
54744
54745         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54746         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54747         * lib/unilbrk/ulc-common.h (iconv_string_length,
54748         iconv_string_keeping_offsets): Remove declarations.
54749         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54750         Don't include <iconv.h>, streq.h, xsize.h.
54751         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54752         conversion.
54753         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54754         <iconv.h>, streq.h, xsize.h.
54755         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54756         conversion.
54757         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54758         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54759         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54760         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54761
54762 2008-05-10  Bruno Haible  <bruno@clisp.org>
54763
54764         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54765         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54766
54767         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54768         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54769
54770         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54771         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54772
54773         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54774         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54775
54776         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54777         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54778
54779         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54780         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54781
54782         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54783         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54784
54785         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54786         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54787
54788 2008-05-10  Bruno Haible  <bruno@clisp.org>
54789
54790         Split up 'linebreak' module.
54791         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54792         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54793         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54794         modifications.
54795         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54796         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54797         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54798         lib/linebreak.c.
54799         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54800         lib/linebreak.c.
54801         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54802         lib/linebreak.c.
54803         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54804         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54805         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54806         lib/linebreak.c.
54807         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54808         lib/linebreak.c.
54809         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54810         lib/linebreak.c.
54811         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54812         lib/linebreak.c.
54813         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54814         lib/linebreak.c.
54815         * modules/unilbrk/base: New file.
54816         * modules/unilbrk/tables: New file.
54817         * modules/unilbrk/u8-possible-linebreaks: New file.
54818         * modules/unilbrk/u16-possible-linebreaks: New file.
54819         * modules/unilbrk/u32-possible-linebreaks: New file.
54820         * modules/unilbrk/ulc-common: New file.
54821         * modules/unilbrk/ulc-possible-linebreaks: New file.
54822         * modules/unilbrk/u8-width-linebreaks: New file.
54823         * modules/unilbrk/u16-width-linebreaks: New file.
54824         * modules/unilbrk/u32-width-linebreaks: New file.
54825         * modules/unilbrk/ulc-width-linebreaks: New file.
54826         * lib/linebreak.h: Remove file.
54827         * lib/linebreak.c: Remove file.
54828         * m4/linebreak.m4: Remove file.
54829         * modules/linebreak: Remove file.
54830         * NEWS: Mention the changes.
54831
54832 2008-05-09  Eric Blake  <ebb9@byu.net>
54833
54834         Add xmemdup0.
54835         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54836         implementation.
54837         * lib/xmalloc.c (xmemdup0): New C implementation.
54838
54839 2008-05-08  Bruno Haible  <bruno@clisp.org>
54840
54841         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54842
54843 2008-05-07  Eric Blake  <ebb9@byu.net>
54844
54845         Support cross-compilation of <wctype.h>.
54846         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54847         AC_CACHE_CHECK.
54848
54849 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54850
54851         * build-aux/vc-list-files: Add support for bzr.
54852
54853 2008-05-03  Jim Meyering  <meyering@redhat.com>
54854
54855         avoid failed assertion with tight malloc
54856         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54857
54858 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54859
54860         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54861         are needed from arpa/inet.h.
54862         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54863         Reported by Bruno Haible.
54864
54865 2008-05-02  Jim Meyering  <meyering@redhat.com>
54866
54867         avoid compilation error on FreeBSD 6
54868         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54869
54870 2008-05-01  Jim Meyering  <meyering@redhat.com>
54871
54872         useless-if-before-free: correct --help's exit status description
54873         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54874         for one or more matches, etc.  Reported by Bruno Haible.
54875
54876         vc-list-files: make the stand-alone gnulib test work
54877         * modules/vc-list-files-tests (configure.ac):
54878         Define and AC_SUBST abs_aux_dir.
54879         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54880         $(abs_top_srcdir) to each script and having each of them
54881         duplicate the work of setting PATH, set PATH here, using
54882         the new variable, abs_aux_dir instead.
54883         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54884         * tests/test-vc-list-files-git.sh: Likewise.
54885         Reported by Bruno Haible.
54886
54887 2008-05-01  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54890         reallocation. Rename 'done' to 'found_delimiter'.
54891
54892 2008-05-01  Jim Meyering  <meyering@redhat.com>
54893
54894         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54895         * build-aux/vc-list-files: Use `...`, not $(...).
54896
54897 2008-04-30  Jim Meyering  <meyering@redhat.com>
54898
54899         add tests for vc-list-files
54900         * modules/vc-list-files-tests: New module.
54901         * tests/test-vc-list-files-cvs.sh: New file.
54902         * tests/test-vc-list-files-git.sh: New file.
54903
54904         avoid a warning from gcc
54905         * lib/getndelim2.c (IF_LINT): Define.
54906         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54907
54908         vc-list-files: work properly with build-aux/cvsu, too
54909         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54910         to all cvs-based clauses.
54911
54912         vc-list-files: work properly in the CVS+awk case, too
54913         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54914
54915         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54916         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54917         take more than one file argument, so .  Add quotes, just in case $dir
54918         ever contains a shell meta-character.  Prompted by Soren Hansen in
54919         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54920
54921 2008-04-29  Eric Blake  <ebb9@byu.net>
54922
54923         Optimize getndelim2 to use block operations when possible.
54924         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54925         freadseek, and memchr2.
54926         * lib/getndelim2.c (getndelim2): Use them for block reads.
54927
54928 2008-04-29  Bruno Haible  <bruno@clisp.org>
54929
54930         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54932         * modules/inet_ntop (Depends-on): Add extensions.
54933         * modules/inet_pton (Depends-on): Likewise.
54934         Reported by Simon Josefsson.
54935
54936 2008-04-29  Jim Meyering  <meyering@redhat.com>
54937
54938         When the is more than one match in a block, match all of them.
54939         * build-aux/useless-if-before-free: Iterate through each block
54940         until there are no more matches.
54941
54942         Fix broken useless-if-before-free script.
54943         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54944         the expression to match cast of argument to free-like function.
54945
54946 2008-04-29  Eric Blake  <ebb9@byu.net>
54947
54948         Use new header.
54949         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54950
54951 2008-04-29  Jim Meyering  <meyering@redhat.com>
54952
54953         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54954         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54955         by gnulib to exist and to declare e.g., inet_ntop.
54956         Don't include "inet_ntop.h", now removed.
54957
54958         * m4/arpa_inet_h.m4: Remove trailing blanks.
54959
54960 2008-04-29  Eric Blake  <ebb9@byu.net>
54961
54962         Silence valgrind on safe reads beyond potential array bounds.
54963         * lib/rawmemchr.valgrind: New file.
54964         * lib/strchrnul.valgrind: Likewise.
54965         * modules/rawmemchr (Files): Distribute new file.
54966         * modules/strchrnul (Files): Likewise.
54967         Suggested by Bruno Haible.
54968
54969 2008-04-29  Bruno Haible  <bruno@clisp.org>
54970
54971         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54972         (inet_ntop, inet_pton): Change portability warning's wording.
54973         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54974         Invoke gl_CHECK_NEXT_HEADERS.
54975         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54976         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54977         set ARPA_INET_H.
54978         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54979         * modules/arpa_inet (Description): No longer only for systems that
54980         lack it.
54981         (Depends-on): Add include_next.
54982         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54983         HAVE_ARPA_INET_H.
54984
54985 2008-04-29  Jim Meyering  <meyering@redhat.com>
54986
54987         * modules/mkdir (License): Re-license as LGPLv2+.
54988
54989 2008-04-29  Bruno Haible  <bruno@clisp.org>
54990
54991         * modules/rawmemchr (Maintainer): Set to Eric.
54992         * modules/strchrnul (Maintainer): Likewise.
54993
54994 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54995
54996         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54997         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54998
54999         * modules/arpa_inet (arpa/inet.h): Use them.
55000
55001 2008-04-28  Eric Blake  <ebb9@byu.net>
55002
55003         Test getndelim2.
55004         * modules/getndelim2-tests: New file.
55005         * tests/test-getndelim2.c: Likewise.
55006         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55007         stream.
55008         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55009
55010         * MODULES.html.sh: Document new module.
55011
55012 2008-04-20  Bruno Haible  <bruno@clisp.org>
55013
55014         * lib/c-stack.c (die): Use raise.
55015         * modules/c-stack (Depends-on): Add raise.
55016
55017 2008-04-28  Bruno Haible  <bruno@clisp.org>
55018
55019         Expect rpmatch to be declared.
55020         * lib/yesno.c (rpmatch): Remove declaration.
55021
55022         Declare rpmatch.
55023         * lib/stdlib.in.h (rpmatch): New declaration.
55024         * lib/rpmatch.c: Include <stdlib.h> first.
55025         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55026         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55028         HAVE_RPMATCH.
55029         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55030         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55031         (Include): Set to <stdlib.h>.
55032         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55033         HAVE_RPMATCH.
55034         * NEWS: Document the change.
55035
55036 2008-04-28  Bruno Haible  <bruno@clisp.org>
55037
55038         Change rpmatch to use nl_langinfo when appropriate.
55039         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55040         (N_): New macro.
55041         (localized_pattern): New function/macro.
55042         (try): Remove match, nomatch arguments. Copy the pattern into safe
55043         memory before caching it.
55044         (rpmatch): Use localized_pattern. Add translator comments.
55045         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55046         Suggested by Eric Blake.
55047         * modules/rpmatch (Depends-on): Add stdbool.
55048
55049 2008-04-28  Eric Blake  <ebb9@byu.net>
55050
55051         Add rawmemchr module, matching glibc.
55052         * modules/string (Makefile.am): New indicator.
55053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55054         * lib/string.in.h (rawmemchr): Declare when appropriate.
55055         * modules/rawmemchr: New file.
55056         * m4/rawmemchr.m4: Likewise.
55057         * lib/rawmemchr.c: Likewise.
55058         * modules/rawmemchr-tests: Likewise.
55059         * tests/test-rawmemchr.c: Likewise.
55060         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55061         module.
55062         * modules/strchrnul (Depends-on): Add rawmemchr.
55063         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55064
55065         Whitespace cleanup.
55066         * tests/test-strchrnul.c: Reindent.
55067         * lib/strchrnul.c: Likewise.
55068
55069         Optimize and test strchrnul.
55070         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55071         * modules/strchrnul-tests: New file.
55072         * tests/test-strchrnul.c: Likewise.
55073
55074         Remove intprops dependency.
55075         * modules/memchr (Depends-on): Remove intprops.
55076         * modules/memrchr (Depends-on): Likewise.
55077         * modules/memchr2 (Depends-on): Likewise.
55078         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55079         * lib/memrchr.c (__memrchr): Likewise.
55080         * lib/memrchr2.c (memchr2): Likewise.
55081         Reported by Simon Josefsson.
55082
55083 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55084
55085         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55086         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55087
55088 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55089
55090         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55091
55092         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55093
55094         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55095
55096         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55097         declarations.
55098         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55099
55100         * m4/inet_pton.m4: Don't check for header files.
55101
55102         * m4/inet_ntop.m4: Don't check for header files.
55103
55104 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55105
55106         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55107         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55108         trigger for cygwin).
55109         Reported by Bruno Haible  <bruno@clisp.org>.
55110
55111 2008-04-28  Bruno Haible  <bruno@clisp.org>
55112
55113         * doc/posix-functions/strdup.texi: Mention mingw problem.
55114
55115 2008-04-27  Bruno Haible  <bruno@clisp.org>
55116
55117         * modules/stat-time-tests (Depends-on): Add sleep.
55118         * tests/test-stat-time.c (force_unlink): New function.
55119         (cleanup): Use it.
55120         (test_mtime): Remove the ctime related tests.
55121         (test_ctime): New function, containing the ctime related tests.
55122         (main): Call test_ctime, except on native Windows platforms.
55123
55124 2008-04-27  Bruno Haible  <bruno@clisp.org>
55125
55126         * lib/rpmatch.c (rpmatch): Add some comments.
55127         Reported by James Youngman <jay@gnu.org>.
55128
55129 2008-04-27  Bruno Haible  <bruno@clisp.org>
55130
55131         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55132         quiet NaNs.
55133
55134 2008-04-27  Bruno Haible  <bruno@clisp.org>
55135
55136         Make test-yesno.sh work on mingw.
55137         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55138         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55139         (main): Set stdin to binary mode.
55140         * modules/yesno-tests (Depends-on): Add binary-io.
55141
55142 2008-04-27  Bruno Haible  <bruno@clisp.org>
55143
55144         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55145         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55146         argument that lie outside the IEEE 854 domain.
55147         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55148         (gl_ISFINITE): Use it.
55149         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55150
55151 2008-04-27  Bruno Haible  <bruno@clisp.org>
55152
55153         Allow local renaming in config.h.
55154         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55155
55156 2008-04-27  Bruno Haible  <bruno@clisp.org>
55157
55158         * lib/memchr.c (__memchr): Change type of 'i'.
55159         * lib/memchr2.c (memchr2): Likewise.
55160
55161 2008-04-26  Eric Blake  <ebb9@byu.net>
55162         and Bruno Haible  <bruno@clisp.org>
55163
55164         Optimize and test memrchr.
55165         * modules/memrchr (Depends-on): Add intprops.
55166         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55167         * modules/memrchr-tests: New file.
55168         * tests/test-memrchr.c: New file.
55169
55170 2008-04-26  Bruno Haible  <bruno@clisp.org>
55171
55172         Add tentative support for DragonFly BSD.
55173         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55174         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55175         fp.
55176         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55177         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55178         * lib/fpurge.c (fpurge): Likewise.
55179         * lib/freadable.c (freaadable): Likewise.
55180         * lib/freadahead.c (freadahead): Likewise.
55181         * lib/freading.c (freading): Likewise.
55182         * lib/freadptr.c (freadptr): Likewise.
55183         * lib/freadseek.c (freadptrinc): Likewise.
55184         * lib/fseeko.c (fseeko): Likewise.
55185         * lib/fseterr.c (fseterr): Likewise.
55186         * lib/fwritable.c (fwritable): Likewise.
55187         * lib/fwriting.c (fwriting): Likewise.
55188
55189 2008-04-26  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/stdio-impl.h: New file.
55192         * lib/fbufmode.c: Include stdio-impl.h.
55193         (fbufmode): Use fp_, remove redundant #defines.
55194         * lib/fflush.c: Include stdio-impl.h.
55195         (clear_ungetc_buffer): Remove redundant #defines.
55196         * lib/fpurge.c: Include stdio-impl.h.
55197         (fpurge): Remove redundant #defines.
55198         * lib/freadable.c: Include stdio-impl.h.
55199         (freadable): Remove redundant #defines.
55200         * lib/freadahead.c: Include stdio-impl.h.
55201         (freadahead): Remove redundant #defines.
55202         * lib/freading.c: Include stdio-impl.h.
55203         (freading): Remove redundant #defines.
55204         * lib/freadptr.c: Include stdio-impl.h.
55205         (freadptr): Remove redundant #defines.
55206         * lib/freadseek.c: Include stdio-impl.h.
55207         (freadptrinc): Remove redundant #defines.
55208         * lib/fseeko.c: Include stdio-impl.h.
55209         (rpl_fseeko): Remove redundant #defines.
55210         * lib/fseterr.c: Include stdio-impl.h.
55211         (fseterr): Remove redundant #defines.
55212         * lib/fwritable.c: Include stdio-impl.h.
55213         (fwritable: Remove redundant #defines.
55214         * lib/fwriting.c: Include stdio-impl.h.
55215         (fwriting): Remove redundant #defines.
55216         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55217         * modules/fflush (Files): Likewise.
55218         * modules/fpurge (Files): Likewise.
55219         * modules/freadable (Files): Likewise.
55220         * modules/freadahead (Files): Likewise.
55221         * modules/freading (Files): Likewise.
55222         * modules/freadptr (Files): Likewise.
55223         * modules/freadseek (Files): Likewise.
55224         * modules/fseeko (Files): Likewise.
55225         * modules/fseterr (Files): Likewise.
55226         * modules/fwritable (Files): Likewise.
55227         * modules/fwriting (Files): Likewise.
55228
55229 2008-04-26  Bruno Haible  <bruno@clisp.org>
55230
55231         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55232         restore_seek_optimization, update_fpos_cache): New functions, extracted
55233         from rpl_fflush.
55234         (rpl_fflush): Use them.
55235         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55236         (gl_REPLACE_FFLUSH): Use it.
55237
55238 2008-04-26  Bruno Haible  <bruno@clisp.org>
55239
55240         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55241         on Solaris.
55242         * tests/test-xstrtoimax.sh: Likewise.
55243         * tests/test-xstrtoumax.sh: Likewise.
55244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55245
55246 2008-04-26  Bruno Haible  <bruno@clisp.org>
55247
55248         * modules/memchr-tests: New file.
55249         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55250
55251 2008-04-26  Eric Blake  <ebb9@byu.net>
55252             Bruno Haible  <bruno@clisp.org>
55253
55254         * lib/memchr.c: Include intprops.h.
55255         (__memchr): Optimize parallel detection of matching bytes. Rename local
55256         variables. Add explanatory comments.
55257
55258 2008-04-26  Bruno Haible  <bruno@clisp.org>
55259
55260         Fix module 'memchr', broken since 2000-10-28.
55261         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55262
55263 2008-04-26  Bruno Haible  <bruno@clisp.org>
55264
55265         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55266         comments.
55267
55268 2008-04-25  Eric Blake  <ebb9@byu.net>
55269
55270         Use native fstatat on cygwin 1.7.0.
55271         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55272         first.
55273
55274 2008-04-23  Eric Blake  <ebb9@byu.net>
55275
55276         Improve memchr2 performance.
55277         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55278         NUL bytes.
55279         * modules/memchr2 (Depends-on): Use intprops.h.
55280
55281 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55282
55283         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55284         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55285         <blp@cs.stanford.edu>.
55286
55287 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55288
55289         * lib/arpa_inet.in.h: New file.
55290
55291         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55292         (Makefile.am): Sed in substitute header file.
55293
55294         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55295         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55296
55297         * modules/inet_ntop (configure.ac): Use
55298         gl_ARPA_INET_MODULE_INDICATOR.
55299
55300         * modules/inet_pton (configure.ac): Use
55301         gl_ARPA_INET_MODULE_INDICATOR.
55302
55303 2008-04-22  Jim Meyering  <meyering@redhat.com>
55304
55305         * modules/verify (License): Re-license as LGPLv2+.
55306
55307 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55308
55309         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55310         parameter to void* as per POSIX standard (MinGW uses char*).
55311
55312 2008-04-21  Bruno Haible  <bruno@clisp.org>
55313
55314         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55315         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55316         Define to replacements if REPLACE_ISWCNTRL is 1.
55317         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55318         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55319         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55320         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55321         what it fixes.
55322         * doc/posix-functions/iswalpha.texi: Likewise.
55323         * doc/posix-functions/iswblank.texi: Likewise.
55324         * doc/posix-functions/iswcntrl.texi: Likewise.
55325         * doc/posix-functions/iswdigit.texi: Likewise.
55326         * doc/posix-functions/iswgraph.texi: Likewise.
55327         * doc/posix-functions/iswlower.texi: Likewise.
55328         * doc/posix-functions/iswprint.texi: Likewise.
55329         * doc/posix-functions/iswpunct.texi: Likewise.
55330         * doc/posix-functions/iswspace.texi: Likewise.
55331         * doc/posix-functions/iswupper.texi: Likewise.
55332         * doc/posix-functions/iswxdigit.texi: Likewise.
55333         Reported by Alain Guibert.
55334
55335 2008-04-21  Bruno Haible  <bruno@clisp.org>
55336
55337         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55338         Patch by Alain Guibert.
55339
55340 2008-04-21  Bruno Haible  <bruno@clisp.org>
55341
55342         Fix test failures on mingw.
55343         * tests/test-xstrtol.c (print_no_progname): New function.
55344         (main): Install it in error_print_progname hook.
55345         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55346         * tests/test-xstrtoimax.sh: Likewise.
55347         * tests/test-xstrtoumax.sh: Likewise.
55348
55349 2008-04-21  Bruno Haible  <bruno@clisp.org>
55350
55351         Fix test failure on mingw.
55352         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55353
55354 2008-04-21  Bruno Haible  <bruno@clisp.org>
55355
55356         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55357         Actually assign a value.
55358
55359 2008-04-20  Bruno Haible  <bruno@clisp.org>
55360
55361         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55362         take 2.
55363         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55364         'canonicalize-lgpl' module is also used.
55365         * lib/canonicalize-lgpl.c: Undo last change.
55366         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55367
55368 2008-04-20  Bruno Haible  <bruno@clisp.org>
55369
55370         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55371         config.h. Provide _mkdir based fallback for mingw.
55372         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55373         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55374         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55375         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55376         rather than defining mkdir in config.h.
55377         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55378         (gl_SYS_STAT_H_DEFAULTS): New macro.
55379         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55380         HAVE_IO_H any more.
55381         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55382         HAVE_DECL_MKDIR and HAVE_IO_H.
55383
55384 2008-04-20  Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/isapipe.c: Port to native Windows platforms.
55387
55388 2008-04-20  Bruno Haible  <bruno@clisp.org>
55389
55390         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55391
55392 2008-04-21  Eric Blake  <ebb9@byu.net>
55393
55394         Work around preprocessors that don't handle UINTMAX_MAX.
55395         * lib/memchr2.c (memchr2): Avoid embedded #if.
55396         Reported by Alain Guibert, fix suggested by Bruno Haible.
55397
55398 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55399
55400         * doc/posix-functions/strftime.texi (strftime): Explain better
55401         Windows incompatibility.  Suggested by Micah Cowan
55402         <micah@cowan.name>.
55403
55404 2008-04-20  Bruno Haible  <bruno@clisp.org>
55405
55406         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55407         unistr/u8-mblen.
55408
55409 2008-04-20  Bruno Haible  <bruno@clisp.org>
55410
55411         Fix test failure on platforms with non-GNU iconv.
55412         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55413         (U_TO_U8): Use it, rather than u16_to_u8.
55414         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55415         units at the end of the input string.
55416         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55417
55418 2008-04-20  Bruno Haible  <bruno@clisp.org>
55419
55420         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55421         when the resulting length is 0.
55422         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55423
55424 2008-04-20  Bruno Haible  <bruno@clisp.org>
55425
55426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55427         works.
55428         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55429
55430 2008-04-20  Bruno Haible  <bruno@clisp.org>
55431
55432         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55433         * modules/tsearch-tests (configure.ac): Test for initstate function.
55434
55435 2008-04-20  Bruno Haible  <bruno@clisp.org>
55436
55437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55438         for nlink_t if missing.
55439         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55440
55441 2008-04-19  Bruno Haible  <bruno@clisp.org>
55442
55443         Work around snprintf bug on Linux libc5.
55444         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55446         gl_SNPRINTF_SIZE1.
55447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55448         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55449         that test failed.
55450         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55451         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55452         * modules/snprintf (Files): Add m4/printf.m4.
55453         * modules/vsnprintf (Files): Likewise.
55454         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55455         * doc/posix-functions/vsnprintf.texi: Likewise.
55456
55457 2008-04-19  Bruno Haible  <bruno@clisp.org>
55458
55459         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55460         from 0.0058 to less than 10^-7.
55461
55462 2008-04-19  Bruno Haible  <bruno@clisp.org>
55463
55464         Fix rounding when a precision is given.
55465         * lib/vasnprintf.c (is_borderline): New function.
55466         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55467         9...9x.
55468         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55469         %e, %g.
55470         * tests/test-vasprintf-posix.c (test_function): Likewise.
55471         * tests/test-snprintf-posix.h (test_function): Likewise.
55472         * tests/test-sprintf-posix.h (test_function): Likewise.
55473         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55474         * tests/test-printf-posix.h (test_function): Likewise.
55475         * tests/test-printf-posix.output: Update.
55476         Reported by John Darrington <john@darrington.wattle.id.au> via
55477         Ben Pfaff <blp@cs.stanford.edu>.
55478
55479 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55480
55481         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55482         Suggested by Bruno Haible <bruno@clisp.org>.
55483
55484 2008-04-17  Bruno Haible  <bruno@clisp.org>
55485
55486         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55487         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55488         implementation.
55489         Patch by Bruce Merry <bmerry@gmail.com>.
55490
55491 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55492
55493         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55494         doesn't work under Windows.
55495
55496 2008-04-16  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55499         New macros.
55500         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55501         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55502         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55503         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55504         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55505         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55506         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55507         macros.
55508         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55509         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55510         Northern Sotho, Uighur.
55511
55512 2008-04-16  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55515         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55516         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55517         Reported by Daniel Bergström <daniel@octocode.com>.
55518
55519 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55520             Bruno Haible  <bruno@clisp.org>
55521
55522         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55523         function.
55524         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55525         New functions, mostly extracted from gl_locale_name_default.
55526         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55527
55528 2008-04-16  Eric Blake  <ebb9@byu.net>
55529
55530         Adjust strtod detection to catch glibc 2.7 bug.
55531         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55532         Reported by John Gatewood Ham.
55533
55534 2008-04-16  Bruno Haible  <bruno@clisp.org>
55535
55536         Add tentative support for Linux libc5.
55537         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55538         * lib/fpurge.c (fpurge): Likewise.
55539         * lib/freadable.c (freadable): Likewise.
55540         * lib/freadahead.c (freadahead): Likewise.
55541         * lib/freading.c (freading): Likewise.
55542         * lib/freadptr.c (freadptr): Likewise.
55543         * lib/freadseek.c (freadptrinc): Likewise.
55544         * lib/fseeko.c (rpl_fseeko): Likewise.
55545         * lib/fseterr.c (fseterr): Likewise.
55546         * lib/fwritable.c (fwritable): Likewise.
55547         * lib/fwriting.c (fwriting): Likewise.
55548         Reported by Alain Guibert <alguibert+bts@free.fr>.
55549
55550 2008-04-15  Bruno Haible  <bruno@clisp.org>
55551
55552         * modules/mathl (configure.ac): Define module indicator.
55553
55554 2008-04-15  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/logl.c (logl): Remove unused variables.
55557
55558 2008-04-15  Bruno Haible  <bruno@clisp.org>
55559
55560         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55561         fails.
55562
55563 2008-04-15  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/trim.c (trim2): Fix argument of isspace() macro.
55566
55567 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55568
55569         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55570         to 0.
55571         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55572
55573 2008-04-14  Bruno Haible  <bruno@clisp.org>
55574
55575         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55576         AC_LANG_PROGRAM argument.
55577         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55578         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55580         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55581         * m4/math_h.m4 (gl_MATH_H): Likewise.
55582         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55583         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55584         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55585         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55586         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55587         * m4/regex.m4 (gl_REGEX): Likewise.
55588         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55589         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55591         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55592         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55593         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55594         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55595         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55596
55597 2008-04-14  Jim Meyering  <meyering@redhat.com>
55598
55599         test-strtod: fix typos: s/abs/fabs/
55600         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55601
55602 2008-04-13  Bruno Haible  <bruno@clisp.org>
55603
55604         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55605         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55606         module is also used and while not building the reloc-wrapper.
55607
55608 2008-04-13  Bruno Haible  <bruno@clisp.org>
55609
55610         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55611
55612 2008-04-13  Bruno Haible  <bruno@clisp.org>
55613
55614         Fix AIX compilation failure introduced on 2008-04-02.
55615         * tests/test-frexp.c (exp): Undefine before redefining.
55616         * tests/test-frexpl.c (exp): Likewise.
55617
55618 2008-04-13  Bruno Haible  <bruno@clisp.org>
55619
55620         Work around a HP-UX stdio bug.
55621         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55622         * tests/test-ftello.c (main): Likewise.
55623         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55624         * doc/posix-functions/ftello.texi: Likewise.
55625
55626 2008-04-13  Bruno Haible  <bruno@clisp.org>
55627
55628         Make test-signbit pass on HP-UX/hppa.
55629         * tests/test-signbit.c (minus_zerol): New variable.
55630         (test_signbitl): Use it.
55631
55632 2008-04-13  Bruno Haible  <bruno@clisp.org>
55633
55634         Make truncl work on OSF/1 4.0.
55635         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55636         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55637         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55639         HAVE_DECL_TRUNCL.
55640         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55641         HAVE_DECL_TRUNCL.
55642         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55643
55644 2008-04-13  Bruno Haible  <bruno@clisp.org>
55645
55646         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55647
55648 2008-04-13  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55651         expression, so as to avoid HP-UX 11 cc compiler bug.
55652
55653 2008-04-13  Bruno Haible  <bruno@clisp.org>
55654
55655         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55656
55657 2008-04-13  Bruno Haible  <bruno@clisp.org>
55658
55659         * lib/git-merge-changelog.c: Remove empty declaration outside of
55660         functions.
55661
55662 2008-04-13  Bruno Haible  <bruno@clisp.org>
55663
55664         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55665
55666 2008-04-13  Bruno Haible  <bruno@clisp.org>
55667
55668         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55669         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55670         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55671         also if it exists but lacks definitions of the SHUT_* macros.
55672         * modules/sys_socket (Description): Update.
55673         Reported by Elbert Pol <e.pol@chello.nl>.
55674
55675 2008-04-13  Bruno Haible  <bruno@clisp.org>
55676
55677         * lib/localcharset.c (OS2): Don't redefine if already defined.
55678         Reported by Elbert Pol <e.pol@chello.nl>.
55679
55680 2008-04-13  Bruno Haible  <bruno@clisp.org>
55681
55682         * lib/binary-io.h [__EMX__]: Include <io.h>.
55683         Reported by Elbert Pol <e.pol@chello.nl>.
55684
55685 2008-04-12  Bruno Haible  <bruno@clisp.org>
55686
55687         * lib/fpucw.h: Enable the definitions also for x86_64.
55688         Needed for NetBSD/x86_64.
55689         Reported by Thomas Klausner <tk@giga.or.at>.
55690
55691 2008-04-12  Bruno Haible  <bruno@clisp.org>
55692
55693         * tests/test-strtod.c: Include isnand.h.
55694         (main): Use isnand instead of isnan.
55695         Reported by Jim Meyering.
55696
55697 2008-04-12  Bruno Haible  <bruno@clisp.org>
55698
55699         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55700         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55701
55702 2008-04-12  Jim Meyering  <meyering@redhat.com>
55703
55704         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55705
55706 2008-04-12  Bruno Haible  <bruno@clisp.org>
55707
55708         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55709         Reported by Elbert Pol <e.pol@chello.nl>.
55710
55711 2008-04-12  Eric Blake  <ebb9@byu.net>
55712
55713         Work around Solaris 10 math.h bug.
55714         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55715         (gl_MATH_H_DEFAULTS): Set up default.
55716         * modules/math (Makefile.am): Replace new indicators.
55717         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55718         * tests/test-math.c (main): Test this.
55719         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55720         * doc/posix-headers/math.texi (math.h): Mention bug.
55721         Reported by Nelson H. F. Beebe and Jim Meyering.
55722
55723 2008-04-11  Bruno Haible  <bruno@clisp.org>
55724
55725         Adapt to future versions of Apple GCC.
55726         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55727         Reported by Peter O'Gorman <peter@pogma.com>.
55728
55729 2008-04-11  Bruno Haible  <bruno@clisp.org>
55730
55731         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55732
55733 2008-04-11  Bruno Haible  <bruno@clisp.org>
55734
55735         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55736
55737         * modules/getaddrinfo-tests (Makefile.am): Define
55738         test_getaddrinfo_LDADD.
55739
55740 2008-04-11  Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55743         (init): Fix syntax error.
55744         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55745         is declared.
55746
55747 2008-04-11  Bruno Haible  <bruno@clisp.org>
55748
55749         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55750         * modules/glob (Depends-on): Add stdbool.
55751
55752 2008-04-11  Bruno Haible  <bruno@clisp.org>
55753
55754         * lib/trim.c: Include <string.h>.
55755
55756 2008-04-11  Eric Blake  <ebb9@byu.net>
55757
55758         Avoid compile failure on OS/2.
55759         * lib/regex_internal.h (internal_function): Disable optimization
55760         on OS/2 (__EMX__), where it caused compiler error.
55761         Reported by Elbert Pol.
55762
55763 2008-04-11  Bruno Haible  <bruno@clisp.org>
55764
55765         Flush the standard error stream before aborting. Needed on mingw.
55766         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55767         * tests/test-array_list.c (ASSERT): Likewise.
55768         * tests/test-array_oset.c (ASSERT): Likewise.
55769         * tests/test-avltree_list.c (ASSERT): Likewise.
55770         * tests/test-avltree_oset.c (ASSERT): Likewise.
55771         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55772         * tests/test-binary-io.c (ASSERT): Likewise.
55773         * tests/test-byteswap.c (ASSERT): Likewise.
55774         * tests/test-c-ctype.c (ASSERT): Likewise.
55775         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55776         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55777         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55778         * tests/test-c-strstr.c (ASSERT): Likewise.
55779         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55780         * tests/test-canonicalize.c (ASSERT): Likewise.
55781         * tests/test-carray_list.c (ASSERT): Likewise.
55782         * tests/test-ceilf1.c (ASSERT): Likewise.
55783         * tests/test-ceilf2.c (ASSERT): Likewise.
55784         * tests/test-ceill.c (ASSERT): Likewise.
55785         * tests/test-count-one-bits.c (ASSERT): Likewise.
55786         * tests/test-fbufmode.c (ASSERT): Likewise.
55787         * tests/test-fflush2.c (ASSERT): Likewise.
55788         * tests/test-floorf1.c (ASSERT): Likewise.
55789         * tests/test-floorf2.c (ASSERT): Likewise.
55790         * tests/test-floorl.c (ASSERT): Likewise.
55791         * tests/test-fopen.c (ASSERT): Likewise.
55792         * tests/test-fpending.c (ASSERT): Likewise.
55793         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55794         * tests/test-fpurge.c (ASSERT): Likewise.
55795         * tests/test-freadable.c (ASSERT): Likewise.
55796         * tests/test-freadahead.c (ASSERT): Likewise.
55797         * tests/test-freading.c (ASSERT): Likewise.
55798         * tests/test-freadptr.c (ASSERT): Likewise.
55799         * tests/test-freadptr2.c (ASSERT): Likewise.
55800         * tests/test-freadseek.c (ASSERT): Likewise.
55801         * tests/test-freopen.c (ASSERT): Likewise.
55802         * tests/test-frexp.c (ASSERT): Likewise.
55803         * tests/test-frexpl.c (ASSERT): Likewise.
55804         * tests/test-fseek.c (ASSERT): Likewise.
55805         * tests/test-fseeko.c (ASSERT): Likewise.
55806         * tests/test-fstrcmp.c (ASSERT): Likewise.
55807         * tests/test-ftell.c (ASSERT): Likewise.
55808         * tests/test-ftello.c (ASSERT): Likewise.
55809         * tests/test-func.c (ASSERT): Likewise.
55810         * tests/test-fwritable.c (ASSERT): Likewise.
55811         * tests/test-fwriting.c (ASSERT): Likewise.
55812         * tests/test-getdelim.c (ASSERT): Likewise.
55813         * tests/test-getline.c (ASSERT): Likewise.
55814         * tests/test-i-ring.c (ASSERT): Likewise.
55815         * tests/test-iconv-utf.c (ASSERT): Likewise.
55816         * tests/test-iconv.c (ASSERT): Likewise.
55817         * tests/test-isfinite.c (ASSERT): Likewise.
55818         * tests/test-isnand.c (ASSERT): Likewise.
55819         * tests/test-isnanf.c (ASSERT): Likewise.
55820         * tests/test-isnanl.h (ASSERT): Likewise.
55821         * tests/test-ldexpl.c (ASSERT): Likewise.
55822         * tests/test-linked_list.c (ASSERT): Likewise.
55823         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55824         * tests/test-localename.c (ASSERT): Likewise.
55825         * tests/test-lseek.c (ASSERT): Likewise.
55826         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55827         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55828         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55829         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55830         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55831         * tests/test-mbschr.c (ASSERT): Likewise.
55832         * tests/test-mbscspn.c (ASSERT): Likewise.
55833         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55834         * tests/test-mbspbrk.c (ASSERT): Likewise.
55835         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55836         * tests/test-mbsrchr.c (ASSERT): Likewise.
55837         * tests/test-mbsspn.c (ASSERT): Likewise.
55838         * tests/test-mbsstr1.c (ASSERT): Likewise.
55839         * tests/test-mbsstr2.c (ASSERT): Likewise.
55840         * tests/test-mbsstr3.c (ASSERT): Likewise.
55841         * tests/test-memchr2.c (ASSERT): Likewise.
55842         * tests/test-memmem.c (ASSERT): Likewise.
55843         * tests/test-open.c (ASSERT): Likewise.
55844         * tests/test-printf-frexp.c (ASSERT): Likewise.
55845         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55846         * tests/test-printf-posix.c (ASSERT): Likewise.
55847         * tests/test-quotearg.c (ASSERT): Likewise.
55848         * tests/test-rbtree_list.c (ASSERT): Likewise.
55849         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55850         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55851         * tests/test-round1.c (ASSERT): Likewise.
55852         * tests/test-roundf1.c (ASSERT): Likewise.
55853         * tests/test-roundl.c (ASSERT): Likewise.
55854         * tests/test-signbit.c (ASSERT): Likewise.
55855         * tests/test-sleep.c (ASSERT): Likewise.
55856         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55857         * tests/test-snprintf.c (ASSERT): Likewise.
55858         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55859         * tests/test-stat-time.c (ASSERT): Likewise.
55860         * tests/test-strcasestr.c (ASSERT): Likewise.
55861         * tests/test-strerror.c (ASSERT): Likewise.
55862         * tests/test-striconv.c (ASSERT): Likewise.
55863         * tests/test-striconveh.c (ASSERT): Likewise.
55864         * tests/test-striconveha.c (ASSERT): Likewise.
55865         * tests/test-strsignal.c (ASSERT): Likewise.
55866         * tests/test-strstr.c (ASSERT): Likewise.
55867         * tests/test-strtod.c (ASSERT): Likewise.
55868         * tests/test-trunc1.c (ASSERT): Likewise.
55869         * tests/test-trunc2.c (ASSERT): Likewise.
55870         * tests/test-truncf1.c (ASSERT): Likewise.
55871         * tests/test-truncf2.c (ASSERT): Likewise.
55872         * tests/test-truncl.c (ASSERT): Likewise.
55873         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55874         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55875         * tests/test-vasnprintf.c (ASSERT): Likewise.
55876         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55877         * tests/test-vasprintf.c (ASSERT): Likewise.
55878         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55879         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55880         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55881         * tests/test-vsnprintf.c (ASSERT): Likewise.
55882         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55883         * tests/test-wcwidth.c (ASSERT): Likewise.
55884         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55885         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55886         * tests/test-xvasprintf.c (ASSERT): Likewise.
55887         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55888         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55889         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55890         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55891         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55892         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55893         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55894         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55895         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55896         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55897         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55898         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55899         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55900         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55901         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55902         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55903         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55904         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55905         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55906         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55907         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55908         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55909         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55910         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55911         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55912         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55913         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55914         * tests/unictype/test-combining.c (ASSERT): Likewise.
55915         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55916         * tests/unictype/test-digit.c (ASSERT): Likewise.
55917         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55918         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55919         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55920         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55921         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55922         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55923         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55924         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55925         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55926         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55927         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55928         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55929         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55930         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55931         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55932         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55933         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55934         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55935         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55936         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55937         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55938         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55939         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55940         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55941         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55942         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55943         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55944         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55945         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55946         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55947         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55948         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55949         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55950         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55951         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55952         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55953         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55954         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55955         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55956         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55957         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55958         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55959         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55960         Reported by Eric Blake.
55961
55962 2008-04-11  Bruno Haible  <bruno@clisp.org>
55963
55964         * lib/wchar.in.h: Tweak comment.
55965
55966 2008-04-11  Bruno Haible  <bruno@clisp.org>
55967
55968         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55969         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55970         gl_COMMON.
55971         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55972
55973 2008-04-11  Bruno Haible  <bruno@clisp.org>
55974
55975         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55976
55977 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55978
55979         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55980         of attempting to use non-existing /dev/*random.  Based on patch
55981         from Adam Strzelecki <ono@java.pl> in
55982         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55983
55984 2008-04-08  Bruno Haible  <bruno@clisp.org>
55985
55986         Add tentative support for emx+gcc.
55987         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55988         * lib/fpurge.c (fpurge): Likewise.
55989         * lib/freadable.c (freadable): Likewise.
55990         * lib/freadahead.c (freadahead): Likewise.
55991         * lib/freading.c (freading): Likewise.
55992         * lib/freadptr.c (freadptr): Likewise.
55993         * lib/freadseek.c (freadptrinc): Likewise.
55994         * lib/fseeko.c (rpl_fseeko): Likewise.
55995         * lib/fseterr.c (fseterr): Likewise.
55996         * lib/fwritable.c (fwritable): Likewise.
55997         * lib/fwriting.c (fwriting): Likewise.
55998         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55999
56000 2008-04-09  Eric Blake  <ebb9@byu.net>
56001
56002         Avoid some autoconf warnings.
56003         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56004         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56005         * m4/afs.m4 (gl_AFS): Likewise.
56006         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56007         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56008         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56009         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56010         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56011         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56012         (AC_CHECK_DECLS_ONCE): Likewise.
56013         Rename file...
56014         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56015         gnulib-tool requires autoconf 2.59 or better.
56016         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56017
56018 2008-04-08  Eric Blake  <ebb9@byu.net>
56019
56020         Use 'git describe --match' if present (added in git 1.5.5).
56021         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56022         if possible.
56023
56024 2008-04-08  Bruno Haible  <bruno@clisp.org>
56025
56026         Add tentative support for OpenServer.
56027         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56028         _ptr, _cnt.
56029         * lib/fpurge.c (fpurge): Likewise.
56030         * lib/freadable.c (freadable): Likewise.
56031         * lib/freadahead.c (freadahead): Likewise.
56032         * lib/freading.c (freading): Likewise.
56033         * lib/freadptr.c (freadptr): Likewise.
56034         * lib/freadseek.c (freadptrinc): Likewise.
56035         * lib/fseeko.c (rpl_fseeko): Likewise.
56036         * lib/fseterr.c (fseterr): Likewise.
56037         * lib/fwritable.c (fwritable): Likewise.
56038         * lib/fwriting.c (fwriting): Likewise.
56039         Reported by Roger Cornelius <rac@tenzing.org> and
56040         Brian K. White <brian@aljex.com>.
56041
56042 2008-04-06  Jim Meyering  <meyering@redhat.com>
56043
56044         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56045
56046 2008-04-06  Bruno Haible  <bruno@clisp.org>
56047
56048         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56049         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56050         * tests/test-printf-posix.sh: Likewise.
56051         * tests/test-vfprintf-posix.sh: Likewise.
56052         * tests/test-vprintf-posix.sh: Likewise.
56053         * tests/test-xprintf-posix.sh: Likewise.
56054
56055 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56056
56057         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56058         hide error from 'ls', needed on OS/2.
56059         Report by Elbert Pol <elbert.pol@gmail.com>.
56060
56061 2008-04-04  Eric Blake  <ebb9@byu.net>
56062
56063         Make test-fseeko.c failures meaningful.
56064         * tests/test-fseeko.c: Print line number on failure.
56065         * tests/test-fseek.c: Likewise.
56066         Reported by Nelson H. F. Beebe.
56067
56068         Improve strtod bug detection check.
56069         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56070         required for Solaris 10.
56071         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56072
56073 2008-04-04  Bruno Haible  <bruno@clisp.org>
56074
56075         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56076         by m4/setenv.m4.
56077
56078 2008-04-03  Eric Blake  <ebb9@byu.net>
56079
56080         Ensure sane .version contents.
56081         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56082         version string.
56083         * build-aux/git-version-gen: Improve documentation.
56084
56085         Make GNU make output nicer.
56086         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56087         MAKECMDGOALS to enforce message for all command line targets.  Set
56088         srcdir for use in maint.mk.
56089
56090         Another maintainer tweak.
56091         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56092         a target that regenerates version.
56093
56094 2008-04-03  Jim Meyering  <meyering@redhat.com>
56095
56096         vc-list-files: don't cause coreutils "make po-check" failure
56097         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56098
56099 2008-04-03  Eric Blake  <ebb9@byu.net>
56100
56101         Allow VPATH usage of vc-list-files.
56102         * build-aux/vc-list-files (scriptversion): Add timestamp.
56103         (options): Add --help, --version, -C.
56104         (CVS): Support installed cvsu.
56105
56106 2008-04-02  Bruno Haible  <bruno@clisp.org>
56107
56108         Avoid some "statement with no effect" warnings from gcc.
56109         * tests/test-wctype.c (main): Explicitly ignore unused values.
56110         Reported by Jim Meyering.
56111
56112 2008-04-02  Jim Meyering  <meyering@redhat.com>
56113
56114         Avoid some warnings from "gcc -Wshadow".
56115         * tests/test-frexp.c (exp): Define to a different identifier.
56116         * tests/test-frexpl.c (exp): Likewise.
56117
56118 2008-04-03  Jim Meyering  <meyering@redhat.com>
56119
56120         bootstrap: remove dangling *.[ch] symlinks from lib
56121         * build-aux/bootstrap [dangling symlink removal]: Move find's
56122         -depth option to precede all others, to avoid a warning.
56123         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56124
56125 2008-04-02  Bruno Haible  <bruno@clisp.org>
56126
56127         Avoid some warnings from "gcc -Wshadow".
56128         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56129         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56130         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56131         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56132         Reported by Jim Meyering.
56133
56134 2008-04-01  Bruno Haible  <bruno@clisp.org>
56135
56136         Fix test to work on IRIX 6.5 with cc.
56137         * tests/test-math.c (numeric_equal): New function.
56138         (main): Use it.
56139
56140 2008-04-01  Bruno Haible  <bruno@clisp.org>
56141
56142         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56143
56144 2008-04-01  Bruno Haible  <bruno@clisp.org>
56145
56146         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56147         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56148         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56149         (Depends-on): Remove math.
56150
56151         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56152         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56153         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56154         (Depends-on): Remove math.
56155
56156         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56157         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56158         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56159         (Depends-on): Remove math.
56160         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56161         (Depends-on): Remove math.
56162
56163         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56164         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56165         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56166         (Depends-on): Remove math.
56167         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56168         (Depends-on): Remove math.
56169
56170         * tests/test-round1.c: Include nan.h.
56171         (main): Use NaNd instead of NAN.
56172         * modules/round-tests (Files): Add tests/nan.h.
56173
56174         * tests/test-trunc1.c: Include nan.h.
56175         (main): Use NaNd instead of NAN.
56176         * modules/trunc-tests (Files): Add tests/nan.h.
56177
56178         * tests/test-roundf1.c: Include nan.h.
56179         (main): Use NaNf instead of NAN.
56180         * modules/roundf-tests (Files): Add tests/nan.h.
56181
56182         * tests/test-truncf1.c: Include nan.h.
56183         (main): Use NaNf instead of NAN.
56184         * modules/truncf-tests (Files): Add tests/nan.h.
56185
56186         * tests/test-ceilf1.c: Include nan.h.
56187         (main): Use NaNf instead of NAN.
56188         * modules/ceilf-tests (Files): Add tests/nan.h.
56189
56190         * tests/test-floorf1.c: Include nan.h.
56191         (main): Use NaNf instead of NAN.
56192         * modules/floorf-tests (Files): Add tests/nan.h.
56193
56194         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56195         (main): Use NaNf instead of NAN.
56196         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56197
56198         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56199         (main): Use NaNd instead of NAN.
56200         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56201
56202         * tests/test-frexp.c: Include nan.h.
56203         (main): Use NaNd instead of NAN.
56204         * modules/frexp-tests (Files): Add tests/nan.h.
56205
56206         * lib/isnan.c: Don't include <math.h>.
56207         (FUNC): Don't use NAN macro.
56208         * modules/isnand-nolibm (Depends-on): Remove math.
56209         * modules/isnanf-nolibm (Depends-on): Remove math.
56210         * modules/isnanl (Depends-on): Remove math.
56211         * modules/isnanl-nolibm (Depends-on): Remove math.
56212
56213         * tests/nan.h: New file.
56214
56215 2008-04-01  Eric Blake  <ebb9@byu.net>
56216
56217         Fix typos.
56218         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56219         values to be the right type.
56220
56221         For now, cater to gnulib strtod inaccuracies.
56222         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56223         fractional results.  While not as nice from a QoI perspective, it
56224         is a quicker patch than correctly implementing decimal to binary
56225         rounding.
56226
56227 2008-03-31  Eric Blake  <ebb9@byu.net>
56228
56229         Guarantee a definition of NAN.
56230         * lib/math.in.h (NAN): Define if missing.
56231         * tests/test-math.c (main): Test it.
56232         * doc/posix-headers/math.texi (math.h): Document this.
56233         * lib/isnan.c (rpl_isnand): Use it.
56234         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56235         * tests/test-floorf1.c (NaN): Likewise.
56236         * tests/test-frexp.c (NaN): Likewise.
56237         * tests/test-isnand.c (NaN): Likewise.
56238         * tests/test-isnanf.c (NaN): Likewise.
56239         * tests/test-round1.c (NaN): Likewise.
56240         * tests/test-roundf1.c (NaN): Likewise.
56241         * tests/test-snprintf-posix.h (NaN): Likewise.
56242         * tests/test-sprintf-posix.h (NaN): Likewise.
56243         * tests/test-trunc1.c (NaN): Likewise.
56244         * tests/test-truncf1.c (NaN): Likewise.
56245         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56246         * tests/test-vasprintf-posix.c (NaN): Likewise.
56247         * modules/isnand-nolibm (Depends-on): Add math.
56248         * modules/isnanf-nolibm (Depends-on): Likewise.
56249         * modules/isnanl (Depends-on): Likewise.
56250         * modules/isnanl-nolibm (Depends-on): Likewise.
56251         * modules/snprintf-posix-tests (Depends-on): Likewise.
56252         * modules/sprintf-posix-tests (Depends-on): Likewise.
56253         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56254         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56255         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56256         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56257
56258 2008-03-31  Bruno Haible  <bruno@clisp.org>
56259
56260         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56261         * doc/posix-functions/strtod.texi: Likewise.
56262
56263 2008-03-31  Bruno Haible  <bruno@clisp.org>
56264
56265         * tests/test-strtod.c (main): Don't use C99 syntax.
56266
56267 2008-03-31  Bruno Haible  <bruno@clisp.org>
56268
56269         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56270         Reported by Eric Blake.
56271
56272 2008-03-31  Jim Meyering  <meyering@redhat.com>
56273
56274         Don't compare actual signbit return values.
56275         * tests/test-strtod.c (main): Rather, compare only their
56276         zero/non-zero nature.
56277
56278 2008-03-31  Eric Blake  <ebb9@byu.net>
56279
56280         More strtod documentation.
56281         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56282         failures as distinct bugs.
56283
56284 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56285
56286         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56287         Problem reported by Erik Benada in
56288         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56289
56290 2008-03-30  Bruno Haible  <bruno@clisp.org>
56291
56292         * tests/test-strtod.c: Add comments about which assertion fails on which
56293         platform.
56294         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56295
56296 2008-03-30  Eric Blake  <ebb9@byu.net>
56297
56298         Test signbit behavior on zeros.
56299         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56300         (test_signbitd, test_signbitl): Likewise.
56301
56302         More strtod touchups.
56303         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56304         sign of negative underflow, for now.  Use .5, not .1.
56305         * doc/posix-functions/strtod.texi (strtod): Mention these
56306         limitations.
56307         Reported by Jim Meyering.
56308
56309 2008-03-30  Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56312         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56313
56314 2008-03-30  Bruno Haible  <bruno@clisp.org>
56315
56316         Avoid failure when attempting to return empty iconv results on some
56317         platforms.
56318         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56319         allocation, don't report ENOMEM when the resulting string is empty.
56320
56321 2008-03-30  Bruno Haible  <bruno@clisp.org>
56322
56323         Fix buffer overrun.
56324         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56325         Don't consider the width for tmp_length. Check count against tmp_length
56326         before doing the padding. Ensure enough allocation during padding.
56327
56328 2008-03-30  Eric Blake  <ebb9@byu.net>
56329
56330         strtod touchups.
56331         * lib/strtod.c (strtod): Avoid compiler warnings.
56332         Reported by Jim Meyering.
56333
56334 2008-03-30  Bruno Haible  <bruno@clisp.org>
56335
56336         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56337         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56338         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56339         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56340         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56341         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56342         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56343         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56344
56345         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56346         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56347         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56348         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56349         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56350         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56351         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56352         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56353
56354         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56355         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56356         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56357         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56358         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56359         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56360         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56361         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56362
56363         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56364         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56365
56366         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56367         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56368
56369         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56370         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56371
56372         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56374         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56375
56376         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56378         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56379
56380         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56381         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56382         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56383
56384         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56386         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56387
56388         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56389         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56391         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56392         (Depends-on): Add EOVERFLOW.
56393         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56394         (Depends-on): Add EOVERFLOW.
56395         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56396         (Depends-on): Add EOVERFLOW.
56397         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56398         (Depends-on): Add EOVERFLOW.
56399         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56400         (Depends-on): Add EOVERFLOW.
56401         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56402         (Depends-on): Add EOVERFLOW.
56403         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56404         (Depends-on): Add EOVERFLOW.
56405         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56406         (Depends-on): Add EOVERFLOW.
56407
56408         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56409         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56410         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56411
56412         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56413         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56414         * modules/snprintf (Depends-on): Add EOVERFLOW.
56415
56416         * lib/poll.c (EOVERFLOW): Remove fallback.
56417         * modules/poll (Depends-on): Add EOVERFLOW.
56418
56419         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56420         * modules/getugroups (Depends-on): Add EOVERFLOW.
56421
56422         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56423         * modules/getdelim (Depends-on): Add EOVERFLOW.
56424
56425         * lib/ftell.c (EOVERFLOW): Remove fallback.
56426         * modules/ftell (Depends-on): Add EOVERFLOW.
56427
56428         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56429         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56430         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56431
56432         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56433
56434         * modules/EOVERFLOW-tests: New file.
56435         * tests/test-EOVERFLOW.c: New file.
56436
56437         * modules/EOVERFLOW: New file.
56438         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56439
56440 2008-03-30  Bruno Haible  <bruno@clisp.org>
56441
56442         Fix bug introduced on 2007-06-10.
56443         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56444         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56445
56446 2008-03-30  Bruno Haible  <bruno@clisp.org>
56447
56448         Improve freadseek's efficiency after ungetc.
56449         * lib/freadseek.c: Include freadahead.h.
56450         (freadptrinc): New function, extracted from freadseek.
56451         (freadseek): Use it in a loop. Use freadahead to determine the number
56452         of loop iterations.
56453         * modules/freadseek (Depends-on): Add freadahead.
56454         (configure.ac): Require AC_C_INLINE.
56455
56456 2008-03-30  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/freadseek.c (freadseek): Don't ignore the return value of
56459         freadptr.
56460
56461 2008-03-29  Eric Blake  <ebb9@byu.net>
56462
56463         Add hex float support.
56464         * modules/strtod (Depends-on): Add c-ctype.
56465         (Link): Mention POW_LIB.
56466         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56467         whitespace between 'e' and exponent.
56468         * tests/test-strtod.c (main): Enable hex float tests.
56469         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56470         now provides.
56471
56472         Document various strtod bugs, with some fixes.
56473         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56474         "-0x", "inf", "nan", and hex constants.
56475         * doc/posix-functions/atof.texi (atof): Likewise.
56476         * modules/stdlib (Makefile.am): Support strtod.
56477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56478         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56479         detect additional strtod bugs.
56480         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56481         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56482         bool where appropriate.  Parse 'inf' and 'nan'.
56483         * tests/test-strtod.c: New file.
56484         * modules/strtod (Depends-on): Add stdbool, stdlib.
56485         (configure.ac): Turn on module indicator.
56486         * modules/strtod-tests: New module.
56487
56488 2008-03-29  Eric Blake  <ebb9@byu.net>
56489
56490         Fix ftell on mingw.
56491         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56492         * modules/ftell-tests (Depends-on): Add binary-io.
56493         * modules/ftello-tests (Depends-on): Likewise.
56494         * tests/test-ftell.c (main): Enhance test to cover behavior after
56495         ungetc.  Enforce binary mode.
56496         * tests/test-ftello.c (main): Likewise.
56497
56498         Pass test-freadseek on cygwin.
56499         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56500         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56501         ungetc buffer.
56502
56503         * tests/test-fflush2.c (main): Fix typo.
56504
56505 2008-03-29  Bruno Haible  <bruno@clisp.org>
56506
56507         * tests/test-fflush2.c (main): Temporarily disable the contents of
56508         this test.
56509         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56510         Reported by Eric Blake.
56511
56512 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56513
56514         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56515         (GC_SHA224_DIGEST_SIZE): Add.
56516
56517         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56518         (gc_hash_digest_length): Likewise.
56519         (gc_hash_buffer): Likewise.
56520
56521 2008-03-25  Bruno Haible  <bruno@clisp.org>
56522
56523         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56524         detail which gettext release to use.
56525         Reported by Simon Josefsson.
56526
56527 2008-03-26  Jim Meyering  <meyering@redhat.com>
56528
56529         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56530         * modules/gnumakefile (clean-GNUmakefile): Also, use
56531         test ... && ... || : syntax rather than if-then ... fi.
56532
56533         gnumakefile: Don't double-quote-expand $(VPATH) value.
56534         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56535
56536 2008-03-24  Eric Blake  <ebb9@byu.net>
56537
56538         Alter GNUmakefile to install into top directory.
56539         * modules/maintainer-makefile: Split, and add dependency...
56540         * modules/gnumakefile: to this new module.
56541         * build-aux/GNUmakefile: Move...
56542         * top/GNUmakefile: ...here.
56543         * build-aux/maint.mk: Move...
56544         * top/maint.mk: ...here.
56545         * MODULES.html.sh (Support for maintaining...): Document new
56546         module.
56547
56548 2008-03-23  Bruno Haible  <bruno@clisp.org>
56549
56550         * gnulib-tool: New options --vc-files, --no-vc-files.
56551         (func_usage): Document them.
56552         (vc_files): New variable.
56553         (func_import): Consider vc_files.
56554         (func_create_testdir): Set vc_files to empty.
56555         Suggested by Jim Meyering and Karl Berry.
56556
56557 2008-03-23  Bruno Haible  <bruno@clisp.org>
56558
56559         Fix regex compilation error on HP-UX 11.
56560         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56561         * modules/regex (Files): Add m4/mbstate_t.m4.
56562         Reported by Ton Voon <ton.voon@altinity.com>.
56563
56564 2008-03-23  Bruno Haible  <bruno@clisp.org>
56565
56566         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56567
56568 2008-03-23  Eric Blake  <ebb9@byu.net>
56569             Bruno Haible  <bruno@clisp.org>
56570
56571         Install files from top/ in the destination directory.
56572         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56573         augmentation also for the files from top/.
56574         (func_import, func_create_testdir): Rewrite file names:
56575         top/filename -> filename.
56576
56577 2008-03-23  Bruno Haible  <bruno@clisp.org>
56578
56579         Tweak "gnulib --version" output.
56580         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56581
56582 2008-03-23  Bruno Haible  <bruno@clisp.org>
56583
56584         Tweak "gnulib --version" output.
56585         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56586         rather than contents of ChangeLog, when possible.
56587
56588 2008-03-21  Eric Blake  <ebb9@byu.net>
56589
56590         More --version tweaks.
56591         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56592         date of last ChangeLog entry.
56593
56594 2008-03-21  Jim Meyering  <meyering@redhat.com>
56595
56596         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56597
56598 2008-03-20  Eric Blake  <ebb9@byu.net>
56599
56600         VPATH fix.
56601         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56602
56603 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56604
56605         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56606         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56607
56608 2008-03-20  Eric Blake  <ebb9@byu.net>
56609
56610         Sync GNUmakefile with coreutils.
56611         * build-aux/GNUmakefile (have-Makefile): Rename...
56612         (_have-Makefile): ...to this, for namespace consideration.
56613         (GNUmakefile.cfg): Include, if present.
56614         (_autoreconf): Define a default.
56615         (_is-dist-target): New rule for rebuilds to pick up intra-release
56616         version.
56617         (maint-cfg.mk): Rename...
56618         (cfg.mk): ...to this.
56619
56620 2008-03-18  Jim Meyering  <meyering@redhat.com>
56621
56622         New script and module: mktempd
56623         * MODULES.html.sh (maint+release support): Add mktempd.
56624         * build-aux/mktempd: New file.
56625         * modules/mktempd: New file.
56626
56627 2008-03-15  Jim Meyering  <meyering@redhat.com>
56628
56629         Undo last change.
56630         * lib/sha1.c, lib/md5.c: 63 != ~63.
56631         Reported by Andreas Schwab.
56632
56633         sha1.c, md5.c: Hoist a redundant expression.
56634         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56635         "ctx->buflen" only once, before calling *_process_block.
56636         * lib/md5.c (md5_process_bytes): Likewise.
56637
56638 2008-03-14  Eric Blake  <ebb9@byu.net>
56639
56640         Bump copyright year in files generated by gnulib-tool.
56641         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56642         gnulib-tool, rather than hard-coding it.
56643
56644         Fix 'gnulib-tool --version' output to work with git.
56645         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56646         (startup): ...here.
56647         (func_version): Use it to invoke git-version-gen, rather than
56648         relying on CVS keyword expansion.  Modernize wording.
56649         (cvsdatestamp, last_checkin_date, version): Kill unused
56650         variables.
56651
56652 2008-03-12  Jim Meyering  <meyering@redhat.com>
56653
56654         Recognize optional cast of the argument to free.
56655         * build-aux/useless-if-before-free: Update regexps.
56656
56657         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56658
56659 2008-03-11  Bruno Haible  <bruno@clisp.org>
56660
56661         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56662         by a single package.
56663         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56664         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56665         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56666         Reported by Sam Steingold <sds@gnu.org>.
56667
56668 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56669
56670         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56671         repositories.
56672
56673 2008-03-11  Bruno Haible  <bruno@clisp.org>
56674
56675         Avoid conflicts between local macro definitions.
56676         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56677         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56678
56679 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56680             Bruno Haible  <bruno@clisp.org>
56681
56682         Make va_copy work with some version of xlc on AIX 5.1.
56683         * lib/stdarg.in.h: New file.
56684         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56685         On AIX, use a <stdarg.h> file substitute.
56686         * modules/stdarg (Files): Add lib/stdarg.in.h.
56687         (Depends-on): Add include_next.
56688         (Makefile.am): Build a stdarg.h substitute if requested.
56689         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56690
56691 2008-03-10  Bruno Haible  <bruno@clisp.org>
56692
56693         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56694         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56695         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56696
56697 2008-03-10  Bruno Haible  <bruno@clisp.org>
56698
56699         * modules/stdlib (Depends-on): Add include_next, remove
56700         absolute-header.
56701
56702 2008-03-09  Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/freadahead.h (freadahead): Document more precisely.
56705         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56706         the sum of both buffer sizes.
56707         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56708         * NEWS: Document the change.
56709
56710 2008-03-09  Bruno Haible  <bruno@clisp.org>
56711
56712         Extend freadptr to return also the buffer size.
56713         * lib/freadptr.h (freadptr): Add sizep argument.
56714         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56715         (freadptr): Add sizep argument. Determine buffer size like freadahead
56716         does.
56717         * tests/test-freadptr.c: Don't include freadahead.h.
56718         (main): Adapt for new calling convention of freadptr.
56719         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56720         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56721         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56722         tests/test-freadptr2.sh.
56723         (Depends): Remove freadahead.
56724         (TESTS): Add test-freadptr2.sh.
56725         (check_PROGRAMS): Add test-freadptr2.
56726
56727 2008-03-09  Bruno Haible  <bruno@clisp.org>
56728
56729         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56730         Report and solution by Simon Josefsson.
56731
56732 2008-03-06  Bruno Haible  <bruno@clisp.org>
56733
56734         Make fflush after ungetc work on BSD platforms.
56735         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56736         * tests/test-fflush2.c: New file.
56737         * tests/test-fflush2.sh: New file.
56738         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56739         tests/test-fflush2.c.
56740         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56741         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56742
56743 2008-03-06  Eric Blake  <ebb9@byu.net>
56744
56745         Likewise for ftello.
56746         * modules/ftello (Dependencies): Add extensions.
56747         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56748
56749 2008-03-06  Bruno Haible  <bruno@clisp.org>
56750
56751         * modules/fseeko (Dependencies): Add extensions.
56752         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56753         Needed on glibc systems.
56754
56755 2008-03-06  Bruno Haible  <bruno@clisp.org>
56756
56757         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56758         email address.
56759         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56760
56761 2008-03-06  Bruno Haible  <bruno@clisp.org>
56762
56763         * users.txt: Add libgnupdf.
56764
56765 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56766
56767         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56768         (Header File Substitutes, Function Substitutes,
56769         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56770         (Build robot for gnulib): Fix typo.
56771
56772 2008-03-06  Bruno Haible  <bruno@clisp.org>
56773
56774         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56775         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56776
56777 2008-03-06  Bruno Haible  <bruno@clisp.org>
56778
56779         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56780         * doc/gnulib.texi: Include it.
56781
56782 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56783
56784         * modules/func (License): Change license to unlimited; there was
56785         no LGPL parts in the module anyway.
56786
56787 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56788
56789         * modules/__func__: Renamed to modules/func.
56790         * modules/__func__-tests: Renamed to modules/func-tests.
56791         * tests/test-__func__.c: Renamed to tests/test-func.c.
56792         * m4/__func__.m4: Renamed to m4/func.m4.
56793         * doc/gnulib.texi (__func__): Section renamed to func.
56794         Suggested by Eric Blake <ebb9@byu.net>.
56795
56796 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56797
56798         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56799         about __func__.  Make example self-contained.  Suggested by Eric
56800         Blake <ebb9@byu.net>.
56801
56802         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56803         Suggested by Eric Blake <ebb9@byu.net>.
56804
56805 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56806
56807         * modules/__func__: New file.
56808         * modules/__func__-tests: New file.
56809         * tests/test-__func__.c: New file.
56810         * m4/__func__.m4: New file.
56811         * doc/gnulib.texi (__func__): Document __func__ module.
56812
56813 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56814
56815         * modules/byteswap (License): Re-license as LGPLv2+.
56816
56817 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56818
56819         * doc/Makefile: Add pdf target.
56820
56821 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56822
56823         * modules/inline (License): Use 'unlimited', since there are only
56824         *.m4 files in this module.
56825
56826 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56827             Bruno Haible  <bruno@clisp.org>
56828
56829         Add support for HP C 7.1 on OpenVMS 8.3.
56830         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56831
56832 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56833
56834         Update VMS specifics.
56835         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56836
56837 2008-03-02  Jim Meyering  <meyering@redhat.com>
56838
56839         Remove the last dependency on the "free" module.
56840         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56841         Reported by Bob Proulx.
56842
56843         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56844
56845         Remove useless "if" tests before free.  Deprecate "free" module.
56846         * doc/posix-functions/free.texi: Mention that this
56847         module is no longer useful.
56848         * modules/free (Notice): Say this module is obsolete.
56849         * modules/readutmp (Depends-on): Remove free.
56850         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56851         * lib/putenv.c (putenv): Likewise.
56852         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56853         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56854         * tests/test-c-strcasestr.c (main): Likewise.
56855         * tests/test-c-strstr.c (main): Likewise.
56856         * tests/test-mbscasestr1.c (main): Likewise.
56857         * tests/test-mbscasestr2.c (main): Likewise.
56858         * tests/test-mbsstr1.c (main): Likewise.
56859         * tests/test-mbsstr2.c (main): Likewise.
56860         * tests/test-memmem.c (main): Likewise.
56861         * tests/test-strcasestr.c (main): Likewise.
56862         * tests/test-striconv.c (main): Likewise.
56863         * tests/test-striconveh.c (main): Likewise.
56864         * tests/test-striconveha.c (main): Likewise.
56865         * tests/test-strstr.c (main): Likewise.
56866
56867         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56868
56869         bootstrap: sync from coreutils again
56870         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56871
56872 2008-03-01  Jim Meyering  <meyering@redhat.com>
56873
56874         bootstrap: sync from coreutils
56875         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56876         also when the target doesn't exist.
56877
56878 2008-03-01  Eric Blake  <ebb9@byu.net>
56879
56880         Fix bugs in last patch.
56881         * lib/memchr2.c (memchr2): Fix typo.
56882         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56883         extension.
56884         Reported by Bruce Korb.
56885
56886         New module 'memchr2'.
56887         * modules/memchr2: New file.
56888         * modules/memchr2-tests: Likewise.
56889         * lib/memchr2.h: Likewise.
56890         * lib/memchr2.c: Likewise, based on memchr.c.
56891         * tests/test-memchr2.c: New test.
56892         * MODULES.html.sh (String handling): Add memchr2.
56893
56894 2008-02-29  Bruno Haible  <bruno@clisp.org>
56895
56896         * modules/freadseek-tests: New file.
56897         * tests/test-freadseek.sh: New file.
56898         * tests/test-freadseek.c: New file.
56899
56900         New module 'freadseek'.
56901         * modules/freadseek: New file.
56902         * lib/freadseek.h: New file.
56903         * lib/freadseek.c: New file.
56904         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56905
56906 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56907
56908         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56909         wydawca.
56910
56911         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56912         program_invocation_name and program_invocation_short_name are
56913         present.
56914
56915 2008-02-28  Bruno Haible  <bruno@clisp.org>
56916
56917         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56918         * tests/test-freadptr.sh: Also test non-seekable stdin.
56919
56920 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56921
56922         * build-aux/bootstrap (source_base, m4_base)
56923         (doc_base, tests_base): New variables.
56924         (gnulib_tool_options): Do not hardcode base directories, use
56925         the above variables instead.
56926
56927 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56928
56929         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56930
56931 2008-02-28  Bruno Haible  <bruno@clisp.org>
56932
56933         * modules/freadptr-tests: New file.
56934         * tests/test-freadptr.sh: New file.
56935         * tests/test-freadptr.c: New file.
56936
56937         New module 'freadptr'.
56938         * modules/freadptr: New file.
56939         * lib/freadptr.h: New file.
56940         * lib/freadptr.c: New file.
56941         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56942
56943 2008-02-26  Karl Berry  <karl@freefriends.org>
56944
56945         Sync from Libtool:
56946         * libltdl/argz.c (argz_add, argz_count): New functions.
56947         * libltdl/argz.in.h: Declare them.
56948         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56949
56950 2008-02-22  Bruno Haible  <bruno@clisp.org>
56951
56952         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56953         is a pointer type.  Needed for HP-UX 10.
56954         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56955         * doc/posix-functions/gmtime_r.texi: Likewise.
56956         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56957
56958 2008-02-24  Bruno Haible  <bruno@clisp.org>
56959
56960         * modules/environ-tests: New file.
56961         * tests/test-environ.c: New file.
56962
56963         New module 'environ'.
56964         * modules/environ: New file.
56965         * lib/unistd.in.h (environ): New declaration.
56966         * m4/environ.m4: New file.
56967         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56968         after use.
56969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56970         HAVE_DECL_ENVIRON.
56971         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56972         HAVE_DECL_ENVIRON.
56973         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56974         wrong claim that 'environ' is missing on some systems.
56975         * modules/execute (Depends-on): Add environ.
56976         * lib/execute.c (environ): Remove fallback declaration.
56977         * modules/pipe (Depends-on): Add environ.
56978         * lib/pipe.c (environ): Remove fallback declaration.
56979         * modules/setenv (Depends-on): Add environ.
56980         * lib/setenv.c (environ): Remove fallback declaration.
56981         * modules/unsetenv (Depends-on): Add environ.
56982         * lib/unsetenv.c (environ): Remove fallback declaration.
56983         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56984         m4/environ.m4.
56985         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56986         (gl_PREREQ_UNSETENV): Likewise.
56987
56988 2008-02-24  Bruno Haible  <bruno@clisp.org>
56989
56990         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56991
56992 2008-02-20  Bob Proulx  <bob@proulx.com>
56993
56994         Enable use of older two part flavor 'git describe'.
56995         * build-aux/git-version-gen: If using the older two part flavor of
56996         git version then recreate the third part now present in the
56997         newer three part flavor of git describe.
56998
56999 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57000
57001         * lib/fts.c (fts_build): Typo correction to comment.
57002
57003 2008-02-17  Bruno Haible  <bruno@clisp.org>
57004
57005         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57006         generating no-op conflicts.
57007
57008 2008-02-17  Bruno Haible  <bruno@clisp.org>
57009
57010         Speed up by 10%.
57011         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57012         result_entries, rather than an index-based loop.
57013
57014 2008-02-17  Bruno Haible  <bruno@clisp.org>
57015
57016         Speed up by 25%.
57017         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57018         'hashcode_cached'.
57019         (entry_create): New function.
57020         (entry_hashcode): Use the cached hashcode if possible.
57021         (read_changelog_file, try_split_merged_entry): Use entry_create.
57022
57023 2008-02-17  Bruno Haible  <bruno@clisp.org>
57024
57025         Speed up from O(n^2) to O(n) for long ChangeLog files.
57026         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57027         (read_changelog_file): Change implementation of entries_reversed list
57028         to rbtreehash.
57029         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57030
57031 2008-02-17  Bruno Haible  <bruno@clisp.org>
57032
57033         New option --split-merged-entry.
57034         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57035         (find_paragraph_end, try_split_merged_entry): New functions.
57036         (long_options): Add option --split-merged-entry.
57037         (usage): Document option --split-merged-entry.
57038         (main): Implement option --split-merged-entry.
57039         Reported by Eric Blake.
57040
57041 2008-02-17  Bruno Haible  <bruno@clisp.org>
57042
57043         * lib/git-merge-changelog.c: Include c-strstr.h.
57044         (main): Support the "git pull --rebase" situation.
57045         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57046         Reported by Eric Blake.
57047
57048 2008-02-16  Eric Blake  <ebb9@byu.net>
57049
57050         Avoid doubling \ in common case of "c-maybe" quoting style.
57051         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57052         eliding outer quotes.
57053         * lib/quotearg.h: Document this.
57054         * tests/test-quotearg.c (result_strings, inputs, results_g)
57055         (flag_results, locale_results): Test it by adding a new string to
57056         each test group.
57057         (compare_strings): Test new string.
57058
57059 2008-02-13  Eric Blake  <ebb9@byu.net>
57060
57061         Avoid trigraph quoting in default output.
57062         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57063         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57064         unless explicitly requested.
57065         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57066
57067 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57068
57069         Don't rely on signed integer overflowing to negative value.
57070         * lib/getugroups.c (getugroups): Include <limits.h>.
57071         Instead, compare against INT_MAX, and increment only if the test passes.
57072
57073 2008-02-13  Jim Meyering  <meyering@redhat.com>
57074         and Eric Blake  <ebb9@byu.net>
57075
57076         Avoid shadowing warning and compile errors on Linux.
57077         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57078         forwarding macros on Linux.
57079         (dcgettext): Define a stub, for Linux.
57080         (results_g, main): Avoid warnings.
57081
57082 2008-02-12  Eric Blake  <ebb9@byu.net>
57083
57084         Silence warning in last patch.
57085         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57086
57087         Quotearg part 4: add tests, fix c-maybe colon quoting.
57088         * lib/quotearg.h: Improve documentation.
57089         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57090         escapes when adding outer quotes.  When quoting trigraphs, use
57091         valid C notation.  When quoting NUL, omit extra characters if next
57092         character is not digit.  Alter prototype.
57093         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57094         callers.
57095         * modules/quotearg-tests: New module.
57096         * tests/test-quotearg.c: New test.
57097
57098 2008-02-07  Eric Blake  <ebb9@byu.net>
57099
57100         Quotearg part 3: add flag to control outer quote elision.
57101         * lib/quotearg.h (c_maybe_quoting_style): New style.
57102         (enum quoting_flags): Better documentation of flags.
57103         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57104         c-maybe style.
57105         (quotearg_buffer_restyled): Handle new flag to elide outer
57106         quotes.
57107
57108         Quotearg part 2: add flag that can control NUL elision.
57109         * lib/quotearg.h (set_quoting_flags): New prototype.
57110         * lib/quotearg.c (struct quoting_options): Add flag field.
57111         (set_quoting_flags): New function.
57112         (quotearg_buffer_restyled): Add flags parameter.
57113         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57114         (quotearg_n_options): Set the flag, since length cannot be
57115         returned.
57116         (quoting_options_from_style): Default flags correctly.
57117
57118         Quotearg part 1: more wrappers, restore quotearg_char state.
57119         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57120         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57121         (quotearg_colon_mem): New wrappers.
57122         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57123         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57124         functions.
57125         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57126         (quotearg_colon_mem): New functions.
57127
57128 2008-02-11  Bruno Haible  <bruno@clisp.org>
57129
57130         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57131         library in the current directory: it does not work with parallel make.
57132         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57133
57134 2008-02-11  Bruno Haible  <bruno@clisp.org>
57135
57136         * .gitattributes: New file.
57137
57138 2008-02-11  Jim Meyering  <meyering@redhat.com>
57139
57140         useless-if-before-free: Fix reversed exit values.
57141         * build-aux/useless-if-before-free: Use correct values
57142         for EXIT_MATCH and EXIT_NO_MATCH.
57143
57144         * build-aux/useless-if-before-free: Close stdout carefully.
57145
57146 2008-02-10  Bruno Haible  <bruno@clisp.org>
57147
57148         New module 'git-merge-changelog'.
57149         * modules/git-merge-changelog: New file.
57150         * lib/git-merge-changelog.c: New file.
57151
57152 2008-02-10  Jim Meyering  <meyering@redhat.com>
57153
57154         useless-if-before-free: New option: --list (-l).
57155
57156         useless-if-before-free: Don't exit immediately upon open failure.
57157         * build-aux/useless-if-before-free: Exit 2 for errors.
57158         Upon failure to open a file, don't exit immediately.
57159         Rather, just warn and continue with any remaining files.
57160
57161 2008-02-10  Bruno Haible  <bruno@clisp.org>
57162
57163         New abstract list operation 'node_set_value'.
57164         * lib/gl_list.h (gl_list_node_set_value): New function.
57165         (struct gl_list_implementation): New field node_set_value.
57166         * lib/gl_list.c (gl_list_node_set_value): New function.
57167         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57168         (gl_array_list_implementation): Update.
57169         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57170         (gl_carray_list_implementation): Update.
57171         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57172         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57173         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57174         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57175         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57176         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57177         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57178         Update.
57179         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57180         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57181         (gl_sublist_list_implementation): Update.
57182
57183 2008-02-10  Bruno Haible  <bruno@clisp.org>
57184
57185         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57186         Needed when ELEMENT is #defined to 'some_type *'.
57187
57188 2008-02-10  Jim Meyering  <meyering@redhat.com>
57189
57190         New script and module: useless-if-before-free
57191         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57192         * build-aux/useless-if-before-free: New file.
57193         * modules/useless-if-before-free: New file.
57194
57195         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57196
57197         xstrtol_error: Fix typo.
57198         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57199         s/exit_failure/exit_status/.
57200
57201 2008-02-09  Jim Meyering  <meyering@redhat.com>
57202
57203         New script and module: gitlog-to-changelog
57204         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57205         * modules/gitlog-to-changelog: New file.
57206         * build-aux/gitlog-to-changelog: New file.
57207
57208 2008-02-08  Jim Meyering  <meyering@redhat.com>
57209
57210         Avoid two "parameter unused" warnings.
57211         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57212         Mark "st" as used.
57213
57214         Use "git COMMAND", not "git-COMMAND".
57215         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57216         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57217         * build-aux/git-version-gen: Use "git status", not "git-status".
57218
57219 2008-02-07  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57222         Avoids a crash on Windows Vista.
57223         Reported by Adam Strzelecki <ono@java.pl> via
57224         Simon Josefsson <simon@josefsson.org>.
57225
57226 2008-02-06  Bruno Haible  <bruno@clisp.org>
57227
57228         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57229         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57230         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57232         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57234         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57235         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57237         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57238         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57239         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57240         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57242         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57243         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57244         left-adjust flag.
57245         * tests/test-snprintf-posix.h (test_function): Likewise.
57246         * tests/test-sprintf-posix.h (test_function): Likewise.
57247         * tests/test-vasprintf-posix.c (test_function): Likewise.
57248         * doc/posix-functions/fprintf.texi: Update.
57249         * doc/posix-functions/printf.texi: Update.
57250         * doc/posix-functions/snprintf.texi: Update.
57251         * doc/posix-functions/sprintf.texi: Update.
57252         * doc/posix-functions/vfprintf.texi: Update.
57253         * doc/posix-functions/vprintf.texi: Update.
57254         * doc/posix-functions/vsnprintf.texi: Update.
57255         * doc/posix-functions/vsprintf.texi: Update.
57256         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57257
57258 2008-02-06  Bruno Haible  <bruno@clisp.org>
57259
57260         Fix bug introduced on 2008-01-26.
57261         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57262
57263 2008-02-06  Bruno Haible  <bruno@clisp.org>
57264
57265         Fix bug introduced on 2007-06-10.
57266         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57267         !NEED_PRINTF_FLAG_ZERO.
57268
57269 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57270
57271         getloadavg: use libperfstat on AIX5
57272         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57273
57274 2008-02-03  Bruno Haible  <bruno@clisp.org>
57275
57276         * lib/diffseq.h: Add comments about required #includes.
57277         Reported by Michael Biggs <gnulib@doubleplum.net>.
57278
57279 2008-02-01  Bruno Haible  <bruno@clisp.org>
57280
57281         * users.txt: Add gnuit.
57282
57283 2008-01-31  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/md4.c (set_uint32): Mark as inline.
57286         * lib/md5.c (set_uint32): Likewise.
57287         * lib/sha1.c (set_uint32): Likewise.
57288         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57289         * m4/md5.m4 (gl_MD5): Likewise.
57290         * m4/sha1.m4 (gl_SHA1): Likewise.
57291
57292 2008-01-31  Jim Meyering  <meyering@redhat.com>
57293
57294         Use "sizeof VAR", rather than a literal "4".
57295         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57296         * lib/md4.c (md4_read_ctx): Likewise.
57297         * lib/sha1.c (sha1_read_ctx): Likewise.
57298
57299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57300
57301         * tests/test-sha1.c: New file, based on test-md5.c.
57302
57303         * modules/crypto/sha1-tests: New file.
57304
57305 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57306
57307         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57308
57309 2008-01-31  Jim Meyering  <meyering@redhat.com>
57310
57311         Prefer "sizeof v" over the equivalent "4".
57312         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57313         * lib/md5.c (set_uint32): Likewise.
57314         * lib/sha1.c (set_uint32): Likewise.
57315
57316 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57317
57318         * lib/sha1.c (set_uint32): Mark function as static.
57319
57320 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57321
57322         md2: clarify comments to say that alignment is not required.
57323         * lib/md2.h: Remove warning about alignment in comment.
57324         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57325         never been required.
57326
57327 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57328
57329         md4: adapt alignment constraint fix from sha1.
57330         * lib/md4.c (set_uint32): New function, from sha1.c
57331         (md4_read_ctx): Use it.
57332         (md4_finish_ctx): Doc fix.
57333         * lib/md4.h: Doc fix.
57334
57335 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57336
57337         md5: adapt alignment constraint fix from sha1.
57338         * lib/md5.c (set_uint32): New function, from sha1.c
57339         (md5_read_ctx): Use it.
57340         (md5_finish_ctx): Doc fix.
57341         * lib/md5.h: Doc fix.
57342
57343 2008-01-30  Peter Palfrader  <weasel@debian.org>
57344
57345         sha1: remove the result buffer alignment constraint
57346         * lib/sha1.c (set_uint32): New function.
57347         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57348         constraint.
57349         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57350         * lib/sha1.h: Likewise.
57351
57352 2008-01-30  Andreas Schwab  <schwab@suse.de>
57353             Bruno Haible  <bruno@clisp.org>
57354
57355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57356         correct definition of LDBL_MIN_EXP.
57357
57358 2008-01-30  Karl Berry  <karl@gnu.org>
57359
57360         * config/srclist-update: try to preserve x bit on updates.
57361         * config/srclistvars.sh: update for karl.
57362
57363 2008-01-29  Jim Meyering  <meyering@redhat.com>
57364
57365         vasnprintf.c: Avoid warning about unused label
57366         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57367         "overflow" label definition and associated code with the
57368         same cpp condition that guards the sole use of that label.
57369
57370 2008-01-26  Bruno Haible  <bruno@clisp.org>
57371
57372         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57373         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57374         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57375         * lib/isnanl-nolibm.h (isnanl): Likewise.
57376         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57377
57378 2008-01-26  Bruno Haible  <bruno@clisp.org>
57379
57380         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57381         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57382
57383 2008-01-26  Bruno Haible  <bruno@clisp.org>
57384
57385         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57386         GCC >= 4.0 built-in.
57387         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57388
57389 2008-01-26  Bruno Haible  <bruno@clisp.org>
57390
57391         Rename isnan, applicable to 'double' only, to isnand.
57392         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57393         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57394         (configure.ac): Update.
57395         (Include): Replace "isnan.h" with "isnand.h".
57396         * m4/isnand.m4: Renamed from m4/isnan.m4.
57397         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57398         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57399         instead of isnan.c.
57400         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57401         instead of HAVE_ISNAN_IN_LIBC.
57402         (isnand): Renamed from isnan.
57403         * lib/isnand.c: New file.
57404         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57405         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57406         (Makefile.am): Update.
57407         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57408         Include isnand.h instead of isnan.h.
57409         (main): Test isnand instead of isnan.
57410         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57411         isnan-nolibm.
57412         * modules/frexp (Depends-on): Likewise.
57413         * modules/frexp-tests (Depends-on): Likewise.
57414         * modules/frexp-nolibm (Depends-on): Likewise.
57415         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57416         * modules/isfinite (Depends-on): Likewise.
57417         * modules/round-tests (Depends-on): Likewise.
57418         * modules/signbit (Depends-on): Likewise.
57419         * modules/signbit-tests (Depends-on): Likewise.
57420         * modules/snprintf-posix (Depends-on): Likewise.
57421         * modules/sprintf-posix (Depends-on): Likewise.
57422         * modules/trunc-tests (Depends-on): Likewise.
57423         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57424         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57425         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57426         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57427         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57428         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57429         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57430         * modules/vasnprintf-posix (Depends-on): Likewise.
57431         * modules/vasprintf-posix (Depends-on): Likewise.
57432         * modules/vfprintf-posix (Depends-on): Likewise.
57433         * modules/vsnprintf-posix (Depends-on): Likewise.
57434         * modules/vsprintf-posix (Depends-on): Likewise.
57435         * lib/frexp.c: Include isnand.h instead of isnan.h.
57436         (ISNAN): Set to isnand instead of isnan.
57437         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57438         (gl_isfinited): Use isnand instead of isnan.
57439         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57440         (gl_signbitd): Use isnand instead of isnan.
57441         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57442         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57443         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57444         (main): Use isnand instead of isnan.
57445         * tests/test-round1.c: Include isnand.h.
57446         (main): Use isnand instead of isnan.
57447         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57448         (ISNAN): Set to isnand instead of isnan.
57449         * tests/test-trunc1.c: Include isnand.h.
57450         (main): Use isnand instead of isnan.
57451         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57452         (equal): Use isnand instead of isnan.
57453         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57454         isnand-nolibm.
57455         * NEWS: Mention the change.
57456
57457 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57458             Bruno Haible  <bruno@clisp.org>
57459
57460         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57461         the GCC builtins for signbits are present and set
57462         REPLACE_SIGNBIT_USING_GCC if so.
57463         * lib/math.in.h (signbit): Define using GCC builtins if
57464         REPLACE_SIGNBIT_USING_GCC is set.
57465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57466         REPLACE_SIGNBIT_USING_GCC.
57467         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57468
57469 2008-01-25  Jim Meyering  <meyering@redhat.com>
57470
57471         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57472         * lib/poll.c: Include <config.h>, not "config.h".
57473         * tests/test-getaddrinfo.c: Likewise.
57474
57475 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57476
57477         * modules/sockets-tests: New file.
57478
57479 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57480
57481         * modules/sockets: New module, can be used to call WSA_Startup and
57482         WSA_Cleanup when needed.
57483
57484         * lib/sockets.h, lib/sockets.c: New files.
57485
57486         * m4/sockets.m4: New file.
57487
57488         * tests/test-sockets.c: New file.
57489
57490 2008-01-19  Bruno Haible  <bruno@clisp.org>
57491
57492         * doc/posix-headers: Renamed from doc/headers.
57493         * doc/posix-functions: Renamed from doc/functions.
57494         * doc/gnulib.texi: Update.
57495
57496 2008-01-19  Bruno Haible  <bruno@clisp.org>
57497
57498         * doc/glibc-functions/strcasestr.texi: Include contents of
57499         doc/functions/strcasestr.texi, fixing the list of platforms.
57500         * doc/functions/strcasestr.texi: Remove file.
57501
57502 2008-01-19  Bruno Haible  <bruno@clisp.org>
57503
57504         * doc/glibc-functions/memmem.texi: Include contents of
57505         doc/functions/memmem.texi.
57506         * doc/functions/memmem.texi: Remove file.
57507
57508 2008-01-18  Bruno Haible  <bruno@clisp.org>
57509
57510         * doc/glibc-functions/*.texi: New files.
57511         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57512         to use the new files.
57513
57514 2008-01-17  Bruno Haible  <bruno@clisp.org>
57515
57516         * tests/test-gethostname.c (main): Fix printf statement.
57517
57518 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57519
57520         * modules/gethostname-tests: New file.
57521
57522         * tests/test-gethostname.c: New file.
57523
57524 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57525
57526         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57527         used by the UNAME case.  Reported by Bruno Haible
57528         <bruno@clisp.org>.
57529
57530 2008-01-17  Eric Blake  <ebb9@byu.net>
57531
57532         Convert c-strcasestr to be more efficient.
57533         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57534         (Depends-on): Add c-strcase, remove malloca, strnlen.
57535         * tests/test-c-strcasestr.c (main): Enhance test.
57536         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57537
57538 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57539
57540         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57541         Use it in creating po/Makevars.
57542
57543 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57544
57545         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57546         Applications that requires it should initialize libgcrypt
57547         manually.
57548
57549 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57550
57551         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57552
57553 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57554
57555         Fix problem with getdate on mingw32 reported by Simon Josefsson
57556         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57557         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57558         tzname", when deciding whether to declare tzname.
57559         * lib/strftime.c (tzname): Likewise.
57560
57561 2008-01-15  Bruno Haible  <bruno@clisp.org>
57562
57563         Work around a MacOS X 10.5 bug in frexpl().
57564         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57565         * doc/functions/frexpl.texi: Document the bug.
57566         Reported by Elias Pipping <pipping@gentoo.org>.
57567
57568 2008-01-14  Eric Blake  <ebb9@byu.net>
57569
57570         Touch up previous patch.
57571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57572         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57573
57574         Convert strcasestr module to use Two-Way algorithm.
57575         * modules/strcasestr-simple: New module, based on the old
57576         strcasestr, but with Two-Way rather than KMP.
57577         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57578         * lib/string.in.h (rpl_strcasestr): Declare.
57579         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57580         performance.
57581         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57582         * modules/string (Makefile.am): Support strcasestr.
57583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57584         * modules/strcasestr-tests (Depends-on): Check for alarm.
57585         * tests/test-strcasestr.c: Augment test.
57586         * lib/str-two-way.h: Clean up stray macro.
57587         * NEWS: Document new module.
57588         * MODULES.html.sh (string handling): Likewise.
57589         * doc/functions/strcasestr.texi: New file.
57590         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57591         here, since it is not a POSIX function.
57592
57593 2008-01-14  Colin Watson  <cjwatson@debian.org>
57594             Bruno Haible  <bruno@clisp.org>
57595
57596         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57597         works fine; if not, set REPLACE_STRSIGNAL.
57598         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57600         REPLACE_STRSIGNAL.
57601         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57602         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57603         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57604
57605 2008-01-14  Bruno Haible  <bruno@clisp.org>
57606
57607         * modules/strsignal (Include): Change to <string.h>.
57608
57609 2008-01-14  Colin Watson  <cjwatson@debian.org>
57610
57611         * modules/argp (Notice): Add a notice recommending to change
57612         XGETTEXT_OPTIONS.
57613         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57614
57615 2008-01-13  Colin Watson  <cjwatson@debian.org>
57616
57617         * modules/strsignal-tests: New file.
57618         * tests/test-strsignal.c: New file.
57619
57620         * lib/strsignal.c: New file, from glibc with modifications.
57621         * lib/siglist.h: New file, from glibc with modifications.
57622         * lib/string.in.h (strsignal): New declaration.
57623         * m4/strsignal.m4: New file.
57624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57625         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57626         * modules/strsignal: New file.
57627         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57628         HAVE_DECL_STRSIGNAL.
57629
57630 2008-01-13  Bruno Haible  <bruno@clisp.org>
57631
57632         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57633         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57634         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57635         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57636
57637 2008-01-13  Bruno Haible  <bruno@clisp.org>
57638
57639         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57640         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57641         * lib/argp.h (__attribute__): Likewise.
57642         * lib/c-stack.c (__attribute__): Likewise.
57643         * lib/error.h (__attribute__): Likewise.
57644         * lib/fts.c (__attribute__): Likewise.
57645         * lib/openat.h (__attribute__): Likewise.
57646         * lib/stdio.in.h (__attribute__): Likewise.
57647         * lib/string.in.h (__attribute__): Likewise.
57648         * lib/utimens.c (__attribute__): Likewise.
57649         * lib/vasnprintf.h (__attribute__): Likewise.
57650         * lib/xalloc.h (__attribute__): Likewise.
57651         * lib/xprintf.h (__attribute__): Likewise.
57652         * lib/xstrtol.h (__attribute__): Likewise.
57653         * lib/xvasprintf.h (__attribute__): Likewise.
57654
57655 2008-01-12  Bruno Haible  <bruno@clisp.org>
57656
57657         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57658         * doc/glibc-headers/a.out.texi: New file.
57659         * doc/glibc-headers/aliases.texi: New file.
57660         * doc/glibc-headers/alloca.texi: New file.
57661         * doc/glibc-headers/ar.texi: New file.
57662         * doc/glibc-headers/argp.texi: New file.
57663         * doc/glibc-headers/argz.texi: New file.
57664         * doc/glibc-headers/byteswap.texi: New file.
57665         * doc/glibc-headers/crypt.texi: New file.
57666         * doc/glibc-headers/endian.texi: New file.
57667         * doc/glibc-headers/envz.texi: New file.
57668         * doc/glibc-headers/err.texi: New file.
57669         * doc/glibc-headers/error.texi: New file.
57670         * doc/glibc-headers/execinfo.texi: New file.
57671         * doc/glibc-headers/fpu_control.texi: New file.
57672         * doc/glibc-headers/fstab.texi: New file.
57673         * doc/glibc-headers/fts.texi: New file.
57674         * doc/glibc-headers/getopt.texi: New file.
57675         * doc/glibc-headers/ieee754.texi: New file.
57676         * doc/glibc-headers/ifaddrs.texi: New file.
57677         * doc/glibc-headers/libintl.texi: New file.
57678         * doc/glibc-headers/mcheck.texi: New file.
57679         * doc/glibc-headers/mntent.texi: New file.
57680         * doc/glibc-headers/obstack.texi: New file.
57681         * doc/glibc-headers/paths.texi: New file.
57682         * doc/glibc-headers/printf.texi: New file.
57683         * doc/glibc-headers/pty.texi: New file.
57684         * doc/glibc-headers/resolv.texi: New file.
57685         * doc/glibc-headers/shadow.texi: New file.
57686         * doc/glibc-headers/sysexits.texi: New file.
57687         * doc/glibc-headers/ttyent.texi: New file.
57688
57689 2008-01-12  Jim Meyering  <meyering@redhat.com>
57690
57691         announce-gen: emit Gnulib's git-based version string.
57692         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57693         New option --gnulib-version=V, where V is expected to be
57694         the output of running git describe in the gnulib directory.
57695         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57696         not useful, and plan to stop publishing an xdelta file with each
57697         coreutils release.
57698
57699         * build-aux/announce-gen: Also check for lzma-compressed files.
57700
57701 2008-01-11  Bruno Haible  <bruno@clisp.org>
57702
57703         * tests/test-memmem.c (main): Increase maximum allowed time.
57704         * tests/test-strstr.c (main): Likewise.
57705
57706 2008-01-11  Bruno Haible  <bruno@clisp.org>
57707
57708         * doc/functions/memmem.texi: Add more precisions about platforms.
57709         * doc/functions/strstr.texi: Likewise.
57710
57711 2008-01-10  Eric Blake  <ebb9@byu.net>
57712
57713         * m4/strstr.m4: Delete cruft from copy-n-paste.
57714         Reported by Bruno Haible.
57715
57716 2008-01-10  Bruno Haible  <bruno@clisp.org>
57717
57718         Make c-strstr rely on strstr.
57719         * lib/c-strstr.c: Don't include str-kmp.h.
57720         (c_strstr): Define in terms of strstr.
57721         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57722         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57723
57724 2008-01-10  Bruno Haible  <bruno@clisp.org>
57725
57726         * doc/gnulib.texi (String Functions in C Locale): New section.
57727         * doc/c-ctype.texi: New file.
57728         * doc/c-strcase.texi: New file.
57729         * doc/c-strcaseeq.texi: New file.
57730         * doc/c-strcasestr.texi: New file.
57731         * doc/c-strstr.texi: New file.
57732         * doc/c-strtod.texi: New file.
57733         * doc/c-strtold.texi: New file.
57734
57735 2008-01-10  Eric Blake  <ebb9@byu.net>
57736
57737         * lib/relocatable.h: Fix a comment.
57738
57739 2008-01-10  Eric Blake  <ebb9@byu.net>
57740
57741         Share two-way algorithm.
57742         * lib/str-two-way.h: New file, merged from...
57743         * lib/memmem.c: ...here...
57744         * lib/strstr.c: ...and here.
57745         * modules/memmem (Files): Use it.
57746         * modules/strstr (Files): Likewise.
57747
57748         Avoid quadratic strstr implementations.
57749         * lib/strstr.c: New file.
57750         * m4/strstr.m4: Likewise.
57751         * modules/strstr: Likewise.
57752         * modules/strstr-tests: Likewise.
57753         * tests/test-strstr.c: Likewise.
57754         * lib/string.in.h (rpl_strstr): Declare.
57755         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57757         * modules/string (Makefile.am): Likewise.
57758         * MODULES.html.sh (string handling): Mention new module.
57759         * doc/functions/strstr.texi (strstr): Document the bug.
57760
57761 2008-01-10  Bruno Haible  <bruno@clisp.org>
57762
57763         * lib/relocatable.h (relocate): State whether result is freshly
57764         allocated or not.
57765         * lib/relocatable.c (relocate): Return a freshly allocated string
57766         instead of a pointer to a privately held string.
57767         Reported by Sylvain Beucler <beuc@gnu.org>.
57768
57769 2008-01-10  Colin Watson  <cjwatson@debian.org>
57770
57771         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57772         s/S_ISNLK/S_ISLNK/.
57773
57774 2008-01-09  Bruno Haible  <bruno@clisp.org>
57775
57776         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57777         and other files.
57778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57779         if it's only a guess.
57780         * modules/memmem: Simplify by depending on memmem-simple.
57781
57782 2008-01-09  Bruno Haible  <bruno@clisp.org>
57783
57784         Work around OpenBSD 4.0 tdelete() bug.
57785         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57786         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57787         macros and don't redefine the enum values.
57788         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57789         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57790         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57791
57792 2008-01-09  Bruno Haible  <bruno@clisp.org>
57793
57794         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57795         (main): Don't perform the tests if setlocale did not install a UTF-8
57796         locale. Needed on OpenBSD 4.0.
57797         * modules/wcwidth-tests (Depends-on): Add localcharset.
57798
57799 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57800
57801         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57802         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57803         * NEWS: announce this.
57804         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57805
57806 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57807         and Eric Blake  <ebb9@byu.net>
57808
57809         Add memmem-simple module.
57810         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57811         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57812         * modules/memmem-simple: New file.
57813         * modules/memmem (Description): Tweak.
57814         * MODULES.html.sh (string handling): Mention new module.
57815         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57816         addressed by memmem-simple.
57817         * NEWS: Document the difference.
57818
57819 2008-01-09  Eric Blake  <ebb9@byu.net>
57820
57821         Give gcc some memmem optimization hints.
57822         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57823         (strcasestr): Declare as pure.
57824         * modules/memmem (Maintainer): Claim my implementation.
57825
57826 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57827
57828         Support AIX 6.1 and higher.
57829         * build-aux/config.libpath: Likewise.
57830         * build-aux/config.rpath: Likewise.
57831
57832 2008-01-08  Jim Meyering  <meyering@redhat.com>
57833             Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57836         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57837         Reported by Peter Fales in
57838         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57839
57840 2008-01-08  Bruno Haible  <bruno@clisp.org>
57841
57842         * modules/unictype/category-of (Depends-on): Add
57843         unictype/category-none.
57844         * modules/unictype/category-and-tests (Depends-on): Add
57845         unictype/category-{L,N,Lu,Nd}.
57846         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57847         * modules/unictype/category-or-tests (Depends-on): Add
57848         unictype/category-{L,N}.
57849         * modules/unictype/category-name-tests (Depends-on): Add
57850         unictype/category-{Z,Nl}.
57851         Reported by Simon Josefsson.
57852
57853 2008-01-08  Bruno Haible  <bruno@clisp.org>
57854
57855         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57856         convention better.
57857         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57858         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57859         Reported by Peter Miller <millerp@canb.auug.org.au>.
57860
57861 2008-01-08  Eric Blake  <ebb9@byu.net>
57862
57863         Rewrite memmem to guarantee linear complexity without malloc.
57864         * lib/memmem.c (memmem): Use Two-Way rather than
57865         Knuth-Morris-Pratt, to allow O(1) space usage.
57866         (critical_factorization, two_way_short_needle)
57867         (two_way_long_needle): New functions.
57868         (knuth_morris_pratt): Delete.
57869         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57870         Add stdint.
57871         * tests/test-memmem.c (main): Add tests for periodic needle and
57872         sublinear performance.
57873         * doc/functions/memmem.texi (memmem): Document other deficiencies
57874         in cygwin and older glibc.
57875
57876 2008-01-08  Bruno Haible  <bruno@clisp.org>
57877
57878         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57879         augmentation.
57880
57881 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57882
57883         Add a configure time option: --disable-acl.
57884         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57885         AC_ARG_ENABLE(acl).
57886
57887 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57888
57889         * tests/test-localename.c: Don't include obsolete "setenv.h".
57890
57891         * modules/localename-tests (Depends-on): Need unsetenv.
57892
57893 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57894
57895         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57896
57897 2008-01-06  Colin Watson  <cjwatson@debian.org>
57898
57899         * users.txt: Add man-db.
57900
57901 2008-01-07  Bruno Haible  <bruno@clisp.org>
57902
57903         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57904         previous section name.
57905
57906 2008-01-07  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/progname.c (set_program_name): Don't strip off a leading
57909         "lt-" prefix outside a .libs directory.
57910         Suggested by Paul Eggert.
57911
57912 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57913             Bruno Haible  <bruno@clisp.org>
57914
57915         Improve memory cleanup in 'relocatable' module.
57916         * lib/relocatable.h (compute_curr_prefix): Change return type to
57917         'char *'.
57918         * lib/relocatable.c (compute_curr_prefix): Change return type to
57919         'char *'. Free curr_installdir after use.
57920         (relocate): Free curr_prefix_better after use.
57921         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57922
57923 2008-01-01  Bruno Haible  <bruno@clisp.org>
57924
57925         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57926         failure on older glibc systems.
57927         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57928
57929 2008-01-05  Eric Blake  <ebb9@byu.net>
57930
57931         Avoid quadratic system memmem.
57932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57933         Reported by Ralf Wildenhues.
57934
57935         Fix memmem test for mingw.
57936         * modules/memmem-tests (configure.ac): Check for alarm.
57937         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57938         it.
57939         * doc/functions/memmem.texi: New file.
57940         * doc/gnulib.texi (Function Substitutes): Add memmem.
57941         Reported by Bruno Haible.
57942
57943 2008-01-04  Bruno Haible  <bruno@clisp.org>
57944
57945         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57946         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57947         gl_HEADER_STRING_H_DEFAULTS.
57948
57949 2008-01-04  Eric Blake  <ebb9@byu.net>
57950
57951         Shorten duration of memmem test.
57952         * tests/test-memmem.c (main): Use alarm to declare failure if test
57953         is taking too long.
57954         Reported by Ralf Wildenhues.
57955
57956 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57957
57958         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57959         string, needed by strerror.
57960
57961 2008-01-03  Colin Watson  <cjwatson@debian.org>
57962             Bruno Haible  <bruno@clisp.org>
57963
57964         * doc/gnulib-tool.texi (Localization): New section.
57965
57966 2008-01-02  Bruno Haible  <bruno@clisp.org>
57967
57968         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57969         variables to 'unsigned char *' type.
57970         Reported by Paul Eggert.
57971
57972 2008-01-02  Jim Meyering  <jim@meyering.net>
57973
57974         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57975
57976 2007-12-31  Jim Meyering  <jim@meyering.net>
57977
57978         Avoid use of private FTS type name.
57979         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57980
57981 2007-12-30  Karl Berry  <karl@gnu.org>
57982
57983         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57984         work around defect in Texinfo and/or the standalone Info browser.
57985
57986 2007-12-30  Bruno Haible  <bruno@clisp.org>
57987
57988         Unify 5 copies of the KMP code.
57989         * lib/str-kmp.h: New file.
57990         * lib/c-strcasestr.c: Include str-kmp.h.
57991         (knuth_morris_pratt): Remove function.
57992         (c_strcasestr): Update.
57993         * lib/c-strstr.c: Include str-kmp.h.
57994         (knuth_morris_pratt): Remove function.
57995         (c_strcasestr): Update.
57996         * lib/mbscasestr.c: Include str-kmp.h.
57997         (knuth_morris_pratt_unibyte): Remove function.
57998         * lib/mbsstr.c: Include str-kmp.h.
57999         (knuth_morris_pratt_unibyte): Remove function.
58000         * lib/strcasestr.c: Include str-kmp.h.
58001         (knuth_morris_pratt): Remove function.
58002         (strcasestr): Update.
58003         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58004         * modules/c-strstr (Files): Likewise.
58005         * modules/mbscasestr (Files): Likewise.
58006         * modules/mbsstr (Files): Likewise.
58007         * modules/strcasestr (Files): Likewise.
58008         Suggested by Paul Eggert.
58009
58010 2007-12-30  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58013         defined.
58014
58015 2007-12-30  Bruno Haible  <bruno@clisp.org>
58016
58017         * lib/xmalloca.h: Include xalloc.h.
58018         (xnmalloca): New macro.
58019
58020 2007-12-30  Bruno Haible  <bruno@clisp.org>
58021
58022         * lib/malloca.h (nmalloca): New macro.
58023         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58024         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58025         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58026         knuth_morris_pratt_multibyte): Likewise.
58027         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58028         knuth_morris_pratt_multibyte): Likewise.
58029         * lib/memmem.c (knuth_morris_pratt): Likewise.
58030         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58031
58032 2007-12-25  Bruno Haible  <bruno@clisp.org>
58033
58034         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58035         * lib/glob.c: Don't include openat.h.
58036         (link_exists2_p): Add back the code that deals with the
58037         !GLOB_ALTDIRFUNC case.
58038         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58039         let it do the filename concatenation.
58040         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58041         * modules/glob (Depends-on): Remove openat.
58042
58043 2007-12-31  Bruno Haible  <bruno@clisp.org>
58044
58045         * modules/dirfd (License): Change to LGPLv2+.
58046         Approved by Jim Meyering.
58047
58048 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58051         when multiplying M by sizeof (size_t).
58052
58053 2007-12-10  Martin Lambers  <marlam@marlam.de>
58054
58055         Override getpagesize on mingw.
58056         * lib/getpagesize.c: New file.
58057         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58058         * modules/getpagesize (Files): Add lib/getpagesize.c.
58059         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58061         REPLACE_GETPAGESIZE.
58062         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58063
58064 2007-12-25  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/localcharset (Notice): New field.
58067         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58068         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58069
58070 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58071             Bruno Haible  <bruno@clisp.org>
58072
58073         Avoid using the syntax symbol() in formatted documentation.
58074         * MODULES.html.sh (func_module): When replacing symbol() with a
58075         hyperlink, remove the parentheses. Show an error if some remain.
58076         Recognize and render the '...' syntax.
58077         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58078         Rework. Add paragraph about GCC's inlining.
58079         * doc/alloca.texi: Likewise.
58080         * doc/error.texi: Remove parentheses from symbol reference.
58081         * doc/gnulib-intro.texi: Likewise.
58082         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58083         * modules/fnmatch (Description): Reword to say "the ... function".
58084         * modules/full-read (Description): Likewise.
58085         * modules/full-write (Description): Likewise.
58086         * modules/safe-read (Description): Likewise.
58087         * modules/safe-write (Description): Likewise.
58088         * modules/strchrnul (Description): Likewise.
58089         * modules/trim (Description): Likewise.
58090         * modules/error (Description): Remove parentheses from symbol
58091         references.
58092         * modules/verror (Description): Likewise.
58093         Reported by Karl Berry.
58094
58095 2007-12-25  Bruno Haible  <bruno@clisp.org>
58096
58097         Fixup after 2007-10-16 commit.
58098         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58099
58100 2007-12-24  Bruno Haible  <bruno@clisp.org>
58101
58102         Make --enable-relocatable work with DESTDIR.
58103         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58104         to compute installdir from destprog.
58105         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58106         also set the RELOC_DESTDIR variable.
58107         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58108
58109 2007-12-24  Bruno Haible  <bruno@clisp.org>
58110
58111         Fix link error due to xalloc_die().
58112         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58113         of xreadlink.
58114         * lib/relocwrapper.c: Update comments.
58115         * build-aux/install-reloc: Remove xreadlink.c from file list.
58116         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58117         xreadlink.c.
58118         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58119
58120 2007-12-24  Bruno Haible  <bruno@clisp.org>
58121
58122         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58123         * lib/setenv.h: Remove file.
58124         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58125         lib/setenv.h.
58126         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58127         (Depends-on): Add stdlib.
58128         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58129         gl_FUNC_UNSETENV.
58130         (Include): Replace setenv.h with <stdlib.h>.
58131         * modules/unsetenv: New file.
58132         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58133         * lib/unsetenv.c: Include <stdlib.h> first.
58134         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58135         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58136         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58137         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58138         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58139         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58141         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58142         * doc/functions/unsetenv.texi: Update.
58143         * modules/xsetenv (Depends-on): Add unsetenv.
58144         * modules/getdate (Depends-on): Likewise.
58145         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58146         * lib/xsetenv.c: Don't include setenv.h.
58147         * lib/getdate.y: Likewise.
58148         * lib/relocwrapper.c: Likewise.
58149         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58150         (Depends-on): Add stdlib.
58151         * NEWS: Mention the changes.
58152         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58153
58154 2007-12-23  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58157         indentation.
58158
58159 2007-12-23  Bruno Haible  <bruno@clisp.org>
58160
58161         * lib/c-strcasestr.c: Add more comments.
58162         * lib/c-strstr.c: Likewise.
58163         * lib/mbscasestr.c: Likewise.
58164         * lib/mbsstr.c: Likewise.
58165         * lib/strcasestr.c: Likewise.
58166         * lib/memmem.c: Likewise.
58167
58168 2007-12-23  Bruno Haible  <bruno@clisp.org>
58169
58170         * tests/test-memmem.c: Include <string.h> first.
58171
58172 2007-12-22  Bruno Haible  <bruno@clisp.org>
58173
58174         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58175         the contents of $testsbase.
58176         Reported by Ralf Wildenhues.
58177
58178 2007-12-22  Bruno Haible  <bruno@clisp.org>
58179
58180         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58181         two variables local_ldadd_before, local_ldadd_last.
58182
58183 2007-12-20  Eric Blake  <ebb9@byu.net>
58184
58185         Work around circular library issue when cross-compiling.
58186         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58187         that progname.o does not need to pull in rpl_memcmp.
58188
58189 2007-12-19  Eric Blake  <ebb9@byu.net>
58190
58191         Fix memmem to avoid O(n^2) worst-case complexity.
58192         * lib/memmem.c (knuth_morris_pratt): New function.
58193         (memmem): Use it if first few naive iterations fail.
58194         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58195         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58196         * modules/memchr (License): Likewise.
58197         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58198         malloca.
58199         * tests/test-memmem.c: Rewrite, borrowing ideas from
58200         test-mbsstr1.c; the old version wouldn't even compile!
58201         * modules/memmem-tests: New file.
58202         * lib/string.in.h (rpl_memmem): Add declaration.
58203         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58205         REPLACE_MEMMEM.
58206
58207 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58210         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58211         before any system include files, and undef after them all.  This
58212         should fix a problem on VMS reported by John E. Malmberg in
58213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58214
58215 2007-12-17  Eric Blake  <ebb9@byu.net>
58216
58217         Revert addition of verify, for BSD/OS.
58218         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58219         can't handle large files, for the sake of obsolete platforms.
58220         * modules/fseeko (Depends-on): Remove verify.
58221         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58222         * doc/functions/ftello.texi (ftello): Likewise.
58223         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58224         Reported by Larry Jones.
58225
58226 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58227
58228         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58229         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58230
58231 2007-12-17  Jim Meyering  <meyering@redhat.com>
58232
58233         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58234         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58235         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58236         * modules/getcwd (Depends-on): Add openat.
58237         Reported by Petr Salinger.
58238
58239 2007-12-17  Bruno Haible  <bruno@clisp.org>
58240
58241         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58242         avoid a segmentation fault of the configure test on x86_64 systems.
58243
58244 2007-12-15  Jim Meyering  <meyering@redhat.com>
58245
58246         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58247
58248 2007-12-13  Eric Blake  <ebb9@byu.net>
58249
58250         Another fseek test.
58251         * tests/test-fseek.c (main): Also test ungetc handling.
58252         * tests/test-fseeko.c (main): Likewise.
58253         * modules/fseeko (Depends-on): Add verify.
58254         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58255         large.
58256         Reported by Larry Jones.
58257
58258         Fix fseeko on mingw.
58259         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58260         seek.
58261
58262         Beef up fseek tests.
58263         * tests/test-fseek.c (main): Also test eof handling.
58264         * tests/test-fseeko.c (main): Likewise.
58265         Reported by Larry Jones.
58266
58267 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58268
58269         Fix fseeko on BSD-based platforms.
58270         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58271         successful seek.
58272
58273 2007-12-12  Eric Blake  <ebb9@byu.net>
58274
58275         Allow circular dependency of separate libtests.a
58276         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58277         when use_libtests.
58278
58279 2007-12-11  Eric Blake  <ebb9@byu.net>
58280
58281         Fix bug with -0.0L in previous patch.
58282         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58283         * tests/test-isnan.c (main): Also test on zeroes.
58284         * tests/test-isnanf.c (main): Likewise.
58285         * tests/test-isnanl.h (main): Likewise.
58286
58287         Detect pseudo-denormals on x86 even when cross-compiling.
58288         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58289         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58290         invalid bit patterns that happen to satisfy ==.
58291
58292         Avoid link failures with separate libtests.a.
58293         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58294         last, to satisfy circular dependencies.
58295
58296 2007-12-11  Eric Blake  <ebb9@byu.net>
58297         and Bruno Haible  <bruno@clisp.org>
58298
58299         Fix OpenBSD 4.0 <float.h> handling of long double.
58300         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58301         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58302         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58303
58304 2007-12-11  Jim Meyering  <meyering@redhat.com>
58305
58306         * users.txt: Add libvirt.
58307
58308         Support versions of autoconf prior to 2.59c.
58309         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58310         if it is not already defined.
58311
58312 2007-12-09  Bruno Haible  <bruno@clisp.org>
58313
58314         Let 'gnulib-tool --import' collect sources needed for the tests in
58315         tests/ rather than in lib/.
58316         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58317         argument. If true, add rules to generate libtests.a, and put libtests.a
58318         into $(LDADD). Consider source files in subdirectories and set
58319         uses_subdirs.
58320         (func_emit_initmacro_start, func_emit_initmacro_end,
58321         func_emit_initmacro_done): Pass all arguments explicitly.
58322         (func_import): Determine two module lists main_modules,
58323         testsrelated_modules. Determine use_libtests. Determine two variables
58324         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58325         instead of just sed_transform_lib_file. Determine two variables
58326         main_files and testsrelated_files. Compute 'files' as the union of
58327         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58328         func_add_or_update. In the generated gnulib-comp.m4, collect the
58329         object files for tests/ in different variables than those for lib/.
58330         Substitute LIBTESTS_LIBDEPS.
58331         (func_create_testdir): Combine the uses_subdirs results from
58332         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58333
58334 2007-12-09  Bruno Haible  <bruno@clisp.org>
58335
58336         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58337         the build-aux directory.
58338
58339 2007-12-09  Bruno Haible  <bruno@clisp.org>
58340
58341         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58342         introduced on 2006-09-09.
58343
58344 2007-12-07  Jim Meyering  <meyering@redhat.com>
58345
58346         Let these macros work also with autoconf-2.59.
58347         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58348         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58349         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58350
58351 2007-12-06  Jim Meyering  <meyering@redhat.com>
58352
58353         Avoid a configure-time syntax error in gl_FUNC_ACL.
58354         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58355         function in each branch, before testing the cache variable.
58356
58357 2007-12-04  Eric Blake  <ebb9@byu.net>
58358
58359         Make scripts executable.
58360         * build-aux/config.guess: Add execute permissions.
58361         * build-aux/config.sub: Likewise.
58362         * build-aux/gendocs.sh: Likewise.
58363
58364         Fix frexp on mingw.
58365         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58366         cross-compiling.
58367         * doc/functions/frexp.texi (frexp): Document the bug.
58368
58369         Make cygwin fseeko check more reliable.
58370         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58371         version numbers, rather than unrelated feature check.
58372         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58373         * doc/functions/ftello.texi (ftello): Likewise.
58374         Reported by Bruno Haible.
58375
58376         * m4/strerror.m4: Bump version number.
58377
58378 2007-12-03  Bruno Haible  <bruno@clisp.org>
58379
58380         * doc/functions/mprotect.texi: Mention the mingw problem.
58381
58382 2007-12-03  Eric Blake  <ebb9@byu.net>
58383
58384         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58385         REPLACE_STRERROR is initialized before this macro.
58386
58387 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58390         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58391         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58392         put -lsec in even for programs other than 'ls'.  This fixes a problem
58393         for gettext reported by Bruno Haible in
58394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58395         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58396         Add support for Solaris 10.  This isn't efficient, but should get the
58397         job done for now.
58398
58399 2007-12-03  James Youngman  <jay@gnu.org>
58400
58401         * doc/regexprops-generic.texi: change "an close-group" to "a
58402         close-group" and "illegal" to "not allowed".
58403
58404 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58405
58406         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58407         pr_byname.h. Needed for the rare case when the maintainer has done
58408         "make maintainer-clean" in the source directory and then attempts a
58409         build outside the source directory.
58410         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58411         scripts_byname.h.
58412
58413 2007-12-02  Martin Lambers <marlam@marlam.de>
58414             Bruno Haible  <bruno@clisp.org>
58415
58416         * lib/getpagesize.h: Remove file.
58417         * lib/unistd.in.h: Include declaration of getpagesize here.
58418         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58419         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58420         HAVE_SYS_PARAM_H.
58421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58422         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58423         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58424         (Depends-on): Add unistd.
58425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58426         (Include): Use <unistd.h> instead of getpagesize.h.
58427         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58428         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58429         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58430         gl_GETPAGESIZE invocation, already handled by module dependency.
58431         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58432
58433 2007-12-02  Bruno Haible  <bruno@clisp.org>
58434
58435         * modules/strings-tests: New file.
58436         * tests/test-strings.c: New file.
58437
58438         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58439         * lib/strings.in.h: New file.
58440         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58441         * m4/strings_h.m4: New file.
58442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58443         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58444         * modules/strings: New file.
58445         * modules/string (Makefile.am): Update.
58446         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58447         Reported by Karl Berry.
58448
58449 2007-12-01  Eric Blake  <ebb9@byu.net>
58450
58451         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58452         accomodate fix in cygwin 1.5.25.
58453
58454 2007-12-01  Jim Meyering  <meyering@redhat.com>
58455
58456         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58457         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58458         that would inhibit utf8-optimization of a regexp containing line-
58459         or buffer-anchors, e.g., `^', `$'.
58460
58461 2007-11-30  Bruno Haible  <bruno@clisp.org>
58462
58463         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58464         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58465         glthread_recursive_lock_init.
58466         * lib/lock.c (glthread_recursive_lock_init)
58467         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58468         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58469
58470 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58471
58472         New function qset_acl, like set_acl but with syscall semantics.
58473         * lib/acl.h (qset_acl): New decl.
58474         * lib/acl.c (qset_acl): New function.
58475         (set_acl): Use new function.  Use more-consistent diagnostics.
58476
58477 2007-11-28  Jim Meyering  <meyering@redhat.com>
58478
58479         * modules/physmem (License): Change from GPL to LGPLv2+.
58480
58481 2007-11-26  Bruno Haible  <bruno@clisp.org>
58482
58483         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58484         'long double' type has excess precision.
58485         Reported by Jim Meyering in
58486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58487
58488 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58489
58490         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58491         Sync from <http://gnu.org/licenses>.
58492         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58493         with license text from same location.
58494         * doc/maintain.texi, doc/standards.texi:  Sync from
58495         <http://savannah.gnu.org/projects/gnustandards>.
58496
58497 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58498         and Jim Meyering  <meyering@redhat.com>
58499
58500         Adjust getdate' grammar to accept a slightly more regular language.
58501         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58502         Before, the former was rejected.
58503         * lib/getdate.y (digits_to_date_time): New function, factored
58504         out of ...
58505         (number): ...here.  Just call digits_to_date_time.
58506         (hybrid): New non-terminal to handle an <unsigned number,
58507         signed relative offset> sequence consistently.
58508
58509 2007-11-18  Jim Meyering  <meyering@redhat.com>
58510
58511         Pull my changes from coreutils:
58512         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58513         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58514         use of $gnulib_tool_option_extras, so that it's separated from the
58515         preceding argument.
58516
58517         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58518         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58519         parent destination directories before copying a file into place.
58520
58521 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58522
58523         bootstrap: work also with 4-argument variant of AC_INIT
58524         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58525
58526 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58527
58528         Port test-getaddrinfo to Solaris.
58529         Problem reported by Bruno Haible in
58530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58531         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58532         explanation of setting 'hints'.
58533         Don't reject an implementation merely because it returns EAI_SERVICE.
58534         (EAI_SERVICE): Define to 0 if not defined.
58535
58536 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         The license of gnu-make and posix-shell is now "GPLed build tool".
58539         * modules/gnu-make (License): Likewise.
58540         * modules/posix-shell (License): Likewise.
58541
58542         New module posix-shell, for determining a POSIX shell
58543         or perhaps something that is close enough to a POSIX shell.
58544         * m4/posix-shell.m4: New file.
58545         * modules/posix-shell: New file.
58546
58547         * MODULES.html.sh: Mention new module.
58548
58549         New module gnu-make, for determining whether we're using GNU Make.
58550         * m4/gnu-make.m4: New file.
58551         * modules/gnu-make: New file.
58552         * MODULES.html.sh: Mention new module.
58553
58554 2007-11-14  Jim Meyering  <meyering@redhat.com>
58555
58556         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58557         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58558         use this macro to create a function _definition_.
58559         Remove useless "#undef ARGMATCH_DIE".
58560
58561 2007-11-14  Bruno Haible  <bruno@clisp.org>
58562
58563         * lib/config.charset: Update for OpenBSD 4.1.
58564         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58565
58566 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58567
58568         Document 64-bit #if problems in stdint.texi.
58569         * doc/headers/stdint.texi (stdint.h): Mention problems with
58570         64-bit-#if, and how to work around them.
58571
58572         Don't insist on 'long long int' support in the preprocessor.  It
58573         breaks too many things.  For example, PRIdMAX still uses a 'long
58574         long int' format with the latest Sun compiler, even though
58575         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58576         preprocessor problem.  This causes the latest coreutils to dump
58577         core on Solaris 10 sparc with the Sun C compiler.
58578         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58579         the troublesome expressions at configure-time, not at #if-time.
58580         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58581         preprocessor.
58582         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58583         compile-time C checks, done at 'configure'-time.
58584         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58585         * modules/inttypes (Makefile): Substitute the new symbols that
58586         gl_INTTYPES_H now generates.
58587         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58588
58589 2007-11-12  Bruno Haible  <bruno@clisp.org>
58590
58591         Tests for Unicode character classification functions.
58592
58593         * modules/unictype/bidicategory-byname-tests: New file.
58594         * modules/unictype/bidicategory-name-tests: New file.
58595         * modules/unictype/bidicategory-of-tests: New file.
58596         * modules/unictype/bidicategory-test-tests: New file.
58597         * modules/unictype/block-list-tests: New file.
58598         * modules/unictype/block-of-tests: New file.
58599         * modules/unictype/block-test-tests: New file.
58600         * modules/unictype/category-C-tests: New file.
58601         * modules/unictype/category-Cc-tests: New file.
58602         * modules/unictype/category-Cf-tests: New file.
58603         * modules/unictype/category-Cn-tests: New file.
58604         * modules/unictype/category-Co-tests: New file.
58605         * modules/unictype/category-Cs-tests: New file.
58606         * modules/unictype/category-L-tests: New file.
58607         * modules/unictype/category-Ll-tests: New file.
58608         * modules/unictype/category-Lm-tests: New file.
58609         * modules/unictype/category-Lo-tests: New file.
58610         * modules/unictype/category-Lt-tests: New file.
58611         * modules/unictype/category-Lu-tests: New file.
58612         * modules/unictype/category-M-tests: New file.
58613         * modules/unictype/category-Mc-tests: New file.
58614         * modules/unictype/category-Me-tests: New file.
58615         * modules/unictype/category-Mn-tests: New file.
58616         * modules/unictype/category-N-tests: New file.
58617         * modules/unictype/category-Nd-tests: New file.
58618         * modules/unictype/category-Nl-tests: New file.
58619         * modules/unictype/category-No-tests: New file.
58620         * modules/unictype/category-P-tests: New file.
58621         * modules/unictype/category-Pc-tests: New file.
58622         * modules/unictype/category-Pd-tests: New file.
58623         * modules/unictype/category-Pe-tests: New file.
58624         * modules/unictype/category-Pf-tests: New file.
58625         * modules/unictype/category-Pi-tests: New file.
58626         * modules/unictype/category-Po-tests: New file.
58627         * modules/unictype/category-Ps-tests: New file.
58628         * modules/unictype/category-S-tests: New file.
58629         * modules/unictype/category-Sc-tests: New file.
58630         * modules/unictype/category-Sk-tests: New file.
58631         * modules/unictype/category-Sm-tests: New file.
58632         * modules/unictype/category-So-tests: New file.
58633         * modules/unictype/category-Z-tests: New file.
58634         * modules/unictype/category-Zl-tests: New file.
58635         * modules/unictype/category-Zp-tests: New file.
58636         * modules/unictype/category-Zs-tests: New file.
58637         * modules/unictype/category-and-not-tests: New file.
58638         * modules/unictype/category-and-tests: New file.
58639         * modules/unictype/category-byname-tests: New file.
58640         * modules/unictype/category-name-tests: New file.
58641         * modules/unictype/category-none-tests: New file.
58642         * modules/unictype/category-of-tests: New file.
58643         * modules/unictype/category-or-tests: New file.
58644         * modules/unictype/category-test-withtable-tests: New file.
58645         * modules/unictype/combining-class-tests: New file.
58646         * modules/unictype/ctype-alnum-tests: New file.
58647         * modules/unictype/ctype-alpha-tests: New file.
58648         * modules/unictype/ctype-blank-tests: New file.
58649         * modules/unictype/ctype-cntrl-tests: New file.
58650         * modules/unictype/ctype-digit-tests: New file.
58651         * modules/unictype/ctype-graph-tests: New file.
58652         * modules/unictype/ctype-lower-tests: New file.
58653         * modules/unictype/ctype-print-tests: New file.
58654         * modules/unictype/ctype-punct-tests: New file.
58655         * modules/unictype/ctype-space-tests: New file.
58656         * modules/unictype/ctype-upper-tests: New file.
58657         * modules/unictype/ctype-xdigit-tests: New file.
58658         * modules/unictype/decimal-digit-tests: New file.
58659         * modules/unictype/digit-tests: New file.
58660         * modules/unictype/mirror-tests: New file.
58661         * modules/unictype/numeric-tests: New file.
58662         * modules/unictype/property-alphabetic-tests: New file.
58663         * modules/unictype/property-ascii-hex-digit-tests: New file.
58664         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58665         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58666         * modules/unictype/property-bidi-block-separator-tests: New file.
58667         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58668         * modules/unictype/property-bidi-common-separator-tests: New file.
58669         * modules/unictype/property-bidi-control-tests: New file.
58670         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58671         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58672         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58673         * modules/unictype/property-bidi-european-digit-tests: New file.
58674         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58675         * modules/unictype/property-bidi-left-to-right-tests: New file.
58676         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58677         * modules/unictype/property-bidi-other-neutral-tests: New file.
58678         * modules/unictype/property-bidi-pdf-tests: New file.
58679         * modules/unictype/property-bidi-segment-separator-tests: New file.
58680         * modules/unictype/property-bidi-whitespace-tests: New file.
58681         * modules/unictype/property-byname-tests: New file.
58682         * modules/unictype/property-combining-tests: New file.
58683         * modules/unictype/property-composite-tests: New file.
58684         * modules/unictype/property-currency-symbol-tests: New file.
58685         * modules/unictype/property-dash-tests: New file.
58686         * modules/unictype/property-decimal-digit-tests: New file.
58687         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58688         * modules/unictype/property-deprecated-tests: New file.
58689         * modules/unictype/property-diacritic-tests: New file.
58690         * modules/unictype/property-extender-tests: New file.
58691         * modules/unictype/property-format-control-tests: New file.
58692         * modules/unictype/property-grapheme-base-tests: New file.
58693         * modules/unictype/property-grapheme-extend-tests: New file.
58694         * modules/unictype/property-grapheme-link-tests: New file.
58695         * modules/unictype/property-hex-digit-tests: New file.
58696         * modules/unictype/property-hyphen-tests: New file.
58697         * modules/unictype/property-id-continue-tests: New file.
58698         * modules/unictype/property-id-start-tests: New file.
58699         * modules/unictype/property-ideographic-tests: New file.
58700         * modules/unictype/property-ids-binary-operator-tests: New file.
58701         * modules/unictype/property-ids-trinary-operator-tests: New file.
58702         * modules/unictype/property-ignorable-control-tests: New file.
58703         * modules/unictype/property-iso-control-tests: New file.
58704         * modules/unictype/property-join-control-tests: New file.
58705         * modules/unictype/property-left-of-pair-tests: New file.
58706         * modules/unictype/property-line-separator-tests: New file.
58707         * modules/unictype/property-logical-order-exception-tests: New file.
58708         * modules/unictype/property-lowercase-tests: New file.
58709         * modules/unictype/property-math-tests: New file.
58710         * modules/unictype/property-non-break-tests: New file.
58711         * modules/unictype/property-not-a-character-tests: New file.
58712         * modules/unictype/property-numeric-tests: New file.
58713         * modules/unictype/property-other-alphabetic-tests: New file.
58714         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58715         * modules/unictype/property-other-grapheme-extend-tests: New file.
58716         * modules/unictype/property-other-id-continue-tests: New file.
58717         * modules/unictype/property-other-id-start-tests: New file.
58718         * modules/unictype/property-other-lowercase-tests: New file.
58719         * modules/unictype/property-other-math-tests: New file.
58720         * modules/unictype/property-other-uppercase-tests: New file.
58721         * modules/unictype/property-paired-punctuation-tests: New file.
58722         * modules/unictype/property-paragraph-separator-tests: New file.
58723         * modules/unictype/property-pattern-syntax-tests: New file.
58724         * modules/unictype/property-pattern-white-space-tests: New file.
58725         * modules/unictype/property-private-use-tests: New file.
58726         * modules/unictype/property-punctuation-tests: New file.
58727         * modules/unictype/property-quotation-mark-tests: New file.
58728         * modules/unictype/property-radical-tests: New file.
58729         * modules/unictype/property-sentence-terminal-tests: New file.
58730         * modules/unictype/property-soft-dotted-tests: New file.
58731         * modules/unictype/property-space-tests: New file.
58732         * modules/unictype/property-terminal-punctuation-tests: New file.
58733         * modules/unictype/property-test-tests: New file.
58734         * modules/unictype/property-titlecase-tests: New file.
58735         * modules/unictype/property-unassigned-code-value-tests: New file.
58736         * modules/unictype/property-unified-ideograph-tests: New file.
58737         * modules/unictype/property-uppercase-tests: New file.
58738         * modules/unictype/property-variation-selector-tests: New file.
58739         * modules/unictype/property-white-space-tests: New file.
58740         * modules/unictype/property-xid-continue-tests: New file.
58741         * modules/unictype/property-xid-start-tests: New file.
58742         * modules/unictype/property-zero-width-tests: New file.
58743         * modules/unictype/scripts-tests: New file.
58744         * modules/unictype/syntax-c-ident-tests: New file.
58745         * modules/unictype/syntax-c-whitespace-tests: New file.
58746         * modules/unictype/syntax-java-ident-tests: New file.
58747         * modules/unictype/syntax-java-whitespace-tests: New file.
58748         * tests/unictype/test-bidi_byname.c: New file.
58749         * tests/unictype/test-bidi_name.c: New file.
58750         * tests/unictype/test-bidi_of.c: New file.
58751         * tests/unictype/test-bidi_test.c: New file.
58752         * tests/unictype/test-block_list.c: New file.
58753         * tests/unictype/test-block_of.c: New file.
58754         * tests/unictype/test-block_test.c: New file.
58755         * tests/unictype/test-categ_and.c: New file.
58756         * tests/unictype/test-categ_and_not.c: New file.
58757         * tests/unictype/test-categ_byname.c: New file.
58758         * tests/unictype/test-categ_name.c: New file.
58759         * tests/unictype/test-categ_none.c: New file.
58760         * tests/unictype/test-categ_of.c: New file.
58761         * tests/unictype/test-categ_or.c: New file.
58762         * tests/unictype/test-categ_test_withtable.c: New file.
58763         * tests/unictype/test-combining.c: New file.
58764         * tests/unictype/test-decdigit.c: New file.
58765         * tests/unictype/test-digit.c: New file.
58766         * tests/unictype/test-mirror.c: New file.
58767         * tests/unictype/test-numeric.c: New file.
58768         * tests/unictype/test-pr_byname.c: New file.
58769         * tests/unictype/test-pr_test.c: New file.
58770         * tests/unictype/test-predicate-part1.h: New file.
58771         * tests/unictype/test-predicate-part2.h: New file.
58772         * tests/unictype/test-scripts.c: New file.
58773         * tests/unictype/test-sy_c_ident.c: New file.
58774         * tests/unictype/test-sy_java_ident.c: New file.
58775
58776         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58777         for Unicode 5.0.0.
58778         * tests/unictype/test-categ_Cc.c: Likewise.
58779         * tests/unictype/test-categ_Cf.c: Likewise.
58780         * tests/unictype/test-categ_Cn.c: Likewise.
58781         * tests/unictype/test-categ_Co.c: Likewise.
58782         * tests/unictype/test-categ_Cs.c: Likewise.
58783         * tests/unictype/test-categ_L.c: Likewise.
58784         * tests/unictype/test-categ_Ll.c: Likewise.
58785         * tests/unictype/test-categ_Lm.c: Likewise.
58786         * tests/unictype/test-categ_Lo.c: Likewise.
58787         * tests/unictype/test-categ_Lt.c: Likewise.
58788         * tests/unictype/test-categ_Lu.c: Likewise.
58789         * tests/unictype/test-categ_M.c: Likewise.
58790         * tests/unictype/test-categ_Mc.c: Likewise.
58791         * tests/unictype/test-categ_Me.c: Likewise.
58792         * tests/unictype/test-categ_Mn.c: Likewise.
58793         * tests/unictype/test-categ_N.c: Likewise.
58794         * tests/unictype/test-categ_Nd.c: Likewise.
58795         * tests/unictype/test-categ_Nl.c: Likewise.
58796         * tests/unictype/test-categ_No.c: Likewise.
58797         * tests/unictype/test-categ_P.c: Likewise.
58798         * tests/unictype/test-categ_Pc.c: Likewise.
58799         * tests/unictype/test-categ_Pd.c: Likewise.
58800         * tests/unictype/test-categ_Pe.c: Likewise.
58801         * tests/unictype/test-categ_Pf.c: Likewise.
58802         * tests/unictype/test-categ_Pi.c: Likewise.
58803         * tests/unictype/test-categ_Po.c: Likewise.
58804         * tests/unictype/test-categ_Ps.c: Likewise.
58805         * tests/unictype/test-categ_S.c: Likewise.
58806         * tests/unictype/test-categ_Sc.c: Likewise.
58807         * tests/unictype/test-categ_Sk.c: Likewise.
58808         * tests/unictype/test-categ_Sm.c: Likewise.
58809         * tests/unictype/test-categ_So.c: Likewise.
58810         * tests/unictype/test-categ_Z.c: Likewise.
58811         * tests/unictype/test-categ_Zl.c: Likewise.
58812         * tests/unictype/test-categ_Zp.c: Likewise.
58813         * tests/unictype/test-categ_Zs.c: Likewise.
58814         * tests/unictype/test-ctype_alnum.c: Likewise.
58815         * tests/unictype/test-ctype_alpha.c: Likewise.
58816         * tests/unictype/test-ctype_blank.c: Likewise.
58817         * tests/unictype/test-ctype_cntrl.c: Likewise.
58818         * tests/unictype/test-ctype_digit.c: Likewise.
58819         * tests/unictype/test-ctype_graph.c: Likewise.
58820         * tests/unictype/test-ctype_lower.c: Likewise.
58821         * tests/unictype/test-ctype_print.c: Likewise.
58822         * tests/unictype/test-ctype_punct.c: Likewise.
58823         * tests/unictype/test-ctype_space.c: Likewise.
58824         * tests/unictype/test-ctype_upper.c: Likewise.
58825         * tests/unictype/test-ctype_xdigit.c: Likewise.
58826         * tests/unictype/test-decdigit.h: Likewise.
58827         * tests/unictype/test-digit.h: Likewise.
58828         * tests/unictype/test-numeric.h: Likewise.
58829         * tests/unictype/test-pr_alphabetic.c: Likewise.
58830         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58831         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58832         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58833         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58834         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58835         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58836         * tests/unictype/test-pr_bidi_control.c: Likewise.
58837         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58838         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58839         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58840         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58841         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58842         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58843         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58844         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58845         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58846         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58847         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58848         * tests/unictype/test-pr_combining.c: Likewise.
58849         * tests/unictype/test-pr_composite.c: Likewise.
58850         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58851         * tests/unictype/test-pr_dash.c: Likewise.
58852         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58853         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58854         * tests/unictype/test-pr_deprecated.c: Likewise.
58855         * tests/unictype/test-pr_diacritic.c: Likewise.
58856         * tests/unictype/test-pr_extender.c: Likewise.
58857         * tests/unictype/test-pr_format_control.c: Likewise.
58858         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58859         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58860         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58861         * tests/unictype/test-pr_hex_digit.c: Likewise.
58862         * tests/unictype/test-pr_hyphen.c: Likewise.
58863         * tests/unictype/test-pr_id_continue.c: Likewise.
58864         * tests/unictype/test-pr_id_start.c: Likewise.
58865         * tests/unictype/test-pr_ideographic.c: Likewise.
58866         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58867         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58868         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58869         * tests/unictype/test-pr_iso_control.c: Likewise.
58870         * tests/unictype/test-pr_join_control.c: Likewise.
58871         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58872         * tests/unictype/test-pr_line_separator.c: Likewise.
58873         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58874         * tests/unictype/test-pr_lowercase.c: Likewise.
58875         * tests/unictype/test-pr_math.c: Likewise.
58876         * tests/unictype/test-pr_non_break.c: Likewise.
58877         * tests/unictype/test-pr_not_a_character.c: Likewise.
58878         * tests/unictype/test-pr_numeric.c: Likewise.
58879         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58880         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58881         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58882         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58883         * tests/unictype/test-pr_other_id_start.c: Likewise.
58884         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58885         * tests/unictype/test-pr_other_math.c: Likewise.
58886         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58887         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58888         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58889         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58890         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58891         * tests/unictype/test-pr_private_use.c: Likewise.
58892         * tests/unictype/test-pr_punctuation.c: Likewise.
58893         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58894         * tests/unictype/test-pr_radical.c: Likewise.
58895         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58896         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58897         * tests/unictype/test-pr_space.c: Likewise.
58898         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58899         * tests/unictype/test-pr_titlecase.c: Likewise.
58900         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58901         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58902         * tests/unictype/test-pr_uppercase.c: Likewise.
58903         * tests/unictype/test-pr_variation_selector.c: Likewise.
58904         * tests/unictype/test-pr_white_space.c: Likewise.
58905         * tests/unictype/test-pr_xid_continue.c: Likewise.
58906         * tests/unictype/test-pr_xid_start.c: Likewise.
58907         * tests/unictype/test-pr_zero_width.c: Likewise.
58908         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58909         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58910
58911 2007-11-12  Bruno Haible  <bruno@clisp.org>
58912
58913         Unicode character classification functions.
58914         * lib/unictype.h: New file.
58915         * modules/unictype/base: New file.
58916         * modules/unictype/category-L: New file.
58917         * modules/unictype/category-Lu: New file.
58918         * modules/unictype/category-Ll: New file.
58919         * modules/unictype/category-Lt: New file.
58920         * modules/unictype/category-Lm: New file.
58921         * modules/unictype/category-Lo: New file.
58922         * modules/unictype/category-M: New file.
58923         * modules/unictype/category-Mn: New file.
58924         * modules/unictype/category-Mc: New file.
58925         * modules/unictype/category-Me: New file.
58926         * modules/unictype/category-N: New file.
58927         * modules/unictype/category-Nd: New file.
58928         * modules/unictype/category-Nl: New file.
58929         * modules/unictype/category-No: New file.
58930         * modules/unictype/category-P: New file.
58931         * modules/unictype/category-Pc: New file.
58932         * modules/unictype/category-Pd: New file.
58933         * modules/unictype/category-Ps: New file.
58934         * modules/unictype/category-Pe: New file.
58935         * modules/unictype/category-Pi: New file.
58936         * modules/unictype/category-Pf: New file.
58937         * modules/unictype/category-Po: New file.
58938         * modules/unictype/category-S: New file.
58939         * modules/unictype/category-Sm: New file.
58940         * modules/unictype/category-Sc: New file.
58941         * modules/unictype/category-Sk: New file.
58942         * modules/unictype/category-So: New file.
58943         * modules/unictype/category-Z: New file.
58944         * modules/unictype/category-Zs: New file.
58945         * modules/unictype/category-Zl: New file.
58946         * modules/unictype/category-Zp: New file.
58947         * modules/unictype/category-C: New file.
58948         * modules/unictype/category-Cc: New file.
58949         * modules/unictype/category-Cf: New file.
58950         * modules/unictype/category-Cs: New file.
58951         * modules/unictype/category-Co: New file.
58952         * modules/unictype/category-Cn: New file.
58953         * modules/unictype/category-or: New file.
58954         * modules/unictype/category-of: New file.
58955         * modules/unictype/category-test: New file.
58956         * modules/unictype/category-test-withtable: New file.
58957         * modules/unictype/category-byname: New file.
58958         * modules/unictype/category-none: New file.
58959         * modules/unictype/category-and: New file.
58960         * modules/unictype/category-and-not: New file.
58961         * modules/unictype/category-name: New file.
58962         * modules/unictype/combining-class: New file.
58963         * modules/unictype/category-all: New file.
58964         * modules/unictype/bidicategory-all: New file.
58965         * modules/unictype/bidicategory-byname: New file.
58966         * modules/unictype/bidicategory-name: New file.
58967         * modules/unictype/bidicategory-of: New file.
58968         * modules/unictype/bidicategory-test: New file.
58969         * modules/unictype/decimal-digit: New file.
58970         * modules/unictype/digit: New file.
58971         * modules/unictype/numeric: New file.
58972         * modules/unictype/mirror: New file.
58973         * modules/unictype/property-white-space: New file.
58974         * modules/unictype/property-alphabetic: New file.
58975         * modules/unictype/property-other-alphabetic: New file.
58976         * modules/unictype/property-not-a-character: New file.
58977         * modules/unictype/property-default-ignorable-code-point: New file.
58978         * modules/unictype/property-other-default-ignorable-code-point: New
58979         file.
58980         * modules/unictype/property-deprecated: New file.
58981         * modules/unictype/property-logical-order-exception: New file.
58982         * modules/unictype/property-variation-selector: New file.
58983         * modules/unictype/property-private-use: New file.
58984         * modules/unictype/property-unassigned-code-value: New file.
58985         * modules/unictype/property-uppercase: New file.
58986         * modules/unictype/property-other-uppercase: New file.
58987         * modules/unictype/property-lowercase: New file.
58988         * modules/unictype/property-other-lowercase: New file.
58989         * modules/unictype/property-titlecase: New file.
58990         * modules/unictype/property-soft-dotted: New file.
58991         * modules/unictype/property-id-start: New file.
58992         * modules/unictype/property-other-id-start: New file.
58993         * modules/unictype/property-id-continue: New file.
58994         * modules/unictype/property-other-id-continue: New file.
58995         * modules/unictype/property-xid-start: New file.
58996         * modules/unictype/property-xid-continue: New file.
58997         * modules/unictype/property-pattern-white-space: New file.
58998         * modules/unictype/property-pattern-syntax: New file.
58999         * modules/unictype/property-join-control: New file.
59000         * modules/unictype/property-grapheme-base: New file.
59001         * modules/unictype/property-grapheme-extend: New file.
59002         * modules/unictype/property-other-grapheme-extend: New file.
59003         * modules/unictype/property-grapheme-link: New file.
59004         * modules/unictype/property-bidi-control: New file.
59005         * modules/unictype/property-bidi-left-to-right: New file.
59006         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59007         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59008         * modules/unictype/property-bidi-european-digit: New file.
59009         * modules/unictype/property-bidi-eur-num-separator: New file.
59010         * modules/unictype/property-bidi-eur-num-terminator: New file.
59011         * modules/unictype/property-bidi-arabic-digit: New file.
59012         * modules/unictype/property-bidi-common-separator: New file.
59013         * modules/unictype/property-bidi-block-separator: New file.
59014         * modules/unictype/property-bidi-segment-separator: New file.
59015         * modules/unictype/property-bidi-whitespace: New file.
59016         * modules/unictype/property-bidi-non-spacing-mark: New file.
59017         * modules/unictype/property-bidi-boundary-neutral: New file.
59018         * modules/unictype/property-bidi-pdf: New file.
59019         * modules/unictype/property-bidi-embedding-or-override: New file.
59020         * modules/unictype/property-bidi-other-neutral: New file.
59021         * modules/unictype/property-hex-digit: New file.
59022         * modules/unictype/property-ascii-hex-digit: New file.
59023         * modules/unictype/property-ideographic: New file.
59024         * modules/unictype/property-unified-ideograph: New file.
59025         * modules/unictype/property-radical: New file.
59026         * modules/unictype/property-ids-binary-operator: New file.
59027         * modules/unictype/property-ids-trinary-operator: New file.
59028         * modules/unictype/property-zero-width: New file.
59029         * modules/unictype/property-space: New file.
59030         * modules/unictype/property-non-break: New file.
59031         * modules/unictype/property-iso-control: New file.
59032         * modules/unictype/property-format-control: New file.
59033         * modules/unictype/property-dash: New file.
59034         * modules/unictype/property-hyphen: New file.
59035         * modules/unictype/property-punctuation: New file.
59036         * modules/unictype/property-line-separator: New file.
59037         * modules/unictype/property-paragraph-separator: New file.
59038         * modules/unictype/property-quotation-mark: New file.
59039         * modules/unictype/property-sentence-terminal: New file.
59040         * modules/unictype/property-terminal-punctuation: New file.
59041         * modules/unictype/property-currency-symbol: New file.
59042         * modules/unictype/property-math: New file.
59043         * modules/unictype/property-other-math: New file.
59044         * modules/unictype/property-paired-punctuation: New file.
59045         * modules/unictype/property-left-of-pair: New file.
59046         * modules/unictype/property-combining: New file.
59047         * modules/unictype/property-composite: New file.
59048         * modules/unictype/property-decimal-digit: New file.
59049         * modules/unictype/property-numeric: New file.
59050         * modules/unictype/property-diacritic: New file.
59051         * modules/unictype/property-extender: New file.
59052         * modules/unictype/property-ignorable-control: New file.
59053         * modules/unictype/property-test: New file.
59054         * modules/unictype/property-byname: New file.
59055         * modules/unictype/property-all: New file.
59056         * modules/unictype/scripts: New file.
59057         * modules/unictype/scripts-all: New file.
59058         * modules/unictype/block-of: New file.
59059         * modules/unictype/block-test: New file.
59060         * modules/unictype/block-list: New file.
59061         * modules/unictype/block-all: New file.
59062         * modules/unictype/syntax-c-whitespace: New file.
59063         * modules/unictype/syntax-java-whitespace: New file.
59064         * modules/unictype/syntax-c-ident: New file.
59065         * modules/unictype/syntax-java-ident: New file.
59066         * modules/unictype/ctype-alnum: New file.
59067         * modules/unictype/ctype-alpha: New file.
59068         * modules/unictype/ctype-cntrl: New file.
59069         * modules/unictype/ctype-digit: New file.
59070         * modules/unictype/ctype-graph: New file.
59071         * modules/unictype/ctype-lower: New file.
59072         * modules/unictype/ctype-print: New file.
59073         * modules/unictype/ctype-punct: New file.
59074         * modules/unictype/ctype-space: New file.
59075         * modules/unictype/ctype-upper: New file.
59076         * modules/unictype/ctype-xdigit: New file.
59077         * modules/unictype/ctype-blank: New file.
59078         * lib/unictype/bidi_byname.c: New file.
59079         * lib/unictype/bidi_name.c: New file.
59080         * lib/unictype/bidi_of.c: New file.
59081         * lib/unictype/bidi_test.c: New file.
59082         * lib/unictype/bitmap.h: New file.
59083         * lib/unictype/block_test.c: New file.
59084         * lib/unictype/blocks.c: New file.
59085         * lib/unictype/categ_C.c: New file.
59086         * lib/unictype/categ_Cc.c: New file.
59087         * lib/unictype/categ_Cf.c: New file.
59088         * lib/unictype/categ_Cn.c: New file.
59089         * lib/unictype/categ_Co.c: New file.
59090         * lib/unictype/categ_Cs.c: New file.
59091         * lib/unictype/categ_L.c: New file.
59092         * lib/unictype/categ_Ll.c: New file.
59093         * lib/unictype/categ_Lm.c: New file.
59094         * lib/unictype/categ_Lo.c: New file.
59095         * lib/unictype/categ_Lt.c: New file.
59096         * lib/unictype/categ_Lu.c: New file.
59097         * lib/unictype/categ_M.c: New file.
59098         * lib/unictype/categ_Mc.c: New file.
59099         * lib/unictype/categ_Me.c: New file.
59100         * lib/unictype/categ_Mn.c: New file.
59101         * lib/unictype/categ_N.c: New file.
59102         * lib/unictype/categ_Nd.c: New file.
59103         * lib/unictype/categ_Nl.c: New file.
59104         * lib/unictype/categ_No.c: New file.
59105         * lib/unictype/categ_P.c: New file.
59106         * lib/unictype/categ_Pc.c: New file.
59107         * lib/unictype/categ_Pd.c: New file.
59108         * lib/unictype/categ_Pe.c: New file.
59109         * lib/unictype/categ_Pf.c: New file.
59110         * lib/unictype/categ_Pi.c: New file.
59111         * lib/unictype/categ_Po.c: New file.
59112         * lib/unictype/categ_Ps.c: New file.
59113         * lib/unictype/categ_S.c: New file.
59114         * lib/unictype/categ_Sc.c: New file.
59115         * lib/unictype/categ_Sk.c: New file.
59116         * lib/unictype/categ_Sm.c: New file.
59117         * lib/unictype/categ_So.c: New file.
59118         * lib/unictype/categ_Z.c: New file.
59119         * lib/unictype/categ_Zl.c: New file.
59120         * lib/unictype/categ_Zp.c: New file.
59121         * lib/unictype/categ_Zs.c: New file.
59122         * lib/unictype/categ_and.c: New file.
59123         * lib/unictype/categ_and_not.c: New file.
59124         * lib/unictype/categ_byname.c: New file.
59125         * lib/unictype/categ_name.c: New file.
59126         * lib/unictype/categ_none.c: New file.
59127         * lib/unictype/categ_of.c: New file.
59128         * lib/unictype/categ_or.c: New file.
59129         * lib/unictype/categ_test.c: New file.
59130         * lib/unictype/combining.c: New file.
59131         * lib/unictype/ctype_alnum.c: New file.
59132         * lib/unictype/ctype_alpha.c: New file.
59133         * lib/unictype/ctype_blank.c: New file.
59134         * lib/unictype/ctype_cntrl.c: New file.
59135         * lib/unictype/ctype_digit.c: New file.
59136         * lib/unictype/ctype_graph.c: New file.
59137         * lib/unictype/ctype_lower.c: New file.
59138         * lib/unictype/ctype_print.c: New file.
59139         * lib/unictype/ctype_punct.c: New file.
59140         * lib/unictype/ctype_space.c: New file.
59141         * lib/unictype/ctype_upper.c: New file.
59142         * lib/unictype/ctype_xdigit.c: New file.
59143         * lib/unictype/decdigit.c: New file.
59144         * lib/unictype/digit.c: New file.
59145         * lib/unictype/identsyntaxmap.h: New file.
59146         * lib/unictype/mirror.c: New file.
59147         * lib/unictype/numeric.c: New file.
59148         * lib/unictype/pr_alphabetic.c: New file.
59149         * lib/unictype/pr_ascii_hex_digit.c: New file.
59150         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59151         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59152         * lib/unictype/pr_bidi_block_separator.c: New file.
59153         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59154         * lib/unictype/pr_bidi_common_separator.c: New file.
59155         * lib/unictype/pr_bidi_control.c: New file.
59156         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59157         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59158         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59159         * lib/unictype/pr_bidi_european_digit.c: New file.
59160         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59161         * lib/unictype/pr_bidi_left_to_right.c: New file.
59162         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59163         * lib/unictype/pr_bidi_other_neutral.c: New file.
59164         * lib/unictype/pr_bidi_pdf.c: New file.
59165         * lib/unictype/pr_bidi_segment_separator.c: New file.
59166         * lib/unictype/pr_bidi_whitespace.c: New file.
59167         * lib/unictype/pr_byname.c: New file.
59168         * lib/unictype/pr_byname.gperf: New file.
59169         * lib/unictype/pr_combining.c: New file.
59170         * lib/unictype/pr_composite.c: New file.
59171         * lib/unictype/pr_currency_symbol.c: New file.
59172         * lib/unictype/pr_dash.c: New file.
59173         * lib/unictype/pr_decimal_digit.c: New file.
59174         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59175         * lib/unictype/pr_deprecated.c: New file.
59176         * lib/unictype/pr_diacritic.c: New file.
59177         * lib/unictype/pr_extender.c: New file.
59178         * lib/unictype/pr_format_control.c: New file.
59179         * lib/unictype/pr_grapheme_base.c: New file.
59180         * lib/unictype/pr_grapheme_extend.c: New file.
59181         * lib/unictype/pr_grapheme_link.c: New file.
59182         * lib/unictype/pr_hex_digit.c: New file.
59183         * lib/unictype/pr_hyphen.c: New file.
59184         * lib/unictype/pr_id_continue.c: New file.
59185         * lib/unictype/pr_id_start.c: New file.
59186         * lib/unictype/pr_ideographic.c: New file.
59187         * lib/unictype/pr_ids_binary_operator.c: New file.
59188         * lib/unictype/pr_ids_trinary_operator.c: New file.
59189         * lib/unictype/pr_ignorable_control.c: New file.
59190         * lib/unictype/pr_iso_control.c: New file.
59191         * lib/unictype/pr_join_control.c: New file.
59192         * lib/unictype/pr_left_of_pair.c: New file.
59193         * lib/unictype/pr_line_separator.c: New file.
59194         * lib/unictype/pr_logical_order_exception.c: New file.
59195         * lib/unictype/pr_lowercase.c: New file.
59196         * lib/unictype/pr_math.c: New file.
59197         * lib/unictype/pr_non_break.c: New file.
59198         * lib/unictype/pr_not_a_character.c: New file.
59199         * lib/unictype/pr_numeric.c: New file.
59200         * lib/unictype/pr_other_alphabetic.c: New file.
59201         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59202         * lib/unictype/pr_other_grapheme_extend.c: New file.
59203         * lib/unictype/pr_other_id_continue.c: New file.
59204         * lib/unictype/pr_other_id_start.c: New file.
59205         * lib/unictype/pr_other_lowercase.c: New file.
59206         * lib/unictype/pr_other_math.c: New file.
59207         * lib/unictype/pr_other_uppercase.c: New file.
59208         * lib/unictype/pr_paired_punctuation.c: New file.
59209         * lib/unictype/pr_paragraph_separator.c: New file.
59210         * lib/unictype/pr_pattern_syntax.c: New file.
59211         * lib/unictype/pr_pattern_white_space.c: New file.
59212         * lib/unictype/pr_private_use.c: New file.
59213         * lib/unictype/pr_punctuation.c: New file.
59214         * lib/unictype/pr_quotation_mark.c: New file.
59215         * lib/unictype/pr_radical.c: New file.
59216         * lib/unictype/pr_sentence_terminal.c: New file.
59217         * lib/unictype/pr_soft_dotted.c: New file.
59218         * lib/unictype/pr_space.c: New file.
59219         * lib/unictype/pr_terminal_punctuation.c: New file.
59220         * lib/unictype/pr_test.c: New file.
59221         * lib/unictype/pr_titlecase.c: New file.
59222         * lib/unictype/pr_unassigned_code_value.c: New file.
59223         * lib/unictype/pr_unified_ideograph.c: New file.
59224         * lib/unictype/pr_uppercase.c: New file.
59225         * lib/unictype/pr_variation_selector.c: New file.
59226         * lib/unictype/pr_white_space.c: New file.
59227         * lib/unictype/pr_xid_continue.c: New file.
59228         * lib/unictype/pr_xid_start.c: New file.
59229         * lib/unictype/pr_zero_width.c: New file.
59230         * lib/unictype/scripts.c: New file.
59231         * lib/unictype/sy_c_ident.c: New file.
59232         * lib/unictype/sy_c_whitespace.c: New file.
59233         * lib/unictype/sy_java_ident.c: New file.
59234         * lib/unictype/sy_java_whitespace.c: New file.
59235
59236         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59237         Unicode 5.0.0.
59238         * lib/unictype/blocks.h: Likewise.
59239         * lib/unictype/categ_C.h: Likewise.
59240         * lib/unictype/categ_Cc.h: Likewise.
59241         * lib/unictype/categ_Cf.h: Likewise.
59242         * lib/unictype/categ_Cn.h: Likewise.
59243         * lib/unictype/categ_Co.h: Likewise.
59244         * lib/unictype/categ_Cs.h: Likewise.
59245         * lib/unictype/categ_L.h: Likewise.
59246         * lib/unictype/categ_Ll.h: Likewise.
59247         * lib/unictype/categ_Lm.h: Likewise.
59248         * lib/unictype/categ_Lo.h: Likewise.
59249         * lib/unictype/categ_Lt.h: Likewise.
59250         * lib/unictype/categ_Lu.h: Likewise.
59251         * lib/unictype/categ_M.h: Likewise.
59252         * lib/unictype/categ_Mc.h: Likewise.
59253         * lib/unictype/categ_Me.h: Likewise.
59254         * lib/unictype/categ_Mn.h: Likewise.
59255         * lib/unictype/categ_N.h: Likewise.
59256         * lib/unictype/categ_Nd.h: Likewise.
59257         * lib/unictype/categ_Nl.h: Likewise.
59258         * lib/unictype/categ_No.h: Likewise.
59259         * lib/unictype/categ_P.h: Likewise.
59260         * lib/unictype/categ_Pc.h: Likewise.
59261         * lib/unictype/categ_Pd.h: Likewise.
59262         * lib/unictype/categ_Pe.h: Likewise.
59263         * lib/unictype/categ_Pf.h: Likewise.
59264         * lib/unictype/categ_Pi.h: Likewise.
59265         * lib/unictype/categ_Po.h: Likewise.
59266         * lib/unictype/categ_Ps.h: Likewise.
59267         * lib/unictype/categ_S.h: Likewise.
59268         * lib/unictype/categ_Sc.h: Likewise.
59269         * lib/unictype/categ_Sk.h: Likewise.
59270         * lib/unictype/categ_Sm.h: Likewise.
59271         * lib/unictype/categ_So.h: Likewise.
59272         * lib/unictype/categ_Z.h: Likewise.
59273         * lib/unictype/categ_Zl.h: Likewise.
59274         * lib/unictype/categ_Zp.h: Likewise.
59275         * lib/unictype/categ_Zs.h: Likewise.
59276         * lib/unictype/categ_of.h: Likewise.
59277         * lib/unictype/combining.h: Likewise.
59278         * lib/unictype/ctype_alnum.h: Likewise.
59279         * lib/unictype/ctype_alpha.h: Likewise.
59280         * lib/unictype/ctype_blank.h: Likewise.
59281         * lib/unictype/ctype_cntrl.h: Likewise.
59282         * lib/unictype/ctype_digit.h: Likewise.
59283         * lib/unictype/ctype_graph.h: Likewise.
59284         * lib/unictype/ctype_lower.h: Likewise.
59285         * lib/unictype/ctype_print.h: Likewise.
59286         * lib/unictype/ctype_punct.h: Likewise.
59287         * lib/unictype/ctype_space.h: Likewise.
59288         * lib/unictype/ctype_upper.h: Likewise.
59289         * lib/unictype/ctype_xdigit.h: Likewise.
59290         * lib/unictype/decdigit.h: Likewise.
59291         * lib/unictype/digit.h: Likewise.
59292         * lib/unictype/mirror.h: Likewise.
59293         * lib/unictype/numeric.h: Likewise.
59294         * lib/unictype/pr_alphabetic.h: Likewise.
59295         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59296         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59297         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59298         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59299         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59300         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59301         * lib/unictype/pr_bidi_control.h: Likewise.
59302         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59303         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59304         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59305         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59306         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59307         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59308         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59309         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59310         * lib/unictype/pr_bidi_pdf.h: Likewise.
59311         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59312         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59313         * lib/unictype/pr_combining.h: Likewise.
59314         * lib/unictype/pr_composite.h: Likewise.
59315         * lib/unictype/pr_currency_symbol.h: Likewise.
59316         * lib/unictype/pr_dash.h: Likewise.
59317         * lib/unictype/pr_decimal_digit.h: Likewise.
59318         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59319         * lib/unictype/pr_deprecated.h: Likewise.
59320         * lib/unictype/pr_diacritic.h: Likewise.
59321         * lib/unictype/pr_extender.h: Likewise.
59322         * lib/unictype/pr_format_control.h: Likewise.
59323         * lib/unictype/pr_grapheme_base.h: Likewise.
59324         * lib/unictype/pr_grapheme_extend.h: Likewise.
59325         * lib/unictype/pr_grapheme_link.h: Likewise.
59326         * lib/unictype/pr_hex_digit.h: Likewise.
59327         * lib/unictype/pr_hyphen.h: Likewise.
59328         * lib/unictype/pr_id_continue.h: Likewise.
59329         * lib/unictype/pr_id_start.h: Likewise.
59330         * lib/unictype/pr_ideographic.h: Likewise.
59331         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59332         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59333         * lib/unictype/pr_ignorable_control.h: Likewise.
59334         * lib/unictype/pr_iso_control.h: Likewise.
59335         * lib/unictype/pr_join_control.h: Likewise.
59336         * lib/unictype/pr_left_of_pair.h: Likewise.
59337         * lib/unictype/pr_line_separator.h: Likewise.
59338         * lib/unictype/pr_logical_order_exception.h: Likewise.
59339         * lib/unictype/pr_lowercase.h: Likewise.
59340         * lib/unictype/pr_math.h: Likewise.
59341         * lib/unictype/pr_non_break.h: Likewise.
59342         * lib/unictype/pr_not_a_character.h: Likewise.
59343         * lib/unictype/pr_numeric.h: Likewise.
59344         * lib/unictype/pr_other_alphabetic.h: Likewise.
59345         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59346         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59347         * lib/unictype/pr_other_id_continue.h: Likewise.
59348         * lib/unictype/pr_other_id_start.h: Likewise.
59349         * lib/unictype/pr_other_lowercase.h: Likewise.
59350         * lib/unictype/pr_other_math.h: Likewise.
59351         * lib/unictype/pr_other_uppercase.h: Likewise.
59352         * lib/unictype/pr_paired_punctuation.h: Likewise.
59353         * lib/unictype/pr_paragraph_separator.h: Likewise.
59354         * lib/unictype/pr_pattern_syntax.h: Likewise.
59355         * lib/unictype/pr_pattern_white_space.h: Likewise.
59356         * lib/unictype/pr_private_use.h: Likewise.
59357         * lib/unictype/pr_punctuation.h: Likewise.
59358         * lib/unictype/pr_quotation_mark.h: Likewise.
59359         * lib/unictype/pr_radical.h: Likewise.
59360         * lib/unictype/pr_sentence_terminal.h: Likewise.
59361         * lib/unictype/pr_soft_dotted.h: Likewise.
59362         * lib/unictype/pr_space.h: Likewise.
59363         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59364         * lib/unictype/pr_titlecase.h: Likewise.
59365         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59366         * lib/unictype/pr_unified_ideograph.h: Likewise.
59367         * lib/unictype/pr_uppercase.h: Likewise.
59368         * lib/unictype/pr_variation_selector.h: Likewise.
59369         * lib/unictype/pr_white_space.h: Likewise.
59370         * lib/unictype/pr_xid_continue.h: Likewise.
59371         * lib/unictype/pr_xid_start.h: Likewise.
59372         * lib/unictype/pr_zero_width.h: Likewise.
59373         * lib/unictype/scripts.h: Likewise.
59374         * lib/unictype/scripts_byname.gperf: Likewise.
59375         * lib/unictype/sy_c_ident.h: Likewise.
59376         * lib/unictype/sy_c_whitespace.h: Likewise.
59377         * lib/unictype/sy_java_ident.h: Likewise.
59378         * lib/unictype/sy_java_whitespace.h: Likewise.
59379
59380         * lib/unictype/Makefile: New file.
59381         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59382         glibc.
59383         * lib/unictype/3level.h: New file, copied from glibc.
59384         * lib/unictype/3levelbit.h: New file.
59385
59386 2007-11-11  Bruno Haible  <bruno@clisp.org>
59387
59388         * modules/gperf: New file.
59389         * modules/iconv_open (Depends-on): Add it.
59390         (Makefile.am): Remove the GPERF definition.
59391
59392 2007-11-11  Bruno Haible  <bruno@clisp.org>
59393
59394         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59395         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59396
59397 2007-11-11  Bruno Haible  <bruno@clisp.org>
59398
59399         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59400         (usage): Remove function.
59401
59402 2007-11-11  Bruno Haible  <bruno@clisp.org>
59403
59404         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59405         gl_FUNC_CEILF_LIBS.
59406         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59407         gl_FUNC_CEIL_LIBS.
59408         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59409         gl_FUNC_CEILL_LIBS.
59410         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59411         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59412         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59413
59414 2007-11-11  Bruno Haible  <bruno@clisp.org>
59415
59416         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59417         roundf were declared but do not exist on functions.
59418         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59419         roundl were declared but do not exist on functions.
59420         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59421         HAVE_FLOORL_AND_CEILL, respectively.
59422         Needed for Sun C on Solaris 10.
59423
59424 2007-11-11  Bruno Haible  <bruno@clisp.org>
59425
59426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59427         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59428         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59429         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59430         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59431         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59432         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59433         HAVE_DECL_ROUNDF.
59434         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59435         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59437         of HAVE_DECL_ROUND*.
59438         * modules/math (Makefile.am): Update.
59439
59440 2007-11-10  Bruno Haible  <bruno@clisp.org>
59441
59442         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59443         ptrdiff_t as m4/intl.m4.
59444
59445 2007-11-10  Jim Meyering  <meyering@redhat.com>
59446
59447         Avoid link failure for the argmatch test.
59448         * tests/test-argmatch.c (usage): Define function to avoid a link
59449         failure: argmatch_die requires a usage function.
59450
59451 2007-11-09  Bruno Haible  <bruno@clisp.org>
59452
59453         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59454         * doc/functions/vsnprintf.texi: Likewise.
59455         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59456         with a size argument < 2.
59457
59458 2007-11-09  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59461         buffer. Fixes an inefficiency introduced on 2007-11-03.
59462
59463 2007-11-09  Bruno Haible  <bruno@clisp.org>
59464
59465         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59466         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59467
59468 2007-11-08  Jim Meyering  <meyering@redhat.com>
59469
59470         Change cache variable name prefix "jm_" to "gl_" everywhere.
59471         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59472         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59473         * m4/uptime.m4: s/gl_/jm_/
59474
59475 2007-11-07  Bruno Haible  <bruno@clisp.org>
59476
59477         Update to GNU gettext 0.17.
59478         * m4/intl.m4: Update to GNU gettext 0.17.
59479         * m4/po.m4: Likewise.
59480         * modules/gettext (Files): Remove m4/ulonglong.m4.
59481         (configure.ac): Require gettext infrastructure from version 0.17.
59482
59483 2007-11-06  Bruno Haible  <bruno@clisp.org>
59484
59485         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59486         symbolic values are not defined in a public header.
59487         * lib/freadable.c (freadable) [QNX]: Likewise.
59488         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59489         * lib/freading.c (freading) [QNX]: Likewise.
59490         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59491         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59492         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59493         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59494         Reported by Alain Magloire.
59495
59496         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59497
59498 2007-11-05  Bruno Haible  <bruno@clisp.org>
59499
59500         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59501         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59502         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59503         Reported by Eric Blake.
59504
59505 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59506             Bruno Haible  <bruno@clisp.org>
59507
59508         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59509         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59510         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59511         (malloc): Undefine also before including <stdlib.h>.
59512         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59513         Needed on OSF/1 4.0.
59514
59515 2007-11-05  Jim Meyering  <meyering@redhat.com>
59516
59517         git-version-gen: sync from coreutils.
59518         * build-aux/git-version-gen: Add comments.
59519         Change the first '-' to '.' in the snapshot version string,
59520         e.g., 6.9-377-08144 -> 6.9.377-08144
59521         Remove first parameter.
59522         Don't declare a version "-dirty" merely because a time
59523         stamp has changed.
59524
59525 2007-11-04  Bruno Haible  <bruno@clisp.org>
59526
59527         * lib/lock.h: Protect all macro definitions containing an 'if'
59528         statement through a "do { ... } while (0)".
59529         * lib/tls.h: Likewise.
59530
59531 2007-11-04  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59534
59535 2007-11-04  Bruno Haible  <bruno@clisp.org>
59536
59537         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59538         * modules/fprintf-posix (Depends-on): Add nocrash.
59539         * modules/snprintf-posix (Depends-on): Likewise.
59540         * modules/sprintf-posix (Depends-on): Likewise.
59541         * modules/vasnprintf-posix (Depends-on): Likewise.
59542         * modules/vasprintf-posix (Depends-on): Likewise.
59543         * modules/vfprintf-posix (Depends-on): Likewise.
59544         * modules/vsnprintf-posix (Depends-on): Likewise.
59545         * modules/vsprintf-posix (Depends-on): Likewise.
59546         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59547         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59548         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59549         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59550         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59551         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59552         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59553
59554 2007-11-04  Bruno Haible  <bruno@clisp.org>
59555
59556         * modules/nocrash: New file.
59557         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59558         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59559
59560 2007-11-04  Bruno Haible  <bruno@clisp.org>
59561
59562         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59563         precision handling.
59564         * tests/test-vasprintf-posix.c (test_function): Likewise.
59565         * tests/test-snprintf-posix.h (test_function): Likewise.
59566         * tests/test-sprintf-posix.h (test_function): Likewise.
59567
59568         Fix *printf behaviour for large precisions on mingw and BeOS.
59569         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59570         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59572         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59574         gl_PRINTF_PRECISION and test its result. Invoke
59575         gl_PREREQ_VASNPRINTF_PRECISION.
59576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59583         * doc/functions/fprintf.texi: Update.
59584         * doc/functions/printf.texi: Update.
59585         * doc/functions/snprintf.texi: Update.
59586         * doc/functions/sprintf.texi: Update.
59587         * doc/functions/vfprintf.texi: Update.
59588         * doc/functions/vprintf.texi: Update.
59589         * doc/functions/vsnprintf.texi: Update.
59590         * doc/functions/vsprintf.texi: Update.
59591
59592 2007-11-04  Bruno Haible  <bruno@clisp.org>
59593
59594         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59595
59596 2007-11-04  Bruno Haible  <bruno@clisp.org>
59597
59598         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59599         Reported by Sylvain Beucler <beuc@gnu.org>.
59600
59601 2007-11-03  Bruno Haible  <bruno@clisp.org>
59602
59603         * tests/test-fprintf-posix2.sh: New file.
59604         * tests/test-fprintf-posix2.c: New file.
59605         * modules/fprintf-posix-tests (Files): Add them.
59606         (TESTS): Add test-fprintf-posix2.sh.
59607         (configure.ac): Check for getrlimit and setrlimit.
59608         (check_PROGRAMS): Add test-fprintf-posix2.
59609
59610         * tests/test-printf-posix2.sh: New file.
59611         * tests/test-printf-posix2.c: New file.
59612         * modules/printf-posix-tests (Files): Add them.
59613         (TESTS): Add test-printf-posix2.sh.
59614         (configure.ac): Check for getrlimit and setrlimit.
59615         (check_PROGRAMS): Add test-printf-posix2.
59616
59617         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59618         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59619         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59620         (decode_double): New function, copied from decode_long_double.
59621         (scale10_round_decimal_decoded): New function, extracted from
59622         scale10_round_decimal_long_double.
59623         (scale10_round_decimal_long_double): Use it.
59624         (scale10_round_decimal_double): New function.
59625         (floorlog10): New function.
59626         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59628         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59629         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59630         gl_PRINTF_ENOMEM and test its result. Invoke
59631         gl_PREREQ_VASNPRINTF_ENOMEM.
59632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59633         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59634         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59635         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59636         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59637         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59638         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59639         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59640         * modules/snprintf-posix (Depends-on): Likewise.
59641         * modules/sprintf-posix (Depends-on): Likewise.
59642         * modules/vasnprintf-posix (Depends-on): Likewise.
59643         * modules/vasprintf-posix (Depends-on): Likewise.
59644         * modules/vfprintf-posix (Depends-on): Likewise.
59645         * modules/vsnprintf-posix (Depends-on): Likewise.
59646         * modules/vsprintf-posix (Depends-on): Likewise.
59647         * doc/functions/fprintf.texi: Update.
59648         * doc/functions/printf.texi: Update.
59649         * doc/functions/snprintf.texi: Update.
59650         * doc/functions/sprintf.texi: Update.
59651         * doc/functions/vfprintf.texi: Update.
59652         * doc/functions/vprintf.texi: Update.
59653         * doc/functions/vsnprintf.texi: Update.
59654         * doc/functions/vsprintf.texi: Update.
59655
59656 2007-11-03  Bruno Haible  <bruno@clisp.org>
59657
59658         * modules/frexp-nolibm-tests: New file.
59659
59660         * modules/frexp-nolibm: New file.
59661         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59662
59663 2007-11-03  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59666         value is C99 compliant.
59667         Needed for OSF/1 5.1.
59668
59669 2007-11-03  Bruno Haible  <bruno@clisp.org>
59670
59671         Fix out-of-memory handling of vasnprintf.
59672         * lib/printf-parse.c: Include <errno.h>.
59673         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59674         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59675         is already set.
59676
59677 2007-11-02  Eric Blake  <ebb9@byu.net>
59678
59679         Fix tests on cygwin.
59680         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59681
59682 2007-11-01  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59685         warning.
59686         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59687         needed for POSIX compatibility.
59688
59689 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59690
59691         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59692         for compatibility with GNU.
59693
59694 2007-11-01  Bruno Haible  <bruno@clisp.org>
59695
59696         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59697         (putenv): Renamed from rpl_putenv. Change argument type from
59698         'const char *' to 'char *'.
59699         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59700         of defining putenv in config.h, just set REPLACE_PUTENV.
59701         * modules/putenv (Depends-on): Add stdlib.
59702         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59703         (Include): Use <stdlib.h>.
59704         * lib/stdlib.in.h (putenv): New declaration.
59705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59706         REPLACE_PUTENV.
59707         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59708         REPLACE_PUTENV.
59709         Needed for MacOS X 10.5.0.
59710         Reported by Peter O'Gorman <peter@pogma.com>.
59711
59712 2007-11-01  Jim Meyering  <meyering@redhat.com>
59713
59714         Treat an empty date string exactly like "0".
59715         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59716         if the remaining date string (to be parsed) is empty, use "0".
59717         Reported by Mischa Molhoek and discussed in this thread:
59718         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59719
59720 2007-10-31  Bruno Haible  <bruno@clisp.org>
59721
59722         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59723         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59724         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59725         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59726         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59727         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59728
59729 2007-10-31  Bruno Haible  <bruno@clisp.org>
59730
59731         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59732         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59733         (AC_TYPE_LONG_LONG_INT): Use it.
59734         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59735         it as well.
59736         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59737         to m4/longlong.m4.
59738         * modules/stdint (Files): Remove m4/ulonglong.m4.
59739         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59740         m4/ulonglong.m4.
59741         * modules/strtoumax (Files): Likewise.
59742
59743 2007-10-30  Bruno Haible  <bruno@clisp.org>
59744
59745         * modules/xvasprintf-posix: New file.
59746         Suggested by Eric Blake.
59747
59748 2007-10-30  Bruno Haible  <bruno@clisp.org>
59749
59750         * modules/xprintf-posix-tests: New file.
59751         * tests/test-xprintf-posix.sh: New file.
59752         * tests/test-xprintf-posix.c: New file.
59753         * tests/test-xfprintf-posix.c: New file.
59754
59755         * modules/xprintf-posix: New file.
59756
59757 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59758
59759         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59760         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59761         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59762
59763 2007-10-29  Bruno Haible  <bruno@clisp.org>
59764
59765         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59766         contain the special marker '_cv_'.
59767         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59768         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59769         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59770         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59771         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59772         Reported by Ralf Wildenhues.
59773
59774 2007-10-29  Bruno Haible  <bruno@clisp.org>
59775
59776         * gnulib-tool (func_import): When --lgpl is not specified, set
59777         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59778         GPLv3.
59779         Reported by Simon Josefsson.
59780
59781 2007-10-28  Bruno Haible  <bruno@clisp.org>
59782
59783         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59784         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59785         HAVE_DECL_ISFINITE.
59786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59787         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59788         HAVE_DECL_ISFINITE.
59789
59790 2007-10-28  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59793         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59794
59795 2007-10-28  Bruno Haible  <bruno@clisp.org>
59796
59797         Fix link errors with Sun C 5.0 on Solaris 10.
59798         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59799         function is declared but not present in the compiler's libm.
59800         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59801         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59802         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59803         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59804         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59805         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59806         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59808         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59809         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59810         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59811         HAVE_DECL_FLOORL.
59812
59813 2007-10-28  Bruno Haible  <bruno@clisp.org>
59814
59815         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59816         gl_FUNC_FLOORL. Cache the result.
59817         (gl_FUNC_FLOORL): Use it.
59818         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59819         gl_FUNC_CEILL. Cache the result.
59820         (gl_FUNC_CEILL): Use it.
59821
59822         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59823         gl_FUNC_FLOOR. Cache the result.
59824         (gl_FUNC_FLOOR): Use it.
59825         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59826         gl_FUNC_CEIL. Cache the result.
59827         (gl_FUNC_CEIL): Use it.
59828
59829         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59830         gl_FUNC_FLOORF. Cache the result.
59831         (gl_FUNC_FLOORF): Use it.
59832         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59833         gl_FUNC_CEILF. Cache the result.
59834         (gl_FUNC_CEILF): Use it.
59835
59836 2007-10-28  Bruno Haible  <bruno@clisp.org>
59837
59838         * gnulib-tool: Allow specifying the LGPL version number through
59839         --lgpl=2 or --lgpl=3.
59840         (func_usage): Document --lgpl with argument.
59841         Handle --lgpl=... arguments.
59842         (func_import): Recognize also gl_LGPL calls with an argument. When
59843         --lgpl=2 is used and the module's license is just LGPL, report an
59844         error. Set sed_transform_lib_file according to the lgpl variable. In
59845         the generated files, use --lgpl or gl_LGPL invocations with argument,
59846         if necessary.
59847         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59848         an LGPv2+ license.
59849         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59850         gl_LGPL macro.
59851
59852 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59853             Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59856         (u16_uctomb_aux): Likewise.
59857         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59858         !HAVE_INLINE.
59859         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59860
59861 2007-10-28  Bruno Haible  <bruno@clisp.org>
59862
59863         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59864         Invoke AM_GETTEXT_OPTION if it exists.
59865         * modules/vasprintf: Likewise.
59866         * modules/verror: Likewise.
59867         * modules/xprintf: Likewise.
59868         * modules/xvasprintf: Likewise.
59869
59870 2007-10-27  Ben Pfaff  <blp@gnu.org>
59871
59872         * lib/math.in.h: Define isfinite macro and prototypes for
59873         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59874         implementations.
59875         * m4/math_h.m4: New substitutions for isfinite module.
59876         * lib/isfinite.c: New file.
59877         * m4/isfinite.m4: New file.
59878         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59879         * modules/isfinite: New file.
59880         * modules/isfinite-tests: New file.
59881         * tests/tests-isfinite.c: New file.
59882         * doc/functions/isfinite.texi: Mention isfinite module.
59883         * MODULES.html.sh: Mention new module.
59884
59885 2007-10-27  Ben Pfaff  <blp@gnu.org>
59886
59887         Ralf Wildenhues reported that Tru64 4.0D declares the round
59888         functions but does not have definitions.
59889         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59890         cannot be found in any library, set the output variable to
59891         "missing" instead of "".
59892         * m4/round.m4: Also use our substitute if we cannot find round in
59893         any library, even if it is declared.
59894         * m4/roundf.m4: Likewise for roundf.
59895         * m4/roundl.m4: Likewise for roundl.
59896         * lib/math.in.h: Undefine roundf, round, roundl before defining
59897         their replacements, to allow for hypothetical systems where these
59898         may be defined as macros but not available in libraries.
59899
59900 2007-10-27  Bruno Haible  <bruno@clisp.org>
59901
59902         * doc/gnulib.texi: Invoke @firstparagraphindent.
59903         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59904         changes in gnulib.
59905         (Source changes): New section.
59906
59907 2007-10-26  Bruno Haible  <bruno@clisp.org>
59908
59909         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59910         borrowed from autoconf.
59911
59912 2007-10-26  Bruno Haible  <bruno@clisp.org>
59913
59914         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59915         strerror returned the empty string. Needed on HP-UX 11.00.
59916
59917 2007-10-24  Micah Cowan  <micah@cowan.name>
59918
59919         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59920         * build-aux/bootstrap: Remove support for now-unnecessary option,
59921         --cvs-user, and envvars CVS_USER, CVS_RSH.
59922
59923 2007-10-24  Jim Meyering  <meyering@redhat.com>
59924
59925         Avoid diagnostics from sha1sum when there is no cached checksum.
59926         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59927         if the po.s1 file hasn't been created yet.
59928
59929         * build-aux/bootstrap: Sync from coreutils:
59930         2007-10-24  Jim Meyering  <meyering@redhat.com>
59931         Get gnulib from the git repository, not from an obsolete cvs one.
59932         * build-aux/bootstrap: Suggestion from Micah Cowan.
59933         2007-10-04  Jim Meyering  <jim@meyering.net>
59934         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59935         (update_po_files): Work also when there are no .po files in po/.
59936
59937 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         * README: Append ".git" to git and cg examples.
59940         Problem reported by Benoit Sigoure.
59941
59942 2007-10-23  Micah Cowan  <micah@cowan.name>
59943
59944         * users.txt: Add wget.
59945
59946 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59947
59948         Fix linking of some unistdio tests on FreeBSD.
59949         * modules/unistdio/u16-vsnprintf-tests
59950         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59951         * modules/unistdio/u16-vsprintf-tests
59952         (test_u16_vsnprintf1_LDADD): Likewise.
59953         * modules/unistdio/u32-vsnprintf-tests
59954         (test_u32_vsnprintf1_LDADD): Likewise.
59955         * modules/unistdio/u32-vsprintf-tests
59956         (test_u32_vsprintf1_LDADD): Likewise.
59957         * modules/unistdio/u8-vsnprintf-tests
59958         (test_u8_vsnprintf1_LDADD): Likewise.
59959         * modules/unistdio/u8-vsprintf-tests
59960         (test_u8_vsprintf1_LDADD): Likewise.
59961         * modules/unistdio/ulc-vsnprintf-tests
59962         (test_ulc_vsnprintf1_LDADD): Likewise.
59963         * modules/unistdio/ulc-vsprintf-tests
59964         (test_ulc_vsprintf1_LDADD): Likewise.
59965
59966         Fix linking of some uniconv tests on FreeBSD.
59967         * modules/uniconv/u16-conv-from-enc-tests
59968         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59969         * modules/uniconv/u16-conv-to-enc-tests
59970         (test_u16_conv_to_enc_LDADD): Likewise.
59971         * modules/uniconv/u16-strconv-from-enc-tests
59972         (test_u16_strconv_from_enc_LDADD): Likewise.
59973         * modules/uniconv/u16-strconv-to-enc-tests
59974         (test_u16_strconv_to_enc_LDADD): Likewise.
59975         * modules/uniconv/u32-conv-from-enc-tests
59976         (test_u32_conv_from_enc_LDADD): Likewise.
59977         * modules/uniconv/u32-conv-to-enc-tests
59978         (test_u32_conv_to_enc_LDADD): Likewise.
59979         * modules/uniconv/u32-strconv-from-enc-tests
59980         (test_u32_strconv_from_enc_LDADD): Likewise.
59981         * modules/uniconv/u32-strconv-to-enc-tests
59982         (test_u32_strconv_to_enc_LDADD): Likewise.
59983         * modules/uniconv/u8-conv-from-enc-tests
59984         (test_u8_conv_from_enc_LDADD): Likewise.
59985         * modules/uniconv/u8-conv-to-enc-tests
59986         (test_u8_conv_to_enc_LDADD): Likewise.
59987         * modules/uniconv/u8-strconv-from-enc-tests
59988         (test_u8_strconv_from_enc_LDADD): Likewise.
59989         * modules/uniconv/u8-strconv-to-enc-tests
59990         (test_u8_strconv_to_enc_LDADD): Likewise.
59991
59992 2007-10-22  Bruno Haible  <bruno@clisp.org>
59993
59994         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59995         size.
59996
59997 2007-10-22  Eric Blake  <ebb9@byu.net>
59998
59999         Tweak x*printf documentation.
60000         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60001         variable name and comments.
60002         Suggested by Bruno Haible.
60003
60004 2007-10-22  Bruno Haible  <bruno@clisp.org>
60005
60006         * lib/acl.c (copy_acl): Fix file name in comment.
60007
60008 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60009
60010         Fix Tru64 problem with stdbool.h.
60011         * lib/stdbool.in.h (false, true):
60012         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60013         Don't declare as an enum in this situation; it runs afoul of Tru64.
60014         Problem reported by Steven M. Schweda in
60015         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60016
60017 2007-10-22  Eric Blake  <ebb9@byu.net>
60018
60019         Also wrap vf?printf.
60020         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60021         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60022         (xvprintf, xvfprintf): New functions.
60023
60024 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60025
60026         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60027         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60028
60029         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60030         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60031
60032 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60033
60034         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60035         by Bruno Haible.
60036
60037 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60038
60039         * lib/getloadavg.c
60040         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60041         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60042
60043         * tests/test-i-ring.c: Work for C89.
60044
60045 2007-10-22  Bruno Haible  <bruno@clisp.org>
60046
60047         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60048         -1u, in preprocessor expression, so that we don't test for the bug
60049         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60051
60052 2007-10-22  Eric Blake  <ebb9@byu.net>
60053
60054         * tests/test-yesno.sh: Silence stderr during test.
60055
60056 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60057
60058         * modules/crypto/gc-camellia: New file.
60059
60060         * m4/gc-camellia.m4: New file.
60061
60062         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60063
60064         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60065
60066 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60067
60068         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60069         --help to stdout.  Reported by sms@antinode.org (Steven
60070         M. Schweda).
60071
60072 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60073
60074         * users.txt: Fix link to libksba.
60075
60076 2007-10-21  Ben Pfaff  <blp@gnu.org>
60077
60078         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60079         round.c roundf implementation that depends on floorf and ceilf to
60080         be tested unconditionally.
60081
60082 2007-10-21  Ben Pfaff  <blp@gnu.org>
60083
60084         * m4/check-libm-func.m4: Removed.
60085         * m4/check-math-lib.m4: New file.
60086         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60087         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60088         definition and lack of AC_LIBOBJ([roundf]).
60089         * m4/roundl.m4: Ditto, and similarly for roundl.
60090         * modules/round: Reference new m4 file.
60091         * modules/roundf: Ditto.
60092         * modules/roundl: Ditto.
60093         * tests/test-round2.c (main): Use ROUND instead of round.
60094         Bug report from Bruno Haible.
60095
60096 2007-10-21  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60099         context.
60100
60101 2007-10-21  Bruno Haible  <bruno@clisp.org>
60102
60103         * tests/test-wcwidth.c (main): Allow negative result for some control
60104         characters.
60105
60106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60107         Needed on OSF/1 5.1.
60108
60109 2007-10-21  Bruno Haible  <bruno@clisp.org>
60110
60111         * tests/test-floorf1.c: Include isnanf.h.
60112         (main): Use isnanf() instead of isnan().
60113         * tests/test-ceilf1.c: Include isnanf.h.
60114         (main): Use isnanf() instead of isnan().
60115         * tests/test-truncf1.c: Include isnanf.h.
60116         (main): Use isnanf() instead of isnan().
60117         * tests/test-roundf1.c: Include isnanf.h.
60118         (main): Use isnanf() instead of isnan().
60119
60120 2007-10-21  Eric Blake  <ebb9@byu.net>
60121
60122         * users.txt: Update URL for m4.
60123
60124 2007-10-21  Bruno Haible  <bruno@clisp.org>
60125
60126         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60127
60128 2007-10-21  Bruno Haible  <bruno@clisp.org>
60129
60130         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60131         Git's management files if the CVS files are not present.
60132
60133 2007-10-20  Bruno Haible  <bruno@clisp.org>
60134
60135         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60136         gcc-3.4.x.
60137
60138 2007-10-20  Ben Pfaff  <blp@gnu.org>
60139
60140         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60141         implementations.
60142         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60143         * lib/round.c: New file.
60144         * lib/roundf.c: New file.
60145         * lib/roundl.c: New file.
60146         * m4/round.m4: New file.
60147         * m4/roundf.m4: New file.
60148         * m4/roundl.m4: New file.
60149         * m4/check-libm-func-m4: New file.
60150         * modules/math: Replace round, roundf, roundl related @VARS@ in
60151         math.in.h.
60152         * modules/round: New file.
60153         * modules/round-tests: New file.
60154         * modules/roundf: New file.
60155         * modules/roundf-tests: New file.
60156         * modules/roundl: New file.
60157         * modules/roundl-tests: New file.
60158         * tests/test-round1.c: New file.
60159         * tests/test-round2.c: New file.
60160         * tests/test-roundf1.c: New file.
60161         * tests/test-roundf2.c: New file.
60162         * tests/test-roundl.c: New file.
60163         * doc/functions/round.texi: Mention round module.
60164         * doc/functions/roundf.texi: Mention roundf module.
60165         * doc/functions/roundl.texi: Mention roundl module.
60166         * MODULES.html.sh: Mention new modules.
60167         Thanks to Bruno Haible for suggestions.
60168
60169 2007-10-20  Jim Meyering  <meyering@redhat.com>
60170
60171         * lib/xprintf.c: Include <config.h> unconditionally.
60172
60173         Change xprintf's license to GPL.
60174         * modules/xprintf (License): s/LGPL/GPL/, since this module
60175         depends on modules (exit and exitfail) which are GPL.
60176         Suggestion from Bruno Haible.
60177
60178         xprintf fixes.
60179         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60180         Use a clearer diagnostic.
60181         Patch from Bruno Haible.
60182
60183 2007-10-20  Bruno Haible  <bruno@clisp.org>
60184
60185         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60186         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60188
60189 2007-10-20  Bruno Haible  <bruno@clisp.org>
60190
60191         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60192         precision in the comparison result > x - 1 or similar.
60193         * tests/test-ceilf2.c (correct_result_p): Likewise.
60194         * tests/test-truncf2.c (correct_result_p): Likewise.
60195         * tests/test-trunc2.c (correct_result_p): Likewise.
60196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60197
60198 2007-10-20  Bruno Haible  <bruno@clisp.org>
60199
60200         * modules/ceil: New file.
60201         * m4/ceil.m4: New file.
60202         * doc/functions/ceil.texi: Mention the 'ceil' module.
60203
60204 2007-10-20  Bruno Haible  <bruno@clisp.org>
60205
60206         * modules/floor: New file.
60207         * m4/floor.m4: New file.
60208         * doc/functions/floor.texi: Mention the 'floor' module.
60209
60210 2007-10-20  Bruno Haible  <bruno@clisp.org>
60211
60212         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60213         of %a.
60214         * modules/floorf-tests (Depends-on): Likewise.
60215         * modules/truncf-tests (Depends-on): Likewise.
60216         * modules/trunc-tests (Depends-on): Likewise.
60217         Reported by Ben Pfaff.
60218
60219 2007-10-19  Jim Meyering  <meyering@redhat.com>
60220
60221         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60222         Don't bother testing specific errno values.  Just test ferror.
60223
60224         New module: xprintf
60225         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60226
60227 2007-10-19  Bruno Haible  <bruno@clisp.org>
60228
60229         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60230         syntax.
60231         * modules/javaexec (Makefile.am): Likewise.
60232         * modules/relocatable-prog (Makefile.am): Likewise.
60233         Suggested by Jim Meyering.
60234
60235 2007-10-18  Bruno Haible  <bruno@clisp.org>
60236
60237         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60238         Reported by Jim Meyering.
60239
60240 2007-10-18  Eric Blake  <ebb9@byu.net>
60241
60242         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60243
60244 2007-10-18  Bruno Haible  <bruno@clisp.org>
60245
60246         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60247         the format string into writable memory. Needed in Fortify conditions.
60248
60249 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60250             Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60253         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60254         * modules/trim (Depends-on): Add mbchar.
60255         (configure.ac): Add gl_FUNC_MBRTOWC.
60256         (Makefile.am): Augment lib_SOURCES.
60257
60258 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60259
60260         Modify glob.c to use fstatat and dirfd, to simplify it.
60261         Suggested by Eric Blake.
60262         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60263         Don't include <stdbool.h>; not used.
60264         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60265         (link_exists_p): Simplify implementation, since we can now assume
60266         dirfd and fstatat.
60267         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60268
60269 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60270
60271         * gnulib-tool (func_get_dependencies): Fix sed script to
60272         match only tests.
60273
60274 2007-10-17  Bruno Haible  <bruno@clisp.org>
60275
60276         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60277         allow locale names without encoding suffix.
60278         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60280
60281 2007-10-16  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60284         * lib/getgroups.c (getgroups): Likewise.
60285         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60286
60287 2007-10-16  Bruno Haible  <bruno@clisp.org>
60288
60289         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60290         * modules/malloc-posix (License): Likewise.
60291         * modules/realloc-posix (License): Likewise.
60292         * modules/calloc-posix (License): Likewise.
60293         * modules/intprops (License): Change from GPL to LGPL, with
60294         Paul Eggert's approval.
60295
60296 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60297
60298         Merge glibc changes into lib/glob.c.
60299
60300         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60301         2007-10-15 04:59:03 UTC.  Here are the changes:
60302
60303         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60304
60305         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60306
60307         * lib/glob.c: Add some branch prediction throughout.
60308
60309         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60310
60311         [BZ #5103]
60312         * lib/glob.c (glob): Recognize patterns starting \/.
60313
60314         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60315
60316         [BZ #3996]
60317         * lib/glob.c (attribute_hidden): Define if not defined.
60318         (glob): Unescape dirname, filename or username when needed and not
60319         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60320         is NULL.  Handle unescaped [ in pattern without closing ].
60321         Don't pass GLOB_CHECK down to recursive glob for directories.
60322         (__glob_pattern_type): New function.
60323         (__glob_pattern_p): Implement using __glob_pattern_type.
60324         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60325         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60326         Remove unreachable code.
60327
60328         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60329
60330         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60331         explain why there are no leaks.
60332
60333         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60334
60335         [BZ #3253]
60336         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60337         time, rather allocate increasingly bigger arrays of pointers, if
60338         possible with alloca, if too large with malloc.
60339
60340 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60343         Problem reported by H.Merijn Brand in
60344         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60345         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60346         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60347
60348 2007-10-15  Bruno Haible  <bruno@clisp.org>
60349
60350         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60351         with explicit rpl_ prefix.
60352         * lib/fopen.c (fopen): Likewise.
60353         * lib/freopen.c (freopen): Likewise.
60354         * lib/iconv.c (iconv): Likewise.
60355         * lib/iconv_close.c (iconv_close): Likewise.
60356
60357 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60358
60359         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60360
60361 2007-10-15  Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60364         <stddef.h> instead of <stdlib.h> since we only need NULL.
60365         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60366
60367 2007-10-15  Bruno Haible  <bruno@clisp.org>
60368
60369         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60370         Replace paragraph talking about LIBOBJS.
60371         Reported by Colin Watson <cjwatson@debian.org>.
60372
60373 2007-10-15  Bruno Haible  <bruno@clisp.org>
60374
60375         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60376         <stdlib.h> before using NULL.
60377
60378 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60379
60380         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60381         Reported by Albert Chin <china@thewrittenword.com>.
60382
60383 2007-10-14  Bruno Haible  <bruno@clisp.org>
60384
60385         * modules/iconv_open-utf-tests: New file.
60386         * tests/test-iconv-utf.c: New file.
60387
60388         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60389         * modules/iconv_open-utf: New file.
60390         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60391         (iconv, iconv_close): New declarations.
60392         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60393         be defined.
60394         (iconv_open): Add special handling of conversion between UTF-8 and
60395         UTF-{16,32}{BE,LE}.
60396         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60397         * lib/iconv_close.c: New file.
60398         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60399         gl_FUNC_ICONV_OPEN.
60400         (gl_FUNC_ICONV_OPEN): Use it.
60401         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60402         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60403         and REPLACE_ICONV_UTF.
60404         * modules/iconv_open (Depends-on): Add c-strcase.
60405         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60406         ICONV_CONST.
60407         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60408
60409 2007-10-13  Albert Chin  <china@thewrittenword.com>
60410             Bruno Haible  <bruno@clisp.org>
60411
60412         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60413         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60414
60415 2007-10-13  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60418         defined, use the ISO C99 inline semantics.
60419         * lib/argp.h (ARGP_EI): Likewise.
60420
60421 2007-10-13  Bruno Haible  <bruno@clisp.org>
60422
60423         Handle 'inline' change in gcc 4.3.0.
60424         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60425         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60426         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60427         argp_fmtstream_point): Disable 'extern' declaration if the function
60428         definition is going to be provided inline.
60429         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60430         semantics, not the ISO C99 inline semantics.
60431         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60432         'extern' declaration if the function definition is going to be provided
60433         inline.
60434         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60435         the GNU C inline semantics, not the ISO C99 inline semantics. With
60436         GCC 4.2, avoid a warning.
60437
60438 2007-10-13  Bruno Haible  <bruno@clisp.org>
60439
60440         * lib/freading.h (freading): Enable the use of __freading for
60441         glibc >= 2.7.
60442         * lib/freading.c (freading): Likewise.
60443
60444 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60445
60446         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60447         "warning: C99 inline functions are not supported; using GNU89".
60448
60449 2007-10-12  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60452         of 2.
60453         * tests/test-ceilf2.c: New file.
60454         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60455
60456         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60457         * modules/ceilf-tests: Update.
60458
60459 2007-10-12  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60462         of 2.
60463         * tests/test-floorf2.c: New file.
60464         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60465
60466         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60467         * modules/floorf-tests: Update.
60468
60469 2007-10-12  Bruno Haible  <bruno@clisp.org>
60470
60471         * tests/test-trunc2.c: New file.
60472         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60473
60474         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60475         * modules/trunc-tests: Update.
60476
60477 2007-10-12  Bruno Haible  <bruno@clisp.org>
60478
60479         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60480         of 2.
60481         * tests/test-truncf2.c: New file.
60482         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60483
60484         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60485         * modules/truncf-tests: Update.
60486
60487 2007-10-11  Eric Blake  <ebb9@byu.net>
60488
60489         Don't claim strerror is broken on Interix.
60490         * doc/functions/strerror.texi (strerror): Known broken systems are
60491         now Solaris 8, and not Interix.
60492         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60493         Interix on cross-compile.
60494         Reported by Martin Koeppe in
60495         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60496
60497 2007-10-11  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/i-ring-tests: New file.
60500         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60501         instead of assert.
60502
60503 2007-10-11  Bruno Haible  <bruno@clisp.org>
60504
60505         * modules/filenamecat-tests: New file.
60506         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60507         * lib/filenamecat.c: Remove test code.
60508
60509 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60512
60513         * lib/strerror.c: Include <string.h> always, to test interface,
60514         and to remove the need for the dummy.
60515         Include intprops.h to compute width instead of doing it ourselves
60516         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60517         (strerror): Define it to return NULL if there's no system strerror.
60518         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60519         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60520         ancient pre-strerror Unix systems well any more.  Saying "unknown
60521         system error" is enough.
60522         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60523         simpler strerror.c implementation.
60524         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60525         Simplify the tests to reflect the simpler strerror implementation.
60526         * modules/strerror (Depends-on): Add intprops.
60527
60528 2007-10-09  Eric Blake  <ebb9@byu.net>
60529
60530         Silence test-fpending.
60531         * modules/fpending-tests (Files): Add wrapper script.
60532         * tests/test-fpending.sh: New file.
60533
60534 2007-10-09  Bruno Haible  <bruno@clisp.org>
60535
60536         * MODULES.html.sh (func_module): Don't create a hyperlink for
60537         function names like 'printf_frexp'.
60538         (Misc): Add crc, memxor.
60539         (Characteristics of floating types): New section.
60540         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60541         isnanf-nolibm, signbit, trunc, truncf, truncl.
60542         (Enhancements for ISO C 99 functions): New subsection Input/output.
60543         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60544         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60545         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60546         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60547         (Enhancements for POSIX:2001 functions): Add chdir-long.
60548         (File system functions): Add areadlink, chdir-safer, read-file.
60549         Remove cycle-check.
60550         (File system as inode set): New section.
60551         (Date and time): Add gethrxtime.
60552         (Multithreading): Add openmp.
60553         (Internationalization functions): Add localename.
60554         (Unicode string functions): Add unistr/u*-mbsnlen.
60555         (Support for maintaining and releasing projects): Add git-version-gen.
60556         (Lone files): Remove directories.
60557
60558 2007-10-08  Ben Pfaff  <blp@gnu.org>
60559
60560         * lib/xmalloca.h: Fix typo in comment.
60561
60562 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60565         when avoiding problems with integer overflow.  Use a portable test
60566         instead.
60567
60568 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60569
60570         * modules/dummy (License): Change to LGPLv2+.
60571         * modules/float (License): Likewise
60572         * modules/realloc (License): Likewise
60573         * modules/stdlib (License): Likewise
60574
60575 2007-10-07  Bruno Haible  <bruno@clisp.org>
60576
60577         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60578         * floor.c (TWO_MANT_DIG): Likewise.
60579         * ceil.c (TWO_MANT_DIG): Likewise.
60580         Reported by Ben Pfaff.
60581
60582 2007-10-07  Bruno Haible  <bruno@clisp.org>
60583
60584         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60585         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60586         * lib/frexp.c (FUNC): Likewise.
60587         * lib/printf-frexp.h (printf_frexp): Likewise.
60588         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60589         * lib/printf-frexp.c (FUNC): Likewise.
60590         Suggested by Jim Meyering.
60591
60592 2007-10-07  Jim Meyering  <meyering@redhat.com>
60593
60594         Make xnanosleep's integer overflow test more robust.
60595         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60596         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60597
60598 2007-10-07  Bruno Haible  <bruno@clisp.org>
60599
60600         * NEWS: Mention the license change.
60601
60602         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60603         abbreviations in the modules files.
60604
60605         Change copyright notice from GPLv2+ to GPLv3+.
60606         * README: Change copyright notice.
60607         * MODULES.html.sh: Likewise.
60608         * build-aux/bootstrap.conf: Likewise.
60609         * build-aux/config.libpath: Likewise.
60610         * build-aux/csharpcomp.sh.in: Likewise.
60611         * build-aux/csharpexec.sh.in: Likewise.
60612         * build-aux/install-reloc: Likewise.
60613         * build-aux/javacomp.sh.in: Likewise.
60614         * build-aux/javaexec.sh.in: Likewise.
60615         * build-aux/ldd.sh.in: Likewise.
60616         * build-aux/reloc-ldflags: Likewise.
60617         * build-aux/relocatable.sh.in: Likewise.
60618         * build-aux/x-to-1.in: Likewise.
60619         * check-module: Likewise.
60620         * config/srclistvars.sh: Likewise.
60621         * gnulib-tool: Likewise.
60622         * lib/acl-internal.h: Likewise.
60623         * lib/acl.c: Likewise.
60624         * lib/acl.h: Likewise.
60625         * lib/acl_entries.c: Likewise.
60626         * lib/areadlink-with-size.c: Likewise.
60627         * lib/areadlink.c: Likewise.
60628         * lib/areadlink.h: Likewise.
60629         * lib/argmatch.c: Likewise.
60630         * lib/argmatch.h: Likewise.
60631         * lib/argp-ba.c: Likewise.
60632         * lib/argp-eexst.c: Likewise.
60633         * lib/argp-fmtstream.c: Likewise.
60634         * lib/argp-fmtstream.h: Likewise.
60635         * lib/argp-fs-xinl.c: Likewise.
60636         * lib/argp-help.c: Likewise.
60637         * lib/argp-namefrob.h: Likewise.
60638         * lib/argp-parse.c: Likewise.
60639         * lib/argp-pin.c: Likewise.
60640         * lib/argp-pv.c: Likewise.
60641         * lib/argp-pvh.c: Likewise.
60642         * lib/argp-xinl.c: Likewise.
60643         * lib/argp.h: Likewise.
60644         * lib/at-func.c: Likewise.
60645         * lib/atanl.c: Likewise.
60646         * lib/backupfile.c: Likewise.
60647         * lib/backupfile.h: Likewise.
60648         * lib/basename.c: Likewise.
60649         * lib/binary-io.h: Likewise.
60650         * lib/byteswap.in.h: Likewise.
60651         * lib/c-stack.c: Likewise.
60652         * lib/c-stack.h: Likewise.
60653         * lib/c-strcasestr.c: Likewise.
60654         * lib/c-strcasestr.h: Likewise.
60655         * lib/c-strstr.c: Likewise.
60656         * lib/c-strstr.h: Likewise.
60657         * lib/c-strtod.c: Likewise.
60658         * lib/calloc.c: Likewise.
60659         * lib/canon-host.c: Likewise.
60660         * lib/canon-host.h: Likewise.
60661         * lib/canonicalize-lgpl.c: Likewise.
60662         * lib/canonicalize.c: Likewise.
60663         * lib/canonicalize.h: Likewise.
60664         * lib/ceil.c: Likewise.
60665         * lib/ceilf.c: Likewise.
60666         * lib/ceill.c: Likewise.
60667         * lib/chdir-long.c: Likewise.
60668         * lib/chdir-long.h: Likewise.
60669         * lib/chdir-safer.c: Likewise.
60670         * lib/chdir-safer.h: Likewise.
60671         * lib/chown.c: Likewise.
60672         * lib/classpath.c: Likewise.
60673         * lib/classpath.h: Likewise.
60674         * lib/clean-temp.c: Likewise.
60675         * lib/clean-temp.h: Likewise.
60676         * lib/cloexec.c: Likewise.
60677         * lib/close-stream.c: Likewise.
60678         * lib/closein.c: Likewise.
60679         * lib/closein.h: Likewise.
60680         * lib/closeout.c: Likewise.
60681         * lib/closeout.h: Likewise.
60682         * lib/concat-filename.c: Likewise.
60683         * lib/copy-file.c: Likewise.
60684         * lib/copy-file.h: Likewise.
60685         * lib/count-one-bits.h: Likewise.
60686         * lib/crc.c: Likewise.
60687         * lib/crc.h: Likewise.
60688         * lib/creat-safer.c: Likewise.
60689         * lib/csharpcomp.c: Likewise.
60690         * lib/csharpcomp.h: Likewise.
60691         * lib/csharpexec.c: Likewise.
60692         * lib/csharpexec.h: Likewise.
60693         * lib/cycle-check.c: Likewise.
60694         * lib/cycle-check.h: Likewise.
60695         * lib/diacrit.c: Likewise.
60696         * lib/diacrit.h: Likewise.
60697         * lib/diffseq.h: Likewise.
60698         * lib/dirchownmod.c: Likewise.
60699         * lib/dirent.in.h: Likewise.
60700         * lib/dirfd.c: Likewise.
60701         * lib/dirfd.h: Likewise.
60702         * lib/dirname.c: Likewise.
60703         * lib/dirname.h: Likewise.
60704         * lib/dummy.c: Likewise.
60705         * lib/dup-safer.c: Likewise.
60706         * lib/dup2.c: Likewise.
60707         * lib/eealloc.h: Likewise.
60708         * lib/error.c: Likewise.
60709         * lib/error.h: Likewise.
60710         * lib/euidaccess.c: Likewise.
60711         * lib/exclude.c: Likewise.
60712         * lib/exclude.h: Likewise.
60713         * lib/execute.c: Likewise.
60714         * lib/execute.h: Likewise.
60715         * lib/exitfail.c: Likewise.
60716         * lib/exitfail.h: Likewise.
60717         * lib/expl.c: Likewise.
60718         * lib/fatal-signal.c: Likewise.
60719         * lib/fatal-signal.h: Likewise.
60720         * lib/fbufmode.c: Likewise.
60721         * lib/fbufmode.h: Likewise.
60722         * lib/fchdir.c: Likewise.
60723         * lib/fchmodat.c: Likewise.
60724         * lib/fchownat.c: Likewise.
60725         * lib/fcntl--.h: Likewise.
60726         * lib/fcntl-safer.h: Likewise.
60727         * lib/fcntl.in.h: Likewise.
60728         * lib/fd-safer.c: Likewise.
60729         * lib/fflush.c: Likewise.
60730         * lib/file-has-acl.c: Likewise.
60731         * lib/file-set.c: Likewise.
60732         * lib/file-type.c: Likewise.
60733         * lib/file-type.h: Likewise.
60734         * lib/fileblocks.c: Likewise.
60735         * lib/filemode.c: Likewise.
60736         * lib/filemode.h: Likewise.
60737         * lib/filename.h: Likewise.
60738         * lib/filenamecat.c: Likewise.
60739         * lib/filenamecat.h: Likewise.
60740         * lib/findprog.c: Likewise.
60741         * lib/findprog.h: Likewise.
60742         * lib/float.in.h: Likewise.
60743         * lib/floor.c: Likewise.
60744         * lib/floorf.c: Likewise.
60745         * lib/floorl.c: Likewise.
60746         * lib/fopen-safer.c: Likewise.
60747         * lib/fopen.c: Likewise.
60748         * lib/fpending.c: Likewise.
60749         * lib/fpending.h: Likewise.
60750         * lib/fprintf.c: Likewise.
60751         * lib/fprintftime.h: Likewise.
60752         * lib/fpucw.h: Likewise.
60753         * lib/fpurge.c: Likewise.
60754         * lib/fpurge.h: Likewise.
60755         * lib/freadable.c: Likewise.
60756         * lib/freadable.h: Likewise.
60757         * lib/freadahead.c: Likewise.
60758         * lib/freadahead.h: Likewise.
60759         * lib/freading.c: Likewise.
60760         * lib/freading.h: Likewise.
60761         * lib/free.c: Likewise.
60762         * lib/freopen.c: Likewise.
60763         * lib/frexp.c: Likewise.
60764         * lib/frexpl.c: Likewise.
60765         * lib/fseek.c: Likewise.
60766         * lib/fseterr.c: Likewise.
60767         * lib/fseterr.h: Likewise.
60768         * lib/fstatat.c: Likewise.
60769         * lib/fstrcmp.c: Likewise.
60770         * lib/fstrcmp.h: Likewise.
60771         * lib/fsusage.c: Likewise.
60772         * lib/fsusage.h: Likewise.
60773         * lib/ftell.c: Likewise.
60774         * lib/ftello.c: Likewise.
60775         * lib/fts-cycle.c: Likewise.
60776         * lib/fts.c: Likewise.
60777         * lib/fts_.h: Likewise.
60778         * lib/full-read.c: Likewise.
60779         * lib/full-read.h: Likewise.
60780         * lib/full-write.c: Likewise.
60781         * lib/full-write.h: Likewise.
60782         * lib/fwritable.c: Likewise.
60783         * lib/fwritable.h: Likewise.
60784         * lib/fwriteerror.c: Likewise.
60785         * lib/fwriteerror.h: Likewise.
60786         * lib/fwriting.c: Likewise.
60787         * lib/fwriting.h: Likewise.
60788         * lib/gcd.c: Likewise.
60789         * lib/gcd.h: Likewise.
60790         * lib/getcwd.c: Likewise.
60791         * lib/getdate.h: Likewise.
60792         * lib/getdate.y: Likewise.
60793         * lib/getdomainname.c: Likewise.
60794         * lib/getdomainname.h: Likewise.
60795         * lib/getgroups.c: Likewise.
60796         * lib/gethostname.c: Likewise.
60797         * lib/gethrxtime.c: Likewise.
60798         * lib/gethrxtime.h: Likewise.
60799         * lib/getloadavg.c: Likewise.
60800         * lib/getndelim2.c: Likewise.
60801         * lib/getndelim2.h: Likewise.
60802         * lib/getnline.c: Likewise.
60803         * lib/getnline.h: Likewise.
60804         * lib/getopt.c: Likewise.
60805         * lib/getopt.in.h: Likewise.
60806         * lib/getopt1.c: Likewise.
60807         * lib/getopt_int.h: Likewise.
60808         * lib/getpagesize.h: Likewise.
60809         * lib/getsubopt.c: Likewise.
60810         * lib/gettime.c: Likewise.
60811         * lib/getugroups.c: Likewise.
60812         * lib/getugroups.h: Likewise.
60813         * lib/getusershell.c: Likewise.
60814         * lib/gl_anyavltree_list1.h: Likewise.
60815         * lib/gl_anyavltree_list2.h: Likewise.
60816         * lib/gl_anyhash_list1.h: Likewise.
60817         * lib/gl_anyhash_list2.h: Likewise.
60818         * lib/gl_anylinked_list1.h: Likewise.
60819         * lib/gl_anylinked_list2.h: Likewise.
60820         * lib/gl_anyrbtree_list1.h: Likewise.
60821         * lib/gl_anyrbtree_list2.h: Likewise.
60822         * lib/gl_anytree_list1.h: Likewise.
60823         * lib/gl_anytree_list2.h: Likewise.
60824         * lib/gl_anytree_oset.h: Likewise.
60825         * lib/gl_anytreehash_list1.h: Likewise.
60826         * lib/gl_anytreehash_list2.h: Likewise.
60827         * lib/gl_array_list.c: Likewise.
60828         * lib/gl_array_list.h: Likewise.
60829         * lib/gl_array_oset.c: Likewise.
60830         * lib/gl_array_oset.h: Likewise.
60831         * lib/gl_avltree_list.c: Likewise.
60832         * lib/gl_avltree_list.h: Likewise.
60833         * lib/gl_avltree_oset.c: Likewise.
60834         * lib/gl_avltree_oset.h: Likewise.
60835         * lib/gl_avltreehash_list.c: Likewise.
60836         * lib/gl_avltreehash_list.h: Likewise.
60837         * lib/gl_carray_list.c: Likewise.
60838         * lib/gl_carray_list.h: Likewise.
60839         * lib/gl_linked_list.c: Likewise.
60840         * lib/gl_linked_list.h: Likewise.
60841         * lib/gl_linkedhash_list.c: Likewise.
60842         * lib/gl_linkedhash_list.h: Likewise.
60843         * lib/gl_list.c: Likewise.
60844         * lib/gl_list.h: Likewise.
60845         * lib/gl_oset.c: Likewise.
60846         * lib/gl_oset.h: Likewise.
60847         * lib/gl_rbtree_list.c: Likewise.
60848         * lib/gl_rbtree_list.h: Likewise.
60849         * lib/gl_rbtree_oset.c: Likewise.
60850         * lib/gl_rbtree_oset.h: Likewise.
60851         * lib/gl_rbtreehash_list.c: Likewise.
60852         * lib/gl_rbtreehash_list.h: Likewise.
60853         * lib/gl_sublist.c: Likewise.
60854         * lib/gl_sublist.h: Likewise.
60855         * lib/group-member.c: Likewise.
60856         * lib/group-member.h: Likewise.
60857         * lib/hard-locale.c: Likewise.
60858         * lib/hard-locale.h: Likewise.
60859         * lib/hash-pjw.c: Likewise.
60860         * lib/hash-pjw.h: Likewise.
60861         * lib/hash-triple.c: Likewise.
60862         * lib/hash.c: Likewise.
60863         * lib/hash.h: Likewise.
60864         * lib/human.c: Likewise.
60865         * lib/human.h: Likewise.
60866         * lib/i-ring.c: Likewise.
60867         * lib/i-ring.h: Likewise.
60868         * lib/idcache.c: Likewise.
60869         * lib/imaxabs.c: Likewise.
60870         * lib/imaxdiv.c: Likewise.
60871         * lib/inet_pton.c: Likewise.
60872         * lib/inet_pton.h: Likewise.
60873         * lib/intprops.h: Likewise.
60874         * lib/inttostr.c: Likewise.
60875         * lib/inttostr.h: Likewise.
60876         * lib/inttypes.in.h: Likewise.
60877         * lib/isapipe.c: Likewise.
60878         * lib/isdir.c: Likewise.
60879         * lib/isnan.c: Likewise.
60880         * lib/isnan.h: Likewise.
60881         * lib/isnanf.c: Likewise.
60882         * lib/isnanf.h: Likewise.
60883         * lib/isnanl-nolibm.h: Likewise.
60884         * lib/isnanl.c: Likewise.
60885         * lib/isnanl.h: Likewise.
60886         * lib/javacomp.c: Likewise.
60887         * lib/javacomp.h: Likewise.
60888         * lib/javaexec.c: Likewise.
60889         * lib/javaexec.h: Likewise.
60890         * lib/javaversion.c: Likewise.
60891         * lib/javaversion.h: Likewise.
60892         * lib/javaversion.java: Likewise.
60893         * lib/lbrkprop.h: Likewise.
60894         * lib/lchmod.h: Likewise.
60895         * lib/lchown.c: Likewise.
60896         * lib/ldexpl.c: Likewise.
60897         * lib/linebreak.c: Likewise.
60898         * lib/linebreak.h: Likewise.
60899         * lib/linebuffer.c: Likewise.
60900         * lib/linebuffer.h: Likewise.
60901         * lib/locale.in.h: Likewise.
60902         * lib/logl.c: Likewise.
60903         * lib/long-options.c: Likewise.
60904         * lib/long-options.h: Likewise.
60905         * lib/lstat.c: Likewise.
60906         * lib/lstat.h: Likewise.
60907         * lib/math.in.h: Likewise.
60908         * lib/mbchar.c: Likewise.
60909         * lib/mbchar.h: Likewise.
60910         * lib/mbfile.h: Likewise.
60911         * lib/mbiter.h: Likewise.
60912         * lib/mbscasecmp.c: Likewise.
60913         * lib/mbscasestr.c: Likewise.
60914         * lib/mbschr.c: Likewise.
60915         * lib/mbscspn.c: Likewise.
60916         * lib/mbslen.c: Likewise.
60917         * lib/mbsncasecmp.c: Likewise.
60918         * lib/mbsnlen.c: Likewise.
60919         * lib/mbspbrk.c: Likewise.
60920         * lib/mbspcasecmp.c: Likewise.
60921         * lib/mbsrchr.c: Likewise.
60922         * lib/mbssep.c: Likewise.
60923         * lib/mbsspn.c: Likewise.
60924         * lib/mbsstr.c: Likewise.
60925         * lib/mbstok_r.c: Likewise.
60926         * lib/mbswidth.c: Likewise.
60927         * lib/mbswidth.h: Likewise.
60928         * lib/mbuiter.h: Likewise.
60929         * lib/memcasecmp.c: Likewise.
60930         * lib/memcasecmp.h: Likewise.
60931         * lib/memchr.c: Likewise.
60932         * lib/memcmp.c: Likewise.
60933         * lib/memcoll.c: Likewise.
60934         * lib/memcoll.h: Likewise.
60935         * lib/memcpy.c: Likewise.
60936         * lib/memrchr.c: Likewise.
60937         * lib/mkancesdirs.c: Likewise.
60938         * lib/mkdir-p.c: Likewise.
60939         * lib/mkdir-p.h: Likewise.
60940         * lib/mkdir.c: Likewise.
60941         * lib/mkdirat.c: Likewise.
60942         * lib/mkdtemp.c: Likewise.
60943         * lib/mkstemp-safer.c: Likewise.
60944         * lib/mkstemp.c: Likewise.
60945         * lib/modechange.c: Likewise.
60946         * lib/modechange.h: Likewise.
60947         * lib/mountlist.c: Likewise.
60948         * lib/mountlist.h: Likewise.
60949         * lib/mpsort.c: Likewise.
60950         * lib/nanosleep.c: Likewise.
60951         * lib/obstack.c: Likewise.
60952         * lib/obstack.h: Likewise.
60953         * lib/open-safer.c: Likewise.
60954         * lib/open.c: Likewise.
60955         * lib/openat-die.c: Likewise.
60956         * lib/openat-priv.h: Likewise.
60957         * lib/openat-proc.c: Likewise.
60958         * lib/openat.c: Likewise.
60959         * lib/openat.h: Likewise.
60960         * lib/pagealign_alloc.c: Likewise.
60961         * lib/pagealign_alloc.h: Likewise.
60962         * lib/physmem.c: Likewise.
60963         * lib/physmem.h: Likewise.
60964         * lib/pipe-safer.c: Likewise.
60965         * lib/pipe.c: Likewise.
60966         * lib/pipe.h: Likewise.
60967         * lib/posixtm.c: Likewise.
60968         * lib/posixtm.h: Likewise.
60969         * lib/posixver.c: Likewise.
60970         * lib/printf-frexp.c: Likewise.
60971         * lib/printf-frexp.h: Likewise.
60972         * lib/printf-frexpl.c: Likewise.
60973         * lib/printf-frexpl.h: Likewise.
60974         * lib/printf.c: Likewise.
60975         * lib/progname.c: Likewise.
60976         * lib/progname.h: Likewise.
60977         * lib/progreloc.c: Likewise.
60978         * lib/putenv.c: Likewise.
60979         * lib/quote.c: Likewise.
60980         * lib/quote.h: Likewise.
60981         * lib/quotearg.c: Likewise.
60982         * lib/quotearg.h: Likewise.
60983         * lib/raise.c: Likewise.
60984         * lib/readline.c: Likewise.
60985         * lib/readline.h: Likewise.
60986         * lib/readlink.c: Likewise.
60987         * lib/readtokens.c: Likewise.
60988         * lib/readtokens.h: Likewise.
60989         * lib/readtokens0.c: Likewise.
60990         * lib/readtokens0.h: Likewise.
60991         * lib/readutmp.c: Likewise.
60992         * lib/readutmp.h: Likewise.
60993         * lib/realloc.c: Likewise.
60994         * lib/relocwrapper.c: Likewise.
60995         * lib/rename-dest-slash.c: Likewise.
60996         * lib/rename.c: Likewise.
60997         * lib/rmdir.c: Likewise.
60998         * lib/rpmatch.c: Likewise.
60999         * lib/safe-read.c: Likewise.
61000         * lib/safe-read.h: Likewise.
61001         * lib/safe-write.c: Likewise.
61002         * lib/safe-write.h: Likewise.
61003         * lib/same-inode.h: Likewise.
61004         * lib/same.c: Likewise.
61005         * lib/same.h: Likewise.
61006         * lib/save-cwd.c: Likewise.
61007         * lib/save-cwd.h: Likewise.
61008         * lib/savedir.c: Likewise.
61009         * lib/savedir.h: Likewise.
61010         * lib/savewd.c: Likewise.
61011         * lib/savewd.h: Likewise.
61012         * lib/search.in.h: Likewise.
61013         * lib/setenv.c: Likewise.
61014         * lib/setenv.h: Likewise.
61015         * lib/settime.c: Likewise.
61016         * lib/sh-quote.c: Likewise.
61017         * lib/sh-quote.h: Likewise.
61018         * lib/sig2str.c: Likewise.
61019         * lib/sig2str.h: Likewise.
61020         * lib/signal.in.h: Likewise.
61021         * lib/signbitd.c: Likewise.
61022         * lib/signbitf.c: Likewise.
61023         * lib/signbitl.c: Likewise.
61024         * lib/sigprocmask.c: Likewise.
61025         * lib/sincosl.c: Likewise.
61026         * lib/sleep.c: Likewise.
61027         * lib/sprintf.c: Likewise.
61028         * lib/sqrtl.c: Likewise.
61029         * lib/stat-time.h: Likewise.
61030         * lib/stdio--.h: Likewise.
61031         * lib/stdio-safer.h: Likewise.
61032         * lib/stdlib--.h: Likewise.
61033         * lib/stdlib-safer.h: Likewise.
61034         * lib/stdlib.in.h: Likewise.
61035         * lib/stpcpy.c: Likewise.
61036         * lib/stpncpy.c: Likewise.
61037         * lib/strchrnul.c: Likewise.
61038         * lib/strcspn.c: Likewise.
61039         * lib/strerror.c: Likewise.
61040         * lib/strftime.c: Likewise.
61041         * lib/strftime.h: Likewise.
61042         * lib/striconveh.c: Likewise.
61043         * lib/striconveh.h: Likewise.
61044         * lib/striconveha.c: Likewise.
61045         * lib/striconveha.h: Likewise.
61046         * lib/stripslash.c: Likewise.
61047         * lib/strnlen1.c: Likewise.
61048         * lib/strnlen1.h: Likewise.
61049         * lib/strtod.c: Likewise.
61050         * lib/strtoimax.c: Likewise.
61051         * lib/strtok_r.c: Likewise.
61052         * lib/strtol.c: Likewise.
61053         * lib/strtoll.c: Likewise.
61054         * lib/strtoul.c: Likewise.
61055         * lib/strtoull.c: Likewise.
61056         * lib/sysexits.in.h: Likewise.
61057         * lib/tempname.c: Likewise.
61058         * lib/tempname.h: Likewise.
61059         * lib/timespec.h: Likewise.
61060         * lib/tls.c: Likewise.
61061         * lib/tls.h: Likewise.
61062         * lib/tmpdir.c: Likewise.
61063         * lib/tmpdir.h: Likewise.
61064         * lib/tmpfile-safer.c: Likewise.
61065         * lib/tmpfile.c: Likewise.
61066         * lib/trigl.c: Likewise.
61067         * lib/trigl.h: Likewise.
61068         * lib/trim.c: Likewise.
61069         * lib/trim.h: Likewise.
61070         * lib/trunc.c: Likewise.
61071         * lib/truncf.c: Likewise.
61072         * lib/truncl.c: Likewise.
61073         * lib/tsearch.c: Likewise.
61074         * lib/unicodeio.c: Likewise.
61075         * lib/unicodeio.h: Likewise.
61076         * lib/unistd--.h: Likewise.
61077         * lib/unistd-safer.h: Likewise.
61078         * lib/unistdio/ulc-fprintf.c: Likewise.
61079         * lib/unistdio/ulc-vfprintf.c: Likewise.
61080         * lib/unlinkdir.c: Likewise.
61081         * lib/unlinkdir.h: Likewise.
61082         * lib/unlocked-io.h: Likewise.
61083         * lib/unsetenv.c: Likewise.
61084         * lib/userspec.c: Likewise.
61085         * lib/utime.c: Likewise.
61086         * lib/utimecmp.c: Likewise.
61087         * lib/utimecmp.h: Likewise.
61088         * lib/utimens.c: Likewise.
61089         * lib/verify.h: Likewise.
61090         * lib/verror.c: Likewise.
61091         * lib/verror.h: Likewise.
61092         * lib/version-etc-fsf.c: Likewise.
61093         * lib/version-etc.c: Likewise.
61094         * lib/version-etc.h: Likewise.
61095         * lib/vfprintf.c: Likewise.
61096         * lib/vprintf.c: Likewise.
61097         * lib/vsprintf.c: Likewise.
61098         * lib/w32spawn.h: Likewise.
61099         * lib/wait-process.c: Likewise.
61100         * lib/wait-process.h: Likewise.
61101         * lib/wcwidth.c: Likewise.
61102         * lib/write-any-file.c: Likewise.
61103         * lib/xalloc-die.c: Likewise.
61104         * lib/xalloc.h: Likewise.
61105         * lib/xasprintf.c: Likewise.
61106         * lib/xgetcwd.c: Likewise.
61107         * lib/xgetcwd.h: Likewise.
61108         * lib/xgetdomainname.c: Likewise.
61109         * lib/xgetdomainname.h: Likewise.
61110         * lib/xgethostname.c: Likewise.
61111         * lib/xmalloc.c: Likewise.
61112         * lib/xmalloca.c: Likewise.
61113         * lib/xmalloca.h: Likewise.
61114         * lib/xmemcoll.c: Likewise.
61115         * lib/xnanosleep.c: Likewise.
61116         * lib/xreadlink.c: Likewise.
61117         * lib/xreadlink.h: Likewise.
61118         * lib/xsetenv.c: Likewise.
61119         * lib/xsetenv.h: Likewise.
61120         * lib/xstriconv.c: Likewise.
61121         * lib/xstriconv.h: Likewise.
61122         * lib/xstrndup.c: Likewise.
61123         * lib/xstrndup.h: Likewise.
61124         * lib/xstrtod.c: Likewise.
61125         * lib/xstrtod.h: Likewise.
61126         * lib/xstrtol-error.c: Likewise.
61127         * lib/xstrtol.c: Likewise.
61128         * lib/xstrtol.h: Likewise.
61129         * lib/xtime.h: Likewise.
61130         * lib/xvasprintf.c: Likewise.
61131         * lib/xvasprintf.h: Likewise.
61132         * lib/yesno.c: Likewise.
61133         * lib/yesno.h: Likewise.
61134         * posix-modules: Likewise.
61135         * tests/test-alloca-opt.c: Likewise.
61136         * tests/test-arcfour.c: Likewise.
61137         * tests/test-arctwo.c: Likewise.
61138         * tests/test-argmatch.c: Likewise.
61139         * tests/test-argp-2.sh: Likewise.
61140         * tests/test-argp.c: Likewise.
61141         * tests/test-arpa_inet.c: Likewise.
61142         * tests/test-array_list.c: Likewise.
61143         * tests/test-array_oset.c: Likewise.
61144         * tests/test-atexit.c: Likewise.
61145         * tests/test-avltree_list.c: Likewise.
61146         * tests/test-avltree_oset.c: Likewise.
61147         * tests/test-avltreehash_list.c: Likewise.
61148         * tests/test-base64.c: Likewise.
61149         * tests/test-binary-io.c: Likewise.
61150         * tests/test-byteswap.c: Likewise.
61151         * tests/test-c-ctype.c: Likewise.
61152         * tests/test-c-strcasecmp.c: Likewise.
61153         * tests/test-c-strcasestr.c: Likewise.
61154         * tests/test-c-strncasecmp.c: Likewise.
61155         * tests/test-c-strstr.c: Likewise.
61156         * tests/test-canonicalize-lgpl.c: Likewise.
61157         * tests/test-canonicalize.c: Likewise.
61158         * tests/test-carray_list.c: Likewise.
61159         * tests/test-ceilf.c: Likewise.
61160         * tests/test-ceill.c: Likewise.
61161         * tests/test-count-one-bits.c: Likewise.
61162         * tests/test-crc.c: Likewise.
61163         * tests/test-dirname.c: Likewise.
61164         * tests/test-fbufmode.c: Likewise.
61165         * tests/test-fcntl.c: Likewise.
61166         * tests/test-fflush.c: Likewise.
61167         * tests/test-floorf.c: Likewise.
61168         * tests/test-floorl.c: Likewise.
61169         * tests/test-fopen.c: Likewise.
61170         * tests/test-fprintf-posix.c: Likewise.
61171         * tests/test-fprintf-posix.h: Likewise.
61172         * tests/test-fpurge.c: Likewise.
61173         * tests/test-freadable.c: Likewise.
61174         * tests/test-freadahead.c: Likewise.
61175         * tests/test-freading.c: Likewise.
61176         * tests/test-freopen.c: Likewise.
61177         * tests/test-frexp.c: Likewise.
61178         * tests/test-frexpl.c: Likewise.
61179         * tests/test-fseek.c: Likewise.
61180         * tests/test-fseeko.c: Likewise.
61181         * tests/test-fseterr.c: Likewise.
61182         * tests/test-fstrcmp.c: Likewise.
61183         * tests/test-ftell.c: Likewise.
61184         * tests/test-ftello.c: Likewise.
61185         * tests/test-fwritable.c: Likewise.
61186         * tests/test-fwriting.c: Likewise.
61187         * tests/test-getaddrinfo.c: Likewise.
61188         * tests/test-getpass.c: Likewise.
61189         * tests/test-gettimeofday.c: Likewise.
61190         * tests/test-hmac-md5.c: Likewise.
61191         * tests/test-hmac-sha1.c: Likewise.
61192         * tests/test-iconv.c: Likewise.
61193         * tests/test-iconvme.c: Likewise.
61194         * tests/test-inttypes.c: Likewise.
61195         * tests/test-isnan.c: Likewise.
61196         * tests/test-isnanf.c: Likewise.
61197         * tests/test-isnanl-nolibm.c: Likewise.
61198         * tests/test-isnanl.c: Likewise.
61199         * tests/test-isnanl.h: Likewise.
61200         * tests/test-ldexpl.c: Likewise.
61201         * tests/test-linked_list.c: Likewise.
61202         * tests/test-linkedhash_list.c: Likewise.
61203         * tests/test-locale.c: Likewise.
61204         * tests/test-localename.c: Likewise.
61205         * tests/test-lock.c: Likewise.
61206         * tests/test-lseek.c: Likewise.
61207         * tests/test-malloca.c: Likewise.
61208         * tests/test-math.c: Likewise.
61209         * tests/test-mbscasecmp.c: Likewise.
61210         * tests/test-mbscasestr1.c: Likewise.
61211         * tests/test-mbscasestr2.c: Likewise.
61212         * tests/test-mbscasestr3.c: Likewise.
61213         * tests/test-mbscasestr4.c: Likewise.
61214         * tests/test-mbschr.c: Likewise.
61215         * tests/test-mbscspn.c: Likewise.
61216         * tests/test-mbsncasecmp.c: Likewise.
61217         * tests/test-mbspbrk.c: Likewise.
61218         * tests/test-mbspcasecmp.c: Likewise.
61219         * tests/test-mbsrchr.c: Likewise.
61220         * tests/test-mbsspn.c: Likewise.
61221         * tests/test-mbsstr1.c: Likewise.
61222         * tests/test-mbsstr2.c: Likewise.
61223         * tests/test-mbsstr3.c: Likewise.
61224         * tests/test-md5.c: Likewise.
61225         * tests/test-memmem.c: Likewise.
61226         * tests/test-netinet_in.c: Likewise.
61227         * tests/test-open.c: Likewise.
61228         * tests/test-printf-frexp.c: Likewise.
61229         * tests/test-printf-frexpl.c: Likewise.
61230         * tests/test-printf-posix.c: Likewise.
61231         * tests/test-printf-posix.h: Likewise.
61232         * tests/test-rbtree_list.c: Likewise.
61233         * tests/test-rbtree_oset.c: Likewise.
61234         * tests/test-rbtreehash_list.c: Likewise.
61235         * tests/test-read-file.c: Likewise.
61236         * tests/test-rijndael.c: Likewise.
61237         * tests/test-search.c: Likewise.
61238         * tests/test-signbit.c: Likewise.
61239         * tests/test-sleep.c: Likewise.
61240         * tests/test-snprintf-posix.c: Likewise.
61241         * tests/test-snprintf-posix.h: Likewise.
61242         * tests/test-snprintf.c: Likewise.
61243         * tests/test-sprintf-posix.c: Likewise.
61244         * tests/test-sprintf-posix.h: Likewise.
61245         * tests/test-stat-time.c: Likewise.
61246         * tests/test-stdbool.c: Likewise.
61247         * tests/test-stdint.c: Likewise.
61248         * tests/test-stdio.c: Likewise.
61249         * tests/test-stdlib.c: Likewise.
61250         * tests/test-stpncpy.c: Likewise.
61251         * tests/test-strcasestr.c: Likewise.
61252         * tests/test-striconv.c: Likewise.
61253         * tests/test-striconveh.c: Likewise.
61254         * tests/test-striconveha.c: Likewise.
61255         * tests/test-string.c: Likewise.
61256         * tests/test-sys_select.c: Likewise.
61257         * tests/test-sys_socket.c: Likewise.
61258         * tests/test-sys_stat.c: Likewise.
61259         * tests/test-sys_time.c: Likewise.
61260         * tests/test-sysexits.c: Likewise.
61261         * tests/test-time.c: Likewise.
61262         * tests/test-tls.c: Likewise.
61263         * tests/test-trunc.c: Likewise.
61264         * tests/test-truncf.c: Likewise.
61265         * tests/test-truncl.c: Likewise.
61266         * tests/test-unistd.c: Likewise.
61267         * tests/test-vasnprintf-posix.c: Likewise.
61268         * tests/test-vasnprintf-posix2.c: Likewise.
61269         * tests/test-vasnprintf.c: Likewise.
61270         * tests/test-vasprintf-posix.c: Likewise.
61271         * tests/test-vasprintf.c: Likewise.
61272         * tests/test-verify.c: Likewise.
61273         * tests/test-vfprintf-posix.c: Likewise.
61274         * tests/test-vprintf-posix.c: Likewise.
61275         * tests/test-vsnprintf-posix.c: Likewise.
61276         * tests/test-vsnprintf.c: Likewise.
61277         * tests/test-vsprintf-posix.c: Likewise.
61278         * tests/test-wchar.c: Likewise.
61279         * tests/test-wctype.c: Likewise.
61280         * tests/test-wcwidth.c: Likewise.
61281         * tests/test-xstrtol.c: Likewise.
61282         * tests/test-xvasprintf.c: Likewise.
61283         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61284         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61285         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61286         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61287         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61288         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61289         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61290         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61291         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61292         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61293         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61294         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61295         * tests/uniname/test-uninames.c: Likewise.
61296         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61297         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61298         * tests/unistdio/test-u16-printf1.h: Likewise.
61299         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61300         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61301         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61302         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61303         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61304         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61305         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61306         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61307         * tests/unistdio/test-u32-printf1.h: Likewise.
61308         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61309         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61310         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61311         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61312         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61313         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61314         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61315         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61316         * tests/unistdio/test-u8-printf1.h: Likewise.
61317         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61318         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61319         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61320         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61321         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61322         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61323         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61324         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61325         * tests/unistdio/test-ulc-printf1.h: Likewise.
61326         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61327         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61328         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61329         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61330         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61331         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61332         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61333         * tests/uniwidth/test-u16-width.c: Likewise.
61334         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61335         * tests/uniwidth/test-u32-width.c: Likewise.
61336         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61337         * tests/uniwidth/test-u8-width.c: Likewise.
61338         * tests/uniwidth/test-uc_width.c: Likewise.
61339         * config/srclist-update: Likewise.
61340         (fixlicense): Update to GPLv3+.
61341
61342         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61343         * tests/test-tsearch.c: Change copyright notice.
61344
61345         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61346         * lib/c-strcaseeq.h: Change copyright notice.
61347         * lib/streq.h: Likewise.
61348         * lib/uniconv.h: Likewise.
61349         * lib/uniconv/u-conv-from-enc.h: Likewise.
61350         * lib/uniconv/u-conv-to-enc.h: Likewise.
61351         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61352         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61353         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61354         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61355         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61356         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61357         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61358         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61359         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61360         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61361         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61362         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61363         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61364         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61365         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61366         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61367         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61368         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61369         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61370         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61371         * lib/uniname.h: Likewise.
61372         * lib/uniname/uniname.c: Likewise.
61373         * lib/unistdio.h: Likewise.
61374         * lib/unistdio/u-asnprintf.h: Likewise.
61375         * lib/unistdio/u-asprintf.h: Likewise.
61376         * lib/unistdio/u-printf-args.c: Likewise.
61377         * lib/unistdio/u-printf-args.h: Likewise.
61378         * lib/unistdio/u-printf-parse.h: Likewise.
61379         * lib/unistdio/u-snprintf.h: Likewise.
61380         * lib/unistdio/u-sprintf.h: Likewise.
61381         * lib/unistdio/u-vasprintf.h: Likewise.
61382         * lib/unistdio/u-vsnprintf.h: Likewise.
61383         * lib/unistdio/u-vsprintf.h: Likewise.
61384         * lib/unistdio/u16-asnprintf.c: Likewise.
61385         * lib/unistdio/u16-asprintf.c: Likewise.
61386         * lib/unistdio/u16-printf-parse.c: Likewise.
61387         * lib/unistdio/u16-snprintf.c: Likewise.
61388         * lib/unistdio/u16-sprintf.c: Likewise.
61389         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61390         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61391         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61392         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61393         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61394         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61395         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61396         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61397         * lib/unistdio/u16-vasnprintf.c: Likewise.
61398         * lib/unistdio/u16-vasprintf.c: Likewise.
61399         * lib/unistdio/u16-vsnprintf.c: Likewise.
61400         * lib/unistdio/u16-vsprintf.c: Likewise.
61401         * lib/unistdio/u32-asnprintf.c: Likewise.
61402         * lib/unistdio/u32-asprintf.c: Likewise.
61403         * lib/unistdio/u32-printf-parse.c: Likewise.
61404         * lib/unistdio/u32-snprintf.c: Likewise.
61405         * lib/unistdio/u32-sprintf.c: Likewise.
61406         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61407         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61408         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61409         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61410         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61411         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61412         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61413         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61414         * lib/unistdio/u32-vasnprintf.c: Likewise.
61415         * lib/unistdio/u32-vasprintf.c: Likewise.
61416         * lib/unistdio/u32-vsnprintf.c: Likewise.
61417         * lib/unistdio/u32-vsprintf.c: Likewise.
61418         * lib/unistdio/u8-asnprintf.c: Likewise.
61419         * lib/unistdio/u8-asprintf.c: Likewise.
61420         * lib/unistdio/u8-printf-parse.c: Likewise.
61421         * lib/unistdio/u8-snprintf.c: Likewise.
61422         * lib/unistdio/u8-sprintf.c: Likewise.
61423         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61424         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61425         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61426         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61427         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61428         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61429         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61430         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61431         * lib/unistdio/u8-vasnprintf.c: Likewise.
61432         * lib/unistdio/u8-vasprintf.c: Likewise.
61433         * lib/unistdio/u8-vsnprintf.c: Likewise.
61434         * lib/unistdio/u8-vsprintf.c: Likewise.
61435         * lib/unistdio/ulc-asnprintf.c: Likewise.
61436         * lib/unistdio/ulc-asprintf.c: Likewise.
61437         * lib/unistdio/ulc-printf-parse.c: Likewise.
61438         * lib/unistdio/ulc-snprintf.c: Likewise.
61439         * lib/unistdio/ulc-sprintf.c: Likewise.
61440         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61441         * lib/unistdio/ulc-vasprintf.c: Likewise.
61442         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61443         * lib/unistdio/ulc-vsprintf.c: Likewise.
61444         * lib/unistr.h: Likewise.
61445         * lib/unistr/u-cpy-alloc.h: Likewise.
61446         * lib/unistr/u-cpy.h: Likewise.
61447         * lib/unistr/u-endswith.h: Likewise.
61448         * lib/unistr/u-move.h: Likewise.
61449         * lib/unistr/u-set.h: Likewise.
61450         * lib/unistr/u-startswith.h: Likewise.
61451         * lib/unistr/u-stpcpy.h: Likewise.
61452         * lib/unistr/u-stpncpy.h: Likewise.
61453         * lib/unistr/u-strcat.h: Likewise.
61454         * lib/unistr/u-strcpy.h: Likewise.
61455         * lib/unistr/u-strcspn.h: Likewise.
61456         * lib/unistr/u-strdup.h: Likewise.
61457         * lib/unistr/u-strlen.h: Likewise.
61458         * lib/unistr/u-strncat.h: Likewise.
61459         * lib/unistr/u-strncpy.h: Likewise.
61460         * lib/unistr/u-strnlen.h: Likewise.
61461         * lib/unistr/u-strpbrk.h: Likewise.
61462         * lib/unistr/u-strspn.h: Likewise.
61463         * lib/unistr/u-strstr.h: Likewise.
61464         * lib/unistr/u-strtok.h: Likewise.
61465         * lib/unistr/u16-check.c: Likewise.
61466         * lib/unistr/u16-chr.c: Likewise.
61467         * lib/unistr/u16-cmp.c: Likewise.
61468         * lib/unistr/u16-cpy-alloc.c: Likewise.
61469         * lib/unistr/u16-cpy.c: Likewise.
61470         * lib/unistr/u16-endswith.c: Likewise.
61471         * lib/unistr/u16-mblen.c: Likewise.
61472         * lib/unistr/u16-mbsnlen.c: Likewise.
61473         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61474         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61475         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61476         * lib/unistr/u16-mbtouc.c: Likewise.
61477         * lib/unistr/u16-mbtoucr.c: Likewise.
61478         * lib/unistr/u16-move.c: Likewise.
61479         * lib/unistr/u16-next.c: Likewise.
61480         * lib/unistr/u16-prev.c: Likewise.
61481         * lib/unistr/u16-set.c: Likewise.
61482         * lib/unistr/u16-startswith.c: Likewise.
61483         * lib/unistr/u16-stpcpy.c: Likewise.
61484         * lib/unistr/u16-stpncpy.c: Likewise.
61485         * lib/unistr/u16-strcat.c: Likewise.
61486         * lib/unistr/u16-strchr.c: Likewise.
61487         * lib/unistr/u16-strcmp.c: Likewise.
61488         * lib/unistr/u16-strcpy.c: Likewise.
61489         * lib/unistr/u16-strcspn.c: Likewise.
61490         * lib/unistr/u16-strdup.c: Likewise.
61491         * lib/unistr/u16-strlen.c: Likewise.
61492         * lib/unistr/u16-strmblen.c: Likewise.
61493         * lib/unistr/u16-strmbtouc.c: Likewise.
61494         * lib/unistr/u16-strncat.c: Likewise.
61495         * lib/unistr/u16-strncmp.c: Likewise.
61496         * lib/unistr/u16-strncpy.c: Likewise.
61497         * lib/unistr/u16-strnlen.c: Likewise.
61498         * lib/unistr/u16-strpbrk.c: Likewise.
61499         * lib/unistr/u16-strrchr.c: Likewise.
61500         * lib/unistr/u16-strspn.c: Likewise.
61501         * lib/unistr/u16-strstr.c: Likewise.
61502         * lib/unistr/u16-strtok.c: Likewise.
61503         * lib/unistr/u16-to-u32.c: Likewise.
61504         * lib/unistr/u16-to-u8.c: Likewise.
61505         * lib/unistr/u16-uctomb-aux.c: Likewise.
61506         * lib/unistr/u16-uctomb.c: Likewise.
61507         * lib/unistr/u32-check.c: Likewise.
61508         * lib/unistr/u32-chr.c: Likewise.
61509         * lib/unistr/u32-cmp.c: Likewise.
61510         * lib/unistr/u32-cpy-alloc.c: Likewise.
61511         * lib/unistr/u32-cpy.c: Likewise.
61512         * lib/unistr/u32-endswith.c: Likewise.
61513         * lib/unistr/u32-mblen.c: Likewise.
61514         * lib/unistr/u32-mbsnlen.c: Likewise.
61515         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61516         * lib/unistr/u32-mbtouc.c: Likewise.
61517         * lib/unistr/u32-mbtoucr.c: Likewise.
61518         * lib/unistr/u32-move.c: Likewise.
61519         * lib/unistr/u32-next.c: Likewise.
61520         * lib/unistr/u32-prev.c: Likewise.
61521         * lib/unistr/u32-set.c: Likewise.
61522         * lib/unistr/u32-startswith.c: Likewise.
61523         * lib/unistr/u32-stpcpy.c: Likewise.
61524         * lib/unistr/u32-stpncpy.c: Likewise.
61525         * lib/unistr/u32-strcat.c: Likewise.
61526         * lib/unistr/u32-strchr.c: Likewise.
61527         * lib/unistr/u32-strcmp.c: Likewise.
61528         * lib/unistr/u32-strcpy.c: Likewise.
61529         * lib/unistr/u32-strcspn.c: Likewise.
61530         * lib/unistr/u32-strdup.c: Likewise.
61531         * lib/unistr/u32-strlen.c: Likewise.
61532         * lib/unistr/u32-strmblen.c: Likewise.
61533         * lib/unistr/u32-strmbtouc.c: Likewise.
61534         * lib/unistr/u32-strncat.c: Likewise.
61535         * lib/unistr/u32-strncmp.c: Likewise.
61536         * lib/unistr/u32-strncpy.c: Likewise.
61537         * lib/unistr/u32-strnlen.c: Likewise.
61538         * lib/unistr/u32-strpbrk.c: Likewise.
61539         * lib/unistr/u32-strrchr.c: Likewise.
61540         * lib/unistr/u32-strspn.c: Likewise.
61541         * lib/unistr/u32-strstr.c: Likewise.
61542         * lib/unistr/u32-strtok.c: Likewise.
61543         * lib/unistr/u32-to-u16.c: Likewise.
61544         * lib/unistr/u32-to-u8.c: Likewise.
61545         * lib/unistr/u32-uctomb.c: Likewise.
61546         * lib/unistr/u8-check.c: Likewise.
61547         * lib/unistr/u8-chr.c: Likewise.
61548         * lib/unistr/u8-cmp.c: Likewise.
61549         * lib/unistr/u8-cpy-alloc.c: Likewise.
61550         * lib/unistr/u8-cpy.c: Likewise.
61551         * lib/unistr/u8-endswith.c: Likewise.
61552         * lib/unistr/u8-mblen.c: Likewise.
61553         * lib/unistr/u8-mbsnlen.c: Likewise.
61554         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61555         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61556         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61557         * lib/unistr/u8-mbtouc.c: Likewise.
61558         * lib/unistr/u8-mbtoucr.c: Likewise.
61559         * lib/unistr/u8-move.c: Likewise.
61560         * lib/unistr/u8-next.c: Likewise.
61561         * lib/unistr/u8-prev.c: Likewise.
61562         * lib/unistr/u8-set.c: Likewise.
61563         * lib/unistr/u8-startswith.c: Likewise.
61564         * lib/unistr/u8-stpcpy.c: Likewise.
61565         * lib/unistr/u8-stpncpy.c: Likewise.
61566         * lib/unistr/u8-strcat.c: Likewise.
61567         * lib/unistr/u8-strchr.c: Likewise.
61568         * lib/unistr/u8-strcmp.c: Likewise.
61569         * lib/unistr/u8-strcpy.c: Likewise.
61570         * lib/unistr/u8-strcspn.c: Likewise.
61571         * lib/unistr/u8-strdup.c: Likewise.
61572         * lib/unistr/u8-strlen.c: Likewise.
61573         * lib/unistr/u8-strmblen.c: Likewise.
61574         * lib/unistr/u8-strmbtouc.c: Likewise.
61575         * lib/unistr/u8-strncat.c: Likewise.
61576         * lib/unistr/u8-strncmp.c: Likewise.
61577         * lib/unistr/u8-strncpy.c: Likewise.
61578         * lib/unistr/u8-strnlen.c: Likewise.
61579         * lib/unistr/u8-strpbrk.c: Likewise.
61580         * lib/unistr/u8-strrchr.c: Likewise.
61581         * lib/unistr/u8-strspn.c: Likewise.
61582         * lib/unistr/u8-strstr.c: Likewise.
61583         * lib/unistr/u8-strtok.c: Likewise.
61584         * lib/unistr/u8-to-u16.c: Likewise.
61585         * lib/unistr/u8-to-u32.c: Likewise.
61586         * lib/unistr/u8-uctomb-aux.c: Likewise.
61587         * lib/unistr/u8-uctomb.c: Likewise.
61588         * lib/unitypes.h: Likewise.
61589         * lib/uniwidth.h: Likewise.
61590         * lib/uniwidth/cjk.h: Likewise.
61591         * lib/uniwidth/u16-strwidth.c: Likewise.
61592         * lib/uniwidth/u16-width.c: Likewise.
61593         * lib/uniwidth/u32-strwidth.c: Likewise.
61594         * lib/uniwidth/u32-width.c: Likewise.
61595         * lib/uniwidth/u8-strwidth.c: Likewise.
61596         * lib/uniwidth/u8-width.c: Likewise.
61597         * lib/uniwidth/width.c: Likewise.
61598
61599 2007-10-07  Bruno Haible  <bruno@clisp.org>
61600
61601         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61602         The file is still under LGPL (see modules/inttypes).
61603
61604 2007-10-06  Bruno Haible  <bruno@clisp.org>
61605
61606         * modules/trunc (Dependencies): Add 'extensions'.
61607         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61608         Reported by Ben Pfaff <blp@gnu.org>.
61609
61610 2007-10-06  Bruno Haible  <bruno@clisp.org>
61611
61612         * modules/freopen-tests: New file.
61613         * tests/test-freopen.c: New file.
61614
61615         * modules/fopen-tests: New file.
61616         * tests/test-fopen.c: New file.
61617
61618         * modules/fopen: New file.
61619         * lib/fopen.c: New file.
61620         * m4/fopen.m4: New file.
61621         * modules/freopen: New file.
61622         * lib/freopen.c: New file.
61623         * m4/freopen.m4: New file.
61624         * lib/stdio.in.h (fopen, freopen): New declarations.
61625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61626         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61627         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61628         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61629         * doc/functions/fopen.texi: Mention the 'fopen' module.
61630         * doc/functions/freopen.texi: Mention the 'freopen' module.
61631
61632 2007-10-06  Bruno Haible  <bruno@clisp.org>
61633
61634         * modules/open-tests: New file.
61635         * tests/test-open.c: New file.
61636
61637         * modules/open: New file.
61638         * lib/open.c: New file.
61639         * m4/open.m4: New file.
61640         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61641         lib/open.c does.
61642         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61643         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61644         macros.
61645         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61646         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61647         REPLACE_OPEN.
61648         * doc/functions/open.texi: Mention the 'open' module.
61649
61650 2007-10-04  Bruno Haible  <bruno@clisp.org>
61651
61652         * modules/ceill-tests: New file.
61653         * tests/test-ceill.c: New file.
61654
61655         * modules/ceill: New file.
61656         * lib/ceill.c: Replace entire file.
61657         * m4/ceill.m4: New file.
61658         * lib/math.in.h (ceill): Replace declaration.
61659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61660         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61661         * doc/functions/ceill.texi: Mention the 'ceill' module.
61662         * modules/mathl (Files): Remove lib/ceill.c.
61663         (Depends-on): Add ceill.
61664
61665 2007-10-04  Bruno Haible  <bruno@clisp.org>
61666
61667         * modules/ceilf-tests: New file.
61668         * tests/test-ceilf.c: New file.
61669
61670         * modules/ceilf: New file.
61671         * lib/ceil.c: New file.
61672         * lib/ceilf.c: New file.
61673         * m4/ceilf.m4: New file.
61674         * lib/math.in.h (ceilf): New declaration.
61675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61676         HAVE_DECL_CEILF.
61677         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61678         HAVE_DECL_CEILF.
61679         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61680
61681 2007-10-04  Bruno Haible  <bruno@clisp.org>
61682
61683         * modules/floorl-tests: New file.
61684         * tests/test-floorl.c: New file.
61685
61686         * modules/floorl: New file.
61687         * lib/floorl.c: Replace entire file.
61688         * m4/floorl.m4: New file.
61689         * lib/math.in.h (floorl): Replace declaration.
61690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61691         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61692         * doc/functions/floorl.texi: Mention the 'floorl' module.
61693         * modules/mathl (Files): Remove lib/floorl.c.
61694         (Depends-on): Add floorl.
61695
61696 2007-10-04  Bruno Haible  <bruno@clisp.org>
61697
61698         * modules/floorf-tests: New file.
61699         * tests/test-floorf.c: New file.
61700
61701         * modules/floorf: New file.
61702         * lib/floor.c: New file.
61703         * lib/floorf.c: New file.
61704         * m4/floorf.m4: New file.
61705         * lib/math.in.h (floorf): New declaration.
61706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61707         HAVE_DECL_FLOORF.
61708         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61709         HAVE_DECL_FLOORF.
61710         * doc/functions/floorf.texi: Mention the 'floorf' module.
61711
61712 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61713             Bruno Haible  <bruno@clisp.org>
61714
61715         Advertise for the Git server instead of the CVS server.
61716         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61717         repository instead of the CVS one.
61718         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61719         about all VCS systems generically.
61720         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61721
61722 2007-10-04  Bruno Haible  <bruno@clisp.org>
61723
61724         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61725         means.
61726         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61727
61728 2007-10-04  Bruno Haible  <bruno@clisp.org>
61729
61730         * modules/truncl-tests: New file.
61731         * tests/test-truncl.c: New file.
61732
61733         * modules/truncl: New file.
61734         * lib/truncl.c: New file.
61735         * m4/truncl.m4: New file.
61736         * lib/math.in.h (truncl): New declaration.
61737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61738         HAVE_DECL_TRUNCL.
61739         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61740         HAVE_DECL_TRUNCL.
61741         * doc/functions/truncl.texi: Mention the 'truncl' module.
61742
61743 2007-10-04  Bruno Haible  <bruno@clisp.org>
61744
61745         * modules/truncf-tests: New file.
61746         * tests/test-truncf.c: New file.
61747
61748         * modules/truncf: New file.
61749         * lib/trunc.c: Make paramerizable through USE_* macros.
61750         * lib/truncf.c: New file.
61751         * m4/truncf.m4: New file.
61752         * lib/math.in.h (truncf): New declaration.
61753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61754         HAVE_DECL_TRUNCF.
61755         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61756         HAVE_DECL_TRUNCF.
61757         * doc/functions/truncf.texi: Mention the 'truncf' module.
61758
61759 2007-10-03  Bruno Haible  <bruno@clisp.org>
61760
61761         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61762         augmentation also for tests modules.
61763         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61764         * modules/atexit-tests (Makefile.am): Likewise.
61765         * modules/binary-io-tests (Makefile.am): Likewise.
61766         * modules/c-strcase-tests (Makefile.am): Likewise.
61767         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61768         * modules/canonicalize-tests (Makefile.am): Likewise.
61769         * modules/closein-tests (Makefile.am): Likewise.
61770         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61771         * modules/freadahead-tests (Makefile.am): Likewise.
61772         * modules/fseek-tests (Makefile.am): Likewise.
61773         * modules/fseeko-tests (Makefile.am): Likewise.
61774         * modules/ftell-tests (Makefile.am): Likewise.
61775         * modules/ftello-tests (Makefile.am): Likewise.
61776         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61777         * modules/isnanl-tests (Makefile.am): Likewise.
61778         * modules/lseek-tests (Makefile.am): Likewise.
61779         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61780         * modules/mbscasestr-tests (Makefile.am): Likewise.
61781         * modules/mbschr-tests (Makefile.am): Likewise.
61782         * modules/mbscspn-tests (Makefile.am): Likewise.
61783         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61784         * modules/mbspbrk-tests (Makefile.am): Likewise.
61785         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61786         * modules/mbsrchr-tests (Makefile.am): Likewise.
61787         * modules/mbsspn-tests (Makefile.am): Likewise.
61788         * modules/mbsstr-tests (Makefile.am): Likewise.
61789         * modules/printf-posix-tests (Makefile.am): Likewise.
61790         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61791         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61792         * modules/tsearch-tests (Makefile.am): Likewise.
61793         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61794         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61795         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61796         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61797         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61798         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61799         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61800         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61801         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61802         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61803         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61804         * modules/xstrtol-tests (Makefile.am): Likewise.
61805         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61806         * modules/yesno-tests (Makefile.am): Likewise.
61807
61808 2007-10-03  Bruno Haible  <bruno@clisp.org>
61809
61810         * modules/trunc-tests: New file.
61811         * tests/test-trunc.c: New file.
61812
61813         * modules/trunc: New file.
61814         * lib/trunc.c: New file.
61815         * m4/trunc.m4: New file.
61816         * lib/math.in.h (trunc): New declaration.
61817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61818         HAVE_DECL_TRUNC.
61819         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61820         HAVE_DECL_TRUNC.
61821         * doc/functions/trunc.texi: Mention the 'trunc' module.
61822
61823 2007-10-03  Bruno Haible  <bruno@clisp.org>
61824
61825         * tests/test-fpending.c: New file, mostly copied
61826         from coreutils/lib/t-fpending.c.
61827         * modules/fpending-tests: New file.
61828
61829 2007-10-03  Bruno Haible  <bruno@clisp.org>
61830
61831         Port the stdio extensions to QNX (untested).
61832         * lib/fseterr.c (fseterr): Add support for QNX.
61833         * lib/fbufmode.c (fbufmode): Likewise.
61834         * lib/freadable.c (freadable): Likewise.
61835         * lib/fwritable.c (fwritable): Likewise.
61836         * lib/freading.c (freading): Likewise.
61837         * lib/fwriting.c (fwriting): Likewise.
61838         * lib/freadahead.c (freadahed): Likewise.
61839         * lib/fpurge.c (fpurge): Likewise.
61840         * lib/fseeko.c (rpl_fseeko): Likewise.
61841
61842 2007-10-03  Bruno Haible  <bruno@clisp.org>
61843             Jim Meyering  <jim@meyering.net>
61844             Eric Blake  <ebb9@byu.net>
61845
61846         * doc/relocatable.texi: Use @command instead of @program.
61847
61848 2007-10-02  Jim Meyering  <jim@meyering.net>
61849
61850         Perform one more "_.h" -> ".in.h" substitution.
61851         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61852         instead of unistd_.h here, too.
61853
61854 2007-10-01  Bruno Haible  <bruno@clisp.org>
61855
61856         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61857         Needed for the alloca-opt module.
61858
61859 2007-09-30  Bruno Haible  <bruno@clisp.org>
61860
61861         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61862         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61863         alloca_.h.
61864         * lib/argz.in.h: Renamed from lib/argz_.h.
61865         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61866         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61867         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61868         byteswap_.h.
61869         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61870         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61871         dirent_.h.
61872         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61873         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61874         fcntl_.h.
61875         * lib/float.in.h: Renamed from lib/float_.h.
61876         * modules/float (Files, Makefile.am): Use float.in.h instead of
61877         float_.h.
61878         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61879         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61880         fnmatch_.h.
61881         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61882         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61883         getopt_.h.
61884         * lib/glob.in.h: Renamed from lib/glob_.h.
61885         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61886         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61887         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61888         iconv_.h.
61889         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61890         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61891         inttypes_.h.
61892         * lib/locale.in.h: Renamed from lib/locale_.h.
61893         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61894         locale_.h.
61895         * lib/math.in.h: Renamed from lib/math_.h.
61896         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61897         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61898         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61899         of netinet_in_.h. Add dependency.
61900         * lib/poll.in.h: Renamed from lib/poll_.h.
61901         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61902         * lib/search.in.h: Renamed from lib/search_.h.
61903         * modules/search (Files, Makefile.am): Use search.in.h instead of
61904         search_.h.
61905         * lib/signal.in.h: Renamed from lib/signal_.h.
61906         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61907         _signal.h.
61908         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61909         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61910         stdbool_.h.
61911         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61912         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61913         stdint_.h.
61914         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61915         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61916         stdio_.h.
61917         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61918         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61919         stdlib_.h.
61920         * lib/string.in.h: Renamed from lib/string_.h.
61921         * modules/string (Files, Makefile.am): Use string.in.h instead of
61922         string_.h.
61923         * doc/gnulib-tool.texi (Initial import): Update.
61924         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61925         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61926         of sys_select_.h. Add dependency.
61927         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61928         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61929         of sys_socket_.h.
61930         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61931         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61932         sys_stat_.h.
61933         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61934         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61935         sys_time_.h.
61936         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61937         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61938         sysexits_.h.
61939         * lib/time.in.h: Renamed from lib/time_.h.
61940         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61941         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61942         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61943         unistd_.h.
61944         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61945         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61946         wchar_.h.
61947         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61948         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61949         wctype_.h.
61950         * build-aux/bootstrap (slurp): Update.
61951         * lib/.cppi-disable: Update.
61952
61953 2007-09-30  Bruno Haible  <bruno@clisp.org>
61954
61955         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61956         Needed on BeOS.
61957
61958 2007-09-30  Bruno Haible  <bruno@clisp.org>
61959
61960         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61961
61962 2007-09-29  Bruno Haible  <bruno@clisp.org>
61963
61964         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61965
61966 2007-09-29  Bruno Haible  <bruno@clisp.org>
61967
61968         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61969         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61970         * build-aux/install-reloc: Compile also areadlink.c.
61971         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61972
61973 2007-09-29  Bruno Haible  <bruno@clisp.org>
61974
61975         * gnulib-tool (func_emit_initmacro_done): Indentation.
61976
61977 2007-09-29  Bruno Haible  <bruno@clisp.org>
61978
61979         * README: Add CVS checkout update instructions.
61980         Info from Bob Proulx <bob@proulx.com>.
61981
61982 2007-09-28  Eric Blake  <ebb9@byu.net>
61983
61984         Provide move-if-change.
61985         * build-aux/move-if-change: New file, based on best practice
61986         rather than any canonical upstream location.
61987
61988 2007-09-28  Jim Meyering  <jim@meyering.net>
61989
61990         Fix canonicalize loop-detection corner case.
61991         Do not attempt to stat the symlink values stored via seen_triple.
61992         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61993         on linux-2.6.18, (but not 2.6.22).
61994         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61995         triple_compare.  The former compares dev,ino,filename, while the latter
61996         would actually stat dirname(filename) when dev and ino were equal.
61997         * lib/hash-triple.c: Install <string.h>.
61998         (STREQ): Define.
61999         (triple_compare_ino_str): New function.
62000         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62001
62002 2007-09-28  Eric Blake  <ebb9@byu.net>
62003
62004         Enforce that AC_REPLACE_FUNCS files exist.
62005         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62006         override check for typos.
62007
62008         Fix test-closein on Solaris 10.
62009         * tests/test-closein.c (main): Don't assume stdin can be inherited
62010         closed on all systems.
62011         * tests/test-closein.sh: Likewise.
62012         Reported by Piotr Tarnowski.
62013
62014 2007-09-28  Jim Meyering  <jim@meyering.net>
62015
62016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62017
62018 2007-09-27  Jim Meyering  <jim@meyering.net>
62019
62020         canonicalize: Avoid a false-positive cycle failure.
62021         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62022         Sort.  Remove cycle-check.
62023         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62024         not cycle-check.h.
62025         (seen_triple): New function.
62026         (canonicalize_filename_mode): Use it instead of cycle-check.
62027         * tests/test-canonicalize.c: Add a test for this bug.
62028         * tests/test-canonicalize.sh: Set up and run the test.
62029
62030         New module, file-set, from coreutils.
62031         * modules/file-set: Define it.
62032         * lib/file-set.c, lib/file-set.h: Implement.
62033
62034         New module, hash-triple, from coreutils.
62035         * modules/hash-triple: Define it.
62036         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62037
62038 2007-09-25  Eric Blake  <ebb9@byu.net>
62039
62040         Fix strerror on Interix.
62041         * lib/string_.h (strerror): Declare replacement.
62042         * doc/functions/strerror.texi (strerror): Document the Interix
62043         shortcoming.
62044         * modules/string (Makefile.am): Support new hooks.
62045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62046         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62047         gl_FUNC_STRERROR_SEPARATE.
62048         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62049         * lib/strerror.c (rpl_strerror): Provide replacement.
62050         * modules/strerror (Depends-on): Add string.
62051         (configure.ac): Detect use of module.
62052         * tests/test-strerror.c: New file.
62053         * modules/strerror-tests: New test module.
62054         * modules/argp (Depends-on): Add strerror.
62055         * modules/error (Depends-on): Likewise.
62056         Reported by Martin Koeppe.
62057
62058 2007-09-24  Bruno Haible  <bruno@clisp.org>
62059
62060         * README: Update git instructions.
62061
62062 2007-09-24  Eric Blake  <ebb9@byu.net>
62063
62064         Revert fpending breakage from 2007-09-08.
62065         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62066         __fpending.c.
62067
62068 2007-09-24  Jim Meyering  <jim@meyering.net>
62069
62070         filenamecat.c: Add a test.
62071         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62072         showing how the function works when DIR is the empty string.
62073
62074 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62075
62076         * tests/test-canonicalize.sh: Turn on executable bit.
62077
62078 2007-09-19  Eric Blake  <ebb9@byu.net>
62079
62080         * README: Update CVS instructions.
62081
62082 2007-09-18  Bruno Haible  <bruno@clisp.org>
62083
62084         * modules/areadlink: New file.
62085         * lib/areadlink.h (areadlink): New declaration.
62086         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62087
62088 2007-09-17  Jim Meyering  <jim@meyering.net>
62089
62090         * lib/savewd.c (ESTALE) [!defined]: Define.
62091         Reported to be required on Interix by Martin Koeppe.
62092
62093 2007-09-17  Bruno Haible  <bruno@clisp.org>
62094
62095         * gnulib-tool (func_version): Use $version.
62096
62097 2007-09-16  Bruno Haible  <bruno@clisp.org>
62098
62099         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62100         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62101         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62102         Reported by Greg Schafer <gschafer@zip.com.au>.
62103
62104 2007-09-15  Bruno Haible  <bruno@clisp.org>
62105
62106         * gnulib-tool (sed): Try a little harder to make bash understand the
62107         alias.
62108         Reported by Bruce Korb <bruce.korb@gmail.com>.
62109
62110 2007-09-13  Eric Blake  <ebb9@byu.net>
62111
62112         * ChangeLog: Remove conflict markers.
62113
62114 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62115
62116         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62117         Reported by Bruno Haible <bruno@clisp.org>.
62118
62119 2007-09-12  Bruno Haible  <bruno@clisp.org>
62120
62121         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62122         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62123         is not defined.
62124
62125 2007-09-12  Eric Blake  <ebb9@byu.net>
62126
62127         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62128         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62129         Autoconf definition.
62130         * modules/euidaccess (Depends-on): Add extensions, for
62131         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62132         * modules/fnmatch (Depends-on): Likewise.
62133         * modules/getaddrinfo (Depends-on): Likewise.
62134         * modules/getdelim (Depends-on): Likewise.
62135         * modules/getline (Depends-on): Likewise.
62136         * modules/getsubopt (Depends-on): Likewise.
62137         * modules/gettext (Depends-on): Likewise.
62138         * modules/group-member (Depends-on): Likewise.
62139         * modules/mbchar (Depends-on): Likewise.
62140         * modules/memmem (Depends-on): Likewise.
62141         * modules/mempcpy (Depends-on): Likewise.
62142         * modules/memrchr (Depends-on): Likewise.
62143         * modules/pagealign_alloc (Depends-on): Likewise.
62144         * modules/readutmp (Depends-on): Likewise.
62145         * modules/stpcpy (Depends-on): Likewise.
62146         * modules/stpncpy (Depends-on): Likewise.
62147         * modules/strchrnul (Depends-on): Likewise.
62148         * modules/strndup (Depends-on): Likewise.
62149         * modules/strsep (Depends-on): Likewise.
62150         * modules/strverscmp (Depends-on): Likewise.
62151         * modules/vasprintf (Depends-on): Likewise.
62152         * modules/wcwidth (Depends-on): Likewise.
62153         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62154         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62155         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62156         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62157         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62158         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62159         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62160         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62161         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62162         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62163         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62164         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62165         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62166         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62167         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62168         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62169         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62170         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62172         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62173         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62174         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62175         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62176         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62177         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62179         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62180         so that lock.m4 can be used in gettext without extensions module.
62181
62182 2007-09-11  Bruno Haible  <bruno@clisp.org>
62183
62184         * m4/isc-posix.m4: Remove file.
62185         Suggested by Eric Blake.
62186
62187 2007-09-11  Eric Blake  <ebb9@byu.net>
62188
62189         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62190
62191 2007-09-10  Bruno Haible  <bruno@clisp.org>
62192
62193         * posix-modules: Fix typo in error message.
62194         Reported by Matt <mkraai@beckman.com>.
62195
62196 2007-09-09  Bruno Haible  <bruno@clisp.org>
62197
62198         * doc/functions/getdelim.texi: Update list of platforms lacking the
62199         function.
62200         * doc/functions/getline.texi: Likewise.
62201
62202 2007-09-09  Jim Meyering  <jim@meyering.net>
62203
62204         * lib/hash.c (hash_initialize): Detect calloc failure.
62205         Reported by Bruno Haible.
62206
62207 2007-09-09  Bruno Haible  <bruno@clisp.org>
62208
62209         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62210         malloc or realloc fails.
62211
62212 2007-09-09  Bruno Haible  <bruno@clisp.org>
62213
62214         * modules/getcwd (Depends-on): Add malloc-posix.
62215         * modules/glob (Depends-on): Likewise.
62216         * modules/putenv (Depends-on): Likewise.
62217         * modules/strdup (Depends-on): Likewise.
62218         * modules/getdelim (Depends-on): Add realloc-posix.
62219         * modules/read-file (Depends-on): Likewise.
62220
62221 2007-09-09  Bruno Haible  <bruno@clisp.org>
62222
62223         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62224         (gl_FUNC_MALLOC_POSIX): Require it.
62225         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62226         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62227         * modules/realloc (Files): Add m4/malloc.m4.
62228         * modules/calloc (Files): Likewise.
62229
62230 2007-09-09  Bruno Haible  <bruno@clisp.org>
62231
62232         * modules/malloc-posix: New file.
62233         * modules/malloc (Depends-on): Add malloc-posix.
62234         * lib/malloc.c: Include errno.h.
62235         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62236         and a POSIX-compatible malloc into a single function. Set ENOMEM
62237         when returning NULL.
62238         * m4/malloc.m4: New file.
62239         * doc/functions/malloc.texi: Mention the malloc-posix module.
62240         * lib/stdlib_.h (malloc): New declaration.
62241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62242         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62243         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62244         and HAVE_MALLOC_POSIX.
62245
62246 2007-09-09  Bruno Haible  <bruno@clisp.org>
62247
62248         * modules/realloc-posix: New file.
62249         * modules/realloc (Depends-on): Add realloc-posix.
62250         * lib/realloc.c: Include errno.h.
62251         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62252         and a POSIX-compatible realloc into a single function. Set ENOMEM
62253         when returning NULL.
62254         * m4/realloc.m4: New file.
62255         * doc/functions/realloc.texi: Mention the realloc-posix module.
62256         * lib/stdlib_.h (realloc): New declaration.
62257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62258         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62259         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62260         and HAVE_REALLOC_POSIX.
62261
62262 2007-09-09  Bruno Haible  <bruno@clisp.org>
62263
62264         * modules/calloc-posix: New file.
62265         * modules/calloc (Depends-on): Add calloc-posix.
62266         * lib/calloc.c: Include errno.h.
62267         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62268         and a POSIX-compatible calloc into a single function. Set ENOMEM
62269         when returning NULL.
62270         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62271         * doc/functions/calloc.texi: Mention the calloc-posix module.
62272         * lib/stdlib_.h (calloc): New declaration.
62273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62274         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62275         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62276         and HAVE_CALLOC_POSIX.
62277
62278 2007-09-09  Bruno Haible  <bruno@clisp.org>
62279
62280         Allow for modules to show an arbitrary notice.
62281         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62282         * gnulib-tool: New option --extract-notice.
62283         (func_usage): Document it.
62284         (sed_extract_prog): Update.
62285         (func_get_notice): New function.
62286         (func_modules_notice): New function.
62287         (func_import, func_create_testdir): Invoke it.
62288         Suggested by Jim Meyering.
62289
62290 2007-09-09  Bruno Haible  <bruno@clisp.org>
62291
62292         * gnulib-tool: New options --verbose, --quiet.
62293         (func_usage): Document them.
62294         (verbose): New variable.
62295         (func_execute_command): New function.
62296         (func_import): Don't show the module list and the file list if
62297         $verbose < 0.
62298         (func_create_testdir): Likewise. Use func_execute_command.
62299         (func_create_megatestdir): Use func_execute_command.
62300
62301 2007-09-08  Bruno Haible  <bruno@clisp.org>
62302
62303         * gnulib-tool (func_import): Prefer rsync over wget when available,
62304         for fetching the PO files.
62305
62306 2007-09-08  Bruno Haible  <bruno@clisp.org>
62307
62308         * posix-modules: New file. Portions copied from gnulib-tool.
62309         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62310
62311 2007-09-08  Jim Meyering  <jim@meyering.net>
62312
62313         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62314         * lib/fpending.h: Rename from __fpending.h.
62315         * lib/fpending.c: Rename from __fpending.c.
62316         Include "fpending.h", not "__fpending.h".
62317         * lib/__fpending.h, lib/__fpending.c: Remove files.
62318         * modules/fpending (Files): Reflect new file names.
62319         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62320
62321 2007-09-08  Bruno Haible  <bruno@clisp.org>
62322
62323         * m4/inttypes-h.m4: Remove stub file.
62324
62325 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62326
62327         * doc/headers/stdint.texi: Discuss #include_next issue.
62328
62329 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62330
62331         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62332
62333 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62334
62335         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62336         in variable name.
62337
62338 2007-09-03  Jim Meyering  <jim@meyering.net>
62339
62340         New module: git-version-gen.
62341         * modules/git-version-gen: New file.
62342
62343         Import changes from coreutils for bootstrap script.
62344
62345         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62346
62347         bootstrap: uses rsync to download the .po files
62348         * build-aux/bootstrap (po_download_command_format): New global.
62349         (download_po_files): Use rsync.
62350         (update_po_files): Don't remove .po files after download,
62351         so future rsync runs can take advantage of the copies.
62352
62353         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62354
62355         Solve the unnecessary-.po-file-regeneration problem once and for all.
62356         * build-aux/bootstrap (download_po_files): New function, renamed from
62357         get_translations.  Now, downloads, but doesn't update LINGUAS.
62358         (update_po_files): New function.
62359
62360         bootstrap: Ignore more.
62361         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62362         uniwidth to e.g., lib/.gitignore.
62363         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62364
62365         * build-aux/bootstrap: New setting: vc_ignore.
62366         (insert_sorted_if_absent): Create $file if absent.
62367         Adapt to new, possibly empty, list: $vc_ignore.
62368
62369         bootstrap: generate more ignorable names
62370         * build-aux/bootstrap (slurp): When generating ignorable names,
62371         also map .sin to .sed, .gperf to .c, and .y to .c.
62372
62373 2007-09-03  Jim Meyering  <jim@meyering.net>
62374
62375         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62376         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62377
62378 2007-09-02  Bruno Haible  <bruno@clisp.org>
62379
62380         Fix mis-recognition of 'mcs' on QNX 6.
62381         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62382         output contains the string "Mono".
62383         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62384         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62385
62386 2007-09-01  Bruno Haible  <bruno@clisp.org>
62387
62388         Fix collision between uniwidth/* and linebreak modules.
62389         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62390         u32_width): Remove declarations.
62391         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62392         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62393         streq3, streq2, streq1, streq0): Remove functions.
62394         (STREQ): Remove macro.
62395         (is_cjk_encoding): Remove function.
62396         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62397         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62398         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62399         * NEWS: Document the change.
62400
62401 2007-09-01  Bruno Haible  <bruno@clisp.org>
62402
62403         * lib/streq.h: Add double-inclusion guard.
62404
62405 2007-09-01  Karl Berry  <karl@gnu.org>
62406
62407         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62408
62409 2007-08-28  Jim Meyering  <jim@meyering.net>
62410
62411         Rename mreadlink_with_size to areadlink_with_size.
62412         * NEWS: Document the change.
62413         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62414         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62415         * lib/mreadlink.h: Rename this to...
62416         * lib/areadlink.h: ...this.
62417         * modules/mreadlink-with-size: Rename this to...
62418         * modules/areadlink-with-size: ...this.
62419         * lib/canonicalize.c: Reflect the renaming.
62420         * modules/canonicalize: Likewise.
62421
62422 2007-08-26  Bruno Haible  <bruno@clisp.org>
62423
62424         * gnulib-tool (func_import): When deciding which files to remove,
62425         consider also dangling symbolic links.
62426         Reported by Eric Blake.
62427
62428 2007-08-26  Bruno Haible  <bruno@clisp.org>
62429
62430         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62431
62432 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62433
62434         * lib/readline.c: Don't include getline.h, the prototype is now
62435         found in stdio.h.
62436
62437 2007-08-23  Jim Meyering  <jim@meyering.net>
62438
62439         Getdelim touchup.
62440         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62441         around the funlockfile call, since funlockfile never sets errno.
62442         Don't set errno upon failed realloc.
62443
62444 2007-08-22  Eric Blake  <ebb9@byu.net>
62445
62446         Getline touchups.
62447         * lib/getdelim.c (getdelim): Revert regression that required *n to
62448         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62449         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62450         getdelim, rather than whether implementation is missing.
62451         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62452         * lib/stdio_.h (getline): Also declare if replacement is
62453         required.
62454         * doc/functions/getdelim.texi: New file.
62455         * doc/functions/getline.texi: Likewise.
62456         * doc/gnulib.texi (Function Substitutes): Add new files.
62457         Reported by Bruno Haible.
62458
62459 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62460
62461         * users.txt: Add Guile.
62462
62463 2007-08-22  Eric Blake  <ebb9@byu.net>
62464
62465         * tests/test-getdelim.c (main): Use remove, not unlink.
62466         * tests/test-getline.c (main): Likewise.
62467
62468         Move getline and getdelim into stdio.h, per POSIX 200x.
62469         * modules/getline (Files): Remove getline.h.
62470         (Depends-on): Add stdio.
62471         (configure.ac): Add module indicator.
62472         * modules/getdelim (Files): Remove getdelim.h.
62473         (Depends-on): Add stdio.
62474         (configure.ac): Add module indicator.
62475         * modules/stdio (Makefile.am): Work with new indicators.
62476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62477         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62478         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62479         * lib/getdelim.h: Delete.
62480         * lib/getline.h: Delete.
62481         * lib/stdio_.h (getdelim, getline): Declare.
62482         * modules/getdelim-tests: New module.
62483         * modules/getline-tests: Likewise.
62484         * tests/test-getdelim.c: New file.
62485         * tests/test-getline.c: Likewise.
62486         * NEWS: Document the change.
62487         * lib/getline.c: Update choice of header.
62488         * lib/csharpcomp.c: Likewise.
62489         * lib/getpass.c: Likewise.
62490         * lib/javacomp.c: Likewise.
62491         * lib/javaversion.c: Likewise.
62492         * lib/yesno.c: Likewise.
62493         * lib/getdelim.c: Likewise.
62494         (getdelim): Set errno on failure, and avoid memory leak.
62495
62496 2007-08-19  Bruno Haible  <bruno@clisp.org>
62497
62498         * modules/closein (Depends-on): Add freadahead.
62499         * lib/closein.c: Include freadahead.h.
62500         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62501         is zero.
62502
62503 2007-08-19  Bruno Haible  <bruno@clisp.org>
62504
62505         * modules/freadahead-tests: New file.
62506         * tests/test-freadahead.sh: New file.
62507         * tests/test-freadahead.c: New file.
62508
62509         * modules/freadahead: New file.
62510         * lib/freadahead.h: New file.
62511         * lib/freadahead.c: New file.
62512         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62513         fbufmode, fpurge, freadable, fwritable.
62514
62515 2007-08-19  Eric Blake  <ebb9@byu.net>
62516
62517         Test yesno in combination with closein.
62518         * lib/yesno.c (yesno): Document use of stdin.
62519         * modules/yesno-tests (Files): New module.
62520         * tests/test-yesno.c (main): New file.
62521         * tests/test-yesno.sh: Likewise.
62522
62523 2007-08-19  Bruno Haible  <bruno@clisp.org>
62524
62525         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62526         * lib/fseeko.c (rpl_fseeko): Likewise.
62527         * lib/fseterr.c (fseterr): Likewise.
62528
62529 2007-08-19  Bruno Haible  <bruno@clisp.org>
62530
62531         * tests/test-lseek.c (main): Disable a test for BeOS.
62532         * doc/functions/lseek.texi: Document the BeOS bug.
62533
62534 2007-08-19  Bruno Haible  <bruno@clisp.org>
62535             Eric Blake  <ebb9@byu.net>
62536
62537         * lib/lseek.c: Include <sys/stat.h>.
62538         (rpl_lseek): Add workaround code also for Unix platforms.
62539         Needed for BeOS.
62540         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62541         * doc/functions/lseek.texi: Document BeOS definiency.
62542
62543 2007-08-18  Bruno Haible  <bruno@clisp.org>
62544
62545         * modules/fstrcmp-tests: New file.
62546         * tests/test-fstrcmp.c: New file.
62547
62548 2007-08-18  Bruno Haible  <bruno@clisp.org>
62549
62550         * modules/fstrcmp: New file, from GNU gettext with modifications.
62551         * lib/fstrcmp.h: New file, from GNU gettext.
62552         * lib/fstrcmp.c: New file, from GNU gettext.
62553         * MODULES.html.sh (String handling): Add fstrcmp.
62554
62555 2007-08-18  Bruno Haible  <bruno@clisp.org>
62556
62557         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62558         'bool'.
62559         (diag, compareseq): Remove const from the ctxt argument.
62560         (USE_HEURISTIC): Undefine at the end.
62561
62562 2007-08-18  Jim Meyering  <jim@meyering.net>
62563
62564         New file: lib/idcache.h
62565         * NEWS: Mention the addition.
62566         * modules/idcache (Files): Add lib/idcache.h
62567         * lib/idcache.c: Include "idcache.h".
62568         Don't include <sys/types.h>.
62569         Add a FIXME comment.
62570         Move file-scoped "static" declarations to the top.
62571         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62572
62573 2007-08-17  Bruno Haible  <bruno@clisp.org>
62574         and Paul Eggert  <eggert@cs.ucla.edu>
62575
62576         * MODULES.html.sh: Add diffseq.
62577         * modules/diffseq: New file.
62578         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62579         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62580
62581 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         Import changes from coreutils for bootstrap script.
62584
62585         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62586
62587         * build-aux/bootstrap (slurp): Work even in environments where
62588         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62589         current code does not slurp files whose names start with ".", and
62590         this looks like it might be a troublesome area.
62591
62592         2007-07-11  Jim Meyering  <jim@meyering.net>
62593
62594         If there's a GPL vN copyright comment, require that N == 3.
62595
62596         2007-07-08  Jim Meyering  <jim@meyering.net>
62597
62598         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62599         * build-aux/bootstrap (mam_template): Move definition out of loop.
62600
62601         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62602
62603         * build-aux/bootstrap (symlink_to_dir): Rename function from
62604         symlink_to_gnulib.  Add a directory parameter.  Update all
62605         callers.
62606         (cp_mark_as_generated): Also check for -- and link to -- files in
62607         gl/.
62608
62609         2007-07-08  Jim Meyering  <jim@meyering.net>
62610
62611         Adapt to deeper hierarchy in gnulib.
62612         * build-aux/bootstrap (symlink_to_dir): If the destination
62613         directory doesn't exist, create it. This is required at least for
62614         "lib/uniwidth/cjk.h".
62615
62616         2007-05-15  Jim Meyering  <jim@meyering.net>
62617
62618         * build-aux/bootstrap: Now that generated Makefile.am files
62619         are no longer under version control, they must be created at
62620         bootstrap time.
62621
62622 2007-08-14  Ben Pfaff  <blp@gnu.org>
62623
62624         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62625
62626 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62629         given the changes below.
62630         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62631         even on hosts that have padding bits beyond the supported 64.
62632
62633 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62634
62635         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62636         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62637         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62638         depends on it.
62639         (xstrtol_error): Remove.
62640         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62641         but with a different signature.
62642         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62643         * lib/xstrtol-error.c: Include exitfail.h.
62644         (xstrtol_fatal): New function, with a different signature from the
62645         old xstrtol_error, so that the caller need not worry about passing
62646         in an exit status, or about storage management of the option argument.
62647         (xstrtol_error): Now a static function.  Redo signature to
62648         implement xstrtol_fatal.  Output the correct number of hyphens in
62649         front of the option so that the caller need not worry about
62650         storage management.
62651         (N_): New macro.
62652         (_): Remove; not used now.
62653         * modules/xstrtol: Depend on getopt.
62654         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62655         of old STRTOL_FATAL_ERROR macro.
62656         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62657         of test program.
62658         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62659         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62660
62661 2007-08-08  Eric Blake  <ebb9@byu.net>
62662
62663         * lib/xstrtol-error.c: Add missing include.
62664
62665         Move xstrtol messages into gnulib domain, when --pobase is used.
62666         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62667         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62668         * modules/xstrtol (Files): Distribute new file.
62669         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62670         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62671         * tests/test-xstrtol.c: ...into new file.
62672         * tests/test-xstrtoul.c: Also test xstrtoul.
62673         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62674         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62675         * tests/test-xstrtol.sh: Drive the tests.
62676         * tests/test-xstrtoimax.sh: Likewise.
62677         * tests/test-xstrtoumax.sh: Likewise.
62678         * modules/xstrtol-tests: New module.
62679         * modules/xstrtoimax-tests: Likewise.
62680         * modules/xstrtoumax-tests: Likewise.
62681
62682 2007-08-08  Jim Meyering  <jim@meyering.net>
62683
62684         New function: mfile_name_concat.
62685         * lib/filenamecat.c (mfile_name_concat): New function, just like
62686         file_name_concat, but return NULL upon failure rather than exiting
62687         with a diagnostic.
62688         * lib/filenamecat.h: Declare it.
62689
62690 2007-08-07  Bruno Haible  <bruno@clisp.org>
62691
62692         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62693         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62694         warning from gcc.
62695         Reported by Eric Blake.
62696
62697 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62698
62699         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62700         * modules/crypto/arcfour (License): Likewise.
62701         * modules/crypto/des-tests (License): Likewise.
62702         * modules/crypto/gc-arctwo-tests (License): Likewise.
62703         * modules/crypto/gc-des-tests (License): Likewise.
62704         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62705         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62706         * modules/crypto/gc-md2-tests (License): Likewise.
62707         * modules/crypto/gc-md4-tests (License): Likewise.
62708         * modules/crypto/gc-md5-tests (License): Likewise.
62709         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62710         * modules/crypto/gc-rijndael-tests (License): Likewise.
62711         * modules/crypto/gc-sha1-tests (License): Likewise.
62712         * modules/crypto/gc-tests (License): Likewise.
62713         * modules/crypto/hmac-md5 (License): Likewise.
62714         * modules/crypto/hmac-sha1 (License): Likewise.
62715         * modules/crypto/md2-tests (License): Likewise.
62716         * modules/crypto/md4-tests (License): Likewise.
62717         * modules/crypto/md5 (License): Likewise.
62718         * modules/crypto/rijndael (License): Likewise.
62719         * modules/crypto/sha1 (License): Likewise.
62720         * modules/memxor (License): Likewise.
62721
62722 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62723         and Bruno Haible  <bruno@clisp.org>
62724
62725         * NEWS: Describe interface changes to human, xstrtol.
62726         * lib/human.h: Include <xstrtol.h>.
62727         (human_options): Return enum strtol_error, not int.  Remove
62728         bool arg; take int * instead.
62729         * lib/human.c: Don't include "gettext.h".
62730         (_): Remove; no longer used.
62731         Don't include <xstrtol.h>, since human.h does it.
62732         (human_options): Adjust to abovementioned interface changes.
62733         Do not report error to stderr; that's now the caller's
62734         responsibility.
62735         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62736         interface change.
62737         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62738         Str, Argument_type_string.  All uses changed.  Put " argument"
62739         in diagnostics to make them clearer.  Change wording of suffix
62740         message for clarity.
62741         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62742         Argument_type_string.
62743         (STRTOL_FATAL_WARN): Remove; no longer used.
62744         * modules/human (Depends-on): Remove gettext-h.
62745
62746 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62747
62748         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62749
62750 2007-07-31  Bruno Haible  <bruno@clisp.org>
62751
62752         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62753         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62754         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62755
62756 2007-07-31  Bruno Haible  <bruno@clisp.org>
62757
62758         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62759         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62760
62761 2007-07-30  Bruno Haible  <bruno@clisp.org>
62762
62763         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62764         * modules/c-ctype (License): Likewise.
62765         * modules/c-strcase (License): Likewise.
62766         * modules/check-version (License): Likewise.
62767         * modules/iconv (License): Likewise.
62768         * modules/iconv_open (License): Likewise.
62769         * modules/read-file (License): Likewise.
62770         * modules/striconv (License): Likewise.
62771         * modules/strverscmp (License): Likewise.
62772         * modules/vasprintf (License): Likewise.
62773         * modules/crypto/des (License): Likewise.
62774         * modules/crypto/gc (License): Likewise.
62775         * modules/crypto/gc-arcfour (License): Likewise.
62776         * modules/crypto/gc-arctwo (License): Likewise.
62777         * modules/crypto/gc-des (License): Likewise.
62778         * modules/crypto/gc-hmac-md5 (License): Likewise.
62779         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62780         * modules/crypto/gc-md2 (License): Likewise.
62781         * modules/crypto/gc-md4 (License): Likewise.
62782         * modules/crypto/gc-md5 (License): Likewise.
62783         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62784         * modules/crypto/gc-random (License): Likewise.
62785         * modules/crypto/gc-rijndael (License): Likewise.
62786         * modules/crypto/gc-sha1 (License): Likewise.
62787         * modules/crypto/md2 (License): Likewise.
62788         * modules/crypto/md4 (License): Likewise.
62789
62790 2007-07-30  Jim Meyering  <jim@meyering.net>
62791
62792         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62793         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62794         it has valid stat data.  This bug would cause du not to count the
62795         sizes of inaccessible directories.
62796         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62797         in <http://bugzilla.redhat.com/250077>.
62798
62799 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62800             Bruno Haible  <bruno@clisp.org>
62801
62802         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62803         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62804         #include_next, gives a diagnostic about it, but reports no error in
62805         the exit code.
62806         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62807
62808 2007-07-24  Ben Pfaff  <blp@gnu.org>
62809
62810         Improve name: "count-one-bits" is better than "popcount".
62811         * MODULES.html.sh: Update name.
62812         * lib/popcount.h: Renamed lib/count-one-bits.h.
62813         (popcount): Renamed count_one_bits.
62814         (popcountl): Renamed count_one_bits_l.
62815         (popcountll): Renamed count_one_bits_ll.
62816         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62817         * modules/popcount: Renamed module/count-one-bits.
62818         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62819         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62820
62821 2007-07-23  Ben Pfaff  <blp@gnu.org>
62822
62823         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62824         better code generation, and add U to large constants to avoid
62825         warnings, in non-GCC case.
62826         Suggested by Bruno Haible.
62827
62828 2007-07-23  Ben Pfaff  <blp@gnu.org>
62829
62830         * lib/popcount.h: Use verify_true instead of if...abort.
62831         * modules/popcount: Depend on verify module.
62832         Suggested by Jim Meyering.
62833
62834 2007-07-23  Bruno Haible  <bruno@clisp.org>
62835
62836         * gnulib-tool (func_import): Create a .cvsignore file also when the
62837         directory is not yet in CVS but the toplevel directory is. When
62838         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62839         Reported by Karl Berry.
62840
62841 2007-07-22  Ben Pfaff  <blp@gnu.org>
62842
62843         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62844         case.
62845         Suggested by Eric Blake.
62846
62847 2007-07-22  Ben Pfaff  <blp@gnu.org>
62848
62849         New module: popcount.
62850         * MODULES.html.sh: Add popcount.
62851         * modules/popcount: New file.
62852         * modules/popcount-tests: New file.
62853         * tests/test-popcount.c: New file.
62854         * lib/popcount.h: New file.
62855         * m4/popcount.m4: New file.
62856
62857 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62858
62859         * build-aux/announce-gen: Update to GPLv3.
62860
62861         * build-aux/config.guess: Update from config.
62862
62863 2007-07-21  Bruno Haible  <bruno@clisp.org>
62864
62865         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62866         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62867
62868 2007-07-20  Jim Meyering  <jim@meyering.net>
62869
62870         * check-module: Diagnose a self-dependency.
62871
62872 2007-07-19  Bruno Haible  <bruno@clisp.org>
62873
62874         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62875         empty.
62876         Reported by Eric Blake.
62877
62878 2007-07-18  Bruno Haible  <bruno@clisp.org>
62879
62880         * gnulib-tool: New options --po-base, --po-domain.
62881         (func_usage): Document them.
62882         (pobase, po_domain): New variables.
62883         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62884         DEFAULT_TEXT_DOMAIN.
62885         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62886         (func_import): Consider pobase and po_domain. Create a po/ directory.
62887         (func_create_testdir): Set pobase and po_domain to empty.
62888         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62889         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62890
62891 2007-07-18  Bruno Haible  <bruno@clisp.org>
62892
62893         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62894         EXTRA_DIST augmentation for files in build-aux/.
62895
62896 2007-07-16  Bruno Haible  <bruno@clisp.org>
62897
62898         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62899         * modules/getdelim (License): Likewise.
62900
62901 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62902
62903         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62904         * modules/d-type (License): Likewise.
62905         * modules/extensions (License): Likewise.
62906         * modules/fnmatch (License): Likewise.
62907         * modules/fseeko (License): Likewise.
62908         * modules/getaddrinfo (License): Likewise.
62909         * modules/getline (License): Likewise.
62910         * modules/getlogin_r (License): Likewise.
62911         * modules/getpass (License): Likewise.
62912         * modules/gettimeofday (License): Likewise.
62913         * modules/glob (License): Likewise.
62914         * modules/inet_ntop (License): Likewise.
62915         * modules/malloc (License): Likewise.
62916         * modules/malloca (License): Likewise.
62917         * modules/memmem (License): Likewise.
62918         * modules/mempcpy (License): Likewise.
62919         * modules/memset (License): Likewise.
62920         * modules/minmax (License): Likewise.
62921         * modules/mktime (License): Likewise.
62922         * modules/netinet_in (License): Likewise.
62923         * modules/pathmax (License): Likewise.
62924         * modules/poll (License): Likewise.
62925         * modules/regex (License): Likewise.
62926         * modules/snprintf (License): Likewise.
62927         * modules/stdbool (License): Likewise.
62928         * modules/stdint (License): Likewise.
62929         * modules/stdio (License): Likewise.
62930         * modules/strcase (License): Likewise.
62931         * modules/strcasestr (License): Likewise.
62932         * modules/strdup (License): Likewise.
62933         * modules/string (License): Likewise.
62934         * modules/strndup (License): Likewise.
62935         * modules/strnlen (License): Likewise.
62936         * modules/strpbrk (License): Likewise.
62937         * modules/strptime (License): Likewise.
62938         * modules/strsep (License): Likewise.
62939         * modules/sys_select (License): Likewise.
62940         * modules/sys_socket (License): Likewise.
62941         * modules/sys_stat (License): Likewise.
62942         * modules/sys_time (License): Likewise.
62943         * modules/time (License): Likewise.
62944         * modules/time_r (License): Likewise.
62945         * modules/timegm (License): Likewise.
62946         * modules/unistd (License): Likewise.
62947         * modules/vsnprintf (License): Likewise.
62948         * modules/wctype (License): Likewise.
62949
62950 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62951
62952         * modules/argz (License): LGPLv2+.
62953
62954 2007-07-15  Karl Berry  <karl@gnu.org>
62955
62956         * doc/gnulib.texi: revise node structure per new fdl.texi.
62957
62958 2007-07-14  Bruno Haible  <bruno@clisp.org>
62959
62960         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62961         the output file.
62962         * lib/uniname/uninames.h: Regenerated.
62963
62964 2007-07-14  Karl Berry  <karl@gnu.org>
62965
62966         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62967         omitting sectioning and index commands.
62968
62969 2007-07-13  Bruno Haible  <bruno@clisp.org>
62970
62971         New gnulib-tool option --more-symlinks.
62972         * gnulib-tool (func_usage): Document --more-symlinks.
62973         (do_copyrights): New variable.
62974         Recognize option --more-symlinks.
62975         (func_import): Don't add a copyright notice transform to
62976         sed_transform_lib_file if do_copyrights is empty.
62977
62978 2007-07-13  Bruno Haible  <bruno@clisp.org>
62979
62980         * lib/vasnprintf.c (decimal_point_char): Define also if
62981         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62982         && !NEED_PRINTF_DIRECTIVE_A.
62983         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62984         Gary V. Vaughan <gary@gnu.org>.
62985
62986 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62987
62988         * lib/inttypes_.h: Undo previous change, since it was fixed
62989         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62990
62991 2007-07-13  Bruno Haible  <bruno@clisp.org>
62992
62993         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62994         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62995
62996 2007-07-13  Jim Meyering  <jim@meyering.net>
62997
62998         df: Don't fail for Tru64's "file-on-file mount".
62999         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63000         so we fall through and use statfs instead.  Details here:
63001         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63002         Reported by Albert Chin.
63003
63004 2007-07-13  Bruno Haible  <bruno@clisp.org>
63005
63006         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63007         * modules/configmake (License): Likewise.
63008         * modules/gettext (License): Likewise.
63009         * modules/gettext-h (License): Likewise.
63010         * modules/include_next (License): Likewise.
63011         * modules/link-warning (License): Likewise.
63012         * modules/localcharset (License): Likewise.
63013         * modules/localename (License): Likewise.
63014         * modules/lock (License): Likewise.
63015         * modules/relocatable-lib-lgpl (License): Likewise.
63016         * modules/size_max (License): Likewise.
63017         * modules/vasnprintf (License): Likewise.
63018         * modules/wchar (License): Likewise.
63019         * modules/xsize (License): Likewise.
63020
63021 2007-07-13  Bruno Haible  <bruno@clisp.org>
63022
63023         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63024         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63025
63026 2007-07-12  Bruno Haible  <bruno@clisp.org>
63027
63028         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63029         in the modules files.
63030
63031 2007-07-11  Karl Berry  <karl@gnu.org>
63032
63033         * MODULES.html.sh (func_module): use
63034          sed -e '\|^'"${includefile}"'$|d'
63035          instead of /.../d, to avoid errors on $includefile's containing /.
63036
63037 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63038
63039         * gnulib-tool (func_import): Avoid duplication of --avoid
63040         statements
63041         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63042         names to `_' in variable names.
63043
63044 2007-07-10  Eric Blake  <ebb9@byu.net>
63045
63046         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63047         * NEWS: Document this change.
63048
63049 2007-07-08  Bruno Haible  <bruno@clisp.org>
63050
63051         Update to Unicode 5.0.
63052         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63053         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63054         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63055         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63056         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63057         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63058         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63059         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63060         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63061         U+10A3F, U+1D242..U+1D244.
63062         (nonspacing_table_ind): Update.
63063         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63064         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63065
63066 2007-07-08  Bruno Haible  <bruno@clisp.org>
63067
63068         Update to Unicode 5.0.
63069         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63070         code transform. Extend the name index field of unicode_name_to_code and
63071         unicode_code_to_name from 16 to 24 bits.
63072         * lib/uniname/uniname.c (unicode_character_name,
63073         unicode_name_character): Add the range 0x12xxx to the code transform.
63074         * lib/uniname/uninames.h: Regenerated.
63075         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63076
63077 2007-07-07  Bruno Haible  <bruno@clisp.org>
63078
63079         * modules/wcwidth-tests: New file.
63080         * tests/test-wcwidth.c: New file.
63081
63082         Work around MacOS X wcwidth() bug.
63083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63084         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63085         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63086         original wcwidth in non-UTF-8 locales.
63087         * modules/wcwidth (Depends-on): Add localcharset, streq,
63088         uniwidth/width.
63089         * doc/functions/wcwidth.texi: Update.
63090
63091 2007-07-07  Bruno Haible  <bruno@clisp.org>
63092
63093         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63094         (wcwidth): New declaration.
63095         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63096         macros.
63097         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63098         here. Prepare for creating <wchar.h> unconditionally.
63099         * modules/wchar (Depends-on): Add link-warning.
63100         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63101         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63102         * lib/wcwidth.h: Remove file.
63103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63104         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63105         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63106         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63107         (Include): Replace wcwidth.h with <wchar.h>.
63108         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63109         * lib/mbchar.h: Don't include wcwidth.h.
63110         * lib/mbswidth.c: Likewise.
63111         * NEWS: Mention the change.
63112
63113 2007-07-07  Bruno Haible  <bruno@clisp.org>
63114
63115         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63116         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63117         definition with an external declaration.
63118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63119         defined as a function. Remove AC_C_INLINE requirement.
63120         * modules/wcwidth (Files): Add lib/wcwidth.c.
63121         (Makefile.am): Remove redundant statement.
63122
63123 2007-07-07  Bruno Haible  <bruno@clisp.org>
63124
63125         * MODULES.html.sh (Unicode string functions): Add the new modules.
63126
63127         * tests/uniwidth/test-u32-strwidth.c: New file.
63128         * modules/uniwidth/u32-strwidth-tests: New file.
63129
63130         * lib/uniwidth/u32-strwidth.c: New file.
63131         * modules/uniwidth/u32-strwidth: New file.
63132
63133         * tests/uniwidth/test-u16-strwidth.c: New file.
63134         * modules/uniwidth/u16-strwidth-tests: New file.
63135
63136         * lib/uniwidth/u16-strwidth.c: New file.
63137         * modules/uniwidth/u16-strwidth: New file.
63138
63139         * tests/uniwidth/test-u8-strwidth.c: New file.
63140         * modules/uniwidth/u8-strwidth-tests: New file.
63141
63142         * lib/uniwidth/u8-strwidth.c: New file.
63143         * modules/uniwidth/u8-strwidth: New file.
63144
63145         * tests/uniwidth/test-u32-width.c: New file.
63146         * modules/uniwidth/u32-width-tests: New file.
63147
63148         * lib/uniwidth/u32-width.c: New file.
63149         * modules/uniwidth/u32-width: New file.
63150
63151         * tests/uniwidth/test-u16-width.c: New file.
63152         * modules/uniwidth/u16-width-tests: New file.
63153
63154         * lib/uniwidth/u16-width.c: New file.
63155         * modules/uniwidth/u16-width: New file.
63156
63157         * tests/uniwidth/test-u8-width.c: New file.
63158         * modules/uniwidth/u8-width-tests: New file.
63159
63160         * lib/uniwidth/u8-width.c: New file.
63161         * modules/uniwidth/u8-width: New file.
63162
63163         * tests/uniwidth/test-uc_width.c: New file.
63164         * modules/uniwidth/width-tests: New file.
63165
63166         * lib/uniwidth/width.c: New file, from GNU libiconv.
63167         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63168         * modules/uniwidth/width: New file.
63169
63170         * lib/uniwidth.h: New file, from GNU libiconv.
63171         * modules/uniwidth/base: New file.
63172
63173 2007-07-07  Bruno Haible  <bruno@clisp.org>
63174
63175         * lib/uniname.h: New file, from GNU gettext.
63176         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63177         * lib/uniname/uninames.h: New file, from GNU gettext.
63178         * lib/uniname/uniname.c: New file, from GNU gettext.
63179         * tests/uniname/test-uninames.sh: New file.
63180         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63181         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63182         * modules/uniname/base: New file.
63183         * modules/uniname/uniname: New file.
63184         * modules/uniname/uniname-tests: New file.
63185         * MODULES.html.sh (Unicode string functions): Add the new modules.
63186
63187 2007-07-06  Bruno Haible  <bruno@clisp.org>
63188
63189         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63190
63191 2007-07-06  Bruno Haible  <bruno@clisp.org>
63192
63193         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63194         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63195         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63196         include <sys/time.h>.
63197         Reported by Eric Blake.
63198
63199 2007-07-06  Eric Blake  <ebb9@byu.net>
63200
63201         Fix testing canonicalize on cygwin.
63202         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63203         Revert patch from 2007-06-19.
63204         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63205         canonicalize module is also in use.
63206         * tests/test-canonicalize.c: New file.
63207         * tests/test-canonicalize.sh: Likewise.
63208         * modules/canonicalize-tests: Likewise.
63209
63210 2007-07-06  Jim Meyering  <jim@meyering.net>
63211
63212         * lib/getugroups.c (getugroups): Detect getgrent failure.
63213         Adjust comment to reflect reality: this function may return -1.
63214
63215 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63216
63217         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63218         the new TP address.
63219         (usage): Fix typo
63220         (gnulib_mk): New variable.
63221
63222 2007-07-05  Jim Meyering  <jim@meyering.net>
63223
63224         Don't let endgrent clobber errno, no matter how improbable.
63225         * lib/getugroups.c (getugroups): Save and restore errno around
63226         endgrent call.
63227
63228         Close the group DB even when failing with 2^31 or more members.
63229         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63230
63231 2007-07-04  Jim Meyering  <jim@meyering.net>
63232
63233         * lib/getugroups.h: New file.
63234         * lib/getugroups.c: Include "getugroups.h".
63235         Remove uses of "register" keyword.
63236         Move local variable, "cp", down into scope where used.
63237         Give "username" parameter the "const" attribute.
63238         * modules/getugroups (Files): Add lib/getugroups.h
63239
63240 2007-07-04  Karl Berry  <karl@gnu.org>
63241
63242         * MODULES.html.sh (func_all_modules): Complete rename of
63243         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63244
63245 2007-07-02  Bruno Haible  <bruno@clisp.org>
63246
63247         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63248         mode, when inttypes.h comes from gnulib.
63249         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63250
63251 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63252
63253         * NEWS: Mention lgpl module name change.
63254
63255         * modules/lgpl-2.1: Renamed from lgpl.
63256
63257         * NEWS: Mention gpl module name change.
63258
63259         * modules/gpl-3.0: New file, based on gpl-2.0.
63260
63261         * modules/gpl-2.0: Renamed from gpl.
63262
63263         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63264         doc/gpl-2.0.texi.
63265
63266 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63267
63268         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63269         #define __STDC_LIMIT_MACROS temporarily while including
63270         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63271         Problem reported by Joel E. Denny in
63272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63273
63274 2007-07-01  Bruno Haible  <bruno@clisp.org>
63275
63276         * lib/unistdio.h: New file.
63277         * lib/unistdio/u-asnprintf.h: New file.
63278         * lib/unistdio/u-asprintf.h: New file.
63279         * lib/unistdio/u-printf-args.c: New file.
63280         * lib/unistdio/u-printf-args.h: New file.
63281         * lib/unistdio/u-printf-parse.h: New file.
63282         * lib/unistdio/u-snprintf.h: New file.
63283         * lib/unistdio/u-sprintf.h: New file.
63284         * lib/unistdio/u-vasprintf.h: New file.
63285         * lib/unistdio/u-vsnprintf.h: New file.
63286         * lib/unistdio/u-vsprintf.h: New file.
63287         * lib/unistdio/ulc-asnprintf.c: New file.
63288         * lib/unistdio/ulc-asprintf.c: New file.
63289         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63290         * lib/unistdio/ulc-printf-parse.c: New file.
63291         * lib/unistdio/ulc-snprintf.c: New file.
63292         * lib/unistdio/ulc-sprintf.c: New file.
63293         * lib/unistdio/ulc-vasnprintf.c: New file.
63294         * lib/unistdio/ulc-vasprintf.c: New file.
63295         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63296         * lib/unistdio/ulc-vsnprintf.c: New file.
63297         * lib/unistdio/ulc-vsprintf.c: New file.
63298         * lib/unistdio/u8-asnprintf.c: New file.
63299         * lib/unistdio/u8-asprintf.c: New file.
63300         * lib/unistdio/u8-printf-parse.c: New file.
63301         * lib/unistdio/u8-snprintf.c: New file.
63302         * lib/unistdio/u8-sprintf.c: New file.
63303         * lib/unistdio/u8-vasnprintf.c: New file.
63304         * lib/unistdio/u8-vasprintf.c: New file.
63305         * lib/unistdio/u8-vsnprintf.c: New file.
63306         * lib/unistdio/u8-vsprintf.c: New file.
63307         * lib/unistdio/u8-u8-asnprintf.c: New file.
63308         * lib/unistdio/u8-u8-asprintf.c: New file.
63309         * lib/unistdio/u8-u8-snprintf.c: New file.
63310         * lib/unistdio/u8-u8-sprintf.c: New file.
63311         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63312         * lib/unistdio/u8-u8-vasprintf.c: New file.
63313         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63314         * lib/unistdio/u8-u8-vsprintf.c: New file.
63315         * lib/unistdio/u16-asnprintf.c: New file.
63316         * lib/unistdio/u16-asprintf.c: New file.
63317         * lib/unistdio/u16-printf-parse.c: New file.
63318         * lib/unistdio/u16-snprintf.c: New file.
63319         * lib/unistdio/u16-sprintf.c: New file.
63320         * lib/unistdio/u16-vasnprintf.c: New file.
63321         * lib/unistdio/u16-vasprintf.c: New file.
63322         * lib/unistdio/u16-vsnprintf.c: New file.
63323         * lib/unistdio/u16-vsprintf.c: New file.
63324         * lib/unistdio/u16-u16-asnprintf.c: New file.
63325         * lib/unistdio/u16-u16-asprintf.c: New file.
63326         * lib/unistdio/u16-u16-snprintf.c: New file.
63327         * lib/unistdio/u16-u16-sprintf.c: New file.
63328         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63329         * lib/unistdio/u16-u16-vasprintf.c: New file.
63330         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63331         * lib/unistdio/u16-u16-vsprintf.c: New file.
63332         * lib/unistdio/u32-asnprintf.c: New file.
63333         * lib/unistdio/u32-asprintf.c: New file.
63334         * lib/unistdio/u32-printf-parse.c: New file.
63335         * lib/unistdio/u32-snprintf.c: New file.
63336         * lib/unistdio/u32-sprintf.c: New file.
63337         * lib/unistdio/u32-vasnprintf.c: New file.
63338         * lib/unistdio/u32-vasprintf.c: New file.
63339         * lib/unistdio/u32-vsnprintf.c: New file.
63340         * lib/unistdio/u32-vsprintf.c: New file.
63341         * lib/unistdio/u32-u32-asnprintf.c: New file.
63342         * lib/unistdio/u32-u32-asprintf.c: New file.
63343         * lib/unistdio/u32-u32-snprintf.c: New file.
63344         * lib/unistdio/u32-u32-sprintf.c: New file.
63345         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63346         * lib/unistdio/u32-u32-vasprintf.c: New file.
63347         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63348         * lib/unistdio/u32-u32-vsprintf.c: New file.
63349         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63350         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63351         * tests/unistdio/test-ulc-printf1.h: New file.
63352         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63353         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63354         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63355         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63356         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63357         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63358         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63359         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63360         * tests/unistdio/test-u8-asnprintf1.c: New file.
63361         * tests/unistdio/test-u8-asnprintf1.h: New file.
63362         * tests/unistdio/test-u8-printf1.h: New file.
63363         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63364         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63365         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63366         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63367         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63368         * tests/unistdio/test-u8-vasprintf1.c: New file.
63369         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63370         * tests/unistdio/test-u8-vsprintf1.c: New file.
63371         * tests/unistdio/test-u16-asnprintf1.c: New file.
63372         * tests/unistdio/test-u16-asnprintf1.h: New file.
63373         * tests/unistdio/test-u16-printf1.h: New file.
63374         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63375         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63376         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63377         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63378         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63379         * tests/unistdio/test-u16-vasprintf1.c: New file.
63380         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63381         * tests/unistdio/test-u16-vsprintf1.c: New file.
63382         * tests/unistdio/test-u32-asnprintf1.c: New file.
63383         * tests/unistdio/test-u32-asnprintf1.h: New file.
63384         * tests/unistdio/test-u32-printf1.h: New file.
63385         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63386         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63387         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63388         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63389         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63390         * tests/unistdio/test-u32-vasprintf1.c: New file.
63391         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63392         * tests/unistdio/test-u32-vsprintf1.c: New file.
63393         * modules/unistdio/base: New file.
63394         * modules/unistdio/u-printf-args: New file.
63395         * modules/unistdio/ulc-asnprintf: New file.
63396         * modules/unistdio/ulc-asprintf: New file.
63397         * modules/unistdio/ulc-fprintf: New file.
63398         * modules/unistdio/ulc-printf-parse: New file.
63399         * modules/unistdio/ulc-snprintf: New file.
63400         * modules/unistdio/ulc-sprintf: New file.
63401         * modules/unistdio/ulc-vasnprintf: New file.
63402         * modules/unistdio/ulc-vasprintf: New file.
63403         * modules/unistdio/ulc-vfprintf: New file.
63404         * modules/unistdio/ulc-vsnprintf: New file.
63405         * modules/unistdio/ulc-vsprintf: New file.
63406         * modules/unistdio/u8-asnprintf: New file.
63407         * modules/unistdio/u8-asprintf: New file.
63408         * modules/unistdio/u8-printf-parse: New file.
63409         * modules/unistdio/u8-snprintf: New file.
63410         * modules/unistdio/u8-sprintf: New file.
63411         * modules/unistdio/u8-vasnprintf: New file.
63412         * modules/unistdio/u8-vasprintf: New file.
63413         * modules/unistdio/u8-vsnprintf: New file.
63414         * modules/unistdio/u8-vsprintf: New file.
63415         * modules/unistdio/u8-u8-asnprintf: New file.
63416         * modules/unistdio/u8-u8-asprintf: New file.
63417         * modules/unistdio/u8-u8-snprintf: New file.
63418         * modules/unistdio/u8-u8-sprintf: New file.
63419         * modules/unistdio/u8-u8-vasnprintf: New file.
63420         * modules/unistdio/u8-u8-vasprintf: New file.
63421         * modules/unistdio/u8-u8-vsnprintf: New file.
63422         * modules/unistdio/u8-u8-vsprintf: New file.
63423         * modules/unistdio/u16-asnprintf: New file.
63424         * modules/unistdio/u16-asprintf: New file.
63425         * modules/unistdio/u16-printf-parse: New file.
63426         * modules/unistdio/u16-snprintf: New file.
63427         * modules/unistdio/u16-sprintf: New file.
63428         * modules/unistdio/u16-vasnprintf: New file.
63429         * modules/unistdio/u16-vasprintf: New file.
63430         * modules/unistdio/u16-vsnprintf: New file.
63431         * modules/unistdio/u16-vsprintf: New file.
63432         * modules/unistdio/u16-u16-asnprintf: New file.
63433         * modules/unistdio/u16-u16-asprintf: New file.
63434         * modules/unistdio/u16-u16-snprintf: New file.
63435         * modules/unistdio/u16-u16-sprintf: New file.
63436         * modules/unistdio/u16-u16-vasnprintf: New file.
63437         * modules/unistdio/u16-u16-vasprintf: New file.
63438         * modules/unistdio/u16-u16-vsnprintf: New file.
63439         * modules/unistdio/u16-u16-vsprintf: New file.
63440         * modules/unistdio/u32-asnprintf: New file.
63441         * modules/unistdio/u32-asprintf: New file.
63442         * modules/unistdio/u32-printf-parse: New file.
63443         * modules/unistdio/u32-snprintf: New file.
63444         * modules/unistdio/u32-sprintf: New file.
63445         * modules/unistdio/u32-vasnprintf: New file.
63446         * modules/unistdio/u32-vasprintf: New file.
63447         * modules/unistdio/u32-vsnprintf: New file.
63448         * modules/unistdio/u32-vsprintf: New file.
63449         * modules/unistdio/u32-u32-asnprintf: New file.
63450         * modules/unistdio/u32-u32-asprintf: New file.
63451         * modules/unistdio/u32-u32-snprintf: New file.
63452         * modules/unistdio/u32-u32-sprintf: New file.
63453         * modules/unistdio/u32-u32-vasnprintf: New file.
63454         * modules/unistdio/u32-u32-vasprintf: New file.
63455         * modules/unistdio/u32-u32-vsnprintf: New file.
63456         * modules/unistdio/u32-u32-vsprintf: New file.
63457         * modules/unistdio/ulc-asnprintf-tests: New file.
63458         * modules/unistdio/ulc-vasnprintf-tests: New file.
63459         * modules/unistdio/ulc-vasprintf-tests: New file.
63460         * modules/unistdio/ulc-vsnprintf-tests: New file.
63461         * modules/unistdio/ulc-vsprintf-tests: New file.
63462         * modules/unistdio/u8-asnprintf-tests: New file.
63463         * modules/unistdio/u8-vasnprintf-tests: New file.
63464         * modules/unistdio/u8-vasprintf-tests: New file.
63465         * modules/unistdio/u8-vsnprintf-tests: New file.
63466         * modules/unistdio/u8-vsprintf-tests: New file.
63467         * modules/unistdio/u16-asnprintf-tests: New file.
63468         * modules/unistdio/u16-vasnprintf-tests: New file.
63469         * modules/unistdio/u16-vasprintf-tests: New file.
63470         * modules/unistdio/u16-vsnprintf-tests: New file.
63471         * modules/unistdio/u16-vsprintf-tests: New file.
63472         * modules/unistdio/u32-asnprintf-tests: New file.
63473         * modules/unistdio/u32-vasnprintf-tests: New file.
63474         * modules/unistdio/u32-vasprintf-tests: New file.
63475         * modules/unistdio/u32-vsnprintf-tests: New file.
63476         * modules/unistdio/u32-vsprintf-tests: New file.
63477         * MODULES.html.sh (Unicode string functions): Add the new modules.
63478
63479 2007-07-01  Bruno Haible  <bruno@clisp.org>
63480
63481         * lib/sprintf.c (sprintf): Limit the available length estimation,
63482         to avoid address wraparound.
63483         * lib/vsprintf.c (vsprintf): Likewise.
63484         * modules/sprintf-posix (Dependencies): Add stdint.
63485         * modules/vsprintf-posix (Dependencies): Likewise.
63486
63487 2007-07-01  Bruno Haible  <bruno@clisp.org>
63488
63489         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63490         Windows PATH as well. Conservative double-quoting. Comments.
63491
63492 2007-07-01  Bruno Haible  <bruno@clisp.org>
63493             Eric Blake  <ebb9@byu.net>
63494             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63495
63496         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63497         empty components in $PATH, denoting '.'.
63498
63499 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63500
63501         * gnulib-tool: Fix indentation.
63502         (func_create_megatestdir): Likewise.
63503         Report by Bruno Haible.
63504
63505 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63506
63507         Sync from Automake.
63508         * build-aux/gnupload: Fix shell portability issues with for loops.
63509         Report by Karl Berry.
63510
63511 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63512
63513         * build-aux/maint.mk (POURL): Use translationproject.org.
63514
63515 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63516             Bruno Haible  <bruno@clisp.org>
63517
63518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63519         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63520         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63521         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63522         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63523
63524 2007-06-27  Bruno Haible  <bruno@clisp.org>
63525
63526         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63527         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63528
63529 2007-06-26  Karl Berry  <karl@gnu.org>
63530
63531         * MODULES.html.sh: remove xreadlink-with-size.
63532
63533 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63534
63535         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63536         method that I hope also handles the double-include problem noted
63537         by Bruno Haible in
63538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63539
63540 2007-06-23  Bruno Haible  <bruno@clisp.org>
63541
63542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63543         Don't let the 'mostlyclean' target fail if the last subdirectory could
63544         not be removed.
63545         Reported by Karl Berry.
63546
63547 2007-06-23  Bruno Haible  <bruno@clisp.org>
63548
63549         * gnulib-tool (echo): Add a speedier workaround for ksh.
63550         * tests/test-echo.sh: Likewise.
63551
63552 2007-06-23  Bruno Haible  <bruno@clisp.org>
63553
63554         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63555         * tests/test-echo.sh: Likewise.
63556
63557 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63558
63559         * gnulib-tool (IFS): Initialize early, so we don't set it to
63560         empty later.
63561         (self_abspathname): Rewrite algorithm to set it, reindent.
63562         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63563         (func_create_megatestdir): Merge some sed scripts.
63564
63565 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63566
63567         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63568         exposed by Sun Studio 11 cc on Solaris 8.
63569
63570 2007-06-22  Bruno Haible  <bruno@clisp.org>
63571
63572         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63573         backslashes.
63574         * tests/test-echo.sh: New file.
63575
63576 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63577
63578         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63579         simplify `sed_replace_build_aux' scripts, they are portable but
63580         echoing them with `echo' is not.
63581         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63582
63583 2007-06-21  Karl Berry  <karl@gnu.org>
63584
63585         * config/srclist.txt: guess we can't handle the licenses via
63586         srclist at the moment.
63587
63588 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63589
63590         * MODULES.html.sh: Add include_next.
63591         * modules/include_next: New file.
63592
63593 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63596         INCLUDE_NEXT.
63597         (gl_CHECK_NEXT_HEADERS): New macro.
63598         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63599         the obsolescent gl_ABSOLUTE_HEADER.
63600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63601         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63602         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63603         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63604         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63605         * m4/math_h.m4 (gl_MATH_H): Likewise.
63606         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63607         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63608         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63609         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63610         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63611         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63612         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63613         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63614         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63616         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63617         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63618         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63619         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63620         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63621         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63622         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63623         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63624         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63625         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63626         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63627         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63628         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63629         * lib/float_.h: Likewise.
63630         * lib/inttypes_.h: Likewise.
63631         * lib/math_.h: Likewise.
63632         * lib/search_.h: Likewise.
63633         * lib/signal_.h: Likewise.
63634         * lib/stdint_.h: Likewise.
63635         * lib/stdio_.h: Likewise.
63636         * lib/stdlib_.h: Likewise.
63637         * lib/string_.h: Likewise.
63638         * lib/sys_stat_.h: Likewise.
63639         * lib/sys_time_.h: Likewise.
63640         * lib/time_.h: Likewise.
63641         * lib/unistd_.h: Likewise.
63642         * lib/wchar_.h: Likewise.
63643         * lib/wctype_.h: Likewise.
63644         * lib/dirent_.h: Likewise.
63645         * lib/iconv_.h: Likewise.
63646         * lib/locale_.h: Likewise.
63647         * lib/netinet_in_.h: Likewise.
63648         * lib/sys_select_.h: Likewise.
63649         * lib/sys_socket_.h: Likewise.
63650         * lib/sysexits_.h: Likewise.
63651         * modules/fcntl (Depends-on): Depend on include_next, not
63652         absolute_header.
63653         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63654         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63655         * modules/fchdir: Likewise.
63656         * modules/float: Likewise.
63657         * modules/iconv_open: Likewise.
63658         * modules/inttypes: Likewise.
63659         * modules/locale: Likewise.
63660         * modules/math: Likewise.
63661         * modules/netinet_in: Likewise.
63662         * modules/search: Likewise.
63663         * modules/signal: Likewise.
63664         * modules/stdint: Likewise.
63665         * modules/stdio: Likewise.
63666         * modules/stdlib: Likewise.
63667         * modules/string: Likewise.
63668         * modules/sys_select: Likewise.
63669         * modules/sys_socket: Likewise.
63670         * modules/sys_stat: Likewise.
63671         * modules/sys_time: Likewise.
63672         * modules/sysexits: Likewise.
63673         * modules/time: Likewise.
63674         * modules/unistd: Likewise.
63675         * modules/wchar: Likewise.
63676         * modules/wctype: Likewise.
63677         * modules/sys_stat: Change maintainer to "all".
63678         * modules/unistd: Likewise.
63679
63680 2007-06-20  Karl Berry  <karl@gnu.org>
63681
63682         * config/srclist.txt: track www changes in license files.
63683
63684 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63685
63686         * build-aux/bootstrap: Remove stray dot.
63687         Make sure build_aux settings are honored when linking
63688         gnulib_extra_files.
63689
63690 2007-06-19  Eric Blake  <ebb9@byu.net>
63691
63692         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63693         Allow compilation on cygwin.
63694
63695 2007-06-19  Jim Meyering  <jim@meyering.net>
63696
63697         xreadlink-with-size: Remove module.  No longer used.
63698         Ex-callers now use xreadlink or mreadlink-with-size.
63699         * modules/xreadlink-with-size: Remove module.
63700         * lib/xreadlink-with-size.c: Remove file.
63701         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63702         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63703         just before the function definition *is* accurate.
63704
63705         Eliminate one way canonicalize_filename_mode could exit.
63706         * lib/canonicalize.c (canonicalize_filename_mode):
63707         Use mreadlink_with_size, not xreadlink_with_size.
63708
63709 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63710
63711         Detect porting problems to FreeBSD/arm, which has time_t wider than
63712         long int.  Original problem reported for GNU diff by Xin Li in
63713         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63714         * modules/getdate (Depends-on): Add intprops, verify.
63715         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63716         is an integer type no wider than long int.
63717
63718 2007-06-18  Jim Meyering  <jim@meyering.net>
63719
63720         New module: mreadlink-with-size.
63721         * MODULES.html.sh: Add mreadlink-with-size.
63722         * modules/mreadlink-with-size: New module
63723         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63724         not xreadlink-with-size.
63725         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63726
63727 2007-06-16  Bruno Haible  <bruno@clisp.org>
63728
63729         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63730         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63731         Reported by Gary V. Vaughan <gary@gnu.org>.
63732
63733 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         Revamp lchown so that it lives in unistd.h where it belongs.
63736         * lib/lchown.h: Remove.
63737         * lib/dirchownmod.c: Don't include lib/lchown.h.
63738         * lib/fchownat.c: Likewise.
63739         * lib/openat.c: Likewise.
63740         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63741         does not follow symlinks.
63742         (EOPNOTSUPP): Define if not defined.
63743         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63744         is defined to 0.
63745         (lchown): New decl.
63746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63747         Do not check for lchown decl.
63748         Set REPLACE_LCHOWN.
63749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63750         REPLACE_LCHOWN.
63751         * modules/chown: Make it clear it follows symlinks.
63752         * modules/lchown: Make it clear it doesn't follow symlinks.
63753         (Files): Remove lib/lchown.h
63754         (Depends-on): Add unistd.
63755         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63756         (Include): Include <unistd.h>, not "lchown.h".
63757         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63758         REPLACE_LCHOWN.
63759
63760 2007-06-15  Jim Meyering  <jim@meyering.net>
63761
63762         Change license (GPL to LGPL) of fsusage and dependents.
63763         * modules/fsusage (License): Change to LGPL.
63764         * modules/full-read (License): Likewise.
63765         * modules/full-write (License): Likewise.
63766         * modules/safe-read (License): Likewise.
63767         * modules/safe-write (License): Likewise.
63768
63769 2007-06-14  Ben Pfaff  <blp@gnu.org>
63770
63771         Missing part of allocsa -> malloca transition.
63772         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63773         gl_MALLOCA.
63774
63775 2007-06-12  Bruno Haible  <bruno@clisp.org>
63776
63777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63778         to ia64, x86_64, i386.
63779         Reported by Eric Blake.
63780
63781 2007-06-12  Bruno Haible  <bruno@clisp.org>
63782
63783         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63784         cross-compiling to x86_64.
63785
63786 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63789         glitch reported by Ralf Wildenhues in
63790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63791
63792         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63793         Vin Shelton.
63794
63795 2007-06-11  Bruno Haible  <bruno@clisp.org>
63796
63797         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63798         replacement string.
63799         Reported by Eric Blake.
63800
63801 2007-06-10  Bruno Haible  <bruno@clisp.org>
63802
63803         Prepare vasnprintf code for use with Unicode strings.
63804         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63805         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63806         TYPE_U32_STRING.
63807         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63808         a_u32_string variants.
63809         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63810         * lib/printf-args.c: Don't include config.h and the specification
63811         header if PRINTF_FETCHARGS is already defined.
63812         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63813         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63814         TYPE_U16_STRING, TYPE_U32_STRING.
63815         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63816         u16_directive, u16_directives, u32_directive, u32_directives): New
63817         types.
63818         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63819         New declarations.
63820         * lib/printf-parse.c: Don't include config.h and the specification
63821         header if PRINTF_PARSE is already defined. Eliminate the set of
63822         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63823         them now. Include c-ctype.h.
63824         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63825         directive and CHAR_T_ONLY_ASCII.
63826         * lib/vasnprintf.c: Don't include config.h and the specification header
63827         if VASNPRINTF is already defined.
63828         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63829         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63830         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63831         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63832         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63833         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63834         code accordingly.
63835         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63836         pad_ourselves also in this case, with the 'c' and 's' directives, and
63837         with a different notion of "width".
63838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63839
63840 2007-06-10  Bruno Haible  <bruno@clisp.org>
63841
63842         * modules/unistr/u32-mbsnlen: New file.
63843         * lib/unistr/u32-mbsnlen.c: New file.
63844
63845         * modules/unistr/u16-mbsnlen: New file.
63846         * lib/unistr/u16-mbsnlen.c: New file.
63847
63848         * modules/unistr/u8-mbsnlen: New file.
63849         * lib/unistr/u8-mbsnlen.c: New file.
63850
63851         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63852         declarations.
63853
63854 2007-06-10  Bruno Haible  <bruno@clisp.org>
63855
63856         * lib/string_.h (mbsnlen): New declaration.
63857         * lib/mbsnlen.c: New file.
63858         * m4/mbsnlen.m4: New file.
63859         * modules/mbsnlen: New file.
63860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63861         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63862         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63863
63864 2007-06-10  Bruno Haible  <bruno@clisp.org>
63865
63866         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63867
63868 2007-06-10  Bruno Haible  <bruno@clisp.org>
63869
63870         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63871         * lib/mbuiter.h: Likewise.
63872
63873 2007-06-10  Bruno Haible  <bruno@clisp.org>
63874
63875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63876         declaration.
63877
63878 2007-06-10  Karl Berry  <karl@gnu.org>
63879
63880         * config/srclist.txt: remove gettext entries, Bruno prefers
63881         to update individually.
63882
63883 2007-06-10  Bruno Haible  <bruno@clisp.org>
63884
63885         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63886         'maxlen'. Ensure only length + width bytes are allocated, not
63887         length + 1 + width.
63888
63889 2007-06-09  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63892         (CHAR_T): Remove macro.
63893         (VASNPRINTF): Update.
63894
63895 2007-06-09  Bruno Haible  <bruno@clisp.org>
63896
63897         * MODULES.html.sh (Unicode string functions): Add the new modules.
63898
63899         * modules/uniconv/u32-conv-to-enc: New file.
63900         * lib/uniconv/u32-conv-to-enc.c: New file.
63901         * modules/uniconv/u32-conv-to-enc-tests: New file.
63902         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63903
63904         * modules/uniconv/u16-conv-to-enc: New file.
63905         * lib/uniconv/u16-conv-to-enc.c: New file.
63906         * lib/uniconv/u-conv-to-enc.h: New file.
63907         * modules/uniconv/u16-conv-to-enc-tests: New file.
63908         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63909
63910         * modules/uniconv/u8-conv-to-enc: New file.
63911         * lib/uniconv/u8-conv-to-enc.c: New file.
63912         * modules/uniconv/u8-conv-to-enc-tests: New file.
63913         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63914
63915         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63916         u32_conv_to_encoding): New declarations.
63917
63918 2007-06-09  Bruno Haible  <bruno@clisp.org>
63919
63920         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63921
63922 2007-06-09  Bruno Haible  <bruno@clisp.org>
63923
63924         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63925         * modules/malloca: Renamed from modules/allocsa, updated.
63926         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63927         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63928         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63929         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63930         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63931         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63932         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63933         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63934         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63935         * modules/c-strcasestr (Depends-on): Update.
63936         * lib/c-strcasestr.c: Update.
63937         * modules/c-strstr (Depends-on): Update.
63938         * lib/c-strstr.c: Update.
63939         * modules/canonicalize-lgpl (Depends-on): Update.
63940         * lib/canonicalize-lgpl.c: Update.
63941         * modules/clean-temp (Depends-on): Update.
63942         * lib/clean-temp.c: Update.
63943         * modules/csharpcomp (Depends-on): Update.
63944         * lib/csharpcomp.c: Update.
63945         * modules/csharpexec (Depends-on): Update.
63946         * lib/csharpexec.c: Update.
63947         * modules/javacomp (Depends-on): Update.
63948         * lib/javacomp.c: Update.
63949         * modules/javaexec (Depends-on): Update.
63950         * lib/javaexec.c: Update.
63951         * modules/mbscasestr (Depends-on): Update.
63952         * lib/mbscasestr.c: Update.
63953         * modules/mbsstr (Depends-on): Update.
63954         * lib/mbsstr.c: Update.
63955         * modules/setenv (Depends-on): Update.
63956         * lib/setenv.c: Update.
63957         * modules/strcasestr (Depends-on): Update.
63958         * lib/strcasestr.c: Update.
63959         * modules/striconveha (Depends-on): Update.
63960         * lib/striconveha.c: Update.
63961         * modules/relocatable-prog-wrapper (Files): Update.
63962         * lib/relocwrapper.c: Update.
63963         * build-aux/install-reloc: Update.
63964         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63965
63966 2007-06-08  Bruno Haible  <bruno@clisp.org>
63967
63968         Port to uClibc.
63969         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63970         * lib/fpurge.c (fpurge): Likewise.
63971         * lib/freading.c (freading): Likewise.
63972         * lib/fseeko.c (rpl_fseeko): Likewise.
63973         * lib/fseterr.c (fseterr): Likewise.
63974         * lib/fwriting.c (fwriting): Likewise.
63975         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63976
63977 2007-06-08  Bruno Haible  <bruno@clisp.org>
63978
63979         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63980         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63981         * modules/gettext (Files): Add m4/intlmacosx.m4.
63982
63983 2007-06-07  Bruno Haible  <bruno@clisp.org>
63984
63985         * modules/localename-tests: New file.
63986         * tests/test-localename.c: New file.
63987
63988         New module 'localename'.
63989         * lib/localename.h: New file.
63990         * lib/localename.c: New file, from GNU gettext.
63991         * m4/localename.m4: New file.
63992         * modules/localename: New file.
63993
63994 2007-06-07  Bruno Haible  <bruno@clisp.org>
63995
63996         Work around the lack of <wchar.h> on some builds of uClibc.
63997         * doc/headers/wchar.texi: Update.
63998         * lib/wchar_.h: Include <wchar.h> only if it exists.
63999         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64000         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64001         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64002         doesn't exist.
64003         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64004         * modules/mbfile (Depends-on): Add wchar.
64005         * modules/mbiter (Depends-on): Likewise.
64006         * modules/mbuiter (Depends-on): Likewise.
64007         Reported by Simon Josefsson.
64008
64009 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         Work around problem reported by Steven M. Schweda in
64012         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64013         Tru64 5.1B with the Compaq compiler environment installed declares
64014         an 'isblank' function but does not define it in the C library.
64015         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64016         * lib/regex_internal.h (isblank): Likewise.
64017         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64018         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64019
64020 2007-06-05  Bruno Haible  <bruno@clisp.org>
64021
64022         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64023         ia64.
64024         * modules/printf-safe: New file.
64025         * modules/fprintf-posix (Depends-on): Add printf-safe.
64026         * modules/printf-posix (Depends-on): Likewise.
64027         * modules/snprintf-posix (Depends-on): Likewise.
64028         * modules/sprintf-posix (Depends-on): Likewise.
64029         * modules/vasnprintf-posix (Depends-on): Likewise.
64030         * modules/vasprintf-posix (Depends-on): Likewise.
64031         * modules/vfprintf-posix (Depends-on): Likewise.
64032         * modules/vprintf-posix (Depends-on): Likewise.
64033         * modules/vsnprintf-posix (Depends-on): Likewise.
64034         * modules/vsprintf-posix (Depends-on): Likewise.
64035         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64036         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64037         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64038         "no" on i386, x86_64, ia64.
64039         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64040         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64041         on i386, x86_64, ia64.
64042         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64043         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64044         on i386, x86_64, ia64.
64045         * tests/test-vasnprintf-posix.c: Include float.h.
64046         (LDBL80_WORDS): New macro.
64047         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64048         on i386, x86_64, ia64.
64049         * tests/test-vasprintf-posix.c: Include float.h.
64050         (LDBL80_WORDS): New macro.
64051         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64052         on i386, x86_64, ia64.
64053         * tests/test-snprintf-posix.c: Include float.h.
64054         * tests/test-sprintf-posix.c: Likewise.
64055         * tests/test-vsnprintf-posix.c: Likewise.
64056         * tests/test-vsprintf-posix.c: Likewise.
64057
64058 2007-06-05  Bruno Haible  <bruno@clisp.org>
64059
64060         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64061         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64062         non-IEEE numbers on i386, x86_64, ia64.
64063         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64064         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64065         * tests/test-isnanl.h: Include float.h.
64066         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64067
64068 2007-06-05  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64071         also the %a / %A. Handle the %a / %A code before this extra handling.
64072
64073 2007-06-05  Bruno Haible  <bruno@clisp.org>
64074
64075         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64076         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64077
64078 2007-06-05  Bruno Haible  <bruno@clisp.org>
64079
64080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64081         typo in variable name.
64082
64083 2007-06-05  Eric Blake  <ebb9@byu.net>
64084
64085         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64086         Reported by Simon Josefsson.
64087
64088 2007-06-04  Bruno Haible  <bruno@clisp.org>
64089
64090         Avoid test failures on some PowerPC platforms.
64091         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64092         Define differently for PowerPC.
64093         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64094         Reported by Gary V. Vaughan <gary@gnu.org>.
64095
64096 2007-06-02  Bruno Haible  <bruno@clisp.org>
64097
64098         Fix test-stdint failure on FreeBSD/ia64.
64099         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64100         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64101         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64102         * doc/headers/stdint.texi: Update.
64103
64104 2007-06-01  Bruno Haible  <bruno@clisp.org>
64105
64106         * tests/test-binary-io.c (main): Pass a third argument to open().
64107         Reported by Gary V. Vaughan <gary@gnu.org>.
64108
64109 2007-06-01  Bruno Haible  <bruno@clisp.org>
64110
64111         * doc/functions/frexpl.texi: Update for mingw.
64112
64113 2007-06-01  Bruno Haible  <bruno@clisp.org>
64114
64115         * tests/test-lseek.c (main): Disable test of errno for invalid third
64116         argument.
64117         * doc/functions/lseek.texi: Update.
64118         Reported by Gary V. Vaughan <gary@gnu.org>.
64119
64120 2007-05-28  Bruno Haible  <bruno@clisp.org>
64121
64122         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64123
64124 2007-05-31  Eric Blake  <ebb9@byu.net>
64125
64126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64127         cross compiling.
64128
64129 2007-05-30  Eric Blake  <ebb9@byu.net>
64130         and Bruno Haible  <bruno@clisp.org>
64131
64132         Work around mingw test failures exposed by m4-1.4.9b.
64133         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64134         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64135         moment.
64136
64137 2007-05-30  Bruno Haible  <bruno@clisp.org>
64138
64139         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64140         assuming that they are closed. Needed on HP-UX 11.
64141
64142 2007-05-29  Bruno Haible  <bruno@clisp.org>
64143
64144         Fix a problem with #include_next.
64145         * lib/dirent_.h: Split the double-inclusion guard.
64146         * lib/fcntl_.h: Likewise.
64147         * lib/float_.h: Likewise.
64148         * lib/iconv_.h: Likewise.
64149         * lib/inttypes_.h: Likewise.
64150         * lib/locale_.h: Likewise.
64151         * lib/math_.h: Likewise.
64152         * lib/netinet_in_.h: Likewise.
64153         * lib/search_.h: Likewise.
64154         * lib/signal_.h: Likewise.
64155         * lib/stdint_.h: Likewise.
64156         * lib/stdio_.h: Likewise.
64157         * lib/stdlib_.h: Likewise.
64158         * lib/string_.h: Likewise.
64159         * lib/sys_select_.h: Likewise.
64160         * lib/sys_socket_.h: Likewise.
64161         * lib/sys_stat_.h: Likewise.
64162         * lib/sys_time_.h: Likewise.
64163         * lib/sysexits_.h: Likewise.
64164         * lib/time_.h: Likewise.
64165         * lib/unistd_.h: Likewise.
64166         * lib/wchar_.h: Likewise.
64167         * lib/wctype_.h: Likewise.
64168
64169 2007-05-29  Bruno Haible  <bruno@clisp.org>
64170
64171         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64172         for the moment.
64173
64174 2007-05-29  Bruno Haible  <bruno@clisp.org>
64175
64176         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64177         invocation.
64178         Reported by Eric Blake.
64179
64180 2007-05-29  Bruno Haible  <bruno@clisp.org>
64181
64182         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64183         compiling case.
64184
64185 2007-05-29  Eric Blake  <ebb9@byu.net>
64186             Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64189         cross compiles.
64190
64191 2007-05-28  Eric Blake  <ebb9@byu.net>
64192
64193         * modules/closein-tests (test_closein_LDADD): Support test on
64194         cygwin with libtool.
64195
64196 2007-05-28  Bruno Haible  <bruno@clisp.org>
64197
64198         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64199         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64200         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64201         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64202         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64203         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64204         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64205         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64206         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64207
64208 2007-05-28  Eric Blake  <ebb9@byu.net>
64209
64210         Unconditionally include <config.h> in unit tests.
64211         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64212         * tests/test-allocsa.c, tests/test-arcfour.c,
64213         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64214         tests/test-array_list.c, tests/test-array_oset.c,
64215         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64216         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64217         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64218         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64219         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64220         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64221         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64222         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64223         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64224         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64225         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64226         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64227         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64228         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64229         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64230         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64231         test-md5.c, test-memmem.c, test-printf-posix.c,
64232         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64233         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64234         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64235         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64236         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64237         test-vasnprintf-posix2.c, test-vasnprintf.c,
64238         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64239         test-vfprintf-posix.c, test-vprintf-posix.c,
64240         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64241         test-xvasprintf.c: Likewise.
64242
64243 2007-05-28  Bruno Haible  <bruno@clisp.org>
64244
64245         * gnulib-tool (func_import): Remember the --with-tests command-line
64246         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64247         Reported by Eric Blake.
64248
64249 2007-05-28  Bruno Haible  <bruno@clisp.org>
64250
64251         * modules/ftell-tests: New file.
64252         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64253         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64254
64255         * lib/ftell.c: New file.
64256         * modules/ftell: New file.
64257         * m4/ftell.m4: New file.
64258         * doc/functions/ftell.texi: Update.
64259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64260         REPLACE_FTELL.
64261         * lib/stdio_.h (rpl_ftell): New declaration.
64262         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64263         REPLACE_FTELL.
64264
64265 2007-05-28  Eric Blake  <ebb9@byu.net>
64266
64267         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64268
64269 2007-05-28  Bruno Haible  <bruno@clisp.org>
64270
64271         * modules/fseek-tests: New file.
64272         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64273         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64274
64275         * lib/fseek.c: New file.
64276         * modules/fseek: New file.
64277         * m4/fseek.m4: New file.
64278         * doc/functions/fseek.texi: Update.
64279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64280         REPLACE_FSEEK.
64281         * lib/stdio_.h (rpl_fseek): New declaration.
64282         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64283         REPLACE_FSEEK.
64284
64285 2007-05-28  Bruno Haible  <bruno@clisp.org>
64286
64287         * lib/stdio_.h (fflush): More comments.
64288
64289 2007-05-28  Bruno Haible  <bruno@clisp.org>
64290
64291         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64292         runtime test.
64293
64294 2007-05-28  Eric Blake  <ebb9@byu.net>
64295
64296         Improve lseek module.
64297         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64298         * lib/unistd_.h (lseek): Scale back link warning message.
64299         * tests/test-lseek.c: Beef up test.
64300         * tests/test-lseek.sh: Exercise more facets of lseek.
64301         Reported by Bruno Haible.
64302
64303 2007-05-28  Bruno Haible  <bruno@clisp.org>
64304
64305         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64306         to define.
64307
64308 2007-05-27  Bruno Haible  <bruno@clisp.org>
64309
64310         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64311
64312 2007-05-27  Bruno Haible  <bruno@clisp.org>
64313
64314         * modules/openmp: New file.
64315         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64316         Noah Misch.
64317
64318 2007-05-26  Bruno Haible  <bruno@clisp.org>
64319
64320         * modules/chdir-long (Depends-on): Add fchdir.
64321         * modules/chdir-safer (Depends-on): Likewise.
64322         * modules/fts (Depends-on): Likewise.
64323         * modules/fts-lgpl (Depends-on): Likewise.
64324         * modules/openat (Depends-on): Likewise.
64325         * modules/savewd (Depends-on): Likewise.
64326
64327 2007-05-24  Eric Blake  <ebb9@byu.net>
64328
64329         Fix lseek on mingw.
64330         * modules/lseek: New module.
64331         * m4/lseek.m4: New file.
64332         * lib/lseek.c: New file.
64333         * modules/lseek-tests: New file.
64334         * tests/test-lseek.c: New file.
64335         * tests/test-lseek.sh: New file.
64336         * MODULES.html.sh: Document lseek module.
64337         * modules/fflush (Depends-on): Add lseek, fseeko.
64338         * modules/fseeko (Depends-on): Likewise.
64339         * modules/ftello (Depends-on): Likewise.
64340         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64341         broken.
64342         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64343         broken.
64344         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64345         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64346         * lib/ftello.c (rpl_ftello): Likewise.
64347         * tests/test-fseeko.c (main): Test this.
64348         * tests/test-fseeko.sh: Likewise.
64349         * tests/test-ftello.c (main): Likewise.
64350         * tests/test-ftello.sh: Likewise.
64351         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64352         implies replacing fseek.
64353         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64354         HAVE_FTELLO.
64355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64356         * modules/unistd (Makefile.am): Likewise.
64357         * lib/unistd_.h (lseek): Declare a replacement.
64358         * doc/functions/lseek.texi (lseek): Document this fix.
64359         * doc/functions/fseek.texi (fseek): Likewise.
64360         * doc/functions/ftell.texi (ftell): Likewise.
64361
64362 2007-05-24  Bruno Haible  <bruno@clisp.org>
64363
64364         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64365         in the printed representation of a NaN.
64366         * tests/test-vasprintf-posix.c (test_function): Likewise.
64367         * tests/test-snprintf-posix.h (test_function): Likewise.
64368         * tests/test-sprintf-posix.h (test_function): Likewise.
64369         Reported by Eric Blake.
64370
64371 2007-05-23  Eric Blake  <ebb9@byu.net>
64372
64373         Fix fseeko/ftello on cygwin 1.5.24.
64374         * doc/functions/fseeko.texi (fseeko): Document the fix.
64375         * doc/functions/ftello.texi (ftello): Document the fix.
64376         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64377         * doc/functions/stdout.text (stdout): New file.
64378         * doc/functions/stderr.text (stderr): New file.
64379         * doc/gnulib.texi (Function Substitutes): Use new files.
64380         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64381         prior to 1.7.0.
64382         * tests/test-ftello.c (main): Likewise for ftello.
64383         * tests/test-fseeko.sh: New file.
64384         * tests/test-ftello.sh: New file.
64385         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64386         with seekable stdin.
64387         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64389         (gl_REPLACE_FSEEKO): New macro.
64390         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64391         * modules/fseeko (Files): Distribute fseeko.c.
64392         * modules/ftello (Files): Distribute ftello.c.
64393         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64394         mode.
64395         * lib/ftello.c (rpl_ftello): New file.
64396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64397         fseeko, ftello.
64398         (gl_STDIN_LARGE_OFFSET): New macro.
64399         * modules/stdio (Makefile.am): Perform the replacement.
64400         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64401
64402 2007-05-23  Bruno Haible  <bruno@clisp.org>
64403
64404         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64405         GNULIB_POSIXCHECK is defined.
64406
64407 2007-05-21  Bruno Haible  <bruno@clisp.org>
64408
64409         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64410         Check also the output for NaN arguments. When cross-compiling, guess
64411         no on IRIX.
64412         * lib/vasnprintf.c: Update comments.
64413         * tests/test-vasnprintf-posix.c (strisnan): New function.
64414         (test_function): Use it.
64415         * tests/test-vasprintf-posix.c (strisnan): New function.
64416         (test_function): Use it.
64417         * tests/test-snprintf-posix.h (strisnan): New function.
64418         (test_function): Use it.
64419         * tests/test-sprintf-posix.h (strisnan): New function.
64420         (test_function): Use it.
64421         Reported by Eric Blake.
64422
64423 2007-05-20  Bruno Haible  <bruno@clisp.org>
64424
64425         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64426         numbers that fails on BeOS.
64427         * doc/functions/frexpl.texi: Update.
64428
64429 2007-05-20  Jim Meyering  <jim@meyering.net>
64430
64431         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64432         forced upon us by glibc-2.6.
64433
64434 2007-05-20  Bruno Haible  <bruno@clisp.org>
64435
64436         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64437         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64438         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64439         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64440         NEED_PRINTF_INFINITE.
64441         (is_infinitel): New function.
64442         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64444         gl_PREREQ_VASNPRINTF_INFINITE.
64445         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64446         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64447         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64448         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64449         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64450         gl_PREREQ_VASNPRINTF_INFINITE.
64451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64458         * doc/functions/fprintf.texi: Update.
64459         * doc/functions/printf.texi: Update.
64460         * doc/functions/snprintf.texi: Update.
64461         * doc/functions/sprintf.texi: Update.
64462         * doc/functions/vfprintf.texi: Update.
64463         * doc/functions/vprintf.texi: Update.
64464         * doc/functions/vsnprintf.texi: Update.
64465         * doc/functions/vsprintf.texi: Update.
64466
64467 2007-05-20  Bruno Haible  <bruno@clisp.org>
64468
64469         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64470         was not found in libc.
64471         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64472
64473 2007-05-20  Bruno Haible  <bruno@clisp.org>
64474
64475         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64476         printed as "-nan" instead of "nan".
64477         * tests/test-vasprintf-posix.c (test_function): Likewise.
64478         * tests/test-snprintf-posix.h (test_function): Likewise.
64479         * tests/test-sprintf-posix.h (test_function): Likewise.
64480         Needed for HP-UX 11.
64481
64482 2007-05-20  Jim Meyering  <jim@meyering.net>
64483
64484         Fix buggy test for the fchownat-deref bug.
64485         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64486         symlink required for the run-test.  Without it, this test would
64487         always declare that fchownat doesn't work, and client code would
64488         unnecessarily use the replacement function with fixed libc.
64489         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64490         Reported by Greg Schafer.
64491
64492 2007-05-19  Bruno Haible  <bruno@clisp.org>
64493
64494         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64495         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64496         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64497         Needed for IRIX 6.5 and Solaris 2.5.1.
64498
64499 2007-05-19  Bruno Haible  <bruno@clisp.org>
64500
64501         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64502         (test_function): Skip tests involving -0.0 on platforms where
64503         -0.0 = 0.0.
64504         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64505         (test_function): Skip tests involving -0.0 on platforms where
64506         -0.0 = 0.0.
64507         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64508         (test_function): Skip tests involving -0.0 on platforms where
64509         -0.0 = 0.0.
64510         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64511         (test_function): Skip tests involving -0.0 on platforms where
64512         -0.0 = 0.0.
64513         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64514         tests.
64515         * tests/test-printf-posix.h (test_function): Likewise.
64516         * tests/test-printf-posix.output: Remove all -0.0 related results.
64517         Needed for IRIX 6.5.
64518
64519 2007-05-19  Bruno Haible  <bruno@clisp.org>
64520
64521         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64522         printed as "nan0x7fffffff" instead of "nan".
64523         * tests/test-vasprintf-posix.c (test_function): Likewise.
64524         * tests/test-snprintf-posix.h (test_function): Likewise.
64525         * tests/test-sprintf-posix.h (test_function): Likewise.
64526         * tests/test-fprintf-posix.h (NaN): Remove macro.
64527         (test_function): Remove all NaN related tests.
64528         * tests/test-printf-posix.h (NaN): Remove macro.
64529         (test_function): Remove all NaN related tests.
64530         * tests/test-printf-posix.output: Remove all NaN related results.
64531         Needed for IRIX 6.5.
64532
64533 2007-05-19  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64536         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64537
64538 2007-05-19  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/float_.h: New file.
64541         * m4/float_h.m4: New file.
64542         * modules/float: New file.
64543         * modules/isnanl (Dependencies): Add float.
64544         * modules/isnanl-nolibm (Dependencies): Likewise.
64545         * modules/mathl (Dependencies): Likewise.
64546         * modules/printf-frexpl (Dependencies): Likewise.
64547         * modules/signbit (Dependencies): Likewise.
64548         * modules/vasnprintf (Dependencies): Likewise.
64549         * doc/headers/float.texi: Update.
64550
64551 2007-05-19  Jim Meyering  <jim@meyering.net>
64552
64553         * lib/utimens.c (gl_futimens): Rename from futimens,
64554         now that glibc-2.6 declares futimens.
64555         * lib/utimens.h: Likewise.
64556
64557 2007-05-19  Bruno Haible  <bruno@clisp.org>
64558
64559         Avoid test failures on mingw.
64560         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64561         * tests/test-printf-posix.sh: Likewise.
64562         * tests/test-vfprintf-posix.sh: Likewise.
64563         * tests/test-vprintf-posix.sh: Likewise.
64564
64565 2007-05-19  Bruno Haible  <bruno@clisp.org>
64566
64567         Fix *printf result for NaN, Inf, -0.0 on mingw.
64568         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64569         * lib/vasnprintf.c: Include math.h and isnan.h.
64570         (is_infinite_or_zero): New function.
64571         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64572         values in the %f, %F, %e, %E, %g, %G directives.
64573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64575         gl_PRINTF_INFINITE and test its result. Invoke
64576         gl_PREREQ_VASNPRINTF_INFINITE.
64577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64578         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64580         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64581         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64582         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64583         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64584         * doc/functions/fprintf.texi: Update.
64585         * doc/functions/printf.texi: Update.
64586         * doc/functions/snprintf.texi: Update.
64587         * doc/functions/sprintf.texi: Update.
64588         * doc/functions/vfprintf.texi: Update.
64589         * doc/functions/vprintf.texi: Update.
64590         * doc/functions/vsnprintf.texi: Update.
64591         * doc/functions/vsprintf.texi: Update.
64592
64593 2007-05-19  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64596         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64597         Instead of multiplying with 10^k, set extra_zeroes to k.
64598         (scale10_round_long_double): Remove function.
64599
64600 2007-05-18  Bruno Haible  <bruno@clisp.org>
64601
64602         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64603         introduced on 2007-05-06.
64604
64605 2007-05-18  Bruno Haible  <bruno@clisp.org>
64606
64607         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64608         %g directives.
64609         * tests/test-vasprintf-posix.c (test_function): Likewise.
64610         * tests/test-snprintf-posix.h (test_function): Likewise.
64611         * tests/test-sprintf-posix.h (test_function): Likewise.
64612
64613 2007-05-18  Bruno Haible  <bruno@clisp.org>
64614
64615         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64616         (strmatch): New function.
64617         (test_function): Test the %f directive on numbers of various exponents.
64618         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64619         (strmatch): New function.
64620         (test_function): Test the %f directive on numbers of various exponents.
64621         * tests/test-snprintf-posix.h (strmatch): New function.
64622         (test_function): Test the %f directive on numbers of various exponents.
64623         * tests/test-sprintf-posix.h (strmatch): New function.
64624         (test_function): Test the %f directive on numbers of various exponents.
64625         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64626         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64627         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64628         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64629
64630 2007-05-18  Bruno Haible  <bruno@clisp.org>
64631
64632         Add support for 'long double' number output.
64633         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64634         * lib/vasnprintf.c: Include math.h and float+.h.
64635         (mp_limb_t): New type.
64636         (GMP_LIMB_BITS): New macro.
64637         (mp_twolimb_t): New type.
64638         (GMP_TWOLIMB_BITS): New macro.
64639         (mpn_t): New type.
64640         (multiply, divide, convert_to_decimal, decode_long_double,
64641         scale10_round_long_double, scale10_round_decimal_long_double,
64642         floorlog10l): New functions.
64643         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64644         for the %f, %F, %e, %E, %g, %G directives.
64645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64646         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64647         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64648         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64649         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64650         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64656         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64657         * modules/snprintf-posix (Depends-on): Likewise.
64658         * modules/sprintf-posix (Depends-on): Likewise.
64659         * modules/vasnprintf-posix (Depends-on): Likewise.
64660         * modules/vasprintf-posix (Depends-on): Likewise.
64661         * modules/vfprintf-posix (Depends-on): Likewise.
64662         * modules/vsnprintf-posix (Depends-on): Likewise.
64663         * modules/vsprintf-posix (Depends-on): Likewise.
64664         * modules/vasnprintf (Files): Add lib/float+.h.
64665         * doc/functions/fprintf.texi: Update.
64666         * doc/functions/printf.texi: Update.
64667         * doc/functions/snprintf.texi: Update.
64668         * doc/functions/sprintf.texi: Update.
64669         * doc/functions/vfprintf.texi: Update.
64670         * doc/functions/vprintf.texi: Update.
64671         * doc/functions/vsnprintf.texi: Update.
64672         * doc/functions/vsprintf.texi: Update.
64673
64674 2007-05-18  Bruno Haible  <bruno@clisp.org>
64675
64676         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64677
64678 2007-05-18  Bruno Haible  <bruno@clisp.org>
64679
64680         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64681         for printing 64-bit integers. Needed for mingw.
64682
64683 2007-05-18  Bruno Haible  <bruno@clisp.org>
64684
64685         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64686         gl_FUNC_FREXPL_WORKS.
64687         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64688
64689 2007-05-18  Bruno Haible  <bruno@clisp.org>
64690
64691         * modules/frexpl-nolibm-tests: New file.
64692
64693         * modules/frexpl-nolibm: New file.
64694         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64695
64696 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64697
64698         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64699         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64700         GCC 4.2, which otherwise issues a lot of warnings.
64701         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64702         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64703         Likewise.
64704         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64705         * modules/iconv_open (iconv.h): Likewise.
64706         * modules/locale (locale.h): Likewise.
64707         * modules/netinet_in (netinet/in.h): Likewise.
64708         * modules/sys_select (sys_select.h): Likewise.
64709         * modules/sys_socket (sys/socket.h): Likewise.
64710         * modules/sys_stat (sys/stat.h): Likewise.
64711         * modules/sysexits (sysexits.h): Likewise.
64712         * modules/unistd (unistd.h): Likewise.
64713
64714 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64715
64716         * modules/closein-tests (Makefile.am): Distribute
64717         `test-closein.sh'.
64718
64719 2007-05-17  Bruno Haible  <bruno@clisp.org>
64720
64721         * tests/test-printf-posix.output: Renamed from
64722         tests/test-fprintf-posix.out.
64723         * modules/fprintf-posix-tests: Update.
64724         * modules/printf-posix-tests: Update.
64725         * modules/vfprintf-posix-tests: Update.
64726         * modules/vprintf-posix-tests: Update.
64727         * tests/test-fprintf-posix.sh: Update.
64728         * tests/test-printf-posix.sh: Update.
64729         * tests/test-vfprintf-posix.sh: Update.
64730         * tests/test-vprintf-posix.sh: Update.
64731         Reported by Ralf Wildenhues.
64732
64733 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64734
64735         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64736         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64737         GCC 4.2, which otherwise issues a lot of warnings.
64738         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64739         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64740         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64741         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64742         it should no longer be needed.
64743         * lib/string_.h: Likewise.
64744         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64745         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64746         * modules/inttypes (inttypes.h): Likewise.
64747         * modules/math (math.h): Likewise.
64748         * modules/search (search.h): Likewise.
64749         * modules/signal (signal.h): Likewise.
64750         * modules/stdint (stdint.h): Likewise.
64751         * modules/stdio (stdio.h): Likewise.
64752         * modules/stdlib (stdlib.h): Likewise.
64753         * modules/string (string.h): Likewise.
64754         * modules/sys_time (sys/time.h): Likewise.
64755         * modules/time (time.h): Likewise.
64756         * modules/wchar (wchar.h): Likewise.
64757         * modules/wctype (wtype.h): Likewise.
64758
64759 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64760
64761         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64762
64763 2007-05-13  Bruno Haible  <bruno@clisp.org>
64764
64765         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64766         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64767         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64768         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64769         (gl_PREREQ_STRTOK_R): Don't require it here.
64770
64771 2007-05-13  Bruno Haible  <bruno@clisp.org>
64772
64773         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64774         when used in C++ mode.
64775
64776 2007-05-12  Bruno Haible  <bruno@clisp.org>
64777
64778         * lib/linebuffer.h: Tweak doc.
64779         * lib/linebuffer.c: Likewise.
64780
64781 2007-05-12  James Youngman  <jay@gnu.org>
64782
64783         * lib/linebuffer.c (readlinebuffer_delim): New function,
64784         like readlinebuffer, but use a caller-specified delimiter.
64785         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64786         as the delimiter.
64787         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64788
64789 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64790
64791         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64792         * modules/openat (Files): Remove openat-die.c.
64793         (Depends-on): Add openat-die.
64794         * modules/openat-die: New module.
64795
64796 2007-05-06  Bruno Haible  <bruno@clisp.org>
64797
64798         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64799         Update with info about Cygwin.
64800         * doc/functions/fprintf.texi: Update.
64801         * doc/functions/printf.texi: Update.
64802         * doc/functions/snprintf.texi: Update.
64803         * doc/functions/sprintf.texi: Update.
64804         * doc/functions/vfprintf.texi: Update.
64805         * doc/functions/vprintf.texi: Update.
64806         * doc/functions/vsnprintf.texi: Update.
64807         * doc/functions/vsprintf.texi: Update.
64808         Reported by Eric Blake.
64809
64810 2007-05-06  Bruno Haible  <bruno@clisp.org>
64811
64812         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64813         padding ourselves for the floating-point directives.
64814         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64816         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64817         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64818         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64820         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64826         * tests/test-snprintf-posix.h (test_function): Also check the width
64827         and some flags in the %f directive.
64828         * tests/test-sprintf-posix.h (test_function): Likewise.
64829         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64830         * tests/test-vasprintf-posix.c (test_function): Likewise.
64831         * doc/functions/fprintf.texi: Update.
64832         * doc/functions/printf.texi: Update.
64833         * doc/functions/snprintf.texi: Update.
64834         * doc/functions/sprintf.texi: Update.
64835         * doc/functions/vfprintf.texi: Update.
64836         * doc/functions/vprintf.texi: Update.
64837         * doc/functions/vsnprintf.texi: Update.
64838         * doc/functions/vsprintf.texi: Update.
64839
64840 2007-05-06  Bruno Haible  <bruno@clisp.org>
64841
64842         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64843         pass the ' flag character to sprintf or snprintf.
64844         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64847         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64848         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64850         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64851         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64855         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64856         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64857         flag.
64858         * tests/test-sprintf-posix.h (test_function): Likewise.
64859         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64860         * tests/test-vasprintf-posix.c (test_function): Likewise.
64861         * doc/functions/fprintf.texi: Update.
64862         * doc/functions/printf.texi: Update.
64863         * doc/functions/snprintf.texi: Update.
64864         * doc/functions/sprintf.texi: Update.
64865         * doc/functions/vfprintf.texi: Update.
64866         * doc/functions/vprintf.texi: Update.
64867         * doc/functions/vsnprintf.texi: Update.
64868         * doc/functions/vsprintf.texi: Update.
64869
64870 2007-05-01  Bruno Haible  <bruno@clisp.org>
64871
64872         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64873
64874 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64875
64876         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64877         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64878
64879 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64880
64881         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64882         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64884
64885 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64886
64887         * lib/argp-help.c (struct hol_entry): New member `ord'.
64888         (HOL_ENTRY_PTRCMP): Use ord for comparison
64889         (hol_sort): Initialize ord.
64890
64891 2007-05-01  Bruno Haible  <bruno@clisp.org>
64892
64893         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64894         Reported by Eric Blake.
64895         * doc/gnulib.texi (Function Substitutes): Update.
64896
64897 2007-05-01  Bruno Haible  <bruno@clisp.org>
64898
64899         * doc/functions.texi: Remove file, now redundant through
64900         doc/functions/*.texi.
64901
64902 2007-05-01  Bruno Haible  <bruno@clisp.org>
64903
64904         * modules/argp (Depends-on): Add sleep.
64905
64906 2007-05-01  Bruno Haible  <bruno@clisp.org>
64907
64908         * modules/sleep-tests: New file.
64909         * tests/test-sleep.c: New file.
64910
64911         * modules/sleep: New file.
64912         * lib/sleep.c: New file.
64913         * m4/sleep.m4: New file.
64914         * lib/unistd_.h (sleep): New declaration.
64915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64916         HAVE_SLEEP.
64917         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64918         * doc/functions/sleep.texi: Document the sleep module.
64919
64920 2007-05-01  Bruno Haible  <bruno@clisp.org>
64921
64922         * lib/sigprocmask.h: Remove file.
64923         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64924         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64925         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64926         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64927         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64928         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64929         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64930         HAVE_SIGSET_T as a shell variable.
64931         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64932         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64933         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64934         (Depends-on): Add signal. Remove verify.
64935         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64936         (Include): Mention <signal.h> instead of sigprocmask.h.
64937         * NEWS: Mention the change.
64938         * lib/fatal-signal.c: Don't include sigprocmask.h.
64939
64940 2007-05-01  Bruno Haible  <bruno@clisp.org>
64941
64942         * modules/signal: New file.
64943         * lib/signal_.h: New file.
64944         * m4/signal_h.m4: New file.
64945
64946 2007-05-01  Bruno Haible  <bruno@clisp.org>
64947
64948         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64949         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64950         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64951         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64952
64953 2007-05-01  Bruno Haible  <bruno@clisp.org>
64954
64955         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64956         configure time.
64957         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64958         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64959         * modules/sys_stat (Makefile.am): Substitute their values into
64960         sys/stat.h.
64961
64962 2007-05-01  Bruno Haible  <bruno@clisp.org>
64963
64964         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64965         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64966         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64967
64968 2007-05-01  Bruno Haible  <bruno@clisp.org>
64969
64970         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64971         'assert' module here.
64972
64973 2007-05-01  Bruno Haible  <bruno@clisp.org>
64974
64975         * doc/functions/*.texi: New files.
64976         * doc/functions/google-ranking.txt: New file.
64977         * doc/gnulib.texi (Function Substitutes): New chapter.
64978         (ctime, inet_ntoa): Remove sections.
64979         * doc/ctime.texi: Remove file.
64980         * doc/inet_ntoa.texi: Remove file.
64981         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64982         dependencies.
64983         (%.info): New rule, specifying a --reference-limit.
64984
64985 2007-05-01  Bruno Haible  <bruno@clisp.org>
64986
64987         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64988
64989 2007-05-01  Bruno Haible  <bruno@clisp.org>
64990
64991         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64992         the portability of 'mkdir' to mingw systems.
64993
64994 2007-05-01  Bruno Haible  <bruno@clisp.org>
64995
64996         * doc/headers/google-ranking.txt: New file.
64997
64998 2007-04-30  Eric Blake  <ebb9@byu.net>
64999
65000         Prefer fseeko to fseek.
65001         * modules/getpass (Depends-on): Add fseeko.
65002         * lib/getpass.c (getpass): Use fseeko, not fseek.
65003
65004 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65005
65006         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65007         assumes the sorting is stable, while most qsort implementations
65008         are not.  Use argument addresses to ensure they never compare as
65009         equal.
65010
65011         * tests/test-argp-2.sh (usage-indent test): Fix output
65012         (func_compare): Restore diff options
65013         * tests/test-argp.c: Restore #include "progname.h"
65014
65015 2007-04-29  Bruno Haible  <bruno@clisp.org>
65016
65017         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65018         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65019         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65020         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65021         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65022         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65023         (TESTS, check_PROGRAMS): Add test-snprintf.
65024         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65025         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65026         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65027         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65028         assertions that fail on HP-UX, OSF/1, or IRIX.
65029         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65030
65031 2007-04-29  Bruno Haible  <bruno@clisp.org>
65032
65033         * MODULES.html.sh (posix_functions): Remove 'contents'.
65034
65035 2007-04-29  Karl Berry  <karl@gnu.org>
65036
65037         * config/srclist.txt (gendocs_template_min): new entry.
65038
65039 2007-04-29  Bruno Haible  <bruno@clisp.org>
65040
65041         Work around fpurge bug on BSD systems.
65042         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65043         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65044         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65045         fpurge to rpl_fpurge if the system already has this function.
65046         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65047         the case where the system already has this function. Correct invariants
65048         on BSD systems.
65049         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65050         BSD systems.
65051
65052 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65053
65054         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65055         proposed by Sven Verdoolaege.
65056
65057         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65058         options.
65059         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65060         (usage and help tests): Update
65061
65062 2007-04-29  Bruno Haible  <bruno@clisp.org>
65063
65064         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65065         Print more information in case of failure. Disable a test on BeOS.
65066
65067 2007-04-29  Bruno Haible  <bruno@clisp.org>
65068
65069         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65070         This helps debugging on systems on which no gdb is available.
65071
65072 2007-04-29  Bruno Haible  <bruno@clisp.org>
65073
65074         * lib/freading.h: Improve comments.
65075         * lib/fwriting.h: Likewise.
65076         * tests/test-freading.c (main): Don't check freading immediately after
65077         repositioning. Needed for glibc.
65078
65079 2007-04-29  Bruno Haible  <bruno@clisp.org>
65080
65081         * lib/freading.c (freading): Trivial simplification.
65082
65083 2007-04-28  Bruno Haible  <bruno@clisp.org>
65084
65085         * tests/test-fwriting.c (main): Also test the interaction between
65086         fflush and fwriting.
65087         * modules/fwriting-tests (Depends-on): Add fflush.
65088
65089         * tests/test-freading.c (main): Also test the interaction between
65090         fflush and freading.
65091         * modules/freading-tests (Depends-on): Add fflush.
65092
65093 2007-04-28  Bruno Haible  <bruno@clisp.org>
65094
65095         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65096         fseeko and ftello.
65097         Suggested by Eric Blake.
65098
65099 2007-04-28  Jim Meyering  <jim@meyering.net>
65100
65101         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65102         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65103         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65104
65105 2007-04-27  Eric Blake  <ebb9@byu.net>
65106
65107         * doc/headers/assert.texi (assert.h): Document assert module use.
65108
65109 2007-04-27  Bruno Haible  <bruno@clisp.org>
65110
65111         * doc/headers/*.texi: New files.
65112         * doc/gnulib.texi (Header File Substitutes): New chapter.
65113         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65114         dependencies.
65115         (standards.info ,standards.html, standards.dvi): Update dependencies.
65116         (mostlyclean, clean): New targets.
65117
65118 2007-04-27  Bruno Haible  <bruno@clisp.org>
65119
65120         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65121         * modules/sysexits (Files, Makefile.am): Update.
65122
65123         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65124         * modules/sys_socket (Files, Makefile.am): Update.
65125
65126         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65127         * modules/sys_stat (Files, Makefile.am): Update.
65128
65129 2007-04-27  Eric Blake  <ebb9@byu.net>
65130
65131         * lib/freading.h: Improve comments.
65132         * lib/fwriting.h: Likewise.
65133         * lib/fflush.c: Likewise.
65134
65135         Fix closein for mingw.
65136         * modules/closein-tests: Add tests for closein.
65137         * tests/test-closein.c: New file.
65138         * tests/test-closein.sh: Likewise.
65139         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65140         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65141
65142 2007-04-27  Bruno Haible  <bruno@clisp.org>
65143
65144         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65145         version is < 6.
65146         * lib/math_.h [__DECC]: Likewise.
65147         * lib/stdio_.h [__DECC]: Likewise.
65148         * lib/stdlib_.h [__DECC]: Likewise.
65149         * lib/string_.h [__DECC]: Likewise.
65150         * lib/time_.h [__DECC]: Likewise.
65151         * lib/wchar_.h [__DECC]: Likewise.
65152         * lib/wctype_.h [__DECC]: Likewise.
65153
65154 2007-04-27  Bruno Haible  <bruno@clisp.org>
65155
65156         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65157
65158 2007-04-27  Bruno Haible  <bruno@clisp.org>
65159
65160         * lib/fflush.c: Add comments.
65161         * modules/fpurge-tests (Depends-on): Add fflush.
65162         * modules/freadable-tests (Depends-on): Likewise.
65163         * modules/fwritable-tests (Depends-on): Likewise.
65164
65165 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65166
65167         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65168         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65169         Report by Bruno Haible <bruno@clisp.org>.
65170
65171 2007-04-26  Eric Blake  <ebb9@byu.net>
65172
65173         Fix fflush on mingw.
65174         * modules/fflush (Depends-on): Add freading.
65175         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65176         but unread data.
65177
65178 2007-04-26  Eric Blake  <ebb9@byu.net>
65179         and Bruno Haible  <bruno@clisp.org>
65180
65181         Implement freading and fwriting.
65182         * lib/freading.c: New file.
65183         * lib/freading.h: Likewise.
65184         * m4/freading.m4: Likewise.
65185         * modules/freading: Likewise.
65186         * modules/freading-tests: Likewise.
65187         * tests/test-freading.c: Likewise.
65188         * lib/fwriting.c: New file.
65189         * lib/fwriting.h: Likewise.
65190         * m4/fwriting.m4: Likewise.
65191         * modules/fwriting: Likewise.
65192         * modules/fwriting-tests: Likewise.
65193         * tests/test-fwriting.c: Likewise.
65194         * MODULES.html.sh (File stream based Input/Output): Mention them.
65195
65196 2007-04-26  Bruno Haible  <bruno@clisp.org>
65197
65198         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65199         'long' when we assume it.
65200         Suggested by Eric Blake.
65201
65202 2007-04-26  Bruno Haible  <bruno@clisp.org>
65203
65204         Ensure fseeko, ftello are declared on glibc systems.
65205         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65206         * modules/fseeko (configure.ac-early): Likewise.
65207         * modules/ftello (configure.ac-early): Likewise.
65208         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65209         AC_FUNC_FSEEKO for this.
65210         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65211         (gl_CHECK_FSEEKO): Remove macro.
65212
65213 2007-04-26  Bruno Haible  <bruno@clisp.org>
65214
65215         * tests/test-fflush.c (main): Also check the ftell result after
65216         fflush and fseek/fseeko.
65217         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65218         file descriptor position cache in the stream.
65219         * lib/fseeko.c (rpl_fseeko): Likewise.
65220
65221 2007-04-26  Bruno Haible  <bruno@clisp.org>
65222
65223         * modules/fflush-tests (Depends-on): Add fseeko.
65224
65225 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65226             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65227
65228         * lib/argz_.h: ensure error_t definition is obtained in same
65229         mechanism system argz.h would have.
65230         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65231         argz facilities are known bad.  Err on the side of caution if
65232         cross-compiling.
65233
65234 2007-04-25  Eric Blake  <ebb9@byu.net>
65235
65236         * lib/fpurge.c (includes): Use stdlib.h for free.
65237         * tests/test-fflush.c (main): Also test fflush-fseeko.
65238
65239 2007-04-25  Bruno Haible  <bruno@clisp.org>
65240
65241         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65242         * lib/fseeko.c: New file.
65243         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65244         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65245         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65246         gl_FUNC_FSEEKO.
65247         (gl_FUNC_FSEEKO): Invoke it.
65248         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65249         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65250         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65251
65252 2007-04-25  Bruno Haible  <bruno@clisp.org>
65253
65254         * modules/fflush (Depends-on): Add ftello.
65255
65256 2007-04-25  Bruno Haible  <bruno@clisp.org>
65257
65258         * modules/ftello-tests: New file.
65259         * tests/test-ftello.c: New file.
65260
65261         * modules/ftello: New file.
65262         * m4/ftello.m4: New file.
65263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65264         HAVE_FTELLO.
65265         * lib/stdio_.h (ftello): New declaration.
65266         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65267         HAVE_FTELLO.
65268
65269 2007-04-25  Bruno Haible  <bruno@clisp.org>
65270
65271         * modules/fseeko-tests: New file.
65272         * tests/test-fseeko.c: New file.
65273
65274         * modules/fseeko: New file.
65275         * m4/fseeko.m4: New file.
65276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65277         HAVE_FSEEKO.
65278         * lib/stdio_.h (fseeko): New declaration.
65279         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65280         HAVE_FSEEKO.
65281
65282 2007-04-25  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65285
65286 2007-04-25  Bruno Haible  <bruno@clisp.org>
65287
65288         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65289         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65290         * tests/test-unistd.c: Likewise.
65291         * tests/test-fcntl.c: Likewise.
65292
65293 2007-04-23  Eric Blake  <ebb9@byu.net>
65294
65295         * lib/fflush.c: Fix missing include.
65296         Reported by Bruno Haible.
65297
65298 2007-04-23  Bruno Haible  <bruno@clisp.org>
65299
65300         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65301         Reported by Eric Blake.
65302
65303 2007-04-23  Bruno Haible  <bruno@clisp.org>
65304
65305         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65306
65307 2007-04-23  Bruno Haible  <bruno@clisp.org>
65308
65309         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65310
65311 2007-04-23  Bruno Haible  <bruno@clisp.org>
65312
65313         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65314         Needed on HP-UX 11.
65315
65316 2007-04-16  Eric Blake  <ebb9@byu.net>
65317
65318         Make fflush rely on fpurge.
65319         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65320         open coding all variants.
65321         * modules/fflush (Depends-on): Add fpurge and unistd.
65322         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65323         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65324
65325         Fix --with-tests compilation on cygwin.
65326         * modules/argmatch-tests (Makefile.am): List gnulib library first
65327         in LDADD.
65328         * modules/argp-tests (Makefile.am): Likewise.
65329         * modules/array-list-tests (Makefile.am): Likewise.
65330         * modules/array-oset-tests (Makefile.am): Likewise.
65331         * modules/avltree-list-tests (Makefile.am): Likewise.
65332         * modules/avltree-oset-tests (Makefile.am): Likewise.
65333         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65334         * modules/carray-list-tests (Makefile.am): Likewise.
65335         * modules/dirname-tests (Makefile.am): Likewise.
65336         * modules/frexp-tests (Makefile.am): Likewise.
65337         * modules/isnanl-tests (Makefile.am): Likewise.
65338         * modules/linked-list-tests (Makefile.am): Likewise.
65339         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65340         * modules/lock-tests (Makefile.am): Likewise.
65341         * modules/rbtree-list-tests (Makefile.am): Likewise.
65342         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65343         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65344         * modules/tls-tests (Makefile.am): Likewise.
65345         * modules/tsearch-tests (Makefile.am): Likewise.
65346         * modules/xvasprintf-tests (Makefile.am): Likewise.
65347
65348         Fix fpurge for cygwin.
65349         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65350         value.
65351         * modules/fpurge-tests (Depends-on): Clean up trash.
65352
65353 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65354
65355         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65356
65357         * m4/autobuild.m4: Re-indent.
65358
65359 2007-04-13  Bruno Haible  <bruno@clisp.org>
65360
65361         * modules/fpurge-tests: New file.
65362         * tests/test-fpurge.c: New file.
65363
65364         * modules/fpurge: New file.
65365         * lib/fpurge.h: New file.
65366         * lib/fpurge.c: New file.
65367         * m4/fpurge.m4: New file.
65368
65369 2007-04-13  Bruno Haible  <bruno@clisp.org>
65370
65371         * modules/fbufmode-tests: New file.
65372         * tests/test-fbufmode.c: New file.
65373
65374         * modules/fbufmode: New file.
65375         * lib/fbufmode.h: New file.
65376         * lib/fbufmode.c: New file.
65377         * m4/fbufmode.m4: New file.
65378
65379 2007-04-13  Bruno Haible  <bruno@clisp.org>
65380
65381         * modules/fwritable-tests: New file.
65382         * tests/test-fwritable.c: New file.
65383
65384         * modules/fwritable: New file.
65385         * lib/fwritable.h: New file.
65386         * lib/fwritable.c: New file.
65387         * m4/fwritable.m4: New file.
65388
65389 2007-04-13  Bruno Haible  <bruno@clisp.org>
65390
65391         * modules/freadable-tests: New file.
65392         * tests/test-freadable.c: New file.
65393
65394         * modules/freadable: New file.
65395         * lib/freadable.h: New file.
65396         * lib/freadable.c: New file.
65397         * m4/freadable.m4: New file.
65398
65399 2007-04-13  Bruno Haible  <bruno@clisp.org>
65400
65401         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65402         MOSTLYCLEANFILES.
65403
65404 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65407         gzip bootstrap.conf to avoid dragging in i18n machinery.
65408         (gnulib_tool_option): Use it.
65409
65410 2007-04-13  Bruno Haible  <bruno@clisp.org>
65411
65412         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65413         %F directives.
65414         * tests/test-vasprintf-posix.c (test_function): Likewise.
65415         * tests/test-snprintf-posix.h (test_function): Likewise.
65416         * tests/test-sprintf-posix.h (test_function): Likewise.
65417         * tests/test-fprintf-posix.h (test_function): Likewise.
65418         * tests/test-printf-posix.h (test_function): Likewise.
65419         * tests/test-fprintf-posix.out: Likewise.
65420
65421 2007-04-13  Bruno Haible  <bruno@clisp.org>
65422
65423         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65424         * modules/tls-tests (configure.ac): Likewise.
65425         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65426
65427 2007-04-13  Bruno Haible  <bruno@clisp.org>
65428
65429         * lib/tls.c (glthread_tls_get): Fix return type.
65430         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65431
65432 2007-04-12  Eric Blake  <ebb9@byu.net>
65433
65434         * modules/gettime (Depends-on): Remove gettime.
65435         Reported by Dmitry V. Levin.
65436
65437 2007-04-12  Bruno Haible  <bruno@clisp.org>
65438
65439         * modules/fflush (Include): Mention <stdio.h>.
65440         * modules/strtoimax (Include): Mention <inttypes.h>.
65441         * modules/strtoumax (Include): Likewise.
65442
65443 2007-04-12  Eric Blake  <ebb9@byu.net>
65444
65445         * .cvsignore: New file.
65446         * .gitignore: Likewise.
65447
65448 2007-04-12  Bruno Haible  <bruno@clisp.org>
65449
65450         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65451         not before, since $(LDADD) often contains libgnu.a.
65452         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65453         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65454         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65455         Needed on Cygwin.
65456
65457 2007-04-12  Eric Blake  <ebb9@byu.net>
65458
65459         Work around glibc's failure to flush stdin on fclose.
65460         * lib/closein.c (close_stdin): Flush stdin before closing.
65461
65462         Work around glibc's failure to reset seekable stdin on exit.
65463         * modules/closein: New module.
65464         * lib/closein.c: New file.
65465         * lib/closein.h: Likewise.
65466         * m4/closein.m4: Likewise.
65467         * MODULES.html.sh (File stream based Input/Output): Document it.
65468
65469 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65470
65471         * gnulib-tool: Rename generated 'autobuild' script to
65472         'do-autobuild' in --create-megatestdir output.
65473
65474         * doc/gnulib.texi (Build robot for gnulib): Fix.
65475
65476 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65477
65478         * modules/sysexits (Depends-on): Add absolute-header.
65479
65480 2007-04-12  Eric Blake  <ebb9@byu.net>
65481
65482         No need to preserve errno on success.
65483         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65484         Reported by Bruno Haible.
65485
65486 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65487
65488         * MODULES.html.sh (Support for maintaining and releasing
65489         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65490
65491 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65492
65493         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65494
65495 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65496
65497         * modules/autobuild: New module.
65498
65499         * m4/autobuild.m4: New file.
65500
65501 2007-04-11  Bruno Haible  <bruno@clisp.org>
65502
65503         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65504         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65507         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65510         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65525         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65528         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65529         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65530         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65531         Reported by Eric Blake.
65532
65533 2007-04-11  Bruno Haible  <bruno@clisp.org>
65534
65535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65536
65537 2007-04-10  Bruno Haible  <bruno@clisp.org>
65538
65539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65540         for NaN and Infinity. Needed on FreeBSD 6.1.
65541         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65542         regarding results for "%010a" of Infinity and NaN.
65543         * tests/test-vasprintf-posix.c (test_function): Likewise.
65544         * tests/test-snprintf-posix.h (test_function): Likewise.
65545         * tests/test-sprintf-posix.h (test_function): Likewise.
65546         * tests/test-fprintf-posix.h (test_function): Likewise.
65547         * tests/test-printf-posix.h (test_function): Likewise.
65548         * tests/test-fprintf-posix.out: Likewise.
65549
65550 2007-04-10  Bruno Haible  <bruno@clisp.org>
65551
65552         * modules/locale-tests: New file.
65553         * tests/test-locale.c: New file.
65554
65555         * modules/locale: New file.
65556         * lib/locale_.h: New file.
65557         * m4/locale_h.m4: New file.
65558
65559 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65560             Bruno Haible  <bruno@clisp.org>
65561
65562         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65563         be determined, test for availability of the copysignf, copysign,
65564         copysignl functions.
65565         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65566         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65567         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65568
65569 2007-04-09  Eric Blake  <ebb9@byu.net>
65570
65571         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65572         * modules/stdio (Makefile.am): Support fflush.
65573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65574         * modules/fflush: New file.
65575         * lib/fflush.c: Likewise.
65576         * m4/fflush.m4: Likewise.
65577         * modules/fflush-tests: New test.
65578         * tests/test-fflush.c: Likewise.
65579         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65580
65581 2007-04-06  Bruno Haible  <bruno@clisp.org>
65582
65583         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65584         (VASNPRINTF): Use signbit for faster determination whether to print a
65585         minus sign.
65586         * modules/vasnprintf (Files): Remove lib/float+.h.
65587         * modules/fprintf-posix (Depends-on): Add signbit.
65588         * modules/snprintf-posix (Depends-on): Likewise.
65589         * modules/sprintf-posix (Depends-on): Likewise.
65590         * modules/vasnprintf-posix (Depends-on): Likewise.
65591         * modules/vasprintf-posix (Depends-on): Likewise.
65592         * modules/vfprintf-posix (Depends-on): Likewise.
65593         * modules/vsnprintf-posix (Depends-on): Likewise.
65594         * modules/vsprintf-posix (Depends-on): Likewise.
65595
65596 2007-04-06  Bruno Haible  <bruno@clisp.org>
65597
65598         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65599         * tests/test-frexpl.c (main): Likewise.
65600         * tests/test-ldexpl.c (main): Likewise.
65601         * modules/frexp-tests (Depends-on): Add signbit.
65602         * modules/frexpl-tests (Depdends-on): Likewise.
65603         * modules/ldexpl-tests (Depdends-on): Likewise.
65604
65605 2007-04-06  Bruno Haible  <bruno@clisp.org>
65606
65607         * modules/signbit-tests: New file.
65608         * tests/test-signbit.c: New file.
65609
65610         * modules/signbit: New file.
65611         * lib/signbitf.c: New file.
65612         * lib/signbitd.c: New file.
65613         * lib/signbitl.c: New file.
65614         * m4/signbit.m4: New file.
65615         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65616         (signbit): New macro.
65617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65618         REPLACE_SIGNBIT.
65619         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65620         REPLACE_FREXPL into math.h.
65621
65622 2007-04-06  Bruno Haible  <bruno@clisp.org>
65623
65624         * modules/isnanf-nolibm-tests: New file.
65625         * tests/test-isnanf.c: New file.
65626
65627         * modules/isnanf-nolibm: New file.
65628         * lib/isnanf.h: New file.
65629         * lib/isnanf.c: New file.
65630         * lib/isnan.c: Consider the USE_FLOAT macro.
65631         * m4/isnanf.m4: New file.
65632
65633 2007-04-06  Bruno Haible  <bruno@clisp.org>
65634
65635         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65636         (Link): New section.
65637
65638         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65639
65640 2007-04-06  Bruno Haible  <bruno@clisp.org>
65641
65642         Assume the 'long double' type.
65643         * m4/longdouble.m4: Remove file.
65644         * config/srclist.txt: Don't mention longdouble.m4.
65645         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65646         * lib/float+.h: Likewise.
65647         * lib/frexp.c: Likewise.
65648         * lib/printf-args.h: Likewise.
65649         * lib/printf-args.c: Likewise.
65650         * lib/printf-frexp.c: Likewise.
65651         * lib/printf-parse.c: Likewise.
65652         * lib/vasnprintf.c: Likewise.
65653         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65654         * m4/intl.m4: Likewise.
65655         * m4/isnanl.m4: Likewise.
65656         * m4/printf.m4: Likewise.
65657         * m4/printf-frexpl.m4: Likewise.
65658         * m4/vasnprintf.m4: Likewise.
65659         * modules/allocsa (Files): Remove m4/longdouble.m4.
65660         * modules/gettext (Files): Likewise.
65661         * modules/relocatable-prog-wrapper (Files): Likewise.
65662         * modules/vasnprintf (Files): Likewise.
65663         * modules/isnanl (Files): Likewise.
65664         (Include): Simplify.
65665         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65666         (Include): Simplify.
65667         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65668         (Include): Simplify.
65669         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65670         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65671         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65672         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65673         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65674         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65675         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65676         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65677         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65678         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65679         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65680         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65681         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65682         * tests/test-isnanl.c: Likewise.
65683         * tests/test-snprintf-posix.h: Likewise.
65684         * tests/test-sprintf-posix.h: Likewise.
65685         * tests/test-vasnprintf-posix.c: Likewise.
65686         * tests/test-vasnprintf-posix2.c: Likewise.
65687         * tests/test-vasprintf-posix.c: Likewise.
65688
65689 2007-04-06  Bruno Haible  <bruno@clisp.org>
65690
65691         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65692         * lib/math_.h [__DECC]: Include the overridden include file through
65693         #include_next, outside the double-inclusion guard.
65694         * lib/stdio_.h [__DECC]: Likewise.
65695         * lib/stdlib_.h [__DECC]: Likewise.
65696         * lib/string_.h [__DECC]: Likewise.
65697         * lib/time_.h [__DECC]: Likewise.
65698         * lib/wchar_.h [__DECC]: Likewise.
65699         * lib/wctype_.h [__DECC]: Likewise.
65700         * lib/inttypes_.h [__DECC]: Likewise.
65701         Reported by Albert Chin <china@thewrittenword.com> in
65702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65703
65704 2007-04-04  Eric Blake  <ebb9@byu.net>
65705
65706         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65707         1.5.x.
65708
65709 2007-04-04  Bruno Haible  <bruno@clisp.org>
65710
65711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65712         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65713
65714 2007-04-04  Bruno Haible  <bruno@clisp.org>
65715
65716         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65717         results for "%010a" of Infinity and NaN.
65718         * tests/test-vasprintf-posix.c (test_function): Likewise.
65719         * tests/test-snprintf-posix.h (test_function): Likewise.
65720         * tests/test-sprintf-posix.h (test_function): Likewise.
65721         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65722         * tests/test-printf-posix.h (test_function): Likewise.
65723         * tests/test-fprintf-posix.out: Update.
65724         Needed for FreeBSD 6.1.
65725
65726 2007-04-04  Bruno Haible  <bruno@clisp.org>
65727
65728         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65729         directly used by the gnulib modules nor by gnulib-tool.
65730
65731 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * DEPENDENCIES: Give overall description of version dependency
65734         desirability.  Use more-typical names for apps.
65735         Add shell, coreutils, diffutils, grep, tar, gzip.
65736
65737 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65738
65739         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65740
65741 2007-04-04  Karl Berry  <karl@gnu.org>
65742
65743         * MODULES.html.sh (func_module): missing '.
65744
65745 2007-04-03  Bruno Haible  <bruno@clisp.org>
65746
65747         * modules/argmatch-tests (Makefile.am): New variable
65748         test_argmatch_LDADD.
65749         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65750         * modules/array-list-tests (Makefile.am): New variable
65751         test_array_list_LDADD.
65752         * modules/array-oset-tests (Makefile.am): New variable
65753         test_array_oset_LDADD.
65754         * modules/avltree-list-tests (Makefile.am): New variable
65755         test_avltree_list_LDADD.
65756         * modules/avltree-oset-tests (Makefile.am): New variable
65757         test_avltree_oset_LDADD.
65758         * modules/avltreehash-list-tests (Makefile.am): New variable
65759         test_avltreehash_list_LDADD.
65760         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65761         test_canonicalize_lgpl_LDADD.
65762         * modules/carray-list-tests (Makefile.am): New variable
65763         test_carray_list_LDADD.
65764         * modules/dirname-tests (Makefile.am): New variable
65765         test_dirname_LDADD.
65766         * modules/linked-list-tests (Makefile.am): New variable
65767         test_linked_list_LDADD.
65768         * modules/linkedhash-list-tests (Makefile.am): New variable
65769         test_linkedhash_list_LDADD.
65770         * modules/rbtree-list-tests (Makefile.am): New variable
65771         test_rbtree_list_LDADD.
65772         * modules/rbtree-oset-tests (Makefile.am): New variable
65773         test_rbtree_oset_LDADD.
65774         * modules/rbtreehash-list-tests (Makefile.am): New variable
65775         test_rbtreehash_list_LDADD.
65776         * modules/xvasprintf-tests (Makefile.am): New variable
65777         test_xvasprintf_LDADD.
65778         Reported by Eric Blake.
65779
65780 2007-04-03  Eric Blake  <ebb9@byu.net>
65781
65782         * DEPENDENCIES: Weaken m4 requirements.
65783
65784 2007-04-03  Bruno Haible  <bruno@clisp.org>
65785
65786         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65787         * modules/isnanl-tests (configure.ac): Likewise.
65788
65789 2007-04-03  Ben Pfaff  <blp@gnu.org>
65790
65791         * modules/iconv_open: Add $(srcdir)/ to source directory
65792         references in Makefile fragments that call gperf, to fix VPATH
65793         builds.
65794
65795 2007-04-03  Bruno Haible  <bruno@clisp.org>
65796
65797         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65798         * lib/ldexpl.c: Undo last change.
65799
65800 2007-04-03  Bruno Haible  <bruno@clisp.org>
65801
65802         * modules/printf-frexpl (Depends-on): Undo last change.
65803         (Files): Add m4/ldexpl.m4.
65804
65805 2007-04-03  Bruno Haible  <bruno@clisp.org>
65806
65807         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65808         * modules/isnanl (Link): New section.
65809
65810         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65811         * modules/frexp (Link): New section.
65812
65813         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65814         * modules/frexpl (Link): New section.
65815
65816         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65817         * modules/ldexpl (Link): New section.
65818
65819 2007-04-03  Bruno Haible  <bruno@clisp.org>
65820
65821         * modules/TEMPLATE-EXTENDED: New file.
65822         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65823
65824 2007-04-03  Bruno Haible  <bruno@clisp.org>
65825
65826         * DEPENDENCIES: New file.
65827         Suggested by Simon Josefsson.
65828
65829 2007-04-03  Bruno Haible  <bruno@clisp.org>
65830
65831         * doc/gnulib.texi: Escape @.
65832
65833 2007-04-03  James Youngman  <jay@gnu.org>
65834         and Paul Eggert  <eggert@cs.ucla.edu>
65835
65836         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65837         birthtime on all systems that have birthtime, not just those which
65838         use st_birthtimensec rather than st_birthtim.  Putting zero in
65839         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65840         that the birth time is not available for files on an NFS mount.
65841
65842 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65843
65844         * modules/memxor: Move back from crypto/, suggested by Bruno.
65845         * modules/crypto/hmac-sha1: Fix memxor dependency.
65846
65847         * modules/crypto/gc: Moved from ../.
65848
65849 2007-04-02  Eric Blake  <ebb9@byu.net>
65850
65851         * lib/ldexpl.c (includes): Avoid libm.
65852
65853         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65854
65855 2007-04-02  Bruno Haible  <bruno@clisp.org>
65856
65857         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65858         on IRIX.
65859
65860 2007-04-02  Bruno Haible  <bruno@clisp.org>
65861
65862         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65863         x86 or x86_64 platforms running MacOS X.
65864         Reported by Ryan Schmidt <@ryandesign.com>.
65865
65866 2007-04-02  Bruno Haible  <bruno@clisp.org>
65867
65868         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65869         i386.
65870
65871 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65872
65873         * modules/crypto/arcfour: Moved from ../.
65874         * modules/crypto/arcfour-tests: Moved from ../.
65875         * modules/crypto/arctwo: Moved from ../.
65876         * modules/crypto/arctwo-tests: Moved from ../.
65877         * modules/crypto/des: Moved from ../.
65878         * modules/crypto/des-tests: Moved from ../.
65879         * modules/crypto/gc-arcfour: Moved from ../.
65880         * modules/crypto/gc-arcfour-tests: Moved from ../.
65881         * modules/crypto/gc-arctwo: Moved from ../.
65882         * modules/crypto/gc-arctwo-tests: Moved from ../.
65883         * modules/crypto/gc-des: Moved from ../.
65884         * modules/crypto/gc-des-tests: Moved from ../.
65885         * modules/crypto/gc-hmac-md5: Moved from ../.
65886         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65887         * modules/crypto/gc-hmac-sha1: Moved from ../.
65888         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65889         * modules/crypto/gc-md2: Moved from ../.
65890         * modules/crypto/gc-md2-tests: Moved from ../.
65891         * modules/crypto/gc-md4: Moved from ../.
65892         * modules/crypto/gc-md4-tests: Moved from ../.
65893         * modules/crypto/gc-md5: Moved from ../.
65894         * modules/crypto/gc-md5-tests: Moved from ../.
65895         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65896         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65897         * modules/crypto/gc-random: Moved from ../.
65898         * modules/crypto/gc-rijndael: Moved from ../.
65899         * modules/crypto/gc-rijndael-tests: Moved from ../.
65900         * modules/crypto/gc-sha1: Moved from ../.
65901         * modules/crypto/gc-sha1-tests: Moved from ../.
65902         * modules/crypto/gc-tests: Moved from ../.
65903         * modules/crypto/hmac-md5: Moved from ../.
65904         * modules/crypto/hmac-md5-tests: Moved from ../.
65905         * modules/crypto/hmac-sha1: Moved from ../.
65906         * modules/crypto/hmac-sha1-tests: Moved from ../.
65907         * modules/crypto/md2: Moved from ../.
65908         * modules/crypto/md2-tests: Moved from ../.
65909         * modules/crypto/md4: Moved from ../.
65910         * modules/crypto/md4-tests: Moved from ../.
65911         * modules/crypto/md5: Moved from ../.
65912         * modules/crypto/md5-tests: Moved from ../.
65913         * modules/crypto/memxor: Moved from ../.
65914         * modules/crypto/rijndael: Moved from ../.
65915         * modules/crypto/rijndael-tests: Moved from ../.
65916         * modules/crypto/sha1: Moved from ../.
65917
65918 2007-03-30  James Youngman  <jay@gnu.org>
65919
65920         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65921         rename() to change the ctime of a file (because ctime is unaffected
65922         by rename on jfs2 on AIX 5.1).
65923         (main): Start by doing cleanup, in case a previous run failed leaving
65924         test files behind.
65925
65926 2007-03-31  Bruno Haible  <bruno@clisp.org>
65927
65928         Support old proprietary implementations of iconv.
65929         * modules/iconv_open: New file.
65930         * lib/iconv_.h: New file.
65931         * m4/iconv_h.m4: New file.
65932         * lib/iconv_open.c: New file.
65933         * lib/iconv_open-aix.gperf: New file.
65934         * lib/iconv_open-hpux.gperf: New file.
65935         * lib/iconv_open-irix.gperf: New file.
65936         * lib/iconv_open-osf.gperf: New file.
65937         * m4/iconv_open.m4: New file.
65938         * modules/linebreak (Depends-on): Add iconv_open.
65939         * modules/striconv (Depends-on): Likewise.
65940         * modules/striconveh (Depends-on): Likewise.
65941         * modules/unicodeio (Depends-on): Likewise.
65942         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65943         (iconv_t)(-1).
65944         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65945         conversion if cd is (iconv_t)(-1).
65946         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65947         is not possible.
65948
65949 2007-03-31  Bruno Haible  <bruno@clisp.org>
65950
65951         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65952         work on Solaris either. Protect also second use of "autodetect_jp".
65953
65954 2007-03-31  Bruno Haible  <bruno@clisp.org>
65955
65956         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65957         the function is not present.
65958
65959 2007-03-31  Bruno Haible  <bruno@clisp.org>
65960
65961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65962         the function is not present.
65963
65964 2007-03-31  Bruno Haible  <bruno@clisp.org>
65965
65966         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65967         a bug in HP-UX iconv_open().
65968
65969 2007-03-31  Bruno Haible  <bruno@clisp.org>
65970
65971         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65972         (Mathematics <math.h>): New section, add fpieee.
65973         (Input/output <stdio.h>): Add fseterr.
65974         (Mathematics <math.h>): New section, add printf-frexp.
65975         (Container data structures): Add sublist.
65976         (Core language properties): Add fpucw, inline.
65977         (Functions for greatest-width integer types <inttypes.h>): Add
65978         imaxabs, imaxdiv, inttypes.
65979         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65980         isnanl-nolibm, ldexp.
65981         (Mathematics <math.h>): New section, add printf-frexpl.
65982         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65983         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65984         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65985         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65986         (Unicode string functions): Add unistr/u*-mbtoucr.
65987         (Java): Add javacomp-script, javaexec-script.
65988         (C#): Add csharpcomp-script, csharpexec-script.
65989         (Support for building libraries and executables): Add havelib,
65990         relocatable-*.
65991         (Support for maintaining and releasing projects): Renamed from
65992         'Support for maintaining and release projects'. Add announce-gen.
65993
65994 2007-03-31  Bruno Haible  <bruno@clisp.org>
65995
65996         * README: Talk primarily about git.
65997         (git and CVS): Renamed from CVS.
65998         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65999         gnulib is available through git.
66000         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66001
66002 2007-03-30  Bruno Haible  <bruno@clisp.org>
66003
66004         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66005         * lib/poll_.h: Likewise.
66006         * lib/stat_.h: Likewise.
66007         * lib/sys_time_.h: Likewise.
66008         * lib/sysexit_.h: Likewise.
66009         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66010         * lib/stdbool_.h: Likewise.
66011         * lib/byteswap_.h: Add double-inclusion guard.
66012
66013 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66014
66015         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66016
66017 2007-03-30  Karl Berry  <karl@gnu.org>
66018
66019         * config/srclist-update: double space after USA in the license
66020         substitution, since that's how it's usually (?) written.
66021
66022 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66023
66024         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66025         reported by Bruno Haible.
66026
66027 2007-03-29  Bruno Haible  <bruno@clisp.org>
66028
66029         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66030         a bug in AIX iconv().
66031
66032 2007-03-29  Bruno Haible  <bruno@clisp.org>
66033
66034         * modules/ldexpl-tests: New file.
66035         * tests/test-ldexpl.c: New file.
66036
66037 2007-03-29  Bruno Haible  <bruno@clisp.org>
66038
66039         * lib/ldexpl.c: Include fpucw.h.
66040         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66041         multiplication.
66042         * modules/ldexpl (Depends-on): Add fpucw.
66043
66044 2007-03-29  Bruno Haible  <bruno@clisp.org>
66045
66046         * modules/ldexpl: New file.
66047         * m4/ldexpl.m4: New file.
66048         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66049         set.
66050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66051         REPLACE_LDEXPL.
66052         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66053         REPLACE_LDEXPL.
66054         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66055         gl_FUNC_LDEXPL_WORKS.
66056         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66057         * modules/mathl (Files): Remove lib/ldexpl.c.
66058         (Depends-on): Add ldexpl.
66059
66060 2007-03-29  Bruno Haible  <bruno@clisp.org>
66061
66062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66063
66064 2007-03-29  Bruno Haible  <bruno@clisp.org>
66065
66066         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66067         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66068         and possibly also HP-UX.
66069         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66070         work on AIX, IRIX, HP-UX, OSF/1.
66071         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66072         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66073         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66074         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66075         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66076         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66077
66078 2007-03-29  Bruno Haible  <bruno@clisp.org>
66079
66080         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66081
66082 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66085         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66086
66087 2007-03-29  Eric Blake  <ebb9@byu.net>
66088
66089         * lib/acl-internal.h: Remove redundant include.
66090         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66091         Cygwin when a file is locked.
66092
66093 2007-03-29  Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66096         file.
66097         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66098
66099 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66100
66101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66102         try to remove a parent directory if the child couldn't be removed
66103         (except for the first rmdir, which could fail because the child
66104         doesn't exist).  Problem reported by Jeff Blaine in
66105         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66106
66107 2007-03-28  Bruno Haible  <bruno@clisp.org>
66108
66109         * lib/striconveh.c (utf8conv_carefully): New function.
66110         (mem_cd_iconveh_internal): Invoke it.
66111
66112 2007-03-28  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66115         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66116         input.
66117         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66118         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66119         unistr/u8-uctomb.
66120
66121 2007-03-28  Bruno Haible  <bruno@clisp.org>
66122
66123         * modules/unistr/u8-mbtoucr: New file.
66124         * lib/unistr/u8-mbtoucr.c: New file.
66125         * modules/unistr/u16-mbtoucr: New file.
66126         * lib/unistr/u16-mbtoucr.c: New file.
66127         * modules/unistr/u16-mbtoucr: New file.
66128         * lib/unistr/u16-mbtoucr.c: New file.
66129         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66130
66131 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66132             Bruno Haible  <bruno@clisp.org>
66133
66134         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66135         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66136         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66137
66138         * m4/stdio_h.m4: Add stubs for vasprintf too.
66139
66140         * modules/stdio: Support vasprintf in sed command.
66141
66142         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66143         vasprintf.h.  Add stdio module indicator.
66144
66145         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66146         vasprintf.h.
66147
66148         * lib/vasprintf.h: File removed.
66149
66150         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66151         * lib/vasprintf.c: Ditto.
66152         * lib/xvasprintf.c: Ditto.
66153         * tests/test-vasprintf-posix.c: Ditto.
66154         * tests/test-vasprintf.c: Ditto.
66155
66156 2007-03-27  Bruno Haible  <bruno@clisp.org>
66157
66158         Make vasnprintf multithread-safe.
66159         * lib/vasnprintf.c (decimal_point_char): New function.
66160         (VASNPRINTF): Use it.
66161         Suggested by Simon Josefsson.
66162
66163 2007-03-27  Eric Blake  <ebb9@byu.net>
66164
66165         Support sub-second birthtime on cygwin.
66166         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66167         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66168         (get_stat_birthtime): Also work with st_birthtim.
66169
66170 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66171
66172         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66173         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66174         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66175         (get_stat_birthtime_ns): Simplify compile-time tests.
66176         (get_stat_birthtime): Change the API to look like
66177         get_stat_mtime etc., except return a negative tv_nsec on error.
66178         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66179         Don't check for "spare" fields.
66180         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66181         or for struct stat.st_birthtime, as these tests aren't used.
66182         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66183
66184 2007-03-27  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/stat-time.h: Include <sys/stat.h>.
66187
66188 2007-03-27  James Youngman  <jay@gnu.org>
66189
66190         * lib/stat-time.h (get_stat_birthtime): New function for
66191           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66192         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66193           and its variants.
66194         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66195         * modules/stat-time-test: New file.
66196         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66197
66198 2007-03-26  Bruno Haible  <bruno@clisp.org>
66199
66200         Better support of signalling NaNs.
66201         * lib/atanl.c: Include isnanl.h.
66202         (atanl): Perform test for NaN at the beginning of the function and
66203         through a call to isnanl.
66204         * lib/cosl.c: Include isnanl.h.
66205         (cosl): Perform test for NaN at the beginning of the function and
66206         through a call to isnanl.
66207         * lib/ldexpl.c: Include isnanl.h.
66208         (ldexpl): Perform test for NaN through a call to isnanl.
66209         * lib/logl.c: Include isnanl.h.
66210         (logl): Perform test for NaN at the beginning of the function and
66211         through a call to isnanl.
66212         * lib/sinl.c: Include isnanl.h.
66213         (sinl): Perform test for NaN at the beginning of the function and
66214         through a call to isnanl.
66215         * lib/sqrtl.c: Include isnanl.h.
66216         (sqrtl): Perform test for NaN at the beginning of the function and
66217         through a call to isnanl.
66218         * lib/tanl.c: Include isnanl.h.
66219         (tanl): Perform test for NaN at the beginning of the function and
66220         through a call to isnanl.
66221         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66222         * modules/mathl (Depends-on): Add isnanl.
66223
66224 2007-03-26  Eric Blake  <ebb9@byu.net>
66225
66226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66227         regression in logic sense of previous patch.
66228
66229 2007-03-26  Bruno Haible  <bruno@clisp.org>
66230
66231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66232         unportable shell command "if ! ...".
66233         Reported by Ralf Wildenhues.
66234
66235 2007-03-25  Bruno Haible  <bruno@clisp.org>
66236
66237         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66238         <sysexits.h> file, and only add EX_CONFIG.
66239         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66240         absolute file name and whether it is sufficient. Substitute also
66241         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66242         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66243         ABSOLUTE_SYSEXITS_H into sysexits.h.
66244
66245 2007-03-25  Bruno Haible  <bruno@clisp.org>
66246
66247         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66248         hints is NULL.
66249
66250 2007-03-25  Bruno Haible  <bruno@clisp.org>
66251
66252         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66253         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66254
66255 2007-03-25  Bruno Haible  <bruno@clisp.org>
66256
66257         * lib/vasnprintf.c: Include langinfo.h.
66258         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66259         multithread-safe.
66260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66261         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66269         Reported by Simon Josefsson.
66270
66271 2007-03-25  Bruno Haible  <bruno@clisp.org>
66272
66273         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66274         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66275         * modules/vasnprintf (Depends-on): Add stdint.
66276
66277 2007-03-25  Bruno Haible  <bruno@clisp.org>
66278
66279         * modules/fpieee: New file.
66280         * m4/fpieee.m4: New file.
66281         * modules/isnan-nolibm (Depends-on): Add fpieee.
66282         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66283         * modules/isnanl (Depends-on): Add fpieee.
66284
66285 2007-03-25  Bruno Haible  <bruno@clisp.org>
66286
66287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66288
66289 2007-03-25  Bruno Haible  <bruno@clisp.org>
66290
66291         Avoid test failures on IRIX 6.5.
66292         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66293         (main): Use it.
66294         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66295         macros.
66296         (main): Use them.
66297
66298 2007-03-25  Bruno Haible  <bruno@clisp.org>
66299
66300         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66301         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66302         exists but doesn't work.
66303         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66304         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66306         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66307         math.h.
66308
66309 2007-03-25  Bruno Haible  <bruno@clisp.org>
66310
66311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66312         returns inf. Needed on IRIX 6.5.
66313
66314 2007-03-25  Bruno Haible  <bruno@clisp.org>
66315
66316         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66317         (main): Use isnanl instead of x != x idiom.
66318         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66319
66320         * tests/test-frexp.c: Include isnan.h.
66321         (main): Use isnan instead of x != x idiom.
66322         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66323
66324 2007-03-25  Bruno Haible  <bruno@clisp.org>
66325
66326         * tests/test-frexp.c (NaN): New function/macro.
66327         (main): Use it instead of 0.0 / 0.0.
66328         * tests/test-isnan.c (NaN): New function/macro.
66329         (main): Use it instead of 0.0 / 0.0.
66330         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66331         (test_function): Use it instead of 0.0 / 0.0.
66332         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66333         (test_function): Use it instead of 0.0 / 0.0.
66334         * tests/test-snprintf-posix.h (NaN): New function/macro.
66335         (test_function): Use it instead of 0.0 / 0.0.
66336         * tests/test-sprintf-posix.h (NaN): New function/macro.
66337         (test_function): Use it instead of 0.0 / 0.0.
66338         * tests/test-fprintf-posix.h (NaN): New function/macro.
66339         (test_function): Use it instead of 0.0 / 0.0.
66340         * tests/test-printf-posix.h (NaN): New function/macro.
66341         (test_function): Use it instead of 0.0 / 0.0.
66342
66343         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66344
66345 2007-03-25  Bruno Haible  <bruno@clisp.org>
66346
66347         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66348
66349 2007-03-25  Bruno Haible  <bruno@clisp.org>
66350
66351         * lib/regexec.c (merge_state_with_log): Make static.
66352
66353 2007-03-25  Bruno Haible  <bruno@clisp.org>
66354
66355         * lib/trigl.c (kernel_rem_pio2): Make static.
66356
66357 2007-03-25  Bruno Haible  <bruno@clisp.org>
66358
66359         * lib/sincosl.c (sincosl_table): Make static.
66360
66361 2007-03-25  Bruno Haible  <bruno@clisp.org>
66362
66363         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66364         if the compiler does not support C99.
66365
66366 2007-03-25  Bruno Haible  <bruno@clisp.org>
66367
66368         * modules/time (Makefile.am): Ensure all rule action lines start with a
66369         tab.
66370
66371 2007-03-24  Bruno Haible  <bruno@clisp.org>
66372
66373         * modules/tsearch-tests: New file.
66374         * tests/test-tsearch.sh: New file.
66375         * tests/test-tsearch.c: New file, mostly copied from glibc.
66376
66377         * modules/search-tests: New file.
66378         * tests/test-search.c: New file.
66379
66380         * modules/search: New file.
66381         * lib/search_.h: New file, incorporating lib/tsearch.h.
66382         * m4/search_h.m4: New file.
66383         * lib/tsearch.h: Remove file.
66384         * lib/tsearch.c: Include search.h instead of tsearch.h.
66385         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66386         HAVE_TSEARCH.
66387         * modules/tsearch (Files): Remove lib/tsearch.h.
66388         (Depends-on): Add search.
66389         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66390         (Include): Change tsearch.h into search.h.
66391
66392 2007-03-24  Bruno Haible  <bruno@clisp.org>
66393
66394         * modules/fpucw: New file.
66395         * lib/fpucw.h: New file.
66396         * lib/frexp.c: Include fpucw.h.
66397         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66398         (FUNC): Use them.
66399         * lib/printf-frexp.c: Include fpucw.h.
66400         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66401         (FUNC): Use them.
66402         * lib/vasnprintf.c: Include fpucw.h.
66403         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66404         'long double' calculations.
66405         * tests/test-frexpl.c: Include fpucw.h.
66406         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66407         * tests/test-printf-frexpl.c: Include fpucw.h.
66408         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66409         * modules/frexpl (Depends-on): Add fpucw.
66410         * modules/printf-frexpl (Depends-on): Likewise.
66411         * modules/fprintf-posix (Depends-on): Likewise.
66412         * modules/snprintf-posix (Depends-on): Likewise.
66413         * modules/sprintf-posix (Depends-on): Likewise.
66414         * modules/vasnprintf-posix (Depends-on): Likewise.
66415         * modules/vasprintf-posix (Depends-on): Likewise.
66416         * modules/vfprintf-posix (Depends-on): Likewise.
66417         * modules/vsnprintf-posix (Depends-on): Likewise.
66418         * modules/vsprintf-posix (Depends-on): Likewise.
66419         * modules/frexpl-tests (Depends-on): Likewise.
66420         * modules/printf-frexpl-tests (Depends-on): Likewise.
66421
66422 2007-03-24  Bruno Haible  <bruno@clisp.org>
66423
66424         * lib/float+.h: New file.
66425         * lib/isnan.c: Include float+.h.
66426         (SIZE): New macro.
66427         (FUNC): Compare only SIZE bytes of the value.
66428         * lib/vasnprintf.c: Include float+.h.
66429         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66430         SIZEOF_LDBL or SIZEOF_DBL bytes.
66431         * modules/isnan-nolibm (Files): Add lib/float+.h.
66432         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66433         * modules/isnanl (Files): Add lib/float+.h.
66434         * modules/vasnprintf (Files): Add lib/float+.h.
66435
66436 2007-03-24  Bruno Haible  <bruno@clisp.org>
66437
66438         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66439         include isnanl-nolibm.h.
66440
66441 2007-03-24  Bruno Haible  <bruno@clisp.org>
66442
66443         * tests/test-read-file.c (main): Don't produce spurious output for
66444         expected situations. Make the test fail if it encountered unexpected
66445         results.
66446
66447 2007-03-24  Bruno Haible  <bruno@clisp.org>
66448
66449         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66450         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66451
66452 2007-03-24  Bruno Haible  <bruno@clisp.org>
66453
66454         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66455
66456 2007-03-24  Bruno Haible  <bruno@clisp.org>
66457
66458         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66459         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66460
66461         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66462         * modules/utf8-ucs4: Turn into a symbolic link to module
66463         unistr/u8-mbtouc.
66464
66465         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66466         utf8-ucs4-unsafe.
66467         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66468         unistr/u8-mbtouc-unsafe.
66469
66470         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66471         * modules/utf16-ucs4: Turn into a symbolic link to module
66472         unistr/u16-mbtouc.
66473
66474         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66475         utf16-ucs4-unsafe.
66476         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66477         unistr/u16-mbtouc-unsafe.
66478
66479         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66480         * modules/ucs4-utf8: Turn into a symbolic link to module
66481         unistr/u8-ubtomb.
66482
66483         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66484         * modules/ucs4-utf16: Turn into a symbolic link to module
66485         unistr/u16-ubtomb.
66486
66487 2007-03-24  Bruno Haible  <bruno@clisp.org>
66488
66489         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66490         Enable the function only if HAVE_INLINE.
66491         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66492         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66493         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66494         Enable the function only if HAVE_INLINE.
66495         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66496         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66497         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66498         Enable the function only if HAVE_INLINE.
66499         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66500         Enable the function only if HAVE_INLINE.
66501         * modules/utf8-ucs4: Update.
66502         * modules/utf8-ucs4-unsafe: Update.
66503         * modules/utf16-ucs4: Update.
66504         * modules/utf16-ucs4-unsafe: Update.
66505         * modules/ucs4-utf8: Update.
66506         * modules/ucs4-utf16: Update.
66507
66508 2007-03-24  Bruno Haible  <bruno@clisp.org>
66509
66510         * lib/utf8-ucs4.h: Remove file.
66511         * lib/utf8-ucs4-unsafe.h: Remove file.
66512         * lib/utf16-ucs4.h: Remove file.
66513         * lib/utf16-ucs4-unsafe.h: Remove file.
66514         * lib/ucs4-utf8.h: Remove file.
66515         * lib/ucs4-utf16.h: Remove file.
66516         * lib/unistr.h: Include their previous contents.
66517         * m4/utf-ucs4.m4: Remove file.
66518         * m4/ucs4-utf.m4: Remove file.
66519         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66520         (Depends-on): Add unistr/base.
66521         (configure.ac): Remove gl_UTF_UCS4.
66522         (Makefile.am): Update.
66523         (Include): Change to unistr.h.
66524         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66525         (Depends-on): Add unistr/base.
66526         (configure.ac): Remove gl_UTF_UCS4.
66527         (Makefile.am): Update.
66528         (Include): Change to unistr.h.
66529         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66530         (Depends-on): Add unistr/base.
66531         (configure.ac): Remove gl_UTF_UCS4.
66532         (Makefile.am): Update.
66533         (Include): Change to unistr.h.
66534         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66535         (Depends-on): Add unistr/base.
66536         (configure.ac): Remove gl_UTF_UCS4.
66537         (Makefile.am): Update.
66538         (Include): Change to unistr.h.
66539         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66540         (Depends-on): Add unistr/base.
66541         (configure.ac): Remove gl_UCS4_UTF.
66542         (Makefile.am): Update.
66543         (Include): Change to unistr.h.
66544         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66545         (Depends-on): Add unistr/base.
66546         (configure.ac): Remove gl_UCS4_UTF.
66547         (Makefile.am): Update.
66548         (Include): Change to unistr.h.
66549         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66550         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66551         utf8-ucs4-unsafe.h.
66552         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66553         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66554         utf16-ucs4-unsafe.h.
66555         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66556         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66557         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66558         * lib/unistr/u8-strchr.c: Likewise.
66559         * lib/unistr/u8-strrchr.c: Likewise.
66560         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66561         * lib/unistr/u16-strchr.c: Likewise.
66562         * lib/unistr/u16-strrchr.c: Likewise.
66563         * lib/striconveh.c: Update.
66564         * lib/linebreak.c: Update.
66565
66566 2007-03-24  Bruno Haible  <bruno@clisp.org>
66567
66568         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66569         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66570
66571 2007-03-22  Bruno Haible  <bruno@clisp.org>
66572
66573         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66574
66575 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         * MODULES.html.sh (File system functions): New module write-any-file.
66578         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66579         * m4/write-any-file.m4: New files.
66580
66581 2007-03-23  Eric Blake  <ebb9@byu.net>
66582
66583         * gnulib-tool: Rearrange space-tab sequences, since some editors
66584         like to eat them.
66585
66586 2007-03-23  Eric Blake  <ebb9@byu.net>
66587
66588         * lib/version-etc.c (version_etc_va): Update license wording to
66589         be more concise.  Recommended by Richard Stallman.
66590
66591 2007-03-22  Bruno Haible  <bruno@clisp.org>
66592
66593         * lib/poll.c (MSG_PEEK): New fallback definition.
66594
66595 2007-03-22  Bruno Haible  <bruno@clisp.org>
66596
66597         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66598         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66599         (main): Update.
66600         Fixes a compilation error on BeOS.
66601
66602 2007-03-22  Bruno Haible  <bruno@clisp.org>
66603
66604         * modules/frexpl-tests: New file.
66605         * tests/test-frexpl.c: New file.
66606
66607         * modules/frexpl: New file.
66608         * m4/frexpl.m4: New file.
66609         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66610         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66612         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66613         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66614         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66615
66616 2007-03-22  Bruno Haible  <bruno@clisp.org>
66617
66618         * lib/frexpl.c: Share code with lib/frexp.c.
66619         * modules/mathl (Files): Add lib/frexp.c.
66620         (Depends-on): Add isnanl-nolibm.
66621
66622 2007-03-22  Bruno Haible  <bruno@clisp.org>
66623
66624         * modules/printf-frexp (Files): Add m4/frexp.m4.
66625         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66626         only if the found frexp function actually works.
66627
66628 2007-03-22  Bruno Haible  <bruno@clisp.org>
66629
66630         * lib/frexp.c: Remove older implementation that uses divisions.
66631
66632 2007-03-21  Bruno Haible  <bruno@clisp.org>
66633
66634         * modules/frexp-tests: New file.
66635         * tests/test-frexp.c: New file.
66636
66637         * modules/frexp: New file.
66638         * lib/frexp.c: New file.
66639         * m4/frexp.m4: New file.
66640         * lib/math_.h (frexp): New declaration.
66641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66642         REPLACE_FREXP.
66643         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66644
66645 2007-03-21  Bruno Haible  <bruno@clisp.org>
66646
66647         * modules/isnanl-tests: New file.
66648         * tests/test-isnanl.c: New file.
66649
66650         * modules/isnanl: New file.
66651         * lib/isnanl.h: New file.
66652         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66653         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66654         gl_FUNC_ISNANL_WORKS.
66655         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66656         New macros.
66657
66658 2007-03-21  Bruno Haible  <bruno@clisp.org>
66659
66660         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66661         lib/isnanl.h.
66662         (Include): Update.
66663         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66664         * lib/vasnprintf.c: Update.
66665         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66666         tests/test-isnanl.h, remove tests/test-isnanl.c.
66667         (Makefile.am): Update.
66668         * tests/test-isnanl-nolibm.c: New file.
66669         * tests/test-isnanl.h: New file.
66670         * tests/test-isnanl.c: Remove file.
66671
66672 2007-03-21  Jim Meyering  <jim@meyering.net>
66673
66674         When trying to open ".", treat ESTALE like EACCES.
66675         * lib/savewd.c (savewd_save): Resort to forking not just upon
66676         failure with EACCES, but also when errno is ESTALE.
66677
66678 2007-03-20  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66681         Needed on AIX 5.1. Reported by Matthew Woehlke.
66682
66683 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66684
66685         Suggestions by Bruno Haible:
66686         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66687         our own.
66688         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66689         * modules/acl (Depends-on): Add gettext.
66690
66691 2007-03-19  Bruno Haible  <bruno@clisp.org>
66692
66693         * modules/iconvme: Remove file.
66694         * lib/iconvme.h: Remove file.
66695         * lib/iconvme.c: Remove file.
66696         * m4/iconvme.m4: Remove file.
66697
66698 2007-03-19  Bruno Haible  <bruno@clisp.org>
66699
66700         * doc/relocatable-maint.texi: Break long shell script line.
66701         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66702
66703 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66706         handle file_has_acl.
66707         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66708         * lib/acl.c: Move header inclusions and related macro defns into
66709         lib/acl-internal.h.
66710         (S_ISLNK): Remove defn, since that's now done for us.
66711         (file_has_acl): Move to lib/file-has-acl.c.
66712         Call acl_trivial if available.  This is the crucial part of the fix.
66713         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66714         shared within the library.  Rewrite a bit, partly to make it compatible
66715         with the GNU coding style.
66716         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66717         Remove unnecessary double-quotes.
66718         Don't test for acl_to_text; the build will catch that.
66719         Replace acl_entries if it doesn't exist and it is needed.
66720         Check for -lsec and acl_trivial (as used on Solaris 10).
66721         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66722         lib/file-has-acl.c.
66723         (Depends-on): Add sys_stat, for S_ISLNK.
66724
66725 2007-03-19  Ben Pfaff  <blp@gnu.org>
66726
66727         * doc/gnulib.texi: Fix typos.
66728         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66729
66730 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66731
66732         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66733         If size is zero here, buf must be zero.
66734
66735 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66736
66737         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66738         <bruno@clisp.org>.
66739
66740 2007-03-18  Bruno Haible  <bruno@clisp.org>
66741
66742         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66743         Suggested by Eric Blake.
66744
66745 2007-03-18  Ben Pfaff  <blp@gnu.org>
66746
66747         * doc/relocatable.texi: Recommend using as prefix a directory
66748         that does not exist and will never be created.  Based on
66749         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66750         and others.
66751
66752 2007-03-17  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/fchownat.c: Include lchown.h.
66755
66756 2007-03-17  Bruno Haible  <bruno@clisp.org>
66757
66758         Fix endless loop when the given allocated size was > INT_MAX.
66759         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66760         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66761         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66762         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66763         * lib/sprintf.c (sprintf): Likewise.
66764
66765 2007-03-17  Bruno Haible  <bruno@clisp.org>
66766
66767         * tests/test-argp-2.sh (func_compare): Output a context diff.
66768
66769 2007-03-17  Bruno Haible  <bruno@clisp.org>
66770
66771         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66772         locale's decimal-point character.
66773
66774 2007-03-17  Bruno Haible  <bruno@clisp.org>
66775
66776         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66777         before comparing it. Needed because on some platforms (e.g. x86) a
66778         'long double' occupies less bytes than sizeof (long double).
66779
66780 2007-03-17  Bruno Haible  <bruno@clisp.org>
66781
66782         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66783         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66784         * tests/test-getaddrinfo.c (simple): Likewise.
66785         * tests/test-read-file.c (main): Likewise.
66786
66787 2007-03-17  Bruno Haible  <bruno@clisp.org>
66788
66789         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66790
66791 2007-03-17  Bruno Haible  <bruno@clisp.org>
66792
66793         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66794         unused variable.
66795
66796 2007-03-17  Bruno Haible  <bruno@clisp.org>
66797
66798         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66799         * tests/test-c-strncasecmp.c: Likewise.
66800
66801 2007-03-17  Bruno Haible  <bruno@clisp.org>
66802
66803         * modules/stdlib (Depends-on): Add unistd.
66804         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66805         Needed for MacOS X 10.3.
66806
66807 2007-03-17  Bruno Haible  <bruno@clisp.org>
66808
66809         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66810
66811 2007-03-17  Bruno Haible  <bruno@clisp.org>
66812
66813         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66814
66815 2007-03-17  Bruno Haible  <bruno@clisp.org>
66816
66817         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66818         to reflect files copied from gnulib (with or without modifications).
66819         Suggested by Jim Meyering.
66820
66821 2007-03-17  Eric Blake  <ebb9@byu.net>
66822
66823         * NEWS: Document stdlib change from 2007-02-18.
66824
66825 2007-03-17  Jim Meyering  <jim@meyering.net>
66826
66827         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66828         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66829         someone uses a name containing shell meta-characters.
66830         Reported by Alfred M. Szmidt.
66831
66832         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66833
66834 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66835
66836         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66837         and copy gettext configuration files only if configure.ac contains
66838         a use of AM_GNU_GETTEXT_VERSION.
66839
66840 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66841
66842         * build-aux/bootstrap (gnulib_name): New variable.
66843         (gnulib_tool_options): Use it.
66844
66845 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66846
66847         * tests/test-des.c: Use new namespace.
66848
66849 2007-03-15  Bruno Haible  <bruno@clisp.org>
66850
66851         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66852         Reported by James Youngman <jay@gnu.org>.
66853
66854 2007-03-15  Bruno Haible  <bruno@clisp.org>
66855
66856         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66857         declared prototype. Needed with cc on OSF/1 5.1.
66858
66859 2007-03-15  Bruno Haible  <bruno@clisp.org>
66860
66861         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66862         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66863         (struct gl_list_implementation): Add dispose_fn argument to the
66864         'create_empty', 'create' methods.
66865         (struct gl_list_impl_base): Add field 'dispose_fn'.
66866         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66867         argument.
66868         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66869         dispose_fn argument.
66870         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66871         dispose_fn on the dropped values.
66872         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66873         dispose_fn argument.
66874         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66875         dropped values.
66876         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66877         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66878         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66879         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66880         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66881         argument.
66882         (gl_tree_list_free): Call dispose_fn on the dropped values.
66883         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66884         the dropped values.
66885         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66886         Add dispose_fn argument.
66887         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66888         Call dispose_fn on the dropped values.
66889         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66890         Add dispose_fn argument.
66891         (gl_sublist_create): Initialize the 'dispose_fn' field.
66892         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66893         * tests/test-array_list.c (main): Update.
66894         * tests/test-carray_list.c (main): Update.
66895         * tests/test-avltree_list.c (main): Update.
66896         * tests/test-rbtree_list.c (main): Update.
66897         * tests/test-avltreehash_list.c (main): Update.
66898         * tests/test-rbtreehash_list.c (main): Update.
66899         * tests/test-linked_list.c (main): Update.
66900         * tests/test-linkedhash_list.c (main): Update.
66901         * tests/test-array_oset.c (main): Update.
66902
66903 2007-03-15  Bruno Haible  <bruno@clisp.org>
66904
66905         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66906         (gl_oset_create_empty): Add dispose_fn argument.
66907         (struct gl_oset_implementation): Add dispose_fn argument to
66908         'create_empty' method.
66909         (struct gl_oset_impl_base): Add dispose_fn field.
66910         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66911         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66912         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66913         values.
66914         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66915         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66916         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66917         dropped value.
66918         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66919         dropped value.
66920         * tests/test-array_oset.c (main): Update.
66921         * tests/test-avltree_oset.c (main): Update.
66922         * tests/test-rbtree_oset.c (main): Update.
66923         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66924
66925 2007-03-13  Bruno Haible  <bruno@clisp.org>
66926
66927         * tests/test-stdbool.c (i): Update after last patch.
66928
66929 2007-03-12  Bruno Haible  <bruno@clisp.org>
66930
66931         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66932         the iswprint macro. Needed on Solaris 2.5.1.
66933
66934 2007-03-12  Bruno Haible  <bruno@clisp.org>
66935
66936         * tests/test-printf-frexp.c (main): Declare x as volatile.
66937
66938 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66939
66940         * doc/gnulib.texi (Build robot for gnulib): New section.
66941
66942 2007-03-12  Jim Meyering  <jim@meyering.net>
66943
66944         * build-aux/bootstrap: New file.
66945         * build-aux/bootstrap.conf: New file, from coreutils.
66946
66947 2007-03-11  Bruno Haible  <bruno@clisp.org>
66948
66949         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66950
66951 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66952
66953         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66954         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66955         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66956
66957 2007-03-11  Bruno Haible  <bruno@clisp.org>
66958
66959         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66960         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66961
66962 2007-03-11  Bruno Haible  <bruno@clisp.org>
66963
66964         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66965         formula. Needed for SunPRO C 5.0.
66966
66967 2007-03-11  Bruno Haible  <bruno@clisp.org>
66968
66969         * modules/long-options (Depends-on): Add getopt.
66970
66971 2007-03-11  Bruno Haible  <bruno@clisp.org>
66972
66973         * modules/modechange (Depends-on): Add stdbool.
66974
66975 2007-03-11  Bruno Haible  <bruno@clisp.org>
66976
66977         * modules/i-ring (Depends-on): Add stdbool.
66978
66979 2007-03-11  Bruno Haible  <bruno@clisp.org>
66980
66981         * modules/gc-des (Depends-on): Add stdbool.
66982
66983 2007-03-11  Bruno Haible  <bruno@clisp.org>
66984
66985         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66986
66987 2007-03-11  Bruno Haible  <bruno@clisp.org>
66988
66989         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66990
66991 2007-03-11  Bruno Haible  <bruno@clisp.org>
66992
66993         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66994
66995 2007-03-11  Bruno Haible  <bruno@clisp.org>
66996
66997         * lib/vasnprintf.c (sprintf): Undefine.
66998
66999 2007-03-11  Bruno Haible  <bruno@clisp.org>
67000
67001         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67002         initializers in SunPRO C and Compaq C compilers.
67003
67004 2007-03-11  Bruno Haible  <bruno@clisp.org>
67005
67006         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67007         decrementing code ANSI C compliant.
67008
67009 2007-03-11  Bruno Haible  <bruno@clisp.org>
67010
67011         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67012         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67013
67014 2007-03-11  Bruno Haible  <bruno@clisp.org>
67015
67016         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67017         <stdbool.h> substitute doesn't pass.
67018
67019 2007-03-11  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67022
67023 2007-03-11  Bruno Haible  <bruno@clisp.org>
67024
67025         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67026         script, for submission to autobuild.josefsson.org.
67027
67028 2007-03-10  Bruno Haible  <bruno@clisp.org>
67029
67030         * modules/canonicalize-lgpl-tests: New file.
67031         * tests/test-canonicalize-lgpl.sh: New file.
67032         * tests/test-canonicalize-lgpl.c: New file.
67033
67034         * modules/c-strcase-tests: New file.
67035         * tests/test-c-strcase.sh: New file.
67036         * tests/test-c-strcasecmp.c: New file.
67037         * tests/test-c-strncasecmp.c: New file.
67038
67039         * modules/atexit-tests: New file.
67040         * tests/test-atexit.sh: New file.
67041         * tests/test-atexit.c: New file.
67042
67043 2007-03-10  Bruno Haible  <bruno@clisp.org>
67044
67045         * tests/test-binary-io.sh: Use temporary filenames that are not so
67046         likely to clash with those of other tests (in a parallel make).
67047         * tests/test-binary-io.c: Likewise.
67048
67049 2007-03-10  Bruno Haible  <bruno@clisp.org>
67050
67051         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67052         fallback; use #error instead.
67053         Suggested by Simon Josefsson.
67054
67055 2007-03-10  Bruno Haible  <bruno@clisp.org>
67056
67057         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67058         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67059         first and the last.
67060
67061 2007-03-10  Bruno Haible  <bruno@clisp.org>
67062
67063         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67064
67065 2007-03-10  Bruno Haible  <bruno@clisp.org>
67066
67067         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67068         "make distcheck".
67069         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67070         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67071         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67072
67073 2007-03-10  Bruno Haible  <bruno@clisp.org>
67074
67075         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67076         variable.
67077         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67078         variable.
67079
67080 2007-03-09  Eric Blake  <ebb9@byu.net>
67081         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67082
67083         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67084         types are not being provided by gnulib.
67085         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67086         types are supported.
67087
67088 2007-03-10  Bruno Haible  <bruno@clisp.org>
67089
67090         * lib/stdio_.h (__attribute__): New macro.
67091         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67092         vsprintf): Specify __attribute__ __format__ for GCC.
67093         Suggested by Eric Blake.
67094
67095 2007-03-09  Bruno Haible  <bruno@clisp.org>
67096
67097         * modules/printf-posix-tests: New file.
67098         * tests/test-printf-posix.sh: New file.
67099         * tests/test-printf-posix.c: New file.
67100
67101         * modules/printf-posix: New file.
67102         * lib/printf.c: New file.
67103         * m4/printf-posix-rpl.m4: New file.
67104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67105         REPLACE_PRINTF.
67106         * lib/stdio_.h (printf): New declaration.
67107         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67108         ____strfmon____): New macros.
67109         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67110         REPLACE_PRINTF.
67111
67112 2007-03-09  Bruno Haible  <bruno@clisp.org>
67113
67114         * tests/test-vasnprintf-posix2.sh: New file.
67115         * tests/test-vasnprintf-posix2.c: New file.
67116         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67117         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67118         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67119
67120         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67121         a locale dependent decimal point, rather than always '.'.
67122
67123 2007-03-09  Eric Blake  <ebb9@byu.net>
67124
67125         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67126         spite of platforms like Tandem/NSK that define it to -1.
67127
67128 2007-03-08  Bruno Haible  <bruno@clisp.org>
67129
67130         * modules/vprintf-posix-tests: New file.
67131         * tests/test-vprintf-posix.sh: New file.
67132         * tests/test-vprintf-posix.c: New file.
67133         * tests/test-printf-posix.h: New file.
67134
67135         * modules/vprintf-posix: New file.
67136         * lib/vprintf.c: New file.
67137         * m4/vprintf-posix.m4: New file.
67138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67139         REPLACE_VPRINTF.
67140         * lib/stdio_.h (vprintf): New declaration.
67141         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67142         REPLACE_VPRINTF.
67143
67144 2007-03-08  Bruno Haible  <bruno@clisp.org>
67145
67146         * modules/fprintf-posix-tests: New file.
67147         * tests/test-fprintf-posix.sh: New file.
67148         * tests/test-fprintf-posix.c: New file.
67149
67150         * modules/fprintf-posix: New file.
67151         * lib/fprintf.c: New file.
67152         * m4/fprintf-posix.m4: New file.
67153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67154         REPLACE_FPRINTF.
67155         * lib/stdio_.h (fprintf): New declaration.
67156         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67157         REPLACE_FPRINTF.
67158
67159 2007-03-08  Bruno Haible  <bruno@clisp.org>
67160
67161         * modules/vfprintf-posix-tests: New file.
67162         * tests/test-vfprintf-posix.sh: New file.
67163         * tests/test-vfprintf-posix.c: New file.
67164         * tests/test-fprintf-posix.h: New file.
67165         * tests/test-fprintf-posix.out: New file.
67166
67167         * modules/vfprintf-posix: New file.
67168         * lib/vfprintf.c: New file.
67169         * m4/vfprintf-posix.m4: New file.
67170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67171         REPLACE_VFPRINTF.
67172         * lib/stdio_.h (vfprintf): New declaration.
67173         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67174         REPLACE_VFPRINTF.
67175
67176 2007-03-08  Bruno Haible  <bruno@clisp.org>
67177
67178         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67179
67180 2007-03-08  Bruno Haible  <bruno@clisp.org>
67181
67182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67183         instead of 'expr' invocations.
67184         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67185         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67186         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67189         Suggested by Paul Eggert.
67190
67191 2007-03-08  Bruno Haible  <bruno@clisp.org>
67192
67193         * modules/fseterr-tests: New file.
67194         * tests/test-fseterr.c: New file.
67195
67196         * modules/fseterr: New file.
67197         * lib/fseterr.h: New file.
67198         * lib/fseterr.c: New file.
67199
67200 2007-03-08  Bruno Haible  <bruno@clisp.org>
67201
67202         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67203         * lib/getopt_.h: Likewise.
67204         * lib/mbswidth.h: Likewise.
67205         * lib/setenv.h: Likewise.
67206         * lib/vasnprintf.h: Likewise.
67207         * lib/vasprintf.h: Likewise.
67208         * lib/verror.h: Likewise.
67209         * lib/xsetenv.h: Likewise.
67210         * lib/xvasprintf.h: Likewise.
67211
67212 2007-03-08  Jim Meyering  <jim@meyering.net>
67213
67214         * users.txt: Add parted.
67215
67216         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67217
67218 2007-03-07  Bruno Haible  <bruno@clisp.org>
67219
67220         * m4/printf.m4: Make the shell script snippets copy&pastable.
67221
67222 2007-03-02  Bruno Haible  <bruno@clisp.org>
67223
67224         * lib/netinet_in_.h: New file.
67225         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67226         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67227         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67228         (Depends-on): Add absolute-header.
67229         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67230         into netinet/in.h.
67231
67232 2007-03-03  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/sys_select_.h: New file.
67235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67236         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67237         * modules/sys_select (Files): Add lib/sys_select_.h.
67238         (Depends-on): Add absolute-header.
67239         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67240         into sys/select.h.
67241
67242 2007-03-02  Bruno Haible  <bruno@clisp.org>
67243
67244         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67245         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67246         values.
67247         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67248         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67249         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67250         * modules/sys_socket (Depends-on): Add absolute-header.
67251         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67252         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67253         (Include): Remove requirement of inclusion of <sys/types.h>.
67254
67255 2007-03-02  Bruno Haible  <bruno@clisp.org>
67256
67257         * lib/byteswap_.h (bswap_32): Fix formula.
67258
67259 2007-03-06  Bruno Haible  <bruno@clisp.org>
67260
67261         * modules/sprintf-posix-tests: New file.
67262         * tests/test-sprintf-posix.c: New file.
67263
67264         * modules/sprintf-posix: New file.
67265         * lib/sprintf.c: New file.
67266         * m4/sprintf-posix.m4: New file.
67267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67268         REPLACE_SPRINTF.
67269         * lib/stdio_.h (sprintf): New declaration.
67270         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67271         REPLACE_SPRINTF.
67272
67273 2007-03-06  Bruno Haible  <bruno@clisp.org>
67274
67275         * modules/vsprintf-posix-tests: New file.
67276         * tests/test-vsprintf-posix.c: New file.
67277         * tests/test-sprintf-posix.h: New file.
67278
67279         * modules/vsprintf-posix: New file.
67280         * lib/vsprintf.c: New file.
67281         * m4/vsprintf-posix.m4: New file.
67282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67283         REPLACE_VSPRINTF.
67284         * lib/stdio_.h (vsprintf): New declaration.
67285         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67286         REPLACE_VSPRINTF.
67287
67288 2007-03-06  Bruno Haible  <bruno@clisp.org>
67289
67290         * modules/vsnprintf (Depend-on): Remove minmax.
67291
67292 2007-03-06  Bruno Haible  <bruno@clisp.org>
67293
67294         * modules/snprintf-posix-tests: New file.
67295         * tests/test-snprintf-posix.c: New file.
67296
67297         * modules/snprintf-posix: New file.
67298         * m4/snprintf-posix.m4: New file.
67299         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67300         gl_FUNC_SNPRINTF.
67301         (gl_FUNC_SNPRINTF): Invoke it.
67302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67303         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67304         is set.
67305         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67306
67307 2007-03-06  Bruno Haible  <bruno@clisp.org>
67308
67309         * modules/vsnprintf-posix-tests: New file.
67310         * tests/test-vsnprintf-posix.c: New file.
67311         * tests/test-snprintf-posix.h: New file.
67312
67313         * modules/vsnprintf-posix: New file.
67314         * m4/vsnprintf-posix.m4: New file.
67315         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67316         gl_FUNC_VSNPRINTF.
67317         (gl_FUNC_VSNPRINTF): Invoke it.
67318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67319         * lib/stdio_.h (vsnprintf): Define as a replacement if
67320         REPLACE_VSNPRINTF is set.
67321         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67322
67323 2007-03-06  Bruno Haible  <bruno@clisp.org>
67324
67325         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67327
67328 2007-03-06  Bruno Haible  <bruno@clisp.org>
67329
67330         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67331         (asinl): Declare also if HAVE_DECL_ASINL is set.
67332         (atanl): Declare also if HAVE_DECL_ATANL is set.
67333         (ceill): Declare also if HAVE_DECL_CEILL is set.
67334         (cosl): Declare also if HAVE_DECL_COSL is set.
67335         (expl): Declare also if HAVE_DECL_EXPL is set.
67336         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67337         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67338         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67339         (logl): Declare also if HAVE_DECL_LOGL is set.
67340         (sinl): Declare also if HAVE_DECL_SINL is set.
67341         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67342         (tanl): Declare also if HAVE_DECL_TANL is set.
67343         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67345         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67346         declaration of frexpl, ldexpl.
67347         * modules/printf-frexpl (Depends-on): Add math.
67348         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67349
67350 2007-03-05  Bruno Haible  <bruno@clisp.org>
67351
67352         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67353         frexpl and ldexpl are declared.
67354         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67355
67356 2007-03-05  Bruno Haible  <bruno@clisp.org>
67357
67358         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67359         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67360
67361 2007-03-05  Bruno Haible  <bruno@clisp.org>
67362
67363         * lib/stdio_.h: Include <stddef.h>.
67364
67365 2007-03-05  Bruno Haible  <bruno@clisp.org>
67366
67367         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67368
67369 2007-03-05  Bruno Haible  <bruno@clisp.org>
67370
67371         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67372         NetBSD 4, from Ralf Wildenhues.
67373
67374 2007-03-04  Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/vasprintf.h: Update #if logic for the case when the functions
67377         exist but are overridden.
67378
67379 2007-03-04  Bruno Haible  <bruno@clisp.org>
67380
67381         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67382         implementations: glibc-2.4 and MacOS X 10.3.
67383         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67384         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67385         * tests/test-vasprintf-posix.c (test_function): Likewise.
67386
67387 2007-03-04  Bruno Haible  <bruno@clisp.org>
67388
67389         * modules/vasprintf-posix-tests: New file.
67390         * tests/test-vasprintf-posix.c: New file.
67391
67392         * modules/vasprintf-posix: New file.
67393         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67394         defined.
67395         * m4/vasprintf-posix.m4: New file.
67396         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67397         gl_FUNC_VASPRINTF.
67398         (gl_FUNC_VASPRINTF): Invoke it.
67399         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67400         here.
67401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67402
67403 2007-03-04  Bruno Haible  <bruno@clisp.org>
67404
67405         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67406         REPLACE_GETTIMEOFDAY.
67407         * modules/sys_time (Makefile.am): Likewise.
67408         * m4/sys_time_h.m4: Likewise.
67409         * m4/gettimeofday.m4: Likewise.
67410
67411 2007-03-04  Bruno Haible  <bruno@clisp.org>
67412
67413         * modules/vasnprintf-posix-tests: New file.
67414         * tests/test-vasnprintf-posix.c: New file.
67415
67416         * modules/vasnprintf-posix: New file.
67417         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67418         printf-frexpl.h.
67419         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67420         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67421         REPLACE_VASNPRINTF is defined.
67422         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67423         gl_FUNC_VASNPRINTF.
67424         (gl_FUNC_VASNPRINTF): Invoke it.
67425         * m4/vasnprintf-posix.m4: New file.
67426         * m4/printf.m4: New file.
67427
67428 2007-03-04  Bruno Haible  <bruno@clisp.org>
67429
67430         Compile progreloc.c only if --enable-relocatable is specified.
67431         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67432         if --enable-relocatable was specified.
67433         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67434         lib_SOURCES.
67435
67436 2007-03-04  Jim Meyering  <jim@meyering.net>
67437
67438         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67439         Use it consistently, rather than enumerating errno constants.
67440
67441 2007-03-04  Bruno Haible  <bruno@clisp.org>
67442
67443         * modules/xvasprintf-tests: New file.
67444         * tests/test-xvasprintf.c: New file.
67445
67446         * modules/vasprintf-tests: New file.
67447         * tests/test-vasprintf.c: New file.
67448
67449         * modules/vasnprintf-tests: New file.
67450         * tests/test-vasnprintf.c: New file.
67451
67452         * modules/vsnprintf-tests: New file.
67453         * tests/test-vsnprintf.c: New file.
67454
67455         * modules/snprintf-tests: New file.
67456         * tests/test-snprintf.c: New file.
67457
67458 2007-03-04  Bruno Haible  <bruno@clisp.org>
67459
67460         Compile relocatable.c only if --enable-relocatable is specified.
67461         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67462         gl_RELOCATABLE_LIBRARY.
67463         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67464         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67465         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67466         gl_RELOCATABLE_LIBRARY.
67467         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67468         (Makefile.am): Remove lib_SOURCES.
67469         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67470         gl_RELOCATABLE_LIBRARY.
67471         (Makefile.am): Remove lib_SOURCES.
67472         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67473         always.
67474         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67475         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67476
67477 2007-03-04  Bruno Haible  <bruno@clisp.org>
67478
67479         * modules/argmatch-tests: New file.
67480         * tests/test-argmatch.c: New file.
67481
67482         * tests/test-allocsa.c (main): Halve the number of loop runs.
67483
67484         * modules/alloca-opt-tests: New file.
67485         * tests/test-alloca-opt.c: New file.
67486
67487 2007-03-04  Jim Meyering  <jim@meyering.net>
67488
67489         Work around difference between Linux ACLs and Solaris 10 ZFS.
67490         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67491         for EINVAL.
67492
67493 2007-03-03  Bruno Haible  <bruno@clisp.org>
67494
67495         * modules/relocatable-prog (Depends-on): Add back progreloc's
67496         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67497
67498 2007-03-03  Bruno Haible  <bruno@clisp.org>
67499
67500         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67501         * modules/relocatable-lib: New file.
67502
67503 2007-03-03  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/relocatable-prog: Renamed from modules/relocatable.
67506         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67507
67508 2007-03-03  Bruno Haible  <bruno@clisp.org>
67509
67510         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67511         m4/relocatable-lib.m4.
67512         (Depends-on): Remove 'relocatable'.
67513         (configure.ac): Add gl_RELOCATABLE_NOP.
67514
67515 2007-03-03  Bruno Haible  <bruno@clisp.org>
67516
67517         * modules/relocatable-prog-wrapper: New file.
67518         * modules/relocatable (Depends-on): Add it. Remove all other
67519         dependencies except progname.
67520         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67521
67522         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67523         (gl_FUNC_STRERROR): Nop.
67524         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67525
67526         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67527         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67528
67529         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67530         (gl_FUNC_READLINK): Update.
67531
67532         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67533
67534 2007-03-03  Bruno Haible  <bruno@clisp.org>
67535
67536         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67537         * modules/xreadlink (Depends-on): Add unistd.
67538         * modules/xreadlink-with-size (Depends-on): Likewise.
67539
67540 2007-03-03  Bruno Haible  <bruno@clisp.org>
67541
67542         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67543         extracted from gt_FUNC_SETENV.
67544         (gt_FUNC_SETENV): Remove macro.
67545         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67546         remove gt_FUNC_SETENV.
67547
67548 2007-03-03  Bruno Haible  <bruno@clisp.org>
67549
67550         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67551         ENABLE_RELOCATABLE here.
67552         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67553
67554 2007-03-03  Bruno Haible  <bruno@clisp.org>
67555
67556         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67557         * tests/test-rbtreehash_list.c: Include progname.h.
67558         (main): Call set_program_name.
67559
67560         * modules/rbtree-oset-tests (Depends-on): Add progname.
67561         * tests/test-rbtree_oset.c: Include progname.h.
67562         (main): Call set_program_name.
67563
67564         * modules/rbtree-list-tests (Depends-on): Add progname.
67565         * tests/test-rbtree_list.c: Include progname.h.
67566         (main): Call set_program_name.
67567
67568         * modules/linked-list-tests (Depends-on): Add progname.
67569         * tests/test-linked_list.c: Include progname.h.
67570         (main): Call set_program_name.
67571
67572 2007-03-03  Bruno Haible  <bruno@clisp.org>
67573
67574         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67575         All uses of __restrict changed to _Restrict_.
67576         * lib/glob_.h (__restrict): Remove macro.
67577
67578 2007-03-02  Bruno Haible  <bruno@clisp.org>
67579
67580         * modules/gettext (configure.ac): Require gettext infrastructure
67581         from version 0.16.1.
67582
67583 2007-03-02  Bruno Haible  <bruno@clisp.org>
67584
67585         * modules/linkedhash-list-tests (Depends-on): Add progname.
67586         * tests/test-linkedhash_list.c: Include progname.h.
67587         (main): Call set_program_name.
67588
67589         * modules/carray-list-tests (Depends-on): Add progname.
67590         * tests/test-carray_list.c: Include progname.h.
67591         (main): Call set_program_name.
67592
67593         * modules/avltreehash-list-tests (Depends-on): Add progname.
67594         * tests/test-avltreehash_list.c: Include progname.h.
67595         (main): Call set_program_name.
67596
67597         * modules/avltree-oset-tests (Depends-on): Add progname.
67598         * tests/test-avltree_oset.c: Include progname.h.
67599         (main): Call set_program_name.
67600
67601         * modules/avltree-list-tests (Depends-on): Add progname.
67602         * tests/test-avltree_list.c: Include progname.h.
67603         (main): Call set_program_name.
67604
67605         * modules/array-oset-tests (Depends-on): Add progname.
67606         * tests/test-array_oset.c: Include progname.h.
67607         (main): Call set_program_name.
67608
67609         * modules/array-list-tests (Depends-on): Add progname.
67610         * tests/test-array_list.c: Include progname.h.
67611         (main): Call set_program_name.
67612
67613         * modules/argp-tests (Depends-on): Add progname.
67614         * tests/test-argp.c: Include argp.h first. Include progname.h.
67615         (main): Call set_program_name.
67616
67617 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         * doc/gnulib-tool.texi (Initial import): Reword description of
67620         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67621         limited effect even if defined after the first system include.
67622
67623 2007-03-01  Bruno Haible  <bruno@clisp.org>
67624
67625         * build-aux/config.libpath: Update to libtool-1.5.22.
67626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67627
67628 2007-03-01  Bruno Haible  <bruno@clisp.org>
67629
67630         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67631         foo_CFLAGS.
67632         Reported by Ralf Wildenhues.
67633
67634 2007-03-01  Bruno Haible  <bruno@clisp.org>
67635
67636         * build-aux/install-reloc: Remove object files left over by some
67637         compilers.
67638         Reported by Ralf Wildenhues.
67639
67640 2007-03-01  Bruno Haible  <bruno@clisp.org>
67641
67642         * build-aux/install-reloc: Break long lines.
67643
67644 2007-03-01  Bruno Haible  <bruno@clisp.org>
67645
67646         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67647         Reported by Ralf Wildenhues.
67648
67649 2007-03-01  Bruno Haible  <bruno@clisp.org>
67650
67651         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67652         include ordering constraints.
67653
67654 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67657         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67658         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67659         as another example.
67660         * lib/time_.h: Fix misspelling.
67661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67662         Require gl_HEADER_TIME_H_DEFAULTS.
67663         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67664         * m4/time_r.m4 (gl_TIME_R): Likewise.
67665         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67666
67667 2007-03-01  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67670         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67671
67672 2007-03-01  Jim Meyering  <jim@meyering.net>
67673
67674         * modules/xreadlink (Maintainer): Add my name.
67675         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67676
67677 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67678             Bruno Haible  <bruno@clisp.org>
67679
67680         * build-aux/install-reloc: Compile also c-ctype.c.
67681         * build-aux/relocatable.sh.in: New file.
67682         * doc/relocatable.texi: New file.
67683         * doc/relocatable-maint.texi: New file.
67684         * doc/gnulib.texi: Include relocatable-maint.texi.
67685         * lib/progreloc.c: Include unistd.h unconditionally.
67686         * lib/relocwrapper.c: Include unistd.h unconditionally.
67687         Include c-ctype.h.
67688         (add_dotbin): Use c_tolower.
67689         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67690         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67691         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67692         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67693         to m4/relocatable-lib.m4.
67694         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67695         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67696         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67697         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67698         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67699         * modules/relocatable: New file.
67700         * modules/relocatable-lib: New file.
67701         * modules/relocatable-script: New file.
67702
67703 2007-02-28  Bruno Haible  <bruno@clisp.org>
67704
67705         Import --enable-relocatable infrastructure.
67706         * build-aux/config.libpath: New file, from GNU gettext.
67707         * build-aux/install-reloc: New file, from GNU gettext.
67708         * build-aux/reloc-ldflags: New file, from GNU gettext.
67709         * lib/relocatable.h: New file, from GNU gettext.
67710         * lib/relocatable.c: New file, from GNU gettext.
67711         * lib/relocwrapper.c: New file, from GNU gettext.
67712         * m4/relocatable.m4: New file, from GNU gettext.
67713
67714 2007-02-28  Bruno Haible  <bruno@clisp.org>
67715
67716         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67717
67718         * modules/xreadlink: New file, from GNU gettext with modifications.
67719         * lib/xreadlink.c: New file, from GNU gettext.
67720         * lib/xreadlink.h: Add comments.
67721         (xreadlink): New declaration.
67722
67723         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67724         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67725         lib/xreadlink-with-size.c.
67726         (configure.ac): Remove gl_XREADLINK invocation.
67727         (Makefile.am): Augment lib_SOURCES.
67728         * m4/xreadlink.m4: Remove file.
67729         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67730         (xreadlink_with_size): Renamed from xreadink.
67731         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67732         * modules/canonicalize (Depends-on): Replace xreadlink with
67733         xreadlink-with-size.
67734         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67735
67736 2007-02-25  Jim Meyering  <jim@meyering.net>
67737
67738         * build-aux/announce-gen: When complaining about excess arguments,
67739         list them.
67740
67741 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67742
67743         * README: Document signed integer overflow situation more
67744         accurately.
67745
67746 2007-02-25  Bruno Haible  <bruno@clisp.org>
67747
67748         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67749         'a' or 'A' conversion.
67750
67751 2007-02-25  Bruno Haible  <bruno@clisp.org>
67752
67753         * modules/filename: Renamed from modules/pathname.
67754         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67755         lib/concatpath.c with lib/concat-filename.c.
67756         (Makefile.am): Update.
67757         (Include): Replace pathname.h with filename.h.
67758         * lib/filename.h: Renamed from lib/pathname.h.
67759         (concatenated_filename): Renamed from concatenated_pathname.
67760         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67761         (concatenated_filename): Renamed from concatenated_pathname.
67762         * lib/findprog.c: Include filename.h instead of pathname.h.
67763         (find_in_path): Update.
67764         * lib/javacomp.c: Include filename.h instead of pathname.h.
67765         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67766         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67767         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67768         is_oldgcj_14_13_usable, is_javac_usable): Update.
67769         * lib/javaexec.c: Include filename.h instead of pathname.h.
67770         (execute_java_class): Update.
67771         * modules/findprog: Update.
67772         * modules/javacomp: Update.
67773         * modules/javaexec: Update.
67774         * MODULES.html.sh (File system functions): Add 'filename', remove
67775         'pathname'.
67776
67777 2007-02-25  Bruno Haible  <bruno@clisp.org>
67778
67779         * modules/printf-frexpl-tests: New file.
67780         * tests/test-printf-frexpl.c: New file.
67781
67782         * modules/printf-frexpl: New file.
67783         * lib/printf-frexpl.h: New file.
67784         * lib/printf-frexpl.c: New file.
67785         * m4/printf-frexpl.m4: New file.
67786
67787 2007-02-25  Bruno Haible  <bruno@clisp.org>
67788
67789         * modules/printf-frexp-tests: New file.
67790         * tests/test-printf-frexp.c: New file.
67791
67792         * modules/printf-frexp: New file.
67793         * lib/printf-frexp.h: New file.
67794         * lib/printf-frexp.c: New file.
67795         * m4/printf-frexp.m4: New file.
67796
67797 2007-02-25  Bruno Haible  <bruno@clisp.org>
67798
67799         Assume automake >= 1.10 for the tests.
67800         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67801         * modules/arctwo-tests: Likewise.
67802         * modules/argp-tests: Likewise.
67803         * modules/avltree-list-tests: Likewise.
67804         * modules/avltree-oset-tests: Likewise.
67805         * modules/avltreehash-list-tests: Likewise.
67806         * modules/carray-list-tests: Likewise.
67807         * modules/crc-tests: Likewise.
67808         * modules/des-tests: Likewise.
67809         * modules/gc-arcfour-tests: Likewise.
67810         * modules/gc-arctwo-tests: Likewise.
67811         * modules/gc-des-tests: Likewise.
67812         * modules/gc-hmac-md5-tests: Likewise.
67813         * modules/gc-hmac-sha1-tests: Likewise.
67814         * modules/gc-md2-tests: Likewise.
67815         * modules/gc-md4-tests: Likewise.
67816         * modules/gc-md5-tests: Likewise.
67817         * modules/gc-pbkdf2-sha1-tests: Likewise.
67818         * modules/gc-rijndael-tests: Likewise.
67819         * modules/gc-sha1-tests: Likewise.
67820         * modules/gc-tests: Likewise.
67821         * modules/getaddrinfo-tests: Likewise.
67822         * modules/hmac-md5-tests: Likewise.
67823         * modules/hmac-sha1-tests: Likewise.
67824         * modules/linked-list-tests: Likewise.
67825         * modules/linkedhash-list-tests: Likewise.
67826         * modules/lock-tests: Likewise.
67827         * modules/md2-tests: Likewise.
67828         * modules/md4-tests: Likewise.
67829         * modules/md5-tests: Likewise.
67830         * modules/rbtree-list-tests: Likewise.
67831         * modules/rbtree-oset-tests: Likewise.
67832         * modules/rbtreehash-list-tests: Likewise.
67833         * modules/read-file-tests: Likewise.
67834         * modules/rijndael-tests: Likewise.
67835         * modules/stdint-tests: Likewise.
67836         * modules/tls-tests: Likewise.
67837
67838 2007-02-24  Bruno Haible  <bruno@clisp.org>
67839
67840         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67841         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67842         function; instead check whether isnan with a double argument links.
67843         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67844         function; instead check whether isnan with a 'long double' argument
67845         links.
67846         Reported by Eric Blake <ebb9@byu.net>.
67847
67848 2007-02-24  Bruno Haible  <bruno@clisp.org>
67849
67850         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67851         defined.
67852         * lib/isnanl.c: Remove all code. Just include isnan.c.
67853         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67854
67855 2007-02-25  Jim Meyering  <jim@meyering.net>
67856
67857         Avoid conflicting types for 'unsetenv' on FreeBSD.
67858         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67859         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67860         in stdlib.h.
67861
67862 2007-02-24  Bruno Haible  <bruno@clisp.org>
67863
67864         * modules/isnanl-nolibm-tests: New file.
67865         * tests/test-isnanl.c: New file.
67866
67867         * modules/isnanl-nolibm: New file.
67868         * lib/isnanl.h: New file.
67869         * lib/isnanl.c: New file.
67870         * m4/isnanl.m4: New file.
67871
67872 2007-02-24  Bruno Haible  <bruno@clisp.org>
67873
67874         * modules/isnan-nolibm-tests: New file.
67875         * tests/test-isnan.c: New file.
67876
67877         * modules/isnan-nolibm: New file.
67878         * lib/isnan.h: New file.
67879         * lib/isnan.c: New file.
67880         * m4/isnan.m4: New file.
67881
67882 2007-02-24  Bruno Haible  <bruno@clisp.org>
67883
67884         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67885         assume that an exponent fits in 20 bits.
67886
67887 2007-02-24  Jim Meyering  <jim@meyering.net>
67888
67889         * m4/regex.m4: Update the description of the configure-time option,
67890         --without-included-regex, to state accurately what the defaults are,
67891         and perhaps to give people an idea why using this option is risky.
67892
67893 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67894
67895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67896         loops on small arguments.  This attempts to avoid the problem
67897         Bruno Haible reported for AIX 4.3.2 in
67898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67899
67900 2007-02-23  Bruno Haible  <bruno@clisp.org>
67901
67902         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67903         Needed for help2man.
67904
67905 2007-02-23  Karl Berry  <karl@gnu.org>
67906
67907         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67908         exists, foo.h should be cvs-ignored, not committed.
67909
67910 2007-02-23  Eric Blake  <ebb9@byu.net>
67911
67912         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67913         * lib/stat-time.h (includes): Likewise.
67914         * lib/utimecmp.c (includes): Likewise.
67915         * lib/utimens.h (includes): Likewise.
67916         * lib/getdate.y (includes): Also include "timespec.h" for use
67917         internal to the module.
67918         * modules/utimens (Depends-on): Revert yesterday's patch.
67919         * modules/nanosleep (Depends-on): Add missing dependency.
67920
67921 2007-02-22  Bruno Haible  <bruno@clisp.org>
67922
67923         * lib/glob.c: Don't include getlogin_r.h.
67924
67925 2007-02-22  Jim Meyering  <jim@meyering.net>
67926
67927         * modules/utimens (Depends-on): Add timespec, required for
67928         utimens.h's inclusion of timespec.h.
67929
67930 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67933         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67934         Schwab in
67935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67936         I'll try to think of a better way to fix the Solaris problem.
67937
67938         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67939         like glibc; on Solaris 10, it fails with errno == EINVAL.
67940         POSIX says the behavior is unspecified if the first argument is NULL,
67941         so play it safe and never pass NULL to the system getcwd.
67942
67943 2007-02-21  Jim Meyering  <jim@meyering.net>
67944
67945         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67946         of gettimeofday.  It would conflict with the one now always
67947         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67948         an IRIX 6.5 build failure.
67949
67950 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67951
67952         Minor fixups to port to Solaris 10 with Sun C 5.8.
67953         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67954         * modules/getcwd (Depends-on): Add dirfd.
67955         * lib/putenv.c (putenv): #undef it.
67956         (rpl_putenv): New decl.
67957         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67958
67959 2007-02-20  Bruno Haible  <bruno@clisp.org>
67960
67961         * modules/stdio-tests: New file.
67962         * tests/test-stdio.c: New file.
67963
67964         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67965         (Depends-on): Add stdio.
67966         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67967         (Include): Use <stdio.h> instead of vsnprintf.h.
67968         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67969         HAVE_DECL_VSNPRINTF.
67970         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67971
67972         * modules/snprintf (Files): Remove lib/snprintf.h.
67973         (Depends-on): Add stdio.
67974         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67975         (Include): Use <stdio.h> instead of snprintf.h.
67976         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67977         HAVE_DECL_SNPRINTF.
67978         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67979         * lib/getaddrinfo.c: Likewise.
67980
67981         * modules/stdio: New file.
67982         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67983         * lib/snprintf.h: Remove file.
67984         * lib/vsnprintf.h: Remove file.
67985         * lib/.cppi-disable: Remove snprintf.h.
67986         * m4/stdio_h.m4: New file.
67987         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67988
67989 2007-02-20  Jim Meyering  <jim@meyering.net>
67990
67991         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67992         used by e.g., mingw.  From Bruno Haible.
67993
67994 2007-02-19  Bruno Haible  <bruno@clisp.org>
67995
67996         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67997         warnings.
67998         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67999
68000 2007-02-19  Bruno Haible  <bruno@clisp.org>
68001
68002         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68003         from mingw users.
68004
68005 2007-02-19  Bruno Haible  <bruno@clisp.org>
68006
68007         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68008         warnings.
68009         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68010
68011 2007-02-19  Jim Meyering  <jim@meyering.net>
68012
68013         Don't use FD after a successful "fdopendir (fd)".
68014         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68015         Reset it by calling dirfd on the just-obtained DIR*.
68016
68017         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68018         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68019
68020 2007-02-18  Bruno Haible  <bruno@clisp.org>
68021
68022         * lib/readlink.c: Include <unistd.h>.
68023         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68024         HAVE_READLINK.
68025         * modules/readlink (Depends-on): Add unistd.
68026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68027         (Include): Add <unistd.h>.
68028
68029         * lib/getlogin_r.h: Remove file.
68030         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68031         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68032         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68033         HAVE_DECL_GETLOGIN_R.
68034         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68035         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68036         (Include): Use <unistd.h> instead of getlogin_r.h.
68037
68038         * lib/getcwd.h: Remove file.
68039         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68040         * lib/xgetcwd.c: Likewise.
68041         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68042         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68043         * modules/getcwd (Files): Remove lib/getcwd.h.
68044         (Depends-on): Add unistd.
68045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68046         (Include): Use <unistd.h> instad of getcwd.h.
68047
68048         * lib/ftruncate.c: Include <unistd.h> first.
68049         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68050         Set HAVE_FTRUNCATE.
68051         * modules/ftruncate (Depends-on): Add unistd.
68052         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68053
68054         * lib/fchdir.c: Include <unistd.h> first.
68055         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68057         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68058         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68059         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68060
68061         * lib/dup2.c: Include <unistd.h> first.
68062         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68063         HAVE_DUP2.
68064         * modules/dup2 (Depends-on): Add unistd.
68065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68066
68067         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68068         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68069         REPLACE_CHOWN. Don't define chown as a macro here.
68070         * modules/chown (Depends-on): Add unistd.
68071         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68072
68073         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68074         Add definition for GL_LINK_WARNING.
68075         (chown, dup2): New declarations.
68076         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68077         link warning.
68078         (ftruncate): New declaration.
68079         (getcwd): New declaration, taken from old getcwd.h.
68080         (getlogin_r): New declaration, taken from old getlogin_r.h.
68081         (readlink): New declaration.
68082         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68083         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68084         (gl_PREREQ_UNISTD): Remove macro.
68085         (gl_UNISTD_MODULE_INDICATOR): New macro.
68086         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68087         many new variables. Don't set UNISTD_H.
68088         * modules/unistd (Description): Change.
68089         (Depends-on): Add link-warning.
68090         (configure.ac): Update.
68091         (Makefile.am): Create unistd.h always. Substitute many new variables
68092         into it.
68093
68094 2007-02-18  Bruno Haible  <bruno@clisp.org>
68095
68096         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68097         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68098         HAVE_GETSUBOPT.
68099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68100         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68101         * lib/getsubopt.h: Remove file.
68102         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68103         (Depends-on): Add stdlib.
68104         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68105         (Includes): Use <stdlib.h> instead of getsubopt.h.
68106         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68107         Set HAVE_GETSUBOPT.
68108         * lib/getsubopt.c: Don't include getsubopt.h.
68109
68110 2007-02-18  Bruno Haible  <bruno@clisp.org>
68111
68112         * modules/fchdir (Depends-on): Add dup2.
68113
68114 2007-02-18  Bruno Haible  <bruno@clisp.org>
68115
68116         * lib/stdlib_.h: Handle glibc's special invocation convention
68117         specially.
68118
68119 2007-02-18  Bruno Haible  <bruno@clisp.org>
68120
68121         * modules/stdlib-tests: New file.
68122         * tests/test-stdlib.c: New file.
68123
68124         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68125         (Depends-on): Add stdlib.
68126         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68127         (Includes): Use <stdlib.h> instead of mkstemp.h.
68128         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68129         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68130         * lib/mkstemp.c: Don't include mkstemp.h.
68131         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68132         * lib/stdlib--.h: Don't include mkstemp.h.
68133
68134         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68135         (Depends-on): Add stdlib.
68136         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68137         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68138         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68139         HAVE_MKDTEMP.
68140         * lib/mkdtemp.c: Don't include mkdtemp.h.
68141         * lib/clean-temp.c: Don't include mkdtemp.h.
68142
68143         * modules/exit (Files): Remove lib/exit.h.
68144         (Depends-on): Add stdlib.
68145         (Makefile.am): Remove lib_SOURCES.
68146         (Include): Use <stdlib.h> instead of exit.h.
68147         * lib/argmatch.c: Don't include exit.h.
68148         * lib/execute.c: Likewise.
68149         * lib/pagealign_alloc.c: Likewise.
68150         * lib/pipe.c: Likewise.
68151         * lib/wait-process.c: Likewise.
68152         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68153         * lib/exitfail.c: Likewise.
68154         * lib/savewd.c: Likewise.
68155         * lib/xsetenv.c: Likewise.
68156
68157         * modules/stdlib: New file.
68158         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68159         and extra comments about mkstemp().
68160         * lib/exit.h: Remove file.
68161         * lib/mkdtemp.h: Remove file.
68162         * lib/mkstemp.h: Remove file.
68163         * m4/stdlib_h.m4: New file.
68164         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68165
68166 2007-02-18  Bruno Haible  <bruno@clisp.org>
68167
68168         * modules/math-tests: New file.
68169         * tests/test-math.c: New file.
68170
68171         * modules/math: New file.
68172         * modules/mathl (Files): Remove lib/mathl.h.
68173         (Depends-on): Add math.
68174         (Makefile.am): Don't mention mathl.h.
68175         (Include): Use <math.h> instead of mathl.h.
68176         * lib/math_.h: New file.
68177         * lib/mathl.h: Remove file.
68178         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68179         mathl.h.
68180         * lib/asinl.c: Likewise.
68181         * lib/atanl.c: Likewise.
68182         * lib/ceill.c: Likewise.
68183         * lib/cosl.c: Likewise.
68184         * lib/expl.c: Likewise.
68185         * lib/floorl.c: Likewise.
68186         * lib/frexpl.c: Likewise.
68187         * lib/ldexpl.c: Likewise.
68188         * lib/logl.c: Likewise.
68189         * lib/sincosl.c: Likewise.
68190         * lib/sinl.c: Likewise.
68191         * lib/sqrtl.c: Likewise.
68192         * lib/tanl.c: Likewise.
68193         * lib/trigl.c: Likewise.
68194         * m4/math_h.m4: New file.
68195         * MODULES.html.sh (Mathematics): Add math.
68196
68197 2007-02-17  Bruno Haible  <bruno@clisp.org>
68198
68199         * modules/wctype-tests: New file.
68200         * tests/test-wctype.c: New file.
68201
68202         * modules/wchar-tests: New file.
68203         * tests/test-wchar.c: New file.
68204
68205         * modules/unistd-tests: New file.
68206         * tests/test-unistd.c: New file.
68207
68208         * modules/time-tests: New file.
68209         * tests/test-time.c: New file.
68210
68211         * modules/sysexits-tests: New file.
68212         * tests/test-sysexits.c: New file.
68213
68214         * modules/sys_time-tests: New file.
68215         * tests/test-sys_time.c: New file.
68216
68217         * modules/sys_stat-tests: New file.
68218         * tests/test-sys_stat.c: New file.
68219
68220         * modules/sys_socket-tests: New file.
68221         * tests/test-sys_socket.c: New file.
68222
68223         * modules/sys_select-tests: New file.
68224         * tests/test-sys_select.c: New file.
68225
68226         * modules/string-tests: New file.
68227         * tests/test-string.c: New file.
68228
68229         * modules/stdbool-tests: New file.
68230         * tests/test-stdbool.c: New file.
68231
68232         * modules/netinet_in-tests: New file.
68233         * tests/test-netinet_in.c: New file.
68234
68235         * modules/inttypes-tests: New file.
68236         * tests/test-inttypes.c: New file.
68237
68238         * modules/fcntl-tests: New file.
68239         * tests/test-fcntl.c: New file.
68240
68241         * modules/byteswap-tests: New file.
68242         * tests/test-byteswap.c: New file.
68243
68244         * modules/arpa_inet-tests: New file.
68245         * tests/test-arpa_inet.c: New file.
68246
68247 2007-02-17  Bruno Haible  <bruno@clisp.org>
68248
68249         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68250         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68251         if the corresponding module is not enabled. Emit link warnings if
68252         the function is used nevertheless.
68253         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68254         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68255         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68256         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68257         * modules/inttypes (Depends-on): Add link-warning.
68258         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68259         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68260         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68261         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68262         * modules/imaxdiv (configure.ac): Likewise.
68263         * modules/strtoimax (configure.ac): Likewise.
68264         * modules/strtoumax (configure.ac): Likewise.
68265
68266 2007-02-17  Bruno Haible  <bruno@clisp.org>
68267
68268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68269         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68270         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68271         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68272
68273 2007-02-17  Bruno Haible  <bruno@clisp.org>
68274
68275         * modules/link-warning: New file.
68276         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68277         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68278         * modules/string (Depends-on): Add link-warning.
68279         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68280         string.h.
68281         * MODULES.html.sh (Support for building libraries and executables): Add
68282         link-warning.
68283
68284 2007-02-17  Bruno Haible  <bruno@clisp.org>
68285
68286         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68287         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68288         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68289         long lines.
68290
68291 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68292             Bruno Haible  <bruno@clisp.org>
68293
68294         * modules/tmpfile: New file.
68295         * lib/tmpfile.c: New file.
68296         * m4/tmpfile.m4: New file.
68297         * MODULES.html.sh (func_all_modules): New section "Input/output".
68298
68299 2007-02-15  Bruno Haible  <bruno@clisp.org>
68300
68301         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68302         (supports_delete_on_close): New function.
68303         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68304
68305 2007-02-14  Bruno Haible  <bruno@clisp.org>
68306
68307         * modules/mbspcasecmp-tests: New file.
68308         * tests/test-mbspcasecmp.sh: New file.
68309         * tests/test-mbspcasecmp.c: New file.
68310
68311         New module mbspcasecmp.
68312         * modules/mbspcasecmp: New file.
68313         * lib/mbspcasecmp.c: New file.
68314         * lib/string_.h (strncasecmp): Change warning message.
68315         (mbspcasecmp): New declaration.
68316         * m4/mbspcasecmp.m4: New file.
68317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68318         GNULIB_MBSPCASECMP.
68319         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68320         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68321
68322 2007-02-14  Bruno Haible  <bruno@clisp.org>
68323
68324         * modules/mbsncasecmp-tests: New file.
68325         * tests/test-mbsncasecmp.sh: New file.
68326         * tests/test-mbsncasecmp.c: New file.
68327
68328         New module mbsncasecmp.
68329         * modules/mbsncasecmp: New file.
68330         * lib/mbsncasecmp.c: New file.
68331         * lib/string_.h (mbsncasecmp): New declaration.
68332         * m4/mbsncasecmp.m4: New file.
68333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68334         GNULIB_MBSNCASECMP.
68335         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68336         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68337
68338 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68339
68340         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68341         Verify that it doesn't overlap with our flags.
68342         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68343         do not have the desired effect in multibyte locales; instead, use
68344         mbscasecmp.
68345         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68346         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68347         we don't require GNU fnmatch ourselves (if our users require it, they
68348         should do so explicitly).
68349
68350         Fix regex code so it doesn't rely on strcasecmp.
68351         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68352         Otherwise, include gnulib's langinfo.h.
68353         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68354         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68355         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68356         * modules/regex (FILES): Remove m4/codeset.m4.
68357         (Depends-on): Add localcharset.  Remove strcase.
68358
68359 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68360
68361         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68362         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68363
68364 2007-02-13  Bruno Haible  <bruno@clisp.org>
68365
68366         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68367         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68368
68369 2007-02-12  Bruno Haible  <bruno@clisp.org>
68370
68371         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68372         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68373         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68374         time warning rather than a link error.
68375
68376 2007-02-12  Bruno Haible  <bruno@clisp.org>
68377
68378         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68379         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68380         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68381
68382 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68385         args, not 2.
68386
68387 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68388
68389         New module 'time', so that apps can include <time.h> as per
68390         POSIX and GNU instead of separate include files like time_r.h
68391         and timegm.h.  This implementation tries out a simpler approach
68392         for replacing decls in standard include files (as compared to
68393         the string module), somewhat as an experiment.
68394
68395         * config/srclist.txt: Comment out mktime.c for now.
68396         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68397         since it doesn't apply any more.  Use generic wording instead.
68398         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68399         'time'.
68400         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68401         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68402         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68403         Don't include <sys/types.h>; no longer needed since we assume C89.
68404         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68405         * lib/strftime.c: Likewise.
68406         * lib/time_r.c: Likewise.
68407         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68408         * lib/nanosleep.c: Include <time.h> first, to check interface.
68409         * lib/strptime.c: Likewise.
68410         * lib/time_r.c: Likewise.
68411         * lib/timegm.c: Likewise.
68412         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68413         needed.
68414         * lib/timegm.c: Don't include timegm.h; no longer needed.
68415         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68416         time.h now handles any problems in that area.
68417         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68418         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68419         that time.h defines struct timespec.
68420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68421         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68422         handles that.
68423         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68424         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68425         needed.  Set REPLACE_LOCALTIME.
68426         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68427         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68428         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68429         nanosleep; time_h.m4 now does that.  Don't require
68430         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68431         module handles this now.
68432         * modules/getdate (Depends-on): Remove timespec.  Add time.
68433         * modules/nanosleep (Depends-on): Likewise.
68434         * modules/stat-time (Depends-on): Likewise.
68435         * modules/nanosleep (Include): Include time.h, not timespec.h.
68436         * modules/strptime (Files): Remove lib/strptime.h.
68437         (Depends-on): Add extensions, time.
68438         (Include): Include time.h, not strptime.h.
68439         * modules/time_r (Files): Remove lib/time_r.h.
68440         (Depends-on): Add time.
68441         (Include): Include time.h, not time_r.h.
68442         * modules/timegm: Likewise.
68443         * modules/timespec (Description): Now does timespec-related decls
68444         of our own, instead of struct timespec itself.
68445         (Depends-on): Add time; remove extensions.
68446         (Maintainer): Add self.
68447         * modules/utimecmp (Depends-on): Add time; remove timespec.
68448         * modules/utimens (Depends-on): Likewise.
68449         * modules/xnanosleep (Depends-on): Likewise.
68450
68451 2007-02-11  Bruno Haible  <bruno@clisp.org>
68452
68453         * lib/c-strstr.c: Include allocsa.h.
68454         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68455         * lib/c-strcasestr.c: Include allocsa.h.
68456         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68457         * lib/strcasestr.c: Include allocsa.h.
68458         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68459         * lib/mbsstr.c: Include allocsa.h.
68460         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68461         allocsa/freesa instead of malloc/free.
68462         * lib/mbscasestr.c: Include allocsa.h.
68463         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68464         allocsa/freesa instead of malloc/free.
68465         * modules/c-strstr (Depends-on): Add allocsa.
68466         * modules/c-strcasestr (Depends-on): Likewise.
68467         * modules/strcasestr (Depends-on): Likewise.
68468         * modules/mbsstr (Depends-on): Likewise.
68469         * modules/mbscasestr (Depends-on): Likewise.
68470
68471 2007-02-11  Bruno Haible  <bruno@clisp.org>
68472
68473         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68474
68475         * modules/mbsspn-tests: New file.
68476         * tests/test-mbsspn.sh: New file.
68477         * tests/test-mbsspn.c: New file.
68478
68479 2007-02-11  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68482
68483         * modules/mbspbrk-tests: New file.
68484         * tests/test-mbspbrk.sh: New file.
68485         * tests/test-mbspbrk.c: New file.
68486
68487 2007-02-11  Bruno Haible  <bruno@clisp.org>
68488
68489         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68490         unneeded cast.
68491
68492         * modules/mbscspn-tests: New file.
68493         * tests/test-mbscspn.sh: New file.
68494         * tests/test-mbscspn.c: New file.
68495
68496 2007-02-11  Bruno Haible  <bruno@clisp.org>
68497
68498         * modules/mbscasecmp-tests: New file.
68499         * tests/test-mbscasecmp.sh: New file.
68500         * tests/test-mbscasecmp.c: New file.
68501
68502 2007-02-11  Bruno Haible  <bruno@clisp.org>
68503
68504         Ensure O(n) worst-case complexity of mbscasestr.
68505         * lib/mbscasestr.c: Include stdbool.h.
68506         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68507         functions.
68508         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68509         the bookkeeping indicates that it's worth it.
68510         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68511
68512         * modules/mbscasestr-tests: New file.
68513         * tests/test-mbscasestr1.c: New file.
68514         * tests/test-mbscasestr2.sh: New file.
68515         * tests/test-mbscasestr2.c: New file.
68516         * tests/test-mbscasestr3.sh: New file.
68517         * tests/test-mbscasestr3.c: New file.
68518         * tests/test-mbscasestr4.sh: New file.
68519         * tests/test-mbscasestr4.c: New file.
68520         * m4/locale-tr.m4: New file.
68521
68522 2007-02-11  Bruno Haible  <bruno@clisp.org>
68523
68524         Ensure O(n) worst-case complexity of mbsstr.
68525         * lib/mbsstr.c: Include stdbool.h.
68526         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68527         functions.
68528         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68529         bookkeeping indicates that it's worth it.
68530         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68531
68532         * modules/mbsstr-tests: New file.
68533         * tests/test-mbsstr1.c: New file.
68534         * tests/test-mbsstr2.sh: New file.
68535         * tests/test-mbsstr2.c: New file.
68536         * tests/test-mbsstr3.sh: New file.
68537         * tests/test-mbsstr3.c: New file.
68538         * m4/locale-fr.m4: New file.
68539
68540 2007-02-11  Bruno Haible  <bruno@clisp.org>
68541
68542         * lib/mbsrchr.c (mbsrchr): Fix bug.
68543
68544         * modules/mbsrchr-tests: New file.
68545         * tests/test-mbsrchr.sh: New file.
68546         * tests/test-mbsrchr.c: New file.
68547
68548 2007-02-11  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/mbschr.c (mbschr): Fix bug.
68551
68552         * modules/mbschr-tests: New file.
68553         * tests/test-mbschr.sh: New file.
68554         * tests/test-mbschr.c: New file.
68555         * m4/locale-zh.m4: New file.
68556
68557 2007-02-11  Bruno Haible  <bruno@clisp.org>
68558
68559         Support for copying multibyte string iterators.
68560         * lib/mbiter.h: Include <string.h>.
68561         (mbiter_multi_copy): New function.
68562         (mbi_copy): New macro.
68563         * lib/mbuiter.h: Include <string.h>.
68564         (mbuiter_multi_copy): New function.
68565         (mbui_copy): New macro.
68566
68567 2007-02-11  Bruno Haible  <bruno@clisp.org>
68568
68569         New module mbslen.
68570         * modules/mbslen: New file.
68571         * lib/mbslen.c: New file.
68572         * lib/string_.h (mbslen): New declaration.
68573         * m4/mbslen.m4: New file.
68574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68575         GNULIB_MBSLEN.
68576         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68577         * MODULES.html.sh (Internationalization functions): Add mbslen.
68578
68579 2007-02-11  Bruno Haible  <bruno@clisp.org>
68580
68581         Ensure O(n) worst-case complexity of strcasestr substitute.
68582         * lib/strcasestr.c: Include stdbool.h.
68583         (knuth_morris_pratt): New function.
68584         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68585         bookkeeping indicates that it's worth it.
68586         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68587
68588         * modules/strcasestr-tests: New file.
68589         * tests/test-strcasestr.c: New file.
68590
68591 2007-02-11  Bruno Haible  <bruno@clisp.org>
68592
68593         Ensure O(n) worst-case complexity of c_strcasestr.
68594         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68595         (knuth_morris_pratt): New function.
68596         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68597         the bookkeeping indicates that it's worth it.
68598         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68599
68600         * modules/c-strcasestr-tests: New file.
68601         * tests/test-c-strcasestr.c: New file.
68602
68603 2007-02-11  Bruno Haible  <bruno@clisp.org>
68604
68605         Ensure O(n) worst-case complexity of c_strstr.
68606         * lib/c-strstr.c: Include stdbool.h, string.h.
68607         (knuth_morris_pratt): New function.
68608         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68609         bookkeeping indicates that it's worth it.
68610         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68611
68612         * lib/c-strstr.c: Complete rewrite for maintainability.
68613
68614         * modules/c-strstr-tests: New file.
68615         * tests/test-c-strstr.c: New file.
68616
68617 2007-02-11  Bruno Haible  <bruno@clisp.org>
68618
68619         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68620         5.2.1 and earlier, whereby \055 was treated just like the range
68621         delimiter '-'.
68622         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68623
68624 2007-02-08  Bruno Haible  <bruno@clisp.org>
68625
68626         * modules/regex (Depends-on): Add stdbool.
68627         Reported by Dalibor Topic <robilad@kaffe.org>.
68628
68629 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68630
68631         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68632         Prefer returning from main to exiting from it.
68633         Remove unnecessary parens after sizeof.
68634
68635 2007-02-05  Bruno Haible  <bruno@clisp.org>
68636
68637         New module mbssep.
68638         * modules/mbssep: New file.
68639         * lib/mbssep.c: New file.
68640         * lib/string_.h (strsep): Add a conditional link warning.
68641         (mbssep): New declaration.
68642         * m4/mbssep.m4: New file.
68643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68644         GNULIB_MBSSEP.
68645         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68646         * MODULES.html.sh (Internationalization functions): Add mbssep.
68647
68648 2007-02-05  Bruno Haible  <bruno@clisp.org>
68649
68650         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68651         Optimize search in case of 1 delimiter.
68652
68653 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68654
68655         * lib/acl.h: Include sys/types.h before sys/acl.h.
68656
68657 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68658
68659         Merge upstream fix for glibc bugzilla #3957:
68660
68661         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68662
68663         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68664         bit for RE_HAT_LISTS_NOT_NEWLINE.
68665         (build_charclass_op): Remove bogus comment.
68666
68667 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68668
68669         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68670
68671 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68672
68673         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68674         * lib/memmem.c [!defined _LIBC]: Include config.h.
68675
68676 2007-02-04  Bruno Haible  <bruno@clisp.org>
68677
68678         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68679         warning message.
68680
68681 2007-02-04  Bruno Haible  <bruno@clisp.org>
68682
68683         New module mbstok_r.
68684         * modules/mbstok_r: New file.
68685         * lib/mbstok_r.c: New file.
68686         * lib/string_.h (strtok_r): Change argument names to match the
68687         comments. Add a conditional link warning.
68688         (mbstok_r): New declaration.
68689         * m4/mbstok_r.m4: New file.
68690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68691         GNULIB_MBSTOK_R.
68692         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68693         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68694
68695 2007-02-04  Bruno Haible  <bruno@clisp.org>
68696
68697         New module mbsspn.
68698         * modules/mbsspn: New file.
68699         * lib/mbsspn.c: New file.
68700         * lib/string_.h (strspn): Add a conditional link warning.
68701         (mbsspn): New declaration.
68702         * m4/mbsspn.m4: New file.
68703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68704         GNULIB_MBSSPN.
68705         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68706         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68707
68708 2007-02-04  Bruno Haible  <bruno@clisp.org>
68709
68710         New module mbspbrk.
68711         * modules/mbspbrk: New file.
68712         * lib/mbspbrk.c: New file.
68713         * lib/string_.h (strpbrk): Add a conditional link warning.
68714         (mbspbrk): New declaration.
68715         * m4/mbspbrk.m4: New file.
68716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68717         GNULIB_MBSPBRK.
68718         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68719         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68720
68721 2007-02-04  Bruno Haible  <bruno@clisp.org>
68722
68723         New module mbscspn.
68724         * modules/mbscspn: New file.
68725         * lib/mbscspn.c: New file.
68726         * lib/string_.h (strcspn): Add a conditional link warning.
68727         (mbscspn): New declaration.
68728         * m4/mbscspn.m4: New file.
68729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68730         GNULIB_MBSCSPN.
68731         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68732         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68733
68734 2007-02-04  Bruno Haible  <bruno@clisp.org>
68735
68736         New module mbscasestr, reduced goal of strcasestr.
68737         * modules/mbscasestr: New file.
68738         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68739         (mbscasestr): Renamed from strcasestr.
68740         * lib/strcasestr.c: Don't include mbuiter.h.
68741         (strcasestr): Remove support for multibyte locales.
68742         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68743         Change the conditional link warning.
68744         (mbscasestr): New declaration.
68745         * m4/mbscasestr.m4: New file.
68746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68747         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68748         REPLACE_STRCASESTR.
68749         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68751         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68752         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68753         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68754         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68755         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68756         (Depends-on): Remove mbuiter.
68757         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68758
68759 2007-02-04  Bruno Haible  <bruno@clisp.org>
68760
68761         Simplify handling of strncasecmp.
68762         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68763         the conditional link warning.
68764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68765         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68766         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68767         * modules/strcase (configure.ac): Don't invoke
68768         gl_STRING_MODULE_INDICATOR.
68769         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68770
68771 2007-02-04  Bruno Haible  <bruno@clisp.org>
68772
68773         New module mbscasecmp, reduced goal of strcasecmp.
68774         * modules/mbscasecmp: New file.
68775         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68776         (mbscasecmp): Renamed from strcasecmp.
68777         * lib/strcasecmp.c: Don't include mbuiter.h.
68778         (strcasecmp): Remove support for multibyte locales.
68779         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68780         Change the conditional link warning.
68781         (mbscasecmp): New declaration.
68782         * m4/mbscasecmp.m4: New file.
68783         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68784         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68785         REPLACE_STRCASECMP.
68786         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68788         GNULIB_MBSCASECMP.
68789         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68790         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68791         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68792         (Depends-on): Remove mbuiter.
68793         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68794
68795 2007-02-04  Bruno Haible  <bruno@clisp.org>
68796
68797         New module mbsstr. Remove module strstr.
68798         * modules/mbsstr: New file.
68799         * modules/strstr: Remove file.
68800         * lib/mbsstr.c: Renamed from lib/strstr.c.
68801         (mbsstr): Renamed from strstr.
68802         * lib/string_.h (strstr): Remove declaration. Change the conditional
68803         link warning.
68804         (mbsstr): New declaration.
68805         * m4/mbsstr.m4: New file.
68806         * m4/strstr.m4: Remove file.
68807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68808         REPLACE_STRSTR.
68809         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68810         Don't initialize GNULIB_STRSTR.
68811         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68812         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68813         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68814         (Support for systems lacking ANSI C 89): Remove strstr.
68815
68816 2007-02-04  Bruno Haible  <bruno@clisp.org>
68817
68818         New module mbsrchr.
68819         * modules/mbsrchr: New file.
68820         * lib/mbsrchr.c: New file.
68821         * lib/string_.h (strrchr): Add a conditional link warning.
68822         (mbsrchr): New declaration.
68823         * m4/mbsrchr.m4: New file.
68824         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68825         GNULIB_MBSRCHR.
68826         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68827         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68828
68829 2007-02-04  Bruno Haible  <bruno@clisp.org>
68830
68831         New module mbschr.
68832         * modules/mbschr: New file.
68833         * lib/mbschr.c: New file.
68834         * lib/string_.h (strchr): Add a conditional link warning.
68835         (mbschr): New declaration.
68836         * m4/mbschr.m4: New file.
68837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68838         GNULIB_MBSCHR.
68839         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68840         * MODULES.html.sh (Internationalization functions): Add mbschr.
68841
68842 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68845
68846         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68847
68848 2007-02-04  Bruno Haible  <bruno@clisp.org>
68849
68850         New module description section 'configure.ac-early'.
68851         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68852         (func_get_autoconf_early_snippet): New function.
68853         (func_import, func_create_testdir): Use it. Remove special cases for
68854         modules 'extensions' and 'lock'.
68855         * modules/extensions (configure.ac-early): Require
68856         gl_USE_SYSTEM_EXTENSIONS.
68857         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68858
68859 2007-02-04  Bruno Haible  <bruno@clisp.org>
68860
68861         Make use of gcj-4.3's -fsource and -ftarget option.
68862         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68863         and if so try the options -fsource and -ftarget.
68864         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68865         source_version, ftarget_option, target_version arguments.
68866         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68867         (is_envjavac_oldgcj_14_14_usable): Renamed from
68868         is_envjavac_gcj_14_14_usable.
68869         (is_envjavac_oldgcj_14_13_usable): Renamed from
68870         is_envjavac_gcj_14_13_usable.
68871         (is_gcj_present): Update.
68872         (is_gcj_43, is_gcj43_usable): New functions.
68873         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68874         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68875         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68876         try the options -fsource and -ftarget.
68877
68878 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68879
68880         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68881         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68882         larger value.
68883
68884 2007-02-03  Jim Meyering  <jim@meyering.net>
68885
68886         Give tools a better chance to allocate space for very large buffers.
68887         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68888
68889         Make pwd and readlink work also when run with an unreadable parent dir
68890         on systems with openat support.
68891         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68892         provided getcwd function, even when we have openat support.
68893         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68894
68895 2007-02-02  Bruno Haible  <bruno@clisp.org>
68896
68897         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68898         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68899         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68900         portability problems if one of these functions is only used on specific
68901         platforms.
68902         Reported by Paul Eggert.
68903
68904 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68907         is causing more trouble than it's curing.
68908         * lib/regex_internal.h (__mempcpy): Remove.
68909         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68910         (and make the code a tad smaller to boot).
68911         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68912
68913 2007-02-02  Jim Meyering  <jim@meyering.net>
68914
68915         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68916         section, not in the Makefile.am: one.
68917
68918 2007-02-02  Eric Blake  <ebb9@byu.net>
68919
68920         * lib/strchrnul.c: Always include config.h first.
68921
68922         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68923         gnulib strstr is not necessary here.
68924
68925 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68926
68927         * m4/socklen.m4: Fix typo.
68928
68929 2007-02-02  Eric Blake  <ebb9@byu.net>
68930
68931         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68932         * modules/netinet_in (Makefile.am): Likewise.
68933
68934 2007-02-01  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/string_.h (GL_LINK_WARNING): New macro.
68937         (strcasecmp, strstr, strcasestr): If provided by the system,
68938         conditionally define as a macro that leads to a warning instead of to
68939         an error.
68940         (strncasecmp): Conditionally define as a macro that leads to a warning.
68941
68942 2007-02-01  Karl Berry  <karl@gnu.org>
68943
68944         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68945
68946 2007-02-01  Bruno Haible  <bruno@clisp.org>
68947
68948         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68949         renamings.
68950
68951 2007-02-01  Eric Blake  <ebb9@byu.net>
68952
68953         * modules/regex (Depends-on): Revert dependence on mempcpy.
68954         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68955         module's definition of mempcpy.
68956         Reported by Paul Eggert.
68957
68958 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68959
68960         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68961         the symbol XYZ before redefining it.  This fixes a problem with
68962         programs that don't use XYZ, when compiled on systems that define
68963         XYZ to something else.
68964
68965 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68968         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68969         writeable to group or other and (2) is intended to have a special
68970         mode bit that is set or cleared.  In such a case, the directory
68971         should be neither group- nor other-writeable until the special
68972         mode bits are right.
68973
68974 2007-01-31  Eric Blake  <ebb9@byu.net>
68975
68976         * modules/mountlist (Depends-on): Add strstr.
68977
68978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68979         bug.
68980         * modules/string (Makefile.am): Remove redundant replacement.
68981         * modules/regex (Depends-on): Add mempcpy.
68982
68983 2007-01-31  Bruno Haible  <bruno@clisp.org>
68984
68985         New module description field 'Link'.
68986         * gnulib-tool (func_usage): Document --extract-link-directive.
68987         (sed_extract_prog): Recognize 'Link' directive.
68988         (func_get_link_directive): New function.
68989         (func_import): Show summary of link directives.
68990         Handle --extract-link-directive option.
68991         * modules/acl (Link): New section.
68992         * modules/clock-time (Link): New section.
68993         * modules/euidaccess (Link): New section.
68994         * modules/gettext (Link): New section.
68995         * modules/iconv (Link): New section.
68996         * modules/lock (Link): New section.
68997         * modules/nanosleep (Link): New section.
68998         * modules/readline (Link): New section.
68999
69000 2007-01-27  Bruno Haible  <bruno@clisp.org>
69001
69002         Enforce the use of gnulib modules for unportable <string.h> functions.
69003         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69004         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69005         (gl_HEADER_STRING_H_BODY): Require it.
69006         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69007         the symbol XYZ to one that gives a link error.
69008         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69009         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69010         * modules/mempcpy (configure.ac): Likewise.
69011         * modules/memrchr (configure.ac): Likewise.
69012         * modules/stpcpy (configure.ac): Likewise.
69013         * modules/stpncpy (configure.ac): Likewise.
69014         * modules/strcase (configure.ac): Likewise.
69015         * modules/strcasestr (configure.ac): Likewise.
69016         * modules/strchrnul (configure.ac): Likewise.
69017         * modules/strdup (configure.ac): Likewise.
69018         * modules/strndup (configure.ac): Likewise.
69019         * modules/strnlen (configure.ac): Likewise.
69020         * modules/strpbrk (configure.ac): Likewise.
69021         * modules/strsep (configure.ac): Likewise.
69022         * modules/strstr (configure.ac): Likewise.
69023         * modules/strtok_r (configure.ac): Likewise.
69024
69025 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69026
69027         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69028
69029 2007-01-30  Jim Meyering  <jim@meyering.net>
69030
69031         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69032
69033 2007-01-29  Bruno Haible  <bruno@clisp.org>
69034
69035         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69036         * lib/execute.c: Likewise.
69037         * lib/pipe.c: Likewise.
69038         * lib/printf-args.h: Likewise.
69039         * lib/printf-args.c: Likewise.
69040         * lib/printf-parse.c: Likewise.
69041         * lib/vasnprintf.c: Likewise.
69042
69043 2007-01-29  Eric Blake  <ebb9@byu.net>
69044
69045         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69046         declaration.
69047
69048 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69049
69050         * lib/strptime.h (strptime): Use 'restrict' for args where
69051         POSIX requires this.
69052         * lib/strptime.c (strptime): Likewise.
69053         Change license notice from LGPL to GPL, since gnulib-tool will
69054         change this as needed.
69055         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69056         defined.
69057         Include "strptime.h" first, to check interface.
69058         Do not #undef _LIBC and _NL_CURRENT.
69059         Do not include <stdlib.h>; no longer needed.
69060         Include "time_r.h" and declare ptime_locale_status
69061         only if _LIBC is not defined.
69062         (__P): Remove unused macro.
69063         (match_string): Bring back glibc version, but use it only if _LIBC
69064         is defined.
69065         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69066         Remove unnecessary assertion and abort() call.
69067         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69068         * m4/strptime.m4: Fix serial number comment.
69069         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69070         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69071         (Depends-on): Add time_r.
69072
69073 2007-01-29  Bruno Haible  <bruno@clisp.org>
69074
69075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69076         strptime.
69077         * modules/strptime (Depends-on): Add stdbool.
69078         * lib/strptime.h: Include <time.h> always. Add comments.
69079
69080 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69081
69082         * modules/strptime: New file.
69083         * lib/strptime.h: New file.
69084         * lib/strptime.c: New file.
69085         * m4/strptime.m4: New file.
69086
69087 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         * MODULES.html.sh: New module mpsort.
69090         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69091
69092         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69093         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69095         All uses changed.
69096         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69097         All uses changed.
69098         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69099         to _Restrict_.
69100         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69101         the parameter matches the prototype.
69102
69103 2007-01-28  Jim Meyering  <jim@meyering.net>
69104
69105         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69106         sys/time.h here, reverting that part of the previous patch:
69107         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69108
69109 2007-01-28  Bruno Haible  <bruno@clisp.org>
69110
69111         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69112         value of $(SYS_TIME_H).
69113         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69114         remove it conditionally, too. [added by Jim Meyering]
69115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69116         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69117         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69118         GETTIMEOFDAY_REPLACEMENT to 1.
69119
69120 2007-01-28  Bruno Haible  <bruno@clisp.org>
69121
69122         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69123         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69125         Set UNISTD_H instead of UNISTD_H2.
69126         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69127
69128 2007-01-28  Bruno Haible  <bruno@clisp.org>
69129
69130         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69131         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69132
69133 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69134
69135         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69136         (func_create_testdir): Ensure C locale for `grep' and `tr'
69137         character ranges.
69138         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69139         ACLOCAL_AMFLAGS parsing state machine.
69140
69141 2007-01-27  Bruno Haible  <bruno@clisp.org>
69142
69143         * modules/unistr/base: Update.
69144
69145 2007-01-27  Bruno Haible  <bruno@clisp.org>
69146
69147         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69148         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69149         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69150         modules/unistr/u32-mbtouc.
69151         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69152         * lib/unistr.h: Update.
69153         * lib/linebreak.c: Update.
69154         * modules/unistr/u32-mbtouc: Renamed from
69155         modules/unistr/u32-mbtouc-safe.
69156         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69157         * lib/unistr.h: Update.
69158         * lib/unistr/u32-to-u8.c: Update.
69159         * lib/unistr/u32-to-u16.c: Update.
69160
69161 2007-01-27  Bruno Haible  <bruno@clisp.org>
69162
69163         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69164         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69165         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69166         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69167         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69168         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69169         modules/unistr/u16-mbtouc.
69170         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69171         * lib/unistr.h: Update.
69172         * lib/linebreak.c: Update.
69173         * modules/linebreak: Update.
69174         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69175         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69176         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69177         * modules/unistr/u16-mbtouc: Renamed from
69178         modules/unistr/u16-mbtouc-safe.
69179         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69180         * lib/unistr.h: Update.
69181         * lib/unistr/u16-to-u8.c: Update.
69182         * modules/unistr/u16-to-u8: Update.
69183         * lib/unistr/u16-to-u32.c: Update.
69184         * modules/unistr/u16-to-u32: Update.
69185
69186 2007-01-27  Bruno Haible  <bruno@clisp.org>
69187
69188         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69189         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69190         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69191         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69192         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69193         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69194         modules/unistr/u8-mbtouc.
69195         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69196         * lib/unistr.h: Update.
69197         * lib/striconveh.c: Update.
69198         * modules/striconveh: Update.
69199         * lib/linebreak.c: Update.
69200         * modules/linebreak: Update.
69201         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69202         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69203         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69204         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69205         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69206         * lib/unistr.h: Update.
69207         * lib/striconveh.c: Update.
69208         * modules/striconveh: Update.
69209         * lib/unistr/u8-to-u16.c: Update.
69210         * modules/unistr/u8-to-u16: Update.
69211         * lib/unistr/u8-to-u32.c: Update.
69212         * modules/unistr/u8-to-u32: Update.
69213
69214 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69215
69216         Sync from Libtool.
69217         * lib/argz.c: Do not include strings.h nor memory.h, include
69218         string.h unconditionally.  Patch by Simon Josefsson.
69219
69220 2007-01-27  Bruno Haible  <bruno@clisp.org>
69221
69222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69223         from gl_HEADER_STRING_H_BODY.
69224         (gl_HEADER_STRING_H_BODY): Require it.
69225         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69226         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69227         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69228         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69230         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69232         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69233         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69235         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69236         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69237         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69238         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69239         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69240
69241 2007-01-27  Bruno Haible  <bruno@clisp.org>
69242
69243         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69244         check_PROGRAMS into noinst_PROGRAMS.
69245         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69246         check_PROGRAMS in this case.
69247         (func_import): Set for_test to false.
69248         (func_create_testdir): Set for_test to true.
69249
69250 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69251             Bruno Haible  <bruno@clisp.org>
69252
69253         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69254         (Depends-on): Add string.
69255         (Includes): Use <string.h> instead of strcasestr.h.
69256         * modules/string (Makefile.am): Also substitute the value of
69257         REPLACE_STRCASESTR.
69258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69259         assume strcasestr is declared in <string.h> not <strings.h>. Also
69260         set REPLACE_STRCASESTR.
69261         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69262         REPLACE_STRCASESTR.
69263         * lib/strcasestr.h: Remove file.
69264         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69265         * lib/string_.h (strcasestr): New declaration.
69266
69267 2007-01-27  Bruno Haible  <bruno@clisp.org>
69268
69269         * lib/string_.h: Use 'extern'.
69270
69271 2007-01-27  Jim Meyering  <jim@meyering.net>
69272
69273         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69274         of set-but-not-used local, "q".
69275
69276         * lib/mempcpy.c: Include <config.h> before <string.h>.
69277         This fixes a compilation error on HP-UX, due to the system's
69278         "restrict"-using mempcpy prototype.
69279
69280 2007-01-26  Bruno Haible  <bruno@clisp.org>
69281
69282         Small optimization.
69283         * lib/javacomp.c: Include c-strstr.h.
69284          (is_envjavac_gcj): Use c_strstr instead of strstr.
69285         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69286
69287 2007-01-26  Bruno Haible  <bruno@clisp.org>
69288
69289         * MODULES.html.sh (Unicode string functions): Add the new modules.
69290
69291         * modules/uniconv/u32-strconv-to-locale: New file.
69292         * lib/uniconv/u32-strconv-to-locale.c: New file.
69293
69294         * modules/uniconv/u16-strconv-to-locale: New file.
69295         * lib/uniconv/u16-strconv-to-locale.c: New file.
69296
69297         * modules/uniconv/u8-strconv-to-locale: New file.
69298         * lib/uniconv/u8-strconv-to-locale.c: New file.
69299
69300         * modules/uniconv/u32-strconv-from-locale: New file.
69301         * lib/uniconv/u32-strconv-from-locale.c: New file.
69302
69303         * modules/uniconv/u16-strconv-from-locale: New file.
69304         * lib/uniconv/u16-strconv-from-locale.c: New file.
69305
69306         * modules/uniconv/u8-strconv-from-locale: New file.
69307         * lib/uniconv/u8-strconv-from-locale.c: New file.
69308
69309         * modules/uniconv/u32-strconv-to-enc: New file.
69310         * lib/uniconv/u32-strconv-to-enc.c: New file.
69311         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69312         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69313
69314         * modules/uniconv/u16-strconv-to-enc: New file.
69315         * lib/uniconv/u16-strconv-to-enc.c: New file.
69316         * lib/uniconv/u-strconv-to-enc.h: New file.
69317         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69318         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69319
69320         * modules/uniconv/u8-strconv-to-enc: New file.
69321         * lib/uniconv/u8-strconv-to-enc.c: New file.
69322         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69323         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69324
69325         * modules/uniconv/u32-strconv-from-enc: New file.
69326         * lib/uniconv/u32-strconv-from-enc.c: New file.
69327         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69328         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69329
69330         * modules/uniconv/u16-strconv-from-enc: New file.
69331         * lib/uniconv/u16-strconv-from-enc.c: New file.
69332         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69333         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69334
69335         * modules/uniconv/u8-strconv-from-enc: New file.
69336         * lib/uniconv/u8-strconv-from-enc.c: New file.
69337         * lib/uniconv/u-strconv-from-enc.h: New file.
69338         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69339         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69340
69341         * modules/uniconv/u32-conv-from-enc: New file.
69342         * lib/uniconv/u32-conv-from-enc.c: New file.
69343         * modules/uniconv/u32-conv-from-enc-tests: New file.
69344         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69345
69346         * modules/uniconv/u16-conv-from-enc: New file.
69347         * lib/uniconv/u16-conv-from-enc.c: New file.
69348         * lib/uniconv/u-conv-from-enc.h: New file.
69349         * modules/uniconv/u16-conv-from-enc-tests: New file.
69350         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69351
69352         * modules/uniconv/u8-conv-from-enc: New file.
69353         * lib/uniconv/u8-conv-from-enc.c: New file.
69354         * modules/uniconv/u8-conv-from-enc-tests: New file.
69355         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69356
69357         * modules/uniconv/base: New file.
69358         * lib/uniconv.h: New file.
69359
69360 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         * doc/gnulib-tool.texi (Initial import): Update to match current
69363         behavior with strdup module.
69364         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69365         * lib/memmem.h: Remove; all uses removed.  This is now done
69366         by <string.h>.
69367         * lib/mempcpy.h: Likewise.
69368         * lib/memrchr.h: Likewise.
69369         * lib/stpcpy.h: Likewise.
69370         * lib/stpncpy.h: Likewise.
69371         * lib/strcase.h: Likewise.
69372         * lib/strchrnul.h: Likewise.
69373         * lib/strdup.h: Likewise.
69374         * lib/strndup.h: Likewise.
69375         * lib/strnlen.h: Likewise.
69376         * lib/strpbrk.h: Likewise.
69377         * lib/strsep.h: Likewise.
69378         * lib/strstr.h: Likewise.
69379         * lib/strtok_r.h: Likewise.
69380         * lib/string_.h: New file.
69381         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69382         Rely on <string.h> instead.
69383         * lib/canon-host.c: Likewise.
69384         * lib/chdir-long.c: Likewise.
69385         * lib/concatpath.c: Likewise.
69386         * lib/exclude.c: Likewise.
69387         * lib/fchdir.c: Likewise.
69388         * lib/getaddrinfo.c: Likewise.
69389         * lib/getcwd.c: Likewise.
69390         * lib/getsubopt.c: Likewise.
69391         * lib/glob.c: Likewise.
69392         * lib/hard-locale.c: Likewise.
69393         * lib/iconvme.c: Likewise.
69394         * lib/javacomp.c: Likewise.
69395         * lib/mempcpy.c: Likewise.
69396         * lib/memrchr.c: Likewise.
69397         * lib/regex_internal.h: Likewise.
69398         * lib/stpncpy.c: Likewise.
69399         * lib/strcasecmp.c: Likewise.
69400         * lib/strchrnul.c: Likewise.
69401         * lib/strdup.c: Likewise.
69402         * lib/striconv.c: Likewise.
69403         * lib/striconveh.c: Likewise.
69404         * lib/striconveha.c: Likewise.
69405         * lib/strncasecmp.c: Likewise.
69406         * lib/strndup.c: Likewise.
69407         * lib/strnlen.c: Likewise.
69408         * lib/strsep.c: Likewise.
69409         * lib/strstr.c: Likewise.
69410         * lib/strtok_r.c: Likewise.
69411         * lib/userspec.c: Likewise.
69412         * lib/w32spawn.h: Likewise.
69413         * lib/xstrndup.c: Likewise.
69414         * lib/mountlist.c (strstr): Remove decl.
69415         * m4/string_h.m4: New file.
69416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69417         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69418         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69419         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69420         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69421         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69422         Set REPLACE_STRCASECMP if necessary.
69423         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69424         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69425         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69426         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69427         HAVE_DECL_STRDUP if necessary.
69428         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69429         since gl_FUNC_STRNDUP does that now.
69430         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69431         Check for decl here...
69432         (gl_PREREQ_STRNLEN): ... not here.
69433         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69434         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69435         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69437         necessary.
69438         * modules/string: New file.
69439         * modules/memmem (Files): Remove special-purpose include file.
69440         (Depends-on): Add string.
69441         (Include): Include <string.h>, not the removed file.
69442         * modules/mempcpy: Likewise.
69443         * modules/memrchr: Likewise.
69444         * modules/stpcpy: Likewise.
69445         * modules/stpncpy: Likewise.
69446         * modules/strcase: Likewise.
69447         * modules/strchrnul: Likewise.
69448         * modules/strdup: Likewise.
69449         * modules/strndup: Likewise.
69450         * modules/strnlen: Likewise.
69451         * modules/strpbrk: Likewise.
69452         * modules/strsep: Likewise.
69453         * modules/strstr: Likewise.
69454         * modules/strtok_r: Likewise.
69455         * tests/test-dirname.c: Don't include "strdup.h", since
69456         <string.h> now suffices.
69457         * tests/test-memmem.c: Don't include "memmem.h", since
69458         <string.h> now suffices.
69459
69460 2007-01-25  Bruno Haible  <bruno@clisp.org>
69461
69462         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69463         *resultp is 0.
69464
69465         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69466         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69467         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69468         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69469
69470         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69471         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69472         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69473         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69474         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69475         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69476
69477 2007-01-24  Bruno Haible  <bruno@clisp.org>
69478
69479         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69481         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69482         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69483         gl_FUNC_FTS_CORE.
69484         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69485         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69486         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69487         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69488         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69489         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69490         gl_FUNC_FCHOWNAT.
69491         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69492         gl_FUNC_STRFTIME.
69493         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69494         Reported by Ralf Wildenhues.
69495
69496 2007-01-24  Bruno Haible  <bruno@clisp.org>
69497
69498         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69499         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69500         gl_GETADDRINFO.
69501         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69502         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69503         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69504
69505 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69506
69507         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69508         Don't use 'exit'; just return from 'main'.
69509         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69510
69511         * lib/fnmatch_.h: Readjust white space and comments to match
69512         glibc, to avoid spurious diffs.
69513
69514 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69515
69516         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69517         2004-12-01 change by Jakub Jelinek, since this code won't compile
69518         if !LIBC.  Problem reported by Bob Proulx.
69519
69520 2007-01-23  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/striconveh.c: Include c-strcaseeq.h.
69523         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69524         * modules/striconveh (Depends-on): Add c-strcaseeq.
69525
69526 2007-01-23  Bruno Haible  <bruno@clisp.org>
69527
69528         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69529
69530         * modules/c-strcaseeq: New file.
69531         * lib/c-strcaseeq.h: New file.
69532
69533         * modules/streq: New file.
69534         * lib/streq.h: New file.
69535
69536 2007-01-23  Bruno Haible  <bruno@clisp.org>
69537
69538         * modules/striconveha-tests: New file.
69539         * tests/test-striconveha.c: New file.
69540
69541         * lib/striconveha.h: Include <stdbool.h>.
69542         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69543         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69544         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69545         (mem_iconveha): New function.
69546         (str_iconveha_notranslit): Renamed from str_iconveha.
69547         (str_iconveha): New function.
69548         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69549         c-strcase.
69550
69551 2007-01-23  Bruno Haible  <bruno@clisp.org>
69552
69553         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69554         encodings without forgiving before trying any encoding with handler.
69555         (str_iconveha): Try all encodings without forgiving before trying any
69556         encoding with handler.
69557
69558 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69559
69560         Import the following changes from libc.
69561
69562         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69563
69564         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69565
69566         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69567
69568         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69569         normal_bracket label.
69570
69571         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69572
69573         [BZ #361]
69574         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69575         to normal_bracket after fetching the next character.
69576
69577 2007-01-22  Bruno Haible  <bruno@clisp.org>
69578
69579         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69580         argument.
69581         * lib/striconveh.c (iconv_carefully_1): New function.
69582         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69583         argument.
69584         (str_cd_iconveh): Update.
69585         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69586         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69587         * tests/test-striconveh.c (MAGIC): New macro.
69588         (new_offsets): New function.
69589         (main): Test call with and without offsets.
69590
69591 2007-01-22  Bruno Haible  <bruno@clisp.org>
69592
69593         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69594         * modules/sys_select (Makefile.am): Likewise.
69595         * modules/sys_socket (Makefile.am): Likewise.
69596         * modules/sys_time (Makefile.am): Likewise.
69597
69598 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69599
69600         * modules/gettimeofday (License): Change from GPL to LGPL, since
69601         gettimeofday is a library function.
69602
69603 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69604
69605         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69606
69607 2007-01-21  Bruno Haible  <bruno@clisp.org>
69608
69609         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69610
69611 2007-01-21  Bruno Haible  <bruno@clisp.org>
69612
69613         * modules/striconveha: New file.
69614         * lib/striconveha.h: New file.
69615         * lib/striconveha.c: New file.
69616         * MODULES.html.sh (Internationalization functions): Add striconveha.
69617         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69618         string.
69619         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69620
69621 2007-01-21  Bruno Haible  <bruno@clisp.org>
69622
69623         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69624         * lib/striconveh.c (str_iconveh): Likewise.
69625
69626 2007-01-21  Bruno Haible  <bruno@clisp.org>
69627
69628         * lib/striconveh.h (mem_iconveh): New declaration.
69629         * lib/striconveh.c (mem_iconveh): New function.
69630         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69631
69632 2007-01-21  Bruno Haible  <bruno@clisp.org>
69633
69634         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69635
69636         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69637         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69638         original result buffer.
69639         (str_cd_iconveh): Update.
69640         * tests/test-striconveh.c (main): Update.
69641
69642         * lib/striconv.h (mem_cd_iconv): Change specification.
69643         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69644         result buffer.
69645         (str_cd_iconv): Update.
69646         * tests/test-striconv.c (main): Update.
69647
69648 2007-01-21  Bruno Haible  <bruno@clisp.org>
69649
69650         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69651
69652 2007-01-20  Jim Meyering  <jim@meyering.net>
69653
69654         * lib/userspec.c (parse_with_separator): If a user or group string
69655         starts with "+", skip the corresponding name-to-ID look-up, since
69656         such a look-up must fail: user and group names may not include "+".
69657
69658 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69659
69660         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69661         since we now assume the sys_time module.
69662         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69663         check for sys/time.h; no longer needed.
69664         * modules/poll (Depends-on): Depend on sys_time.
69665
69666 2007-01-18  Bruno Haible  <bruno@clisp.org>
69667
69668         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69669         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69670
69671         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69672         gettimeofday.
69673
69674         * tests/test-gettimeofday.c: Include <time.h>.
69675         (dummy): Remove variable.
69676
69677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69678         gl_HEADER_SYS_TIME_H.
69679         (gl_HEADER_SYS_TIME_H): New macro.
69680
69681         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69682         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69683         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69684         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69685         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69686         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69687         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69688         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69689         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69690         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69691         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69692
69693         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69694         last change; it caused a compilation error when cross-compiling to
69695         Cygwin.
69696
69697 2007-01-18  Jim Meyering  <jim@meyering.net>
69698
69699         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69700         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69701         than the race-prone "test -d sys || mkdir sys".
69702         (configure.ac): Use AC_PROG_MKDIR_P.
69703         * modules/sys_select: Likewise.
69704         * modules/sys_socket: Likewise.
69705         * modules/sys_time: Likewise.
69706
69707 2007-01-18  Eric Blake  <ebb9@byu.net>
69708
69709         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69710         replace gettimeofday.
69711         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69712         name, to avoid infinite recursion.
69713
69714 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69717         module sys_time.
69718         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69719         assume timespec.h defines struct timeval.
69720         * lib/settime.c: Likewise.
69721         * lib/utimens.c: Likewise.
69722         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69723         since we now assume the gettimeofday module.
69724         * lib/tempname.c (__gen_tempname): Likewise.
69725         * lib/gettimeofday.h: Remove.
69726         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69727         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69728         Include <time.h>, for 'time()'.
69729         (localtime_buffer_addr): Also use this workaround if
69730         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69731         to simplify the uses.  All uses changed.
69732         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69733         that #undef is inside {}, and 'const' follows type name consistently.
69734         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69735         (gettimeofday): Do not use the maximum possible value for
69736         tv->tv_usec, since that might break usages other than ls.c.
69737         Instead, we'll leave ls.c alone.  This undoes today's patch
69738         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69739         we've never observed the problem but might as well keep the
69740         canary.
69741         * lib/nanosleep.c: Include timespec.h first, for interface check.
69742         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69743         now assume the sys_time module.
69744         * lib/tempname.c: Likewise.
69745         * lib/timespec.h: Likewise.
69746         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69747         needed.
69748         * lib/strftime.c: Likewise.
69749         * lib/timespec.h: Likewise.
69750         * lib/posixtm.c: Include posixtm.h first, for interface check.
69751         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69752         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69753         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69754         * lib/sys_time_.h: New file.
69755         * lib/timespec.h (struct timespec): Use long int, not long.
69756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69757         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69758         Remove obsolescent call to AC_HEADER_TIME.
69759         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69761         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69762         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69763         Likewise.
69764         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69765         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69766         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69767         into the sys_time module.  Check for gettimeofday just once.
69768         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69769         for gettimeofday signature to just check the signature.  Merely
69770         compile it, since linking doesn't test signature.  Improve test for
69771         whether gettimeofday.o is actually needed.
69772         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69773         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69774         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69775         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69776         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69777         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69778         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69779         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69780         than worrying about sys/time.h.
69781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69782         Don't bother worrying about TIME_WITH_SYS_TIME.
69783         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69784         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69785         * m4/sys_time_h.m4: New file.
69786         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69787         Don't include sys/time.h.  Return from main rather than exiting.
69788         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69789         all uses changed.
69790         * modules/gethrxtime (Depends-on): Add sys_time.
69791         * modules/gettime (Depends-on): Likewise.
69792         * modules/gettimeofday (Depends-on): Likewise.
69793         * modules/nanosleep (Depends-on): Likewise.
69794         * modules/settime (Depends-on): Likewise.
69795         * modules/tempname (Depends-on): Likewise.
69796         * modules/utimens (Depends-on): Likewise.
69797         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69798         (Include): Change back to <sys/time.h>.
69799         (Maintainer): Add self.
69800         * modules/sys_time: New file.
69801         * modules/tempname (Depends-on): Add gettimeofday.
69802         * tests/test-gettimeofday.c: Include <sys/time.h>
69803         rather than gettimeofday.h.
69804
69805 2007-01-17  Bruno Haible  <bruno@clisp.org>
69806
69807         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69808         the license default to GPL.
69809         (func_create_testdir): Don't complain if a module is LGPL and its
69810         tests module depends on GPLed modules.
69811
69812 2007-01-17  Bruno Haible  <bruno@clisp.org>
69813
69814         * lib/gettimeofday.c (gettimeofday): Add code for the case
69815         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69816         maximum possible value for tv->tv_usec, rather than the minimum one.
69817
69818 2005-10-08  Martin Lambers  <marlam@marlam.de>
69819 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69820 2007-01-16  Bruno Haible  <bruno@clisp.org>
69821
69822         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69823         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69824         gl_FUNC_GETTIMEOFDAY.
69825         (Include): Add gettimeofday.h.
69826         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69827         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69828         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69829         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69830         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69831         * lib/gettimeofday.h: New file.
69832         * lib/gettimeofday.c: Include <sys/timeb.h>.
69833         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69834         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69835         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69836         fall back on time().
69837
69838         * tests/test-gettimeofday.c: New file.
69839         * modules/gettimeofday-tests: New file.
69840
69841 2007-01-16  Eric Blake  <ebb9@byu.net>
69842
69843         * modules/fnmatch (Depends-on): Depend on wchar.
69844         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69845         * m4/fnmatch.m4: Likewise.
69846         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69847         * m4/mbchar.m4: Likewise.
69848         * modules/mbswidth (Depends-on): Depend on wchar.
69849         * lib/mbswidth.c: Assume <wchar.h>.
69850         * m4/mbswidth.m4: Likewise.
69851         * modules/quotearg (Depends-on): Depend on wchar.
69852         * lib/quotearg.c: Assume <wchar.h>.
69853         * m4/quotearg.m4: Likewise.
69854         * modules/regex (Depends-on): Depend on wchar.
69855         * lib/regex_internal.h: Assume <wchar.h>.
69856         * m4/regex.m4: Likewise.
69857         * modules/stdint (Depends-on): Depend on wchar.
69858         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69859         * m4/stdint.m4: Likewise.
69860         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69861         * modules/strftime (Depends-on): Depend on wchar.
69862         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69863         * modules/strtol (Depends-on): Depend on wchar.
69864         * lib/strtol.c: Assume <wchar.h>.
69865         * modules/wcwidth (Depends-on): Depend on wchar.
69866         * lib/wcwidth.h: Assume <wchar.h>.
69867         * m4/wcwidth.m4: Likewise.
69868
69869 2007-01-16  Bruno Haible  <bruno@clisp.org>
69870
69871         * modules/csharpexec-script: New, created from...
69872         * modules/csharpexec: ... this.
69873
69874 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69875
69876         * modules/javaexec-script: New, created from...
69877         * modules/javaexec: ... this.
69878
69879 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69880
69881         * modules/poll (Dependencies): Add sys_select.
69882
69883 2007-01-15  Jim Meyering  <jim@meyering.net>
69884
69885         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69886         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69887         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69888         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69889
69890 2007-01-15  Bruno Haible  <bruno@clisp.org>
69891
69892         * modules/striconveh: New file.
69893         * lib/striconveh.h: New file.
69894         * lib/striconveh.c: New file.
69895         * MODULES.html.sh (Internationalization functions): Add striconveh.
69896
69897         * modules/striconveh-tests: New file.
69898         * tests/test-striconveh.c: New file.
69899
69900 2007-01-15  Bruno Haible  <bruno@clisp.org>
69901
69902         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69903         not from GNU libiconv or GNU libc.
69904
69905 2007-01-15  Bruno Haible  <bruno@clisp.org>
69906
69907         * doc/gnulib-intro.texi (Copyright): Explain the different license
69908         terms for module descriptions, autoconf macros, tests, documentation.
69909
69910 2007-01-14  Bruno Haible  <bruno@clisp.org>
69911
69912         * modules/striconv-tests: New file.
69913         * tests/test-striconv.c: New file.
69914
69915 2007-01-14  Bruno Haible  <bruno@clisp.org>
69916
69917         * modules/iconv-tests: New file.
69918         * tests/test-iconv.c: New file.
69919
69920 2007-01-14  Bruno Haible  <bruno@clisp.org>
69921
69922         * gnulib-tool (func_get_license): For test modules, use the license of
69923         the main module.
69924
69925 2007-01-14  Bruno Haible  <bruno@clisp.org>
69926
69927         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69928         if iconv is found to exist.
69929
69930 2007-01-14  Bruno Haible  <bruno@clisp.org>
69931
69932         * modules/c-ctype-tests: New file.
69933         * tests/test-c-ctype.c: New file.
69934
69935 2007-01-14  Bruno Haible  <bruno@clisp.org>
69936
69937         * modules/binary-io-tests: New file.
69938         * tests/test-binary-io.sh: New file.
69939         * tests/test-binary-io.c: New file.
69940
69941 2007-01-14  Bruno Haible  <bruno@clisp.org>
69942
69943         * modules/array-oset-tests: New file.
69944         * tests/test-array_oset.c: New file.
69945
69946 2007-01-14  Bruno Haible  <bruno@clisp.org>
69947
69948         * modules/array-list-tests: New file.
69949         * tests/test-array_list.c: New file.
69950
69951 2007-01-14  Bruno Haible  <bruno@clisp.org>
69952
69953         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69954         and make.
69955         Reported by Simon Josefsson in
69956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69957
69958 2007-01-14  Bruno Haible  <bruno@clisp.org>
69959
69960         * modules/allocsa-tests: New file.
69961         * tests/test-allocsa.c: New file.
69962
69963 2007-01-14  Bruno Haible  <bruno@clisp.org>
69964
69965         * modules/fchdir (Depends-on): Add absolute-header.
69966         * modules/unistd (Depends-on): Likewise.
69967
69968 2006-12-30  Bruno Haible  <bruno@clisp.org>
69969
69970         * modules/fchdir: New file.
69971         * modules/unistd (Files): Add lib/unistd_.h.
69972         (Makefile.am): Generate unistd.h from unistd_.h.
69973         * lib/fchdir.c: New file.
69974         * lib/dirent_.h: New file.
69975         * lib/unistd_.h: New file.
69976         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69977         * m4/fchdir.m4: New file.
69978         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69979         (gl_HEADER_UNISTD): Invoke it.
69980         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69981         function.
69982         * lib/backupfile.c (opendir, closedir): Undefine.
69983         * lib/chown.c (open, close): Undefine.
69984         * lib/clean-temp.c (open, close): Undefine.
69985         * lib/copy-file.c (open, close): Undefine.
69986         * lib/execute.c (open, close): Undefine.
69987         * lib/fsusage.c (open, close): Undefine.
69988         * lib/gc-gnulib.c (open, close): Undefine.
69989         * lib/getcwd.c (opendir, closedir): Undefine.
69990         * lib/glob.c (opendir, closedir): Undefine.
69991         * lib/javacomp.c (open, close): Undefine.
69992         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69993         * lib/openat-proc.c (open, close): Undefine.
69994         * lib/pagealign_alloc.c (open, close): Undefine.
69995         * lib/pipe.c (open, close): Undefine.
69996         * lib/progreloc.c (open, close): Undefine.
69997         * lib/savedir.c (opendir, closedir): Undefine.
69998         * lib/utime.c (open, close): Undefine.
69999         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70000
70001 2007-01-10  Bruno Haible  <bruno@clisp.org>
70002
70003         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70004
70005 2007-01-12  Eric Blake  <ebb9@byu.net>
70006
70007         Provide a robust <wchar.h>.  Further simplifications are now
70008         possible in other modules, but not included here.
70009         * modules/wchar: New module.
70010         * m4/wchar.m4: New file.
70011         * lib/wchar_.h: Likewise.
70012         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70013         of the new module.
70014         * MODULES.html.sh (Extended multibyte and wide character utilities):
70015         New section.
70016
70017 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70018
70019         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70020         to a reasonable default for memory allocation.
70021         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70022         file system that reports garbage st_size values for symlinks.
70023         Problem reported by Liyang Hu.
70024
70025 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70026
70027         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70028         Emacs .#* auto-save files).
70029
70030 2007-01-11  Bruno Haible  <bruno@clisp.org>
70031
70032         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70033         directory.
70034
70035 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         Use @...@ consistently in lib/wctype_.h.
70038         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70039         on it being set to 1 or 0.
70040         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70041         go back to AC_SUBSTing it.
70042         * modules/wctype (Makefile.am): Undo previous change.
70043
70044 2007-01-10  Eric Blake  <ebb9@byu.net>
70045
70046         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70047         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70048         * modules/wctype (Makefile.am): Likewise.
70049         Reported by Chris McGuire.
70050
70051 2007-01-10  Jim Meyering  <jim@meyering.net>
70052
70053         fts.c: a small readability/maintainability improvement
70054         * lib/fts.c (fts_read): Make this code slightly more readable and
70055         maintainable by hoisting the "sp->fts_cur = p" assignments to
70056         immediately follow the statements that set P.  Derived from
70057         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70058
70059 2007-01-10  Eric Blake  <ebb9@byu.net>
70060
70061         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70062         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70064         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70065         Reported by Chris McGuire.
70066
70067 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70068
70069         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70070         in sed script.
70071
70072 2007-01-09  Bruno Haible  <bruno@clisp.org>
70073
70074         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70075         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70076         variables.
70077         (func_module): Use them.
70078
70079 2007-01-09  Bruno Haible  <bruno@clisp.org>
70080
70081         * modules/unistr/base: New file.
70082         * lib/unistr.h: New file.
70083
70084         * modules/unistr/u8-to-u16: New file.
70085         * lib/unistr/u8-to-u16.c: New file.
70086
70087         * modules/unistr/u8-to-u32: New file.
70088         * lib/unistr/u8-to-u32.c: New file.
70089
70090         * modules/unistr/u16-to-u8: New file.
70091         * lib/unistr/u16-to-u8.c: New file.
70092
70093         * modules/unistr/u16-to-u32: New file.
70094         * lib/unistr/u16-to-u32.c: New file.
70095
70096         * modules/unistr/u32-to-u8: New file.
70097         * lib/unistr/u32-to-u8.c: New file.
70098
70099         * modules/unistr/u32-to-u16: New file.
70100         * lib/unistr/u32-to-u16.c: New file.
70101
70102         * modules/unistr/u8-check: New file.
70103         * modules/unistr/u16-check: New file.
70104         * modules/unistr/u32-check: New file.
70105         * lib/unistr/u8-check.c: New file.
70106         * lib/unistr/u16-check.c: New file.
70107         * lib/unistr/u32-check.c: New file.
70108
70109         * modules/unistr/u8-chr: New file.
70110         * modules/unistr/u16-chr: New file.
70111         * modules/unistr/u32-chr: New file.
70112         * lib/unistr/u8-chr.c: New file.
70113         * lib/unistr/u16-chr.c: New file.
70114         * lib/unistr/u32-chr.c: New file.
70115
70116         * modules/unistr/u8-cmp: New file.
70117         * modules/unistr/u16-cmp: New file.
70118         * modules/unistr/u32-cmp: New file.
70119         * lib/unistr/u8-cmp.c: New file.
70120         * lib/unistr/u16-cmp.c: New file.
70121         * lib/unistr/u32-cmp.c: New file.
70122
70123         * modules/unistr/u8-cpy: New file.
70124         * modules/unistr/u16-cpy: New file.
70125         * modules/unistr/u32-cpy: New file.
70126         * lib/unistr/u8-cpy.c: New file.
70127         * lib/unistr/u16-cpy.c: New file.
70128         * lib/unistr/u32-cpy.c: New file.
70129         * lib/unistr/u-cpy.h: New file.
70130
70131         * modules/unistr/u8-cpy-alloc: New file.
70132         * modules/unistr/u16-cpy-alloc: New file.
70133         * modules/unistr/u32-cpy-alloc: New file.
70134         * lib/unistr/u8-cpy-alloc.c: New file.
70135         * lib/unistr/u16-cpy-alloc.c: New file.
70136         * lib/unistr/u32-cpy-alloc.c: New file.
70137         * lib/unistr/u-cpy-alloc.h: New file.
70138
70139         * modules/unistr/u8-endswith: New file.
70140         * modules/unistr/u16-endswith: New file.
70141         * modules/unistr/u32-endswith: New file.
70142         * lib/unistr/u8-endswith.c: New file.
70143         * lib/unistr/u16-endswith.c: New file.
70144         * lib/unistr/u32-endswith.c: New file.
70145         * lib/unistr/u-endswith.h: New file.
70146
70147         * modules/unistr/u8-mblen: New file.
70148         * modules/unistr/u16-mblen: New file.
70149         * modules/unistr/u32-mblen: New file.
70150         * lib/unistr/u8-mblen.c: New file.
70151         * lib/unistr/u16-mblen.c: New file.
70152         * lib/unistr/u32-mblen.c: New file.
70153
70154         * modules/unistr/u8-mbtouc: New file.
70155         * modules/unistr/u16-mbtouc: New file.
70156         * modules/unistr/u32-mbtouc: New file.
70157         * lib/unistr/u8-mbtouc.c: New file.
70158         * lib/unistr/u16-mbtouc.c: New file.
70159         * lib/unistr/u32-mbtouc.c: New file.
70160
70161         * modules/unistr/u8-mbtouc-safe: New file.
70162         * modules/unistr/u16-mbtouc-safe: New file.
70163         * modules/unistr/u32-mbtouc-safe: New file.
70164         * lib/unistr/u8-mbtouc-safe.c: New file.
70165         * lib/unistr/u16-mbtouc-safe.c: New file.
70166         * lib/unistr/u32-mbtouc-safe.c: New file.
70167
70168         * modules/unistr/u8-move: New file.
70169         * modules/unistr/u16-move: New file.
70170         * modules/unistr/u32-move: New file.
70171         * lib/unistr/u8-move.c: New file.
70172         * lib/unistr/u16-move.c: New file.
70173         * lib/unistr/u32-move.c: New file.
70174         * lib/unistr/u-move.h: New file.
70175
70176         * modules/unistr/u8-next: New file.
70177         * modules/unistr/u16-next: New file.
70178         * modules/unistr/u32-next: New file.
70179         * lib/unistr/u8-next.c: New file.
70180         * lib/unistr/u16-next.c: New file.
70181         * lib/unistr/u32-next.c: New file.
70182
70183         * modules/unistr/u8-prev: New file.
70184         * modules/unistr/u16-prev: New file.
70185         * modules/unistr/u32-prev: New file.
70186         * lib/unistr/u8-prev.c: New file.
70187         * lib/unistr/u16-prev.c: New file.
70188         * lib/unistr/u32-prev.c: New file.
70189
70190         * modules/unistr/u8-set: New file.
70191         * modules/unistr/u16-set: New file.
70192         * modules/unistr/u32-set: New file.
70193         * lib/unistr/u8-set.c: New file.
70194         * lib/unistr/u16-set.c: New file.
70195         * lib/unistr/u32-set.c: New file.
70196         * lib/unistr/u-set.h: New file.
70197
70198         * modules/unistr/u8-startswith: New file.
70199         * modules/unistr/u16-startswith: New file.
70200         * modules/unistr/u32-startswith: New file.
70201         * lib/unistr/u8-startswith.c: New file.
70202         * lib/unistr/u16-startswith.c: New file.
70203         * lib/unistr/u32-startswith.c: New file.
70204         * lib/unistr/u-startswith.h: New file.
70205
70206         * modules/unistr/u8-stpcpy: New file.
70207         * modules/unistr/u16-stpcpy: New file.
70208         * modules/unistr/u32-stpcpy: New file.
70209         * lib/unistr/u8-stpcpy.c: New file.
70210         * lib/unistr/u16-stpcpy.c: New file.
70211         * lib/unistr/u32-stpcpy.c: New file.
70212         * lib/unistr/u-stpcpy.h: New file.
70213
70214         * modules/unistr/u8-stpncpy: New file.
70215         * modules/unistr/u16-stpncpy: New file.
70216         * modules/unistr/u32-stpncpy: New file.
70217         * lib/unistr/u8-stpncpy.c: New file.
70218         * lib/unistr/u16-stpncpy.c: New file.
70219         * lib/unistr/u32-stpncpy.c: New file.
70220         * lib/unistr/u-stpncpy.h: New file.
70221
70222         * modules/unistr/u8-strcat: New file.
70223         * modules/unistr/u16-strcat: New file.
70224         * modules/unistr/u32-strcat: New file.
70225         * lib/unistr/u8-strcat.c: New file.
70226         * lib/unistr/u16-strcat.c: New file.
70227         * lib/unistr/u32-strcat.c: New file.
70228         * lib/unistr/u-strcat.h: New file.
70229
70230         * modules/unistr/u8-strchr: New file.
70231         * modules/unistr/u16-strchr: New file.
70232         * modules/unistr/u32-strchr: New file.
70233         * lib/unistr/u8-strchr.c: New file.
70234         * lib/unistr/u16-strchr.c: New file.
70235         * lib/unistr/u32-strchr.c: New file.
70236
70237         * modules/unistr/u8-strcmp: New file.
70238         * modules/unistr/u16-strcmp: New file.
70239         * modules/unistr/u32-strcmp: New file.
70240         * lib/unistr/u8-strcmp.c: New file.
70241         * lib/unistr/u16-strcmp.c: New file.
70242         * lib/unistr/u32-strcmp.c: New file.
70243
70244         * modules/unistr/u8-strcpy: New file.
70245         * modules/unistr/u16-strcpy: New file.
70246         * modules/unistr/u32-strcpy: New file.
70247         * lib/unistr/u8-strcpy.c: New file.
70248         * lib/unistr/u16-strcpy.c: New file.
70249         * lib/unistr/u32-strcpy.c: New file.
70250         * lib/unistr/u-strcpy.h: New file.
70251
70252         * modules/unistr/u8-strcspn: New file.
70253         * modules/unistr/u16-strcspn: New file.
70254         * modules/unistr/u32-strcspn: New file.
70255         * lib/unistr/u8-strcspn.c: New file.
70256         * lib/unistr/u16-strcspn.c: New file.
70257         * lib/unistr/u32-strcspn.c: New file.
70258         * lib/unistr/u-strcspn.h: New file.
70259
70260         * modules/unistr/u8-strdup: New file.
70261         * modules/unistr/u16-strdup: New file.
70262         * modules/unistr/u32-strdup: New file.
70263         * lib/unistr/u8-strdup.c: New file.
70264         * lib/unistr/u16-strdup.c: New file.
70265         * lib/unistr/u32-strdup.c: New file.
70266         * lib/unistr/u-strdup.h: New file.
70267
70268         * modules/unistr/u8-strlen: New file.
70269         * modules/unistr/u16-strlen: New file.
70270         * modules/unistr/u32-strlen: New file.
70271         * lib/unistr/u8-strlen.c: New file.
70272         * lib/unistr/u16-strlen.c: New file.
70273         * lib/unistr/u32-strlen.c: New file.
70274         * lib/unistr/u-strlen.h: New file.
70275
70276         * modules/unistr/u8-strmblen: New file.
70277         * modules/unistr/u16-strmblen: New file.
70278         * modules/unistr/u32-strmblen: New file.
70279         * lib/unistr/u8-strmblen.c: New file.
70280         * lib/unistr/u16-strmblen.c: New file.
70281         * lib/unistr/u32-strmblen.c: New file.
70282
70283         * modules/unistr/u8-strmbtouc: New file.
70284         * modules/unistr/u16-strmbtouc: New file.
70285         * modules/unistr/u32-strmbtouc: New file.
70286         * lib/unistr/u8-strmbtouc.c: New file.
70287         * lib/unistr/u16-strmbtouc.c: New file.
70288         * lib/unistr/u32-strmbtouc.c: New file.
70289
70290         * modules/unistr/u8-strncat: New file.
70291         * modules/unistr/u16-strncat: New file.
70292         * modules/unistr/u32-strncat: New file.
70293         * lib/unistr/u8-strncat.c: New file.
70294         * lib/unistr/u16-strncat.c: New file.
70295         * lib/unistr/u32-strncat.c: New file.
70296         * lib/unistr/u-strncat.h: New file.
70297
70298         * modules/unistr/u8-strncmp: New file.
70299         * modules/unistr/u16-strncmp: New file.
70300         * modules/unistr/u32-strncmp: New file.
70301         * lib/unistr/u8-strncmp.c: New file.
70302         * lib/unistr/u16-strncmp.c: New file.
70303         * lib/unistr/u32-strncmp.c: New file.
70304
70305         * modules/unistr/u8-strncpy: New file.
70306         * modules/unistr/u16-strncpy: New file.
70307         * modules/unistr/u32-strncpy: New file.
70308         * lib/unistr/u8-strncpy.c: New file.
70309         * lib/unistr/u16-strncpy.c: New file.
70310         * lib/unistr/u32-strncpy.c: New file.
70311         * lib/unistr/u-strncpy.h: New file.
70312
70313         * modules/unistr/u8-strnlen: New file.
70314         * modules/unistr/u16-strnlen: New file.
70315         * modules/unistr/u32-strnlen: New file.
70316         * lib/unistr/u8-strnlen.c: New file.
70317         * lib/unistr/u16-strnlen.c: New file.
70318         * lib/unistr/u32-strnlen.c: New file.
70319         * lib/unistr/u-strnlen.h: New file.
70320
70321         * modules/unistr/u8-strpbrk: New file.
70322         * modules/unistr/u16-strpbrk: New file.
70323         * modules/unistr/u32-strpbrk: New file.
70324         * lib/unistr/u8-strpbrk.c: New file.
70325         * lib/unistr/u16-strpbrk.c: New file.
70326         * lib/unistr/u32-strpbrk.c: New file.
70327         * lib/unistr/u-strpbrk.h: New file.
70328
70329         * modules/unistr/u8-strrchr: New file.
70330         * modules/unistr/u16-strrchr: New file.
70331         * modules/unistr/u32-strrchr: New file.
70332         * lib/unistr/u8-strrchr.c: New file.
70333         * lib/unistr/u16-strrchr.c: New file.
70334         * lib/unistr/u32-strrchr.c: New file.
70335
70336         * modules/unistr/u8-strspn: New file.
70337         * modules/unistr/u16-strspn: New file.
70338         * modules/unistr/u32-strspn: New file.
70339         * lib/unistr/u8-strspn.c: New file.
70340         * lib/unistr/u16-strspn.c: New file.
70341         * lib/unistr/u32-strspn.c: New file.
70342         * lib/unistr/u-strspn.h: New file.
70343
70344         * modules/unistr/u8-strstr: New file.
70345         * modules/unistr/u16-strstr: New file.
70346         * modules/unistr/u32-strstr: New file.
70347         * lib/unistr/u8-strstr.c: New file.
70348         * lib/unistr/u16-strstr.c: New file.
70349         * lib/unistr/u32-strstr.c: New file.
70350         * lib/unistr/u-strstr.h: New file.
70351
70352         * modules/unistr/u8-strtok: New file.
70353         * modules/unistr/u16-strtok: New file.
70354         * modules/unistr/u32-strtok: New file.
70355         * lib/unistr/u8-strtok.c: New file.
70356         * lib/unistr/u16-strtok.c: New file.
70357         * lib/unistr/u32-strtok.c: New file.
70358         * lib/unistr/u-strtok.h: New file.
70359
70360         * modules/unistr/u8-uctomb: New file.
70361         * modules/unistr/u16-uctomb: New file.
70362         * modules/unistr/u32-uctomb: New file.
70363         * lib/unistr/u8-uctomb.c: New file.
70364         * lib/unistr/u16-uctomb.c: New file.
70365         * lib/unistr/u32-uctomb.c: New file.
70366
70367         * MODULES.html.sh (Unicode string functions): Add the new modules.
70368
70369 2007-01-08  Bruno Haible  <bruno@clisp.org>
70370
70371         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70372         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70373         subdirectories.
70374
70375 2007-01-08  Karl Berry  <karl@gnu.org>
70376
70377         * doc/error.texi: mention that main() fns must set program_name
70378         when progname is used.
70379
70380 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70383         WCTYPE_H is empty, for the benefit of builds from non-distclean
70384         directories.  Problem reported by Eric Blake in
70385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70386
70387 2007-01-08  Bruno Haible  <bruno@clisp.org>
70388
70389         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70390         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70391         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70392         PROVIDE_CANONICALIZE_FILENAME_MODE.
70393         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70394
70395 2007-01-08  Bruno Haible  <bruno@clisp.org>
70396
70397         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70398         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70399         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70400         * lib/fts.c: Likewise.
70401         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70402
70403 2006-12-25  Bruno Haible  <bruno@clisp.org>
70404
70405         * modules/utf8-ucs4-safe: New file.
70406         * lib/utf8-ucs4-safe.h: New file.
70407         * lib/unistr/utf8-ucs4-safe.c: New file.
70408
70409         * modules/utf16-ucs4-safe: New file.
70410         * lib/utf16-ucs4-safe.h: New file.
70411         * lib/unistr/utf16-ucs4-safe.c: New file.
70412
70413         * MODULES.html.sh (Unicode string functions): Add the new modules.
70414
70415 2007-01-08  Bruno Haible  <bruno@clisp.org>
70416
70417         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70418         (Depends-on): Add unitypes.
70419         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70420         (u8_mbtouc_aux): Move out to separate file.
70421         (u8_mbtouc): Use ucs4_t, uint8_t types.
70422         * lib/unistr/utf8-ucs4.c: New file.
70423
70424         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70425         (Depends-on): Add unitypes.
70426         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70427         (u16_mbtouc_aux): Move out to separate file.
70428         (u16_mbtouc): Use ucs4_t, uint16_t types.
70429         * lib/unistr/utf16-ucs4.c: New file.
70430
70431         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70432         (Depends-on): Add unitypes.
70433         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70434         (u8_uctomb_aux): Move out to separate file.
70435         (u8_uctomb): Use ucs4_t, uint8_t types.
70436         * lib/unistr/ucs4-utf8.c: New file.
70437
70438         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70439         (Depends-on): Add unitypes.
70440         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70441         (u16_uctomb_aux): Move out to separate file.
70442         (u16_uctomb): Use ucs4_t, uint16_t types.
70443         * lib/unistr/ucs4-utf16.c: New file.
70444
70445 2006-12-25  Bruno Haible  <bruno@clisp.org>
70446
70447         * modules/unitypes: New file.
70448         * lib/unitypes.h: New file.
70449         * MODULES.html.sh (func_all_modules): New section "Unicode string
70450         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70451         this section. Add unitypes.
70452
70453 2007-01-08  Bruno Haible  <bruno@clisp.org>
70454
70455         Avoid variable names that conflict with those from libtool.
70456         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70457         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70458         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70459         library_names_spec to acl_library_names_spec, hardcode_* to
70460         acl_hardcode_*.
70461         Reported by Ralf Wildenhues.
70462
70463 2007-01-08  Bruno Haible  <bruno@clisp.org>
70464
70465         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70466         definition.
70467         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70468         definition.
70469         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70470         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70471         definition.
70472         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70473         definition.
70474         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70475         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70476         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70477         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70478         definition.
70479         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70480         definition.
70481         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70482         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70483         GC_USE_<algorithm>.
70484         * lib/gc-libgcrypt.c: Likewise.
70485         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70486         * modules/gc-arctwo (configure.ac): Likewise.
70487         * modules/gc-des (configure.ac): Likewise.
70488         * modules/gc-hmac-md5 (configure.ac): Likewise.
70489         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70490         * modules/gc-md2 (configure.ac): Likewise.
70491         * modules/gc-md4 (configure.ac): Likewise.
70492         * modules/gc-md5 (configure.ac): Likewise.
70493         * modules/gc-random (configure.ac): Likewise.
70494         * modules/gc-rijndael (configure.ac): Likewise.
70495         * modules/gc-sha1 (configure.ac): Likewise.
70496
70497 2007-01-08  Bruno Haible  <bruno@clisp.org>
70498
70499         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70500         macro definition.
70501         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70502         definition.
70503         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70504         definition.
70505         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70506         * modules/fcntl-safer (configure.ac): Likewise.
70507         * modules/fopen-safer (configure.ac): Likewise.
70508         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70509         GNULIB_FWRITEERROR macro definition.
70510
70511 2007-01-08  Bruno Haible  <bruno@clisp.org>
70512
70513         * m4/gnulib-common.m4: New file.
70514         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70515         (func_get_filelist): Add m4/gnulib-common.m4.
70516
70517 2007-01-08  Bruno Haible  <bruno@clisp.org>
70518
70519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70520         command.
70521
70522 2007-01-08  Jim Meyering  <jim@meyering.net>
70523
70524         Use a more robust test for a "can't happen" condition.
70525         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70526         narrowed the st_size value.  Presuming the "can't happen" condition
70527         is true, that narrowing could conceivably convert an invalid st_size
70528         value into a valid one.  Instead, use a change based on Matthew
70529         Woehlke's original patch.
70530
70531         Slight readability improvement: use an assert-like macro
70532         in place of literal "abort ()" uses.
70533         * lib/fts.c (fts_assert): Define.
70534         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70535         Use this macro instead of a bare 'abort'.
70536
70537 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70540         simply work around them.
70541         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70542         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70543         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70544         declaring.
70545         Don't bother to define as macros, since the standard doesn't require it.
70546         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70547         longer worry about IRIX 5.3.
70548         (HAVE_WCTYPE_CTMP_BUG): Remove.
70549
70550 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70553         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70554         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70555         Problems reported by Georg Schwarz for IRIX 5.3.
70556
70557         * gnulib-tool (autoconf_minversion): Take the maximum version number
70558         found, not the minimum.  Problem reported by James Youngman.
70559
70560 2007-01-03  Karl Berry  <karl@gnu.org>
70561
70562         * doc/error.texi: new file, explaining interaction with progname.
70563         * doc/gnulib.texi: include it.  Update copyright.
70564
70565 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70566
70567         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70568         AC_CANONICAL_HOST, to improve autobuild outputs.
70569
70570 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70571             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70572
70573         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70574         sockets, server sockets, and other file descriptors.  Count errors
70575         to compute the return value.  Reorder the code a bit to be easier
70576         to follow.  Don't set event bits that were not requested (except
70577         POLLERR and POLLHUP).
70578
70579 2007-01-01  Bruno Haible  <bruno@clisp.org>
70580
70581         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70582
70583 2007-01-03  Jim Meyering  <jim@meyering.net>
70584
70585         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70586
70587 2007-01-02  Bruno Haible  <bruno@clisp.org>
70588
70589         * modules/settime (Include): Require timespec.h.
70590         * modules/nanosleep (Include): Likewise.
70591
70592 2007-01-01  Bruno Haible  <bruno@clisp.org>
70593
70594         * gnulib-tool (func_emit_copyright_notice): Bump year.
70595         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70596
70597 2007-01-01  Bruno Haible  <bruno@clisp.org>
70598
70599         Improve support for OpenBSD.
70600         * build-aux/config.rpath (libname_spec): Export.
70601         (library_names_spec): New variable. Export.
70602         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70603         library_names_spec from the config.rpath output. Locate shared library
70604         through the name pattern in library_names_spec.
70605
70606 2007-01-01  Eric Blake  <ebb9@byu.net>
70607
70608         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70609
70610 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70611
70612         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70613         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70614         assume the C locale, and avoid an "eval" that could cause trouble.
70615         Problem with SORT reported by Bob Proulx.
70616
70617         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70618         Define.  Trivial patch from Henning Nielsen Lund, originally
70619         sent to bug-grep@gnu.org today.
70620
70621 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70624         struct stat.  Problem reported by Henning Nielsen Lund.
70625         * lib/acl.c: Include acl.h first, to check interface.  Don't
70626         bother to include sys/types.h and sys/stat.h again.
70627
70628 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         Import the following change from libc; problem reported by
70631         Sven Verdoolaege.
70632
70633         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70634
70635         [BZ #1373]
70636         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70637
70638 2006-12-28  Jim Meyering  <jim@meyering.net>
70639
70640         * build-aux/announce-gen: Do not assume that the package
70641         builds any of tar.gz, tar.bz2, and .xdelta files.
70642         Suggestion from Simon Josefsson.
70643
70644 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70645
70646         * modules/announce-gen: New file.
70647
70648 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70651         handles its gotchas now.
70652         * lib/mbswidth.c: Likewise.
70653         * lib/wcwidth.h: Likewise.
70654         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70655         and iswcntrl; the wctype module does this stuff now.
70656         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70658         * modules/mbchar (Depends-on): Add wctype.
70659         * modules/mbswidth (Depends-on): Likewise.
70660         * modules/wcwidth (Depends-on): Likewise.
70661
70662 2006-12-27  Eric Blake  <ebb9@byu.net>
70663
70664         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70665         module uses more than what <wctype.h> is required to provide.
70666
70667 2006-12-26  Eric Blake  <ebb9@byu.net>
70668
70669         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70670
70671 2006-12-26  Eric Blake  <ebb9@byu.net>
70672
70673         * modules/absolute-header: New module.
70674         * modules/fcntl (Depends-on): Depend on it.
70675         * modules/inttypes (Depends-on): Likewise.
70676         * modules/stdint (Depends-on): Likewise.
70677         * modules/sys_stat (Depends-on): Likewise.
70678         * modules/wctype (Depends-on): Likewise.
70679         * MODULES.html.sh (Support for building libraries and
70680         executables): Document it.
70681
70682 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * gnulib-tool (SED): Remove, undoing previous change.
70685         The problem was that it broke coreutils on Solaris, because
70686         "sed --posix" leaked into a makefile.
70687         (sed): New alias, if 'alias' and GNU sed.
70688
70689 2006-12-24  Jim Meyering  <jim@meyering.net>
70690
70691         Work around an fchownat bug in glibc-2.4:
70692         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70693         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70694         in spite of the -P option.
70695         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70696         New macros.
70697         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70698         * modules/openat (Files): Add lib/fchownat.c.
70699         * lib/openat.c (fchownat): Don't define here.  Move to...
70700         * lib/fchownat.c: ...this new file.
70701
70702 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70703
70704         Fix bug reported by Bruno Haible in
70705         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70706         where quotearg.c didn't compile on Mac OS X 10.2 because it
70707         lacks <wchar.h> and wint_t.
70708         * lib/wctype_.h (__wctype_wint_t): New type.
70709         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70710         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70711         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70712         Arg is now of type __wctype_wint_t, not wint_t.
70713         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70714         substitute HAVE_WINT_T.
70715         * modules/wctype (Files): Add m4/wint_t.m4.
70716         (wctype.h): Substitute HAVE_WINT_T.
70717
70718 2006-12-23  Bruno Haible  <bruno@clisp.org>
70719
70720         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70721
70722 2006-12-23  Bruno Haible  <bruno@clisp.org>
70723
70724         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70725         S_ISLNK.
70726         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70727         mingw.
70728
70729 2006-12-22  Bruno Haible  <bruno@clisp.org>
70730
70731         * lib/copy-file.c: Include acl.h.
70732         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70733         Close the file descriptors only after being done with copy_acl.
70734         * modules/copy-file (Depends-on): Add acl.
70735
70736 2006-12-22  Bruno Haible  <bruno@clisp.org>
70737
70738         * gnulib-tool (SED): New variable.
70739         Use $SED instead of sed everywhere.
70740
70741 2006-12-22  Bruno Haible  <bruno@clisp.org>
70742
70743         * modules/no-c++: New file.
70744         * m4/no-c++.m4: New file.
70745         * MODULES.html.sh (Support for building libraries and executables):
70746         Add no-c++.
70747
70748 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70749
70750         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70751         Include <limits.h>, and use its INT_MAX to rewrite the
70752         j loop so that it does not overflow 'int'.  Problem reported by
70753         Ralf Wildenhues in
70754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70755         Play it safe by shifting left by 1 rather than multiplying by 2,
70756         as GCC is less likely to optimize this away when the value
70757         is signed (when it assumes overflow leads to undefined behavior).
70758         Also, don't assume time_t uses two's complement.
70759
70760 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         * MODULES.html.sh: New module wctype.
70763         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70764         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70765         <wctype.h>, since the new wctype module should fix this.
70766         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70767         the wctype module should arrange for it.
70768         * lib/regex_internal.h: Likewise.
70769         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70770         since the wctype module should handle this now.
70771         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70772         * modules/fnmatch (Depends-on): Add wctype.
70773         * modules/quotearg (Depends-on): Likewise.
70774         * modules/regex (Depends-on): Likewise.
70775
70776 2006-12-19  Bruno Haible  <bruno@clisp.org>
70777
70778         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70779         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70780
70781 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70782
70783         * modules/savewd (Depends-on): Fix dependency on fcntl.
70784
70785 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70786
70787         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70788         conforms to C99, rather than relying on the user's environment
70789         setting of STDINT_H.
70790
70791 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70792         and Eric Blake  <ebb9@byu.net>
70793
70794         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70795         This is more consistent with the other defines here.
70796         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70797         Port to z/OS.  Problem reported by Paul Gilmartin.
70798         Change local vars to use gl_ prefix rather than ac_.
70799         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70800         with other defines.
70801         * modules/double-slash-root: New module.
70802         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70803         (Depends-on): Add double-slash-root.
70804         * MODULES.html.sh (File system functions): Mention new module.
70805
70806 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70807
70808         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70809         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70810         This is for the benefit of gzip, which doesn't do i18n.
70811
70812 2006-12-12  Jim Meyering  <jim@meyering.net>
70813
70814         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70815         Reported by Andreas Schwab <schwab@suse.de>.
70816
70817 2006-12-12  Bruno Haible  <bruno@clisp.org>
70818
70819         Merge these changes.
70820         2006-09-05  Bruno Haible  <bruno@clisp.org>
70821         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70822         iconv_alloc succeeded.
70823         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70824         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70825         test for " && dest " at the end - dest is always != NULL there. Call
70826         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70827         with 2xNULL arguments, also to flush the state storage. Handle the
70828         IRIX iconv behaviour. Realloc the final result, to throw away unused
70829         memory.
70830
70831 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70834         and fchmodat unconditionally, since glibc 2.4 has them.
70835         Problem reported by Arkadiusz Miskiewicz.
70836
70837 2006-12-10  Bruno Haible  <bruno@clisp.org>
70838
70839         * gnulib-tool (func_import): Show the include files only for those
70840         modules that are copied and specified.
70841         Reported by Karl Berry.
70842
70843 2006-12-08  Jim Meyering  <jim@meyering.net>
70844
70845         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70846         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70847
70848         * build-aux/announce-gen: Add two new options, both optional:
70849         --bootstrap-tools=TOOL_LIST
70850               a comma-separated list of tools, e.g.,
70851               autoconf,automake,bison,gnulib
70852         --gnulib-snapshot-date=DATE
70853               if gnulib is in the bootstrap tool list,
70854               then report this as the snapshot date.
70855               If not specified, use the current date/time.
70856               If you specify a date here, be sure it's UTC.
70857
70858 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70859
70860         * tests/test-argp-2.sh: Fix test to match actual output.
70861         (func_compare): Fix sed script to be portable.
70862
70863 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70866         workaround for this case.  It is not autoconfigured now; offhand
70867         it's hard to see how to autoconfigure it.
70868
70869 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70872         a directory that is about to be chowned.  Such a directory's
70873         initial file permissions should permit the owner only and this
70874         should not be changed until after the chown, since the group and
70875         other bits would be incorrect if they granted permission before
70876         the chown.
70877
70878         Fix porting problem for iswctype reported by Georg Schwarz in:
70879         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70880         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70881         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70883         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70884
70885 2006-12-03  Jim Meyering  <jim@meyering.net>
70886
70887         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70888         p->fts_statp may not yet be defined.
70889         (fts_read): Instead, set it in the caller, once p->fts_statp is
70890         sure to be defined, and corresponds to a top-level directory.
70891         This bug made du -x fail.  Here's the coreutils test case:
70892         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70893         Reported by Mike Frysinger.
70894
70895 2006-12-01  Jim Meyering  <jim@meyering.net>
70896
70897         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70898         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70899         Reported by Simon Josefsson.
70900
70901 2006-11-30  Jim Meyering  <jim@meyering.net>
70902
70903         * m4/warning.m4: Use the all-permissive copyright notice
70904         recommended by RMS (rather than LGPL).
70905         * m4/vararrays.m4: Likewise.
70906         * m4/flexmember.m4: Likewise.
70907
70908 2006-11-29  Bruno Haible  <bruno@clisp.org>
70909
70910         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70911         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70912         using +=.
70913         Reported by Simon Josefsson <simon@josefsson.org>.
70914
70915 2006-11-28  James Youngman <jay@gnu.org>
70916
70917         * README: Advise users that they might find the bug-gnulib@gnu.org
70918         and autotools-announce@gnu.org mailing lists useful.
70919
70920 2006-11-28  Bruno Haible  <bruno@clisp.org>
70921
70922         * m4/ptrdiff_max.m4: Remove file.
70923
70924 2006-11-21  Bruno Haible  <bruno@clisp.org>
70925
70926         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70927         _AC_COMPUTE_INT.
70928         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70929         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70930         _AC_COMPUTE_INT.
70931         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70932         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70933         _AC_COMPUTE_INT.
70934         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70935
70936 2006-11-28  Jim Meyering  <jim@meyering.net>
70937
70938         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70939         warning from "gcc -Wshadow" about shadowing the builtin.
70940
70941 2006-11-27  Bruno Haible  <bruno@clisp.org>
70942
70943         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70944         _AC_COMPUTE_INT.
70945         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70946
70947 2006-11-27  Bruno Haible  <bruno@clisp.org>
70948             Paul Eggert  <eggert@cs.ucla.edu>
70949
70950         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70951
70952 2006-11-26  Bruno Haible  <bruno@clisp.org>
70953
70954         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70955         noinst_LTLIBRARIES.
70956
70957 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70958             Bruno Haible  <bruno@clisp.org>
70959
70960         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70961         if compiling with "gcc -ansi".
70962
70963 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70964
70965         Fix some incompatibilities with gcc -ansi -pedantic.
70966         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70967         if compiling pedantically with GCC, unless it's C99 or later.
70968         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70969         it mishandles gcc -ansi -pedantic as well.
70970         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70971         if gcc -pedantic.
70972         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70973         initializers for struct if -pedantic, unless it's C99 or later.
70974
70975 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70976
70977         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70978         Don't close an fd more than once. Identical atimes indicate
70979         success, not failure.
70980
70981 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70982
70983         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70984
70985 2006-11-23  Jim Meyering  <jim@meyering.net>
70986
70987         * build-aux/announce-gen: New file.  From coreutils.
70988
70989 2006-11-22  Jim Meyering  <jim@meyering.net>
70990
70991         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70992         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70993         (fts_read): Use a temporary to narrow the overused st_size member
70994         before using it in a switch statement.  Reported by Matthew Woehlke.
70995
70996         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70997         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70998
70999 2006-11-20  Bruno Haible  <bruno@clisp.org>
71000
71001         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71002         changequote instead of pairs of brackets.
71003         Reported by Andreas Schwab <schwab@suse.de>.
71004
71005 2006-11-21  Jim Meyering  <jim@meyering.net>
71006
71007         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71008         so as to remain compatible with older compilers.
71009         Patch from Michael Deutschmann.
71010
71011 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         * MODULES.html.sh (File system functions): Add openat.
71014
71015         * lib/openat.h (rpl_fstatat): New macro, if
71016         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71017         (fstatat): Define to rpl_fstatat under the same conditions,
71018         unless COMPILING_FSTATAT.
71019         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71020         seems to have the bug.
71021         * lib/fstatat.c: New file.
71022         * modules/openat (Files): Add it.
71023
71024 2006-11-20  Bruno Haible  <bruno@clisp.org>
71025
71026         * Makefile: New file.
71027
71028 2006-11-20  Jim Meyering  <jim@meyering.net>
71029
71030         The beginnings of syntax-related checks for gnulib.
71031         * lib/Makefile: New file.
71032         * lib/t-idcache: New script.  Ensure that the two halves of
71033         idcache.c stay in sync.
71034
71035         * lib/idcache.c: Adjust comments in user- and group- portions to
71036         be more accurate, and to be consistent with one another.
71037
71038 2006-11-20  Jim Meyering  <jim@meyering.net>
71039
71040         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71041         continue using the flexible array member (thus, this module performs
71042         half as many malloc calls), with the addition that...
71043         (getgroup, getuser): Consistently record a non-match via an empty
71044         "name" string, and map an empty string match to a NULL return value.
71045         * modules/idcache (Depends-on): Re-add flexmember.
71046
71047         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71048         (getuidbyname, getgroup, getgidbyname): Likewise.
71049
71050         Use cleaner syntax: NULL rather than 0.
71051         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71052
71053 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71054
71055         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71056         It mishandled the case where the group was missing.
71057         Problem reported by Greg Schafer.
71058         * modules/idcache: Likewise.
71059
71060 2006-11-18  Jim Meyering  <jim@meyering.net>
71061
71062         * check-module (%exempt_header): Add exception for some
71063         conditionally-included headers.
71064
71065         * modules/i-ring (Depends-on): Add verify.
71066         (License): Change to LGPL.
71067
71068 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71071         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71072         and inttostr.h.  Use snprintf rather than uinttostr, so that
71073         LGPLed code doesn't depend on GPLed.
71074
71075 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71076
71077         * modules/inline (License): Change from GPL to LGPL.
71078
71079 2006-11-17  Jim Meyering  <jim@meyering.net>
71080
71081         * modules/d-type (License): Switch to LGPL.
71082
71083 2006-11-15  Bruno Haible  <bruno@clisp.org>
71084
71085         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71086
71087 2006-11-15  Eric Blake  <ebb9@byu.net>
71088
71089         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71090         the module dependency.
71091
71092 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71093             Bruno Haible  <bruno@clisp.org>
71094
71095         * gnulib-tool (func_create_testdir): Add license consistency check.
71096
71097 2006-11-15  Eric Blake  <ebb9@byu.net>
71098
71099         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71100         random "(cached)" in configure output.
71101
71102 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71103
71104         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71105         test for conforming inttypes.h is both announced and cached.
71106
71107         * MODULES.html.sh (seen_modules, seen_files): New variables.
71108         (func_module): Rewrite to use a few less gnulib-tool and sed
71109         invocations.  Avoid a couple of quadratic algorithms for ...
71110         (missed_modules, missed_files): ... these, with ...
71111         (func_append, func_tmpdir): ... these new functions, from
71112         gnulib-tool.  Analogously, install traps for cleanup.
71113
71114         * tests/test-gc.c (main): Remove unused variables.
71115         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71116
71117 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71118
71119         * modules/inttostr (License): Change to LGPL.
71120
71121 2006-11-14  Eric Blake  <ebb9@byu.net>
71122
71123         * modules/tempname (License): Change to LGPL.
71124
71125 2006-11-14  Eric Blake  <ebb9@byu.net>
71126
71127         * doc/functions.texi (Function Portability): *printf functions on
71128         Cygwin now understand all POSIX size specifiers.
71129
71130 2006-11-14  Bruno Haible  <bruno@clisp.org>
71131
71132         * modules/c-ctype (License): Change to LGPL.
71133
71134 2006-11-12  Bruno Haible  <bruno@clisp.org>
71135
71136         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71137         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71138         for GNOME libraries, for which the include files are installed in
71139         subdirectories of $prefix/include.
71140
71141 2006-11-12  Bruno Haible  <bruno@clisp.org>
71142
71143         * m4/lib-link.m4: Require at least autoconf-2.54.
71144         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71145         name to underscores for the --with option.
71146
71147 2006-11-13  Bruno Haible  <bruno@clisp.org>
71148
71149         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71150         the tests directory.
71151         Reported by Ralf Wildenhues.
71152
71153 2006-11-13  Bruno Haible  <bruno@clisp.org>
71154
71155         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71156         (func_emit_initmacro_end): Undo the override here.
71157         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71158         Works around the famous automake error in coreutils.
71159
71160 2006-11-13  Eric Blake  <ebb9@byu.net>
71161
71162         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71163         element, not its node.
71164
71165 2006-11-12  Bruno Haible  <bruno@clisp.org>
71166
71167         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71168         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71169
71170 2006-11-12  Bruno Haible  <bruno@clisp.org>
71171
71172         * gnulib-tool: New option --local-symlink.
71173         (func_usage): Document it.
71174         (lsymbolic): New variable.
71175         (func_import, func_create_testdir): If --symlink was not specified,
71176         test whether --local-symlink was specified and the file comes from
71177         the local_gnulib_dir.
71178
71179 2006-11-12  Bruno Haible  <bruno@clisp.org>
71180
71181         * gnulib-tool (func_ln): New function.
71182         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71183
71184 2006-11-12  Bruno Haible  <bruno@clisp.org>
71185
71186         Finish support for source files in subdirectories.
71187         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71188         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71189         AUTOMAKE_OPTIONS.
71190         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71191
71192 2006-11-12  Bruno Haible  <bruno@clisp.org>
71193
71194         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71195         EXTRA_lib_SOURCES augmentation.
71196         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71197
71198 2006-11-12  Jim Meyering  <jim@meyering.net>
71199
71200         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71201         file descriptors.  This also averts a failure on systems with
71202         native openat support when a traversed directory lacks "x" access.
71203         * lib/fts_.h: Include "i-ring.h"
71204         (struct FTS) [fts_fd_ring]: New member.
71205         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71206         (FCHDIR): Add parentheses.
71207         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71208         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71209         When descending, rather than simply closing the previous
71210         fts_cwd_fd value, push that file descriptor onto the ring.
71211         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71212         (fts_open): Initialize the new fd_ring member.
71213         (fts_close): Clear the ring.
71214         (fts_safe_changedir): When possible, use our new fd_ring to skip
71215         the diropen and fstat and dev/ino comparison that would normally
71216         accompany a virtual `chdir ("..")'.
71217
71218         * modules/fts (Depends-on): Add i-ring.
71219         * modules/i-ring: New module.
71220         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71221         * m4/i-ring.m4: New file.
71222
71223 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71224
71225         * gnulib-tool (func_create_testdir): Fix replacement of
71226         `build-aux' in configure.ac.  Run autotools in gltests
71227         subdirectory.
71228         (func_create_testdir, func_create_megatestdir, test): There is
71229         no need for '--force' in most autotool invocations in a new
71230         tree.  Actually fail the whole test if any of the tools, or the
71231         configure or make stages fail.
71232
71233         Sync from Automake.
71234         * build-aux/gnupload: Revert last change.  Add pointer to upload
71235         instructions of the GNU Maintenance Instructions.
71236         Suggestion by Karl Berry.
71237
71238 2006-11-10  Jim Meyering  <jim@meyering.net>
71239
71240         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71241
71242 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71243
71244         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71245         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71246         (bind_textdomain_codeset) [! ENABLE_NLS]:
71247         Evaluate all the arguments.  That way, callers get compatible behavior
71248         if the arguments have side effects.  Also, it avoids some GCC
71249         diagnostics in some cases; Joel E. Denny reported problems when Bison
71250         was configured with --enable-gcc-warnigs.
71251
71252 2006-11-10  Jim Meyering  <jim@meyering.net>
71253
71254         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71255         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71256         account.
71257
71258 2006-11-10  Jim Meyering  <jim@meyering.net>
71259
71260         * modules/inline: New file/module.
71261         * modules/xalloc (Files): Remove m4/inline.m4.
71262         (Depends-on): Add inline, instead.
71263         * modules/oset: Likewise.
71264         * modules/list: Likewise.
71265
71266 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71267
71268         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71269         Problem reported by Matthew Woehlke.
71270
71271 2006-11-09  Bruno Haible  <bruno@clisp.org>
71272
71273         * lib/tempname.c (gen_tempname): Remove variant that invokes
71274         __gen_tempname.
71275         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71276         __gen_tempname.
71277
71278 2006-11-08  Bruno Haible  <bruno@clisp.org>
71279
71280         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71281         to 'yes' instead of 'cross-compiling'.
71282
71283 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * lib/quotearg.h (quotearg_free): New decl.
71286         * lib/quotearg.c (quotearg_free): New function.
71287         (slot0, nslots, slotvec0, slotvec):
71288         Now file-scope so that quotearg_free can get at them.
71289
71290 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71291
71292         Sync from Automake.
71293         * build-aux/gnupload: Add missing 'gnu' to example URL.
71294         Report by Karl Berry.
71295
71296 2006-11-08  Bruno Haible  <bruno@clisp.org>
71297
71298         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71299         Suggested by Paul Eggert.
71300
71301 2006-11-08  Jim Meyering  <jim@meyering.net>
71302
71303         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71304         It's already included if !_LIBC.
71305         (fts_safe_changedir): Add a comment.
71306
71307 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71308
71309         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71310         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71311         Matthew Woehlke.
71312
71313         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71314         definitions up, to avoid colliding with change below.
71315         (static_inline) [HAVE_INLINE]: New macro.
71316         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71317         Provide extern decls when !HAVE_INLINE.  Do not define unless
71318         static_inline is defined, either by us or by xmalloc.c.  Use
71319         static_inline rather than static inline.
71320         (XCALLOC): Optimize sizeof(T) = 1 case.
71321         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71322
71323 2006-11-07  Bruno Haible  <bruno@clisp.org>
71324
71325         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71326         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71327         AC_C_INLINE.
71328         * modules/xalloc (Files): Add m4/inline.m4.
71329
71330 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71331
71332         * README: Fix typo.
71333         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71334         (Miscellanous Notes): ...from this.
71335
71336 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71339         Mention that offsetof should be used instead of sizeof.
71340         From Bruno Haible.
71341
71342 2006-11-07  Bruno Haible  <bruno@clisp.org>
71343
71344         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71345
71346 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71349         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71350         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71351         (gl_tree_add_before, gl_tree_add_after):
71352         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71353         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71354         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71355         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71356         (gl_linked_add_after, gl_linked_add_at): Likewise.
71357         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71358         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71359         (gl_tree_add_before, gl_tree_add_after): Likewise.
71360         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71361         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71362         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71363
71364 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71365
71366         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71367
71368 2006-11-06  Bruno Haible  <bruno@clisp.org>
71369
71370         * m4/inline.m4: New file.
71371         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71372         * modules/list (Files): Add m4/inline.m4.
71373         * modules/oset (Files): Likewise.
71374
71375 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         * lib/idcache.c: Include <stddef.h>, for offsetof.
71378         (struct userid.name): Change from char * to a flexible array member.
71379         All uses changed.
71380         * modules/idcache (Depends-on): Add flexmember.
71381
71382         * MODULES.html.sh (Core language properties): New module flexmember.
71383         * modules/flexmember, m4/flexmember.m4: New files.
71384
71385         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71386         inline functions that are identical with the old xnmalloc_inline,
71387         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71388         that we can avoid some unnecessary integer multiplications and
71389         divisions in the common case where the element size is known at
71390         compile time.
71391         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71392         needed.
71393         (xnboundedmalloc): Remove.
71394         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71395         arguments, for consistency with rest of this header.
71396         (xcharalloc): Rewrite using XNMALLOC.
71397         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71398         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71399         versions have been moved to lib/xalloc.h and renamed to be the
71400         non-*_inline versions.
71401         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71402         and xnrealloc functions, since those functions are now inline and
71403         now call us.
71404         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71405         renaming described above.
71406         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71407         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71408         captures the dependency in AC_C_INLINE.
71409
71410         New module canonicalize-lgpl, proposed by Charles Wilson in
71411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71412         with a few small changes afterwards.
71413         * MODULES.html.sh (File system functions): New module
71414         canonicalize-lgpl.
71415         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71416         and canonicalize_file_name.
71417         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71418         * modules/canonicalize-lgpl: New files.
71419
71420 2006-11-05  Bruno Haible  <bruno@clisp.org>
71421
71422         * gnulib-tool (func_import, func_create_testdir): Create directories
71423         also for files in subdirectories of lib/.
71424
71425 2006-11-05  Bruno Haible  <bruno@clisp.org>
71426
71427         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71428         ANSI C compliant.
71429
71430 2006-11-03  Bruno Haible  <bruno@clisp.org>
71431
71432         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71433         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71434         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71435         (xnboundedmalloc): New inline function.
71436         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71437         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71438         xmalloc.
71439         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71440         xmalloc.
71441         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71442         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71443         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71444         xmalloc.
71445         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71446         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71447         xmalloc.
71448         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71449         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71450         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71451         xmalloc.
71452         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71453         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71454         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71455         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71456         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71457         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71458         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71459
71460 2006-11-03  Bruno Haible  <bruno@clisp.org>
71461
71462         * lib/c-ctype.h [C++]: Define functions without name mangling.
71463         * lib/fwriteerror.h [C++]: Likewise.
71464         * lib/gcd.h [C++]: Likewise.
71465         * lib/linebreak.h [C++]: Likewise.
71466
71467 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71470         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71471         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71472         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71473         Check for functions and headers just once.
71474         Check for declaration of canonicalize_file_name.
71475         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71476
71477 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71478
71479         * gnulib-tool (func_import): Fix typo in actioncmd.
71480
71481 2006-11-02  Bruno Haible  <bruno@clisp.org>
71482
71483         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71484         newline sequence in the Makefile.am snippet as a space, like "make"
71485         does.
71486         Reported by Roger Persson <perrog@gmail.com>.
71487
71488 2006-11-01  Bruno Haible  <bruno@clisp.org>
71489
71490         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71491         already declared in <string.h>.
71492         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71493
71494 2006-11-01  Bruno Haible  <bruno@clisp.org>
71495
71496         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71497         * lib/strcase.h: Include <string.h>.
71498         (strcasecmp): Define to rpl_strcasecmp here.
71499
71500 2006-11-01  Bruno Haible  <bruno@clisp.org>
71501
71502         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71503
71504 2006-11-01  Eric Blake  <ebb9@byu.net>
71505
71506         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71507
71508         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71509
71510 2006-10-29  Bruno Haible  <bruno@clisp.org>
71511
71512         Make it compile in C++ mode.
71513         * lib/full-write.c (full_rw): Add a cast.
71514
71515 2006-11-01  Bruno Haible  <bruno@clisp.org>
71516
71517         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71518         be POSIX compliant.
71519         Reported by Roger Persson <perrog@gmail.com>.
71520
71521 2006-11-01  Eric Blake  <ebb9@byu.net>
71522
71523         * lib/getopt_.h: Fix comments.
71524
71525 2006-10-31  Eric Blake  <ebb9@byu.net>
71526
71527         * modules/tmpdir (Depends-on): Add sys_stat.
71528         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71529         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71530         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71531         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71532         tempname.
71533
71534 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         Avoid some C++ diagnostics reported by Bruno Haible.
71537         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71538         xmalloc.
71539         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71540         (struct slotvec): Move to top level.
71541         (quotearg_n_options): Rewrite to avoid xmalloc.
71542         * lib/xalloc.h (xcharalloc): New function.
71543         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71544         [defined __cplusplus]: Add function template that provides result
71545         type propagation.  This part of the change is from Bruno Haible.
71546
71547 2006-10-29  Bruno Haible  <bruno@clisp.org>
71548
71549         Make it compile in C++ mode.
71550         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71551         * lib/strnlen1.c (strnlen1): Cast memchr result.
71552         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71553         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71554         (create_temp_dir): Rename local variable 'template'.
71555         (compile_csharp_using_sscli): Add cast.
71556         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71557         * lib/findprog.c (find_in_path): Likewise.
71558         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71559         * lib/wait-process.c (register_slave_subprocess): Likewise.
71560
71561 2006-10-22  Bruno Haible  <bruno@clisp.org>
71562
71563         * modules/tsearch: New file.
71564         * lib/tsearch.h: New file.
71565         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71566         * m4/tsearch.m4: New file.
71567         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71568
71569 2006-10-29  Eric Blake  <ebb9@byu.net>
71570
71571         * lib/arcfour.c: Assume config.h.
71572         * lib/arctwo.c: Likewise.
71573         * lib/base64.c: Likewise.
71574         * lib/check-version.c: Likewise.
71575         * lib/crc.c: Likewise.
71576         * lib/des.c: Likewise.
71577         * lib/gc-gnulib.c: Likewise.
71578         * lib/gc-libgcrypt.c: Likewise.
71579         * lib/gc-pbkdf2-sha1.c: Likewise.
71580         * lib/getaddrinfo.c: Likewise.
71581         * lib/getdelim.c: Likewise.
71582         * lib/getline.c: Likewise.
71583         * lib/hmac-md5.c: Likewise.
71584         * lib/hmac-sha1.c: Likewise.
71585         * lib/iconvme.c: Likewise.
71586         * lib/md2.c: Likewise.
71587         * lib/md4.c: Likewise.
71588         * lib/memxor.c: Likewise.
71589         * lib/read-file.c: Likewise.
71590         * lib/readline.c: Likewise.
71591         * lib/rijndael-alg-fst.c: Likewise.
71592         * lib/rijndael-api-fst.c: Likewise.
71593         * lib/xgetdomainname.c: Likewise.
71594
71595 2006-10-28  Eric Blake  <ebb9@byu.net>
71596
71597         * lib/xstrndup.c: Assume config.h.
71598
71599 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71602         stat-macros.h is now for our own macros, whereas stat_h is for
71603         macros in the <sys/stat.h> name space.
71604         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71605         (STAT_MACROS_H): Remove.
71606         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71607         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71608         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71609         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71610         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71611         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71612         Move these macros to ...
71613         * lib/stat_.h: here.  Don't include stat-macros.h.
71614         * lib/canonicalize.c: Don't include stat-macros.h.
71615         * lib/chown.c: Likewise.
71616         * lib/euidaccess.c: Likewise.
71617         * lib/file-type.c: Likewise.
71618         * lib/filemode.c: Likewise.
71619         * lib/glob.c: Likewise.
71620         * lib/isapipe.c: Likewise.
71621         * lib/lchown.c: Likewise.
71622         * lib/lstat.c: Likewise.
71623         * lib/mkdir-p.c: Likewise.
71624         * lib/rmdir.c: Likewise.
71625         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71627         unless mkdir isn't declared, to speed up 'configure'.
71628         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71629         would define all the S_* symbols.
71630         * modules/canonicalize (Depends-on):
71631         Depend on sys_stat, not stat-macros.
71632         * modules/chown: Likewise.
71633         * modules/euidaccess: Likewise.
71634         * modules/filemode: Likewise.
71635         * modules/file-type: Likewise.
71636         * modules/glob: Likewise.
71637         * modules/isapipe: Likewise.
71638         * modules/lchown: Likewise.
71639         * modules/lstat: Likewise.
71640         * modules/mkancesdirs: Likewise.
71641         * modules/rmdir: Likewise.
71642         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71643         * modules/modechange: Likewise.
71644         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71645         (configure.ac): Remove gl_STAT_MACROS.
71646         * modules/sys_stat (Depends-on): Remove stat-macros.
71647
71648 2006-10-27  Bruno Haible  <bruno@clisp.org>
71649
71650         * m4/signed.m4: Remove file.
71651         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71652         invocation.
71653         * modules/vasnprintf (Files): Remove m4/signed.m4.
71654
71655 2006-10-27  Bruno Haible  <bruno@clisp.org>
71656
71657         Update to GNU gettext 0.16.
71658         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71659         m4/inttypes-h.m4, m4/signed.m4.
71660         * m4/gettext.m4: Update to GNU gettext 0.16.
71661         * m4/intl.m4: New file, from GNU gettext.
71662         * m4/intldir.m4: New file, from GNU gettext.
71663         * config/srclist.txt: Update
71664
71665 2006-10-27  Eric Blake  <ebb9@byu.net>
71666
71667         * MODULES.html.sh: Document tempname.
71668         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71669         dependencies.
71670         (Files): Move lib/tempname.c...
71671         * modules/tempname: ...to this new module.
71672         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71673         (gl_PREREQ_TEMPNAME): Move...
71674         * m4/tempname.m4: ...to this new file.
71675         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71676         * modules/sys_stat (Depends-on): Add stat-macros.
71677         * lib/stat_.h (includes): Pick up stat macros.
71678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71679         if stat macros are broken.
71680         * lib/tempname.c (includes): No need to include "stat-macros.h".
71681         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71682         (direxists, __path_search) [!_LIBC]: Don't compile these in
71683         gnulib; the tmpdir module covers that.
71684         * lib/tempname.h: New file.
71685
71686 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71687
71688         * COPYING: Explain how gnulib-tool converts licence headers.
71689         Almost all wording by Eric Blake.
71690
71691 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71692
71693         * lib/mbchar.h (is_basic_table): Make read-only.
71694         * lib/mbchar.c (is_basic_table): Likewise.
71695         Reported by John Darrington.
71696
71697 2006-10-25  Bruno Haible  <bruno@clisp.org>
71698
71699         * lib/progname.h (set_program_name): Undefine before defining.
71700
71701 2006-10-25  Bruno Haible  <bruno@clisp.org>
71702
71703         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71704         false for non-gcc C++ compilers.
71705         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71706
71707 2006-10-24  Bruno Haible  <bruno@clisp.org>
71708
71709         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71710         iconv implementations like Irix iconv.
71711
71712 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71713
71714         * modules/vararrays: New file.
71715         * m4/vararrays.m4: New file, taken from diffutils.
71716         * MODULES.html.sh: New module vararrays.
71717
71718 2006-10-24  Karl Berry  <karl@gnu.org>
71719
71720         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71721         Don't call GNU Unix.
71722
71723 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71724
71725         * users.txt: Add Libtool.
71726
71727         Sync from Libtool:
71728
71729         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71732         to gnulib's policy of including config.h unconditionally.
71733
71734 2006-10-24  Bruno Haible  <bruno@clisp.org>
71735
71736         * modules/wcwidth (Files): Add m4/wint_t.m4.
71737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71738         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71739
71740 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71741
71742         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71743         to pacify GCC with some -W flags enabled.  Problem reported by
71744         Bruno Haible.
71745
71746 2006-10-24  Jim Meyering  <jim@meyering.net>
71747
71748         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71749         Reported by Karl Berry.
71750
71751 2006-10-23  Bruno Haible  <bruno@clisp.org>
71752
71753         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71754
71755 2006-10-24  Bruno Haible  <bruno@clisp.org>
71756
71757         * lib/gl_list.h: Use C comment style, not C++ comment style.
71758
71759 2006-10-23  Eric Blake  <ebb9@byu.net>
71760
71761         * lib/getaddrinfo.c (includes): Add missing include.
71762
71763 2006-10-23  Bruno Haible  <bruno@clisp.org>
71764             Paul Eggert  <eggert@cs.ucla.edu>
71765
71766         Ability to rename obstack_free.
71767         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71768         obstack_free.
71769         (obstack_free): Invoke the __obstack_free macro.
71770         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71771
71772 2006-10-23  Bruno Haible  <bruno@clisp.org>
71773             Paul Eggert  <eggert@cs.ucla.edu>
71774
71775         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71776         __argc, __argv from the declaration. (They are defined as macros on
71777         mingw.)
71778
71779 2006-10-22  Bruno Haible  <bruno@clisp.org>
71780
71781         * doc/gnulib-intro.texi: New file.
71782         * doc/gnulib.texi: Include it.
71783
71784 2006-10-21  Bruno Haible  <bruno@clisp.org>
71785
71786         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71787         "Introduction", "Miscellanous Notes", "Particular Modules".
71788
71789 2006-10-21  Bruno Haible  <bruno@clisp.org>
71790
71791         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71792         Change mostlyclean-local rule to avoid sh syntax error from bash
71793         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71794
71795 2006-10-23  Jim Meyering  <jim@meyering.net>
71796
71797         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71798         in place of snprintf.
71799
71800         * modules/inttostr (Files): Add lib/uinttostr.c.
71801         * lib/uinttostr.c (inttostr): New file/function.
71802         * lib/inttostr.h (uinttostr): Declare.
71803         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71804         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71805         Add uinttostr.
71806         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71807
71808 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         * lib/canonicalize.c (ELOOP): Define if not already defined.
71811         Problem reported by Bruno Haible in
71812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71813
71814 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71815
71816         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71817         Problem reported by Perry Smith and Ville Laurikari.
71818
71819         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71820         uses.
71821
71822 2006-10-19  Bruno Haible  <bruno@clisp.org>
71823
71824         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71825         for mingw.
71826
71827 2006-10-19  Bruno Haible  <bruno@clisp.org>
71828
71829         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71830         Needed for mingw.
71831
71832 2006-10-19  Bruno Haible  <bruno@clisp.org>
71833
71834         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71835
71836 2006-10-19  Bruno Haible  <bruno@clisp.org>
71837
71838         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71839         it.
71840
71841 2006-10-19  Bruno Haible  <bruno@clisp.org>
71842
71843         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71844         invocation.
71845
71846 2006-10-19  Bruno Haible  <bruno@clisp.org>
71847
71848         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71849         mountlist by default.
71850
71851 2006-10-16  Bruno Haible  <bruno@clisp.org>
71852
71853         * lib/c-strstr.c: Include c-strstr.h.
71854
71855 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71856
71857         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71858         in a slash.
71859
71860 2006-10-18  Bruno Haible  <bruno@clisp.org>
71861
71862         * lib/lock.h [C++]: Wrap definitions in extern "C".
71863
71864 2006-10-18  Bruno Haible  <bruno@clisp.org>
71865
71866         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71867         gl_LIBOBJS list.
71868
71869 2006-10-18  Bruno Haible  <bruno@clisp.org>
71870
71871         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71872
71873 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         * lib/xstrtol.h: Include gettext.h.
71876         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71877         Problem reported by Eric Blake.
71878         * modules/xstrtol (Depends-on): Add gettext-h.
71879
71880 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71881
71882         * lib/strftime.c (advance): New macro.
71883         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71884         incomplete type, so you can't add 0 to it.  Problem and patch
71885         reported by Eelco Dolstra for dietlibc.
71886
71887 2006-10-18  Jim Meyering  <jim@meyering.net>
71888
71889         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71890         type for a local, and rename it: s/up/user_proc/.
71891
71892 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71893
71894         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71895         READ_UTMP_USER_PROCESS.
71896         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71897
71898 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71901         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71902
71903 2006-10-17  Eric Blake  <ebb9@byu.net>
71904
71905         * lib/sigprocmask.c (sigprocmask): Fix typo.
71906
71907         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71908
71909         * modules/clean-temp (Makefile.am): Don't add to make output...
71910         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71911         config.h.
71912
71913 2006-10-17  Bruno Haible  <bruno@clisp.org>
71914
71915         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71916         differently if DEFAULT_TEXT_DOMAIN is set.
71917
71918 2006-10-16  Bruno Haible  <bruno@clisp.org>
71919
71920         * lib/clean-temp.c: Include fwriteerror.h.
71921
71922 2006-10-16  Bruno Haible  <bruno@clisp.org>
71923
71924         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71925
71926 2006-10-16  Bruno Haible  <bruno@clisp.org>
71927
71928         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71929         * lib/sigprocmask.h: Include <sys/types.h>.
71930         (sigset_t): Use the system's definition if present.
71931
71932 2006-10-17  Eric Blake  <ebb9@byu.net>
71933
71934         * lib/xvasprintf.c (includes): Assume config.h.
71935         * lib/xasprintf.c (includes): Likewise.
71936
71937 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71940         at least as wide as intmax_t.
71941
71942 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71943
71944         (Imported from Automake.)
71945         * build-aux/gnupload: Update to version 1.1 of directive file.
71946
71947 2006-10-16  Eric Blake  <ebb9@byu.net>
71948
71949         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71950         match Automake 1.10a.
71951
71952 2006-10-14  Bruno Haible  <bruno@clisp.org>
71953
71954         * modules/sigprocmask: New file.
71955         * lib/sigprocmask.h: New file.
71956         * lib/sigprocmask.c: New file.
71957         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71958         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71959         request sigprocmask.o.
71960         (gl_PREREQ_SIGPROCMASK): New macro.
71961         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71962         (Depends-on): Add sigprocmask.
71963         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71964         gt_SIGNALBLOCKING. Test for 'raise' only once.
71965         * lib/fatal-signal.c: Include sigprocmask.h.
71966         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71967         unblock_fatal_signals): Define always.
71968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71969         sigprocmask.
71970
71971 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         Sync from Automake.
71974         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71975         which incorrectly sets the mode of an existing destination
71976         directory.  In some cases the unpatched install-sh could do the
71977         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71978         system.  We hope this is rare in practice, but it's clearly worth
71979         fixing.  Problem reported by Alex Unleashed in
71980         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71981         Also, don't bother to check for -m bugs unless we're using -m;
71982         suggested by Stepan Kasal.
71983
71984 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71985
71986         Sync from Automake.
71987         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71988         `-c' flag, so they appear at the same position as in %FASTDEP%
71989         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71990         which ignores unknown options only after the first non-option.
71991         Bug report against M4 by Nelson H. F. Beebe.
71992
71993 2006-10-13  Jim Meyering  <jim@meyering.net>
71994
71995         Fix a bug in yesterday's change.
71996         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71997         p->fts_statp->st_dev would be used uninitialized.
71998         Ensures that we always call fts_stat on the very first entry.
71999         Miklos Szeredi reported that find -xdev stopped working.
72000
72001 2006-10-12  Bruno Haible  <bruno@clisp.org>
72002
72003         * gnulib-tool (func_get_automake_snippet): Append an automatically
72004         computed EXTRA_DIST augmentation.
72005         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72006         * modules/alloca-opt (Makefile.am): Likewise.
72007         * modules/allocsa (Makefile.am): Likewise.
72008         * modules/arcfour (Makefile.am): Likewise.
72009         * modules/arctwo (Makefile.am): Likewise.
72010         * modules/argmatch (Makefile.am): Likewise.
72011         * modules/argz (Makefile.am): Likewise.
72012         * modules/atexit (Makefile.am): Likewise.
72013         * modules/backupfile (Makefile.am): Likewise.
72014         * modules/byteswap (Makefile.am): Likewise.
72015         * modules/c-strtod (Makefile.am): Likewise.
72016         * modules/c-strtold (Makefile.am): Likewise.
72017         * modules/calloc (Makefile.am): Likewise.
72018         * modules/canon-host (Makefile.am): Likewise.
72019         * modules/canonicalize (Makefile.am): Likewise.
72020         * modules/chdir-long (Makefile.am): Likewise.
72021         * modules/chdir-safer (Makefile.am): Likewise.
72022         * modules/check-version (Makefile.am): Likewise.
72023         * modules/chown (Makefile.am): Likewise.
72024         * modules/cloexec (Makefile.am): Likewise.
72025         * modules/close-stream (Makefile.am): Likewise.
72026         * modules/closeout (Makefile.am): Likewise.
72027         * modules/crc (Makefile.am): Likewise.
72028         * modules/csharpexec (Makefile.am): Likewise.
72029         * modules/cycle-check (Makefile.am): Likewise.
72030         * modules/des (Makefile.am): Likewise.
72031         * modules/dev-ino (Makefile.am): Likewise.
72032         * modules/dirfd (Makefile.am): Likewise.
72033         * modules/dirname (Makefile.am): Likewise.
72034         * modules/dup2 (Makefile.am): Likewise.
72035         * modules/eealloc (Makefile.am): Likewise.
72036         * modules/error (Makefile.am): Likewise.
72037         * modules/euidaccess (Makefile.am): Likewise.
72038         * modules/exclude (Makefile.am): Likewise.
72039         * modules/exitfail (Makefile.am): Likewise.
72040         * modules/fcntl-safer (Makefile.am): Likewise.
72041         * modules/fcntl (Makefile.am): Likewise.
72042         * modules/file-type (Makefile.am): Likewise.
72043         * modules/fileblocks (Makefile.am): Likewise.
72044         * modules/filemode (Makefile.am): Likewise.
72045         * modules/filenamecat (Makefile.am): Likewise.
72046         * modules/fnmatch (Makefile.am): Likewise.
72047         * modules/fopen-safer (Makefile.am): Likewise.
72048         * modules/fpending (Makefile.am): Likewise.
72049         * modules/fprintftime (Makefile.am): Likewise.
72050         * modules/free (Makefile.am): Likewise.
72051         * modules/fsusage (Makefile.am): Likewise.
72052         * modules/ftruncate (Makefile.am): Likewise.
72053         * modules/fts (Makefile.am): Likewise.
72054         * modules/gc-arcfour (Makefile.am): Likewise.
72055         * modules/gc-des (Makefile.am): Likewise.
72056         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72057         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72058         * modules/gc-md4 (Makefile.am): Likewise.
72059         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72060         * modules/gc-sha1 (Makefile.am): Likewise.
72061         * modules/gc (Makefile.am): Likewise.
72062         * modules/getaddrinfo (Makefile.am): Likewise.
72063         * modules/getcwd (Makefile.am): Likewise.
72064         * modules/getdelim (Makefile.am): Likewise.
72065         * modules/getdomainname (Makefile.am): Likewise.
72066         * modules/getgroups (Makefile.am): Likewise.
72067         * modules/gethostname (Makefile.am): Likewise.
72068         * modules/gethrxtime (Makefile.am): Likewise.
72069         * modules/getline (Makefile.am): Likewise.
72070         * modules/getloadavg (Makefile.am): Likewise.
72071         * modules/getlogin_r (Makefile.am): Likewise.
72072         * modules/getndelim2 (Makefile.am): Likewise.
72073         * modules/getopt (Makefile.am): Likewise.
72074         * modules/getpagesize (Makefile.am): Likewise.
72075         * modules/getpass-gnu (Makefile.am): Likewise.
72076         * modules/getpass (Makefile.am): Likewise.
72077         * modules/getsubopt (Makefile.am): Likewise.
72078         * modules/gettime (Makefile.am): Likewise.
72079         * modules/gettimeofday (Makefile.am): Likewise.
72080         * modules/getugroups (Makefile.am): Likewise.
72081         * modules/getusershell (Makefile.am): Likewise.
72082         * modules/glob (Makefile.am): Likewise.
72083         * modules/group-member (Makefile.am): Likewise.
72084         * modules/hard-locale (Makefile.am): Likewise.
72085         * modules/hash (Makefile.am): Likewise.
72086         * modules/hmac-md5 (Makefile.am): Likewise.
72087         * modules/hmac-sha1 (Makefile.am): Likewise.
72088         * modules/human (Makefile.am): Likewise.
72089         * modules/idcache (Makefile.am): Likewise.
72090         * modules/imaxabs (Makefile.am): Likewise.
72091         * modules/imaxdiv (Makefile.am): Likewise.
72092         * modules/inet_ntop (Makefile.am): Likewise.
72093         * modules/inet_pton (Makefile.am): Likewise.
72094         * modules/intprops (Makefile.am): Likewise.
72095         * modules/inttostr (Makefile.am): Likewise.
72096         * modules/inttypes (Makefile.am): Likewise.
72097         * modules/isapipe (Makefile.am): Likewise.
72098         * modules/javaversion (Makefile.am): Likewise.
72099         * modules/lchmod (Makefile.am): Likewise.
72100         * modules/lchown (Makefile.am): Likewise.
72101         * modules/localcharset (Makefile.am): Likewise.
72102         * modules/long-options (Makefile.am): Likewise.
72103         * modules/lstat (Makefile.am): Likewise.
72104         * modules/malloc (Makefile.am): Likewise.
72105         * modules/mathl (Makefile.am): Likewise.
72106         * modules/mbchar (Makefile.am): Likewise.
72107         * modules/md2 (Makefile.am): Likewise.
72108         * modules/md4 (Makefile.am): Likewise.
72109         * modules/md5 (Makefile.am): Likewise.
72110         * modules/memcasecmp (Makefile.am): Likewise.
72111         * modules/memchr (Makefile.am): Likewise.
72112         * modules/memcmp (Makefile.am): Likewise.
72113         * modules/memcoll (Makefile.am): Likewise.
72114         * modules/memcpy (Makefile.am): Likewise.
72115         * modules/memmem (Makefile.am): Likewise.
72116         * modules/memmove (Makefile.am): Likewise.
72117         * modules/mempcpy (Makefile.am): Likewise.
72118         * modules/memrchr (Makefile.am): Likewise.
72119         * modules/memset (Makefile.am): Likewise.
72120         * modules/memxor (Makefile.am): Likewise.
72121         * modules/mkancesdirs (Makefile.am): Likewise.
72122         * modules/mkdir-p (Makefile.am): Likewise.
72123         * modules/mkdir (Makefile.am): Likewise.
72124         * modules/mkdtemp (Makefile.am): Likewise.
72125         * modules/mkstemp (Makefile.am): Likewise.
72126         * modules/mktime (Makefile.am): Likewise.
72127         * modules/modechange (Makefile.am): Likewise.
72128         * modules/mountlist (Makefile.am): Likewise.
72129         * modules/nanosleep (Makefile.am): Likewise.
72130         * modules/obstack (Makefile.am): Likewise.
72131         * modules/openat (Makefile.am): Likewise.
72132         * modules/pagealign_alloc (Makefile.am): Likewise.
72133         * modules/pathmax (Makefile.am): Likewise.
72134         * modules/physmem (Makefile.am): Likewise.
72135         * modules/poll (Makefile.am): Likewise.
72136         * modules/posixtm (Makefile.am): Likewise.
72137         * modules/posixver (Makefile.am): Likewise.
72138         * modules/putenv (Makefile.am): Likewise.
72139         * modules/quote (Makefile.am): Likewise.
72140         * modules/quotearg (Makefile.am): Likewise.
72141         * modules/raise (Makefile.am): Likewise.
72142         * modules/read-file (Makefile.am): Likewise.
72143         * modules/readline (Makefile.am): Likewise.
72144         * modules/readlink (Makefile.am): Likewise.
72145         * modules/readtokens (Makefile.am): Likewise.
72146         * modules/readutmp (Makefile.am): Likewise.
72147         * modules/realloc (Makefile.am): Likewise.
72148         * modules/regex (Makefile.am): Likewise.
72149         * modules/rename-dest-slash (Makefile.am): Likewise.
72150         * modules/rename (Makefile.am): Likewise.
72151         * modules/rijndael (Makefile.am): Likewise.
72152         * modules/rmdir (Makefile.am): Likewise.
72153         * modules/rpmatch (Makefile.am): Likewise.
72154         * modules/safe-read (Makefile.am): Likewise.
72155         * modules/safe-write (Makefile.am): Likewise.
72156         * modules/same-inode (Makefile.am): Likewise.
72157         * modules/same (Makefile.am): Likewise.
72158         * modules/save-cwd (Makefile.am): Likewise.
72159         * modules/savedir (Makefile.am): Likewise.
72160         * modules/setenv (Makefile.am): Likewise.
72161         * modules/settime (Makefile.am): Likewise.
72162         * modules/sha1 (Makefile.am): Likewise.
72163         * modules/sig2str (Makefile.am): Likewise.
72164         * modules/snprintf (Makefile.am): Likewise.
72165         * modules/stat-macros (Makefile.am): Likewise.
72166         * modules/stat-time (Makefile.am): Likewise.
72167         * modules/stdbool (Makefile.am): Likewise.
72168         * modules/stdint (Makefile.am): Likewise.
72169         * modules/stdlib-safer (Makefile.am): Likewise.
72170         * modules/stpcpy (Makefile.am): Likewise.
72171         * modules/stpncpy (Makefile.am): Likewise.
72172         * modules/strcase (Makefile.am): Likewise.
72173         * modules/strcasestr (Makefile.am): Likewise.
72174         * modules/strchrnul (Makefile.am): Likewise.
72175         * modules/strcspn (Makefile.am): Likewise.
72176         * modules/strdup (Makefile.am): Likewise.
72177         * modules/strerror (Makefile.am): Likewise.
72178         * modules/strftime (Makefile.am): Likewise.
72179         * modules/strndup (Makefile.am): Likewise.
72180         * modules/strnlen (Makefile.am): Likewise.
72181         * modules/strpbrk (Makefile.am): Likewise.
72182         * modules/strsep (Makefile.am): Likewise.
72183         * modules/strstr (Makefile.am): Likewise.
72184         * modules/strtod (Makefile.am): Likewise.
72185         * modules/strtoimax (Makefile.am): Likewise.
72186         * modules/strtok_r (Makefile.am): Likewise.
72187         * modules/strtol (Makefile.am): Likewise.
72188         * modules/strtoll (Makefile.am): Likewise.
72189         * modules/strtoul (Makefile.am): Likewise.
72190         * modules/strtoull (Makefile.am): Likewise.
72191         * modules/strtoumax (Makefile.am): Likewise.
72192         * modules/strverscmp (Makefile.am): Likewise.
72193         * modules/sys_socket (Makefile.am): Likewise.
72194         * modules/sys_stat (Makefile.am): Likewise.
72195         * modules/sysexits (Makefile.am): Likewise.
72196         * modules/time_r (Makefile.am): Likewise.
72197         * modules/timegm (Makefile.am): Likewise.
72198         * modules/timespec (Makefile.am): Likewise.
72199         * modules/tmpfile-safer (Makefile.am): Likewise.
72200         * modules/trim (Makefile.am): Likewise.
72201         * modules/unistd-safer (Makefile.am): Likewise.
72202         * modules/unlinkdir (Makefile.am): Likewise.
72203         * modules/unlocked-io (Makefile.am): Likewise.
72204         * modules/userspec (Makefile.am): Likewise.
72205         * modules/utime (Makefile.am): Likewise.
72206         * modules/utimecmp (Makefile.am): Likewise.
72207         * modules/utimens (Makefile.am): Likewise.
72208         * modules/vasnprintf (Makefile.am): Likewise.
72209         * modules/vasprintf (Makefile.am): Likewise.
72210         * modules/vsnprintf (Makefile.am): Likewise.
72211         * modules/xalloc (Makefile.am): Likewise.
72212         * modules/xgetcwd (Makefile.am): Likewise.
72213         * modules/xnanosleep (Makefile.am): Likewise.
72214         * modules/xreadlink (Makefile.am): Likewise.
72215         * modules/xstrtod (Makefile.am): Likewise.
72216         * modules/xstrtol (Makefile.am): Likewise.
72217         * modules/xstrtold (Makefile.am): Likewise.
72218         * modules/yesno (Makefile.am): Likewise.
72219         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72220
72221 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72222
72223         * modules/error (Makefile.am): Distribute files through
72224         EXTRA_DIST, not lib_SOURCES.
72225
72226 2006-10-12  Eric Blake  <ebb9@byu.net>
72227
72228         * modules/error (Makefile.am): Distribute files in /lib.
72229         * modules/obstack (Makefile.am): Likewise.
72230
72231 2006-10-12  Bruno Haible  <bruno@clisp.org>
72232
72233         * modules/acl (Makefile.am): Distribute all files in lib/ through
72234         EXTRA_DIST.
72235         * modules/arcfour (Makefile.am): Likewise.
72236         * modules/arctwo (Makefile.am): Likewise.
72237         * modules/argmatch (Makefile.am): Likewise.
72238         * modules/argz (Makefile.am): Likewise.
72239         * modules/atexit (Makefile.am): Likewise.
72240         * modules/backupfile (Makefile.am): Likewise.
72241         * modules/c-strtod (Makefile.am): Likewise.
72242         * modules/c-strtold (Makefile.am): Likewise.
72243         * modules/calloc (Makefile.am): Likewise.
72244         * modules/canon-host (Makefile.am): Likewise.
72245         * modules/canonicalize (Makefile.am): Likewise.
72246         * modules/chdir-long (Makefile.am): Likewise.
72247         * modules/chdir-safer (Makefile.am): Likewise.
72248         * modules/check-version (Makefile.am): Likewise.
72249         * modules/chown (Makefile.am): Likewise.
72250         * modules/cloexec (Makefile.am): Likewise.
72251         * modules/close-stream (Makefile.am): Likewise.
72252         * modules/closeout (Makefile.am): Likewise.
72253         * modules/crc (Makefile.am): Likewise.
72254         * modules/cycle-check (Makefile.am): Likewise.
72255         * modules/des (Makefile.am): Likewise.
72256         * modules/dirfd (Makefile.am): Likewise.
72257         * modules/dirname (Makefile.am): Likewise.
72258         * modules/dup2 (Makefile.am): Likewise.
72259         * modules/euidaccess (Makefile.am): Likewise.
72260         * modules/exclude (Makefile.am): Likewise.
72261         * modules/exitfail (Makefile.am): Likewise.
72262         * modules/fcntl-safer (Makefile.am): Likewise.
72263         * modules/file-type (Makefile.am): Likewise.
72264         * modules/fileblocks (Makefile.am): Likewise.
72265         * modules/filemode (Makefile.am): Likewise.
72266         * modules/filenamecat (Makefile.am): Likewise.
72267         * modules/fnmatch (Makefile.am): Likewise.
72268         * modules/fopen-safer (Makefile.am): Likewise.
72269         * modules/fpending (Makefile.am): Likewise.
72270         * modules/fprintftime (Makefile.am): Likewise.
72271         * modules/free (Makefile.am): Likewise.
72272         * modules/fsusage (Makefile.am): Likewise.
72273         * modules/ftruncate (Makefile.am): Likewise.
72274         * modules/fts (Makefile.am): Likewise.
72275         * modules/gc (Makefile.am): Likewise.
72276         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72277         * modules/getaddrinfo (Makefile.am): Likewise.
72278         * modules/getcwd (Makefile.am): Likewise.
72279         * modules/getdelim (Makefile.am): Likewise.
72280         * modules/getdomainname (Makefile.am): Likewise.
72281         * modules/getgroups (Makefile.am): Likewise.
72282         * modules/gethostname (Makefile.am): Likewise.
72283         * modules/gethrxtime (Makefile.am): Likewise.
72284         * modules/getline (Makefile.am): Likewise.
72285         * modules/getloadavg (Makefile.am): Likewise.
72286         * modules/getlogin_r (Makefile.am): Likewise.
72287         * modules/getopt (Makefile.am): Likewise.
72288         * modules/getpass (Makefile.am): Likewise.
72289         * modules/getpass-gnu (Makefile.am): Likewise.
72290         * modules/getsubopt (Makefile.am): Likewise.
72291         * modules/gettime (Makefile.am): Likewise.
72292         * modules/gettimeofday (Makefile.am): Likewise.
72293         * modules/getugroups (Makefile.am): Likewise.
72294         * modules/getusershell (Makefile.am): Likewise.
72295         * modules/glob (Makefile.am): Likewise.
72296         * modules/group-member (Makefile.am): Likewise.
72297         * modules/hard-locale (Makefile.am): Likewise.
72298         * modules/hash (Makefile.am): Likewise.
72299         * modules/hmac-md5 (Makefile.am): Likewise.
72300         * modules/hmac-sha1 (Makefile.am): Likewise.
72301         * modules/human (Makefile.am): Likewise.
72302         * modules/idcache (Makefile.am): Likewise.
72303         * modules/imaxabs (Makefile.am): Likewise.
72304         * modules/imaxdiv (Makefile.am): Likewise.
72305         * modules/inet_ntop (Makefile.am): Likewise.
72306         * modules/inet_pton (Makefile.am): Likewise.
72307         * modules/inttostr (Makefile.am): Likewise.
72308         * modules/isapipe (Makefile.am): Likewise.
72309         * modules/lchown (Makefile.am): Likewise.
72310         * modules/long-options (Makefile.am): Likewise.
72311         * modules/lstat (Makefile.am): Likewise.
72312         * modules/malloc (Makefile.am): Likewise.
72313         * modules/mathl (Makefile.am): Likewise.
72314         * modules/mbchar (Makefile.am): Likewise.
72315         * modules/md2 (Makefile.am): Likewise.
72316         * modules/md4 (Makefile.am): Likewise.
72317         * modules/md5 (Makefile.am): Likewise.
72318         * modules/memcasecmp (Makefile.am): Likewise.
72319         * modules/memchr (Makefile.am): Likewise.
72320         * modules/memcmp (Makefile.am): Likewise.
72321         * modules/memcoll (Makefile.am): Likewise.
72322         * modules/memcpy (Makefile.am): Likewise.
72323         * modules/memmem (Makefile.am): Likewise.
72324         * modules/memmove (Makefile.am): Likewise.
72325         * modules/mempcpy (Makefile.am): Likewise.
72326         * modules/memrchr (Makefile.am): Likewise.
72327         * modules/memset (Makefile.am): Likewise.
72328         * modules/memxor (Makefile.am): Likewise.
72329         * modules/mkancesdirs (Makefile.am): Likewise.
72330         * modules/mkdir (Makefile.am): Likewise.
72331         * modules/mkdir-p (Makefile.am): Likewise.
72332         * modules/mkdtemp (Makefile.am): Likewise.
72333         * modules/mkstemp (Makefile.am): Likewise.
72334         * modules/mktime (Makefile.am): Likewise.
72335         * modules/modechange (Makefile.am): Likewise.
72336         * modules/mountlist (Makefile.am): Likewise.
72337         * modules/nanosleep (Makefile.am): Likewise.
72338         * modules/openat (Makefile.am): Likewise.
72339         * modules/pagealign_alloc (Makefile.am): Likewise.
72340         * modules/physmem (Makefile.am): Likewise.
72341         * modules/poll (Makefile.am): Likewise.
72342         * modules/posixtm (Makefile.am): Likewise.
72343         * modules/posixver (Makefile.am): Likewise.
72344         * modules/putenv (Makefile.am): Likewise.
72345         * modules/quote (Makefile.am): Likewise.
72346         * modules/quotearg (Makefile.am): Likewise.
72347         * modules/raise (Makefile.am): Likewise.
72348         * modules/read-file (Makefile.am): Likewise.
72349         * modules/readline (Makefile.am): Likewise.
72350         * modules/readlink (Makefile.am): Likewise.
72351         * modules/readtokens (Makefile.am): Likewise.
72352         * modules/readutmp (Makefile.am): Likewise.
72353         * modules/realloc (Makefile.am): Likewise.
72354         * modules/regex (Makefile.am): Likewise.
72355         * modules/rename (Makefile.am): Likewise.
72356         * modules/rename-dest-slash (Makefile.am): Likewise.
72357         * modules/rijndael (Makefile.am): Likewise.
72358         * modules/rmdir (Makefile.am): Likewise.
72359         * modules/rpmatch (Makefile.am): Likewise.
72360         * modules/safe-read (Makefile.am): Likewise.
72361         * modules/safe-write (Makefile.am): Likewise.
72362         * modules/same (Makefile.am): Likewise.
72363         * modules/save-cwd (Makefile.am): Likewise.
72364         * modules/savedir (Makefile.am): Likewise.
72365         * modules/setenv (Makefile.am): Likewise.
72366         * modules/settime (Makefile.am): Likewise.
72367         * modules/sha1 (Makefile.am): Likewise.
72368         * modules/sig2str (Makefile.am): Likewise.
72369         * modules/snprintf (Makefile.am): Likewise.
72370         * modules/stdlib-safer (Makefile.am): Likewise.
72371         * modules/stpcpy (Makefile.am): Likewise.
72372         * modules/stpncpy (Makefile.am): Likewise.
72373         * modules/strcase (Makefile.am): Likewise.
72374         * modules/strcasestr (Makefile.am): Likewise.
72375         * modules/strchrnul (Makefile.am): Likewise.
72376         * modules/strcspn (Makefile.am): Likewise.
72377         * modules/strdup (Makefile.am): Likewise.
72378         * modules/strerror (Makefile.am): Likewise.
72379         * modules/strftime (Makefile.am): Likewise.
72380         * modules/strndup (Makefile.am): Likewise.
72381         * modules/strnlen (Makefile.am): Likewise.
72382         * modules/strpbrk (Makefile.am): Likewise.
72383         * modules/strsep (Makefile.am): Likewise.
72384         * modules/strstr (Makefile.am): Likewise.
72385         * modules/strtod (Makefile.am): Likewise.
72386         * modules/strtoimax (Makefile.am): Likewise.
72387         * modules/strtok_r (Makefile.am): Likewise.
72388         * modules/strtol (Makefile.am): Likewise.
72389         * modules/strtoll (Makefile.am): Likewise.
72390         * modules/strtoul (Makefile.am): Likewise.
72391         * modules/strtoull (Makefile.am): Likewise.
72392         * modules/strtoumax (Makefile.am): Likewise.
72393         * modules/strverscmp (Makefile.am): Likewise.
72394         * modules/time_r (Makefile.am): Likewise.
72395         * modules/timegm (Makefile.am): Likewise.
72396         * modules/tmpfile-safer (Makefile.am): Likewise.
72397         * modules/unistd-safer (Makefile.am): Likewise.
72398         * modules/unlinkdir (Makefile.am): Likewise.
72399         * modules/userspec (Makefile.am): Likewise.
72400         * modules/utime (Makefile.am): Likewise.
72401         * modules/utimecmp (Makefile.am): Likewise.
72402         * modules/utimens (Makefile.am): Likewise.
72403         * modules/vasnprintf (Makefile.am): Likewise.
72404         * modules/vasprintf (Makefile.am): Likewise.
72405         * modules/vsnprintf (Makefile.am): Likewise.
72406         * modules/xalloc (Makefile.am): Likewise.
72407         * modules/xgetcwd (Makefile.am): Likewise.
72408         * modules/xnanosleep (Makefile.am): Likewise.
72409         * modules/xreadlink (Makefile.am): Likewise.
72410         * modules/xstrtod (Makefile.am): Likewise.
72411         * modules/xstrtol (Makefile.am): Likewise.
72412         * modules/xstrtold (Makefile.am): Likewise.
72413         * modules/yesno (Makefile.am): Likewise.
72414
72415 2006-10-12  Jim Meyering  <jim@meyering.net>
72416
72417         * m4/getloadavg.m4: Revert the change below.
72418
72419         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72420         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72421         fail with a symlink, which is what coreutils' ./bootstrap now
72422         creates by default.
72423
72424 2006-10-12  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72427         mingw.
72428         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72429         MSVC and mingw explicitly.
72430
72431 2006-10-11  Simon Josefsson  <jas@extundo.com>
72432             Bruno Haible  <bruno@clisp.org>
72433
72434         Add support for multiple gnulib-tool invocations in the scope of a
72435         single configure.ac file.
72436         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72437         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72438         with the same contents as the _LIBADD variable.
72439         (func_emit_initmacro_start, func_emit_initmacro_end,
72440         func_emit_initmacro_done): New functions.
72441         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72442         gl_LIBOBJS and gl_LTLIBOBJS.
72443
72444 2006-10-11  Bruno Haible  <bruno@clisp.org>
72445
72446         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72447         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72448         autoreconf. Instead, invoke autopoint explicitly but move back the
72449         *.m4 files from gnulib.
72450
72451 2006-10-11  Bruno Haible  <bruno@clisp.org>
72452
72453         * gnulib-tool (func_usage): Make module names after --create-testdir
72454         optional.
72455         (func_create_testdir): If no module was specified, use nearly all
72456         modules.
72457
72458 2006-10-12  Jim Meyering  <jim@meyering.net>
72459
72460         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72461         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72462         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72463         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72464         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72465         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72466         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72467         (fts_set_stat_required): New function.
72468         (fts_open): Defer the calls to fts_stat, if possible or requested.
72469         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72470         into fts_stat itself.
72471         (fts_read): Perform any required (deferred) fts_stat call.
72472         (fts_build): Likewise, for the directory we're about to open and read.
72473         In the readdir loop, carefully decide whether each entry will require
72474         an eventual call to fts_stat, using dirent.d_type info if available.
72475         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72476         a command line argument into this function.  Update all callers.
72477         Map a return value of FTS_DOT to FTS_D for a command line argument.
72478         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72479         Thanks to Miklos Szeredi for his tenacity and for the initial
72480         bug report about "find" failing on a FUSE-based file system.
72481
72482         * lib/fts.c (fts_open): Use consistent indentation.
72483
72484 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72487         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72488         reported by Jim Meyering.  All uses of cache variables renamed
72489         to match Autoconf's.
72490         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72491         the other one.
72492
72493         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72494         Fix misspelling in diagnostic.
72495
72496 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72497
72498         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72499         defined.  Problem reported by Matthew Woehlke.
72500
72501         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72502         Add support for Tandem NonStop R series.
72503         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72504         Use new macro.
72505
72506         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72507         (has_trailing_slash): Omit size arg; all callers changed.
72508         Omit 'inline', since it doesn't help performance and we'd
72509         need to configure it.
72510         Don't count //, ///, etc. as having a trailing slash.
72511         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72512         (rpl_rename_dest_slash): On failure, use rename's errno rather
72513         than (in some cases) an incorrect or junk errno.
72514         Simplify code by removing need to compute length; this does
72515         cause it to make two passes instead of one over the file name,
72516         but it's worth it.
72517
72518         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72519         change, since Autoconf's version may no longer be appropriate now
72520         that we are using CVS Autoconf's version.  Add support for Tandem.
72521
72522 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72523             Bruno Haible  <bruno@clisp.org>
72524
72525         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72526         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72527         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72528         gl_AC_TYPE_LONG_LONG.
72529
72530         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72531         instead of HAVE_LONG_LONG.
72532         * lib/printf-args.c (printf_fetchargs): Likewise.
72533         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72534         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72535         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72536         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72537         gl_AC_TYPE_LONG_LONG.
72538
72539 2006-10-11  Bruno Haible  <bruno@clisp.org>
72540
72541         * m4/longlong.m4: Add comments.
72542         * m4/ulonglong.m4: Likewise.
72543
72544 2006-10-10  Bruno Haible  <bruno@clisp.org>
72545
72546         Make it possible to #define stpcpy, strdup to aliases.
72547         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72548         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72549
72550 2006-10-10  Bruno Haible  <bruno@clisp.org>
72551
72552         Make it possible to #define gcd to an alias.
72553         * lib/gcd.c: Include config.h.
72554
72555 2006-10-10  Bruno Haible  <bruno@clisp.org>
72556
72557         Make it possible to #define c_isascii to an alias.
72558         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72559         defined. Undefine the macros before defining them, to avoid gcc
72560         warnings.
72561         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72562         define NO_C_CTYPE_MACROS early.
72563
72564 2006-10-10  Bruno Haible  <bruno@clisp.org>
72565
72566         Make it possible to #define set_program_name to an alias.
72567         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72568         ENABLE_RELOCATABLE early.
72569
72570 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72573         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72574         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72575         More generally, don't assume that 64-bit signed int is available
72576         if unsigned int is, and vice versa.
72577         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72578         unsigned symbols, not on their signed counterparts.
72579         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72580         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72581         (UINT64_C, UINTMAX_C):
72582         Likewise.
72583         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72584         unsigned counterparts.
72585         (Have_long_long, Unsigned): New macros.
72586         (Int): Renamed from INT.
72587         (strtoimax): Use the new macros.
72588         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72589         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72590         * modules/inttypes (inttypes.h): Substitute
72591         HAVE_UNSIGNED_LONG_LONG_INT.
72592         * modules/stdint (stdint.h): Likewise.
72593         (Files): Add m4/ulonglong.m4.
72594
72595 2006-10-10  Bruno Haible  <bruno@clisp.org>
72596
72597         Fix a gcc -Wshadow warning.
72598         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72599         to 'bucket'.
72600         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72601         gl_linked_indexof_from_to): Likewise.
72602         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72603         Likewise.
72604         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72605         Likewise.
72606         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72607         Reported by Eric Blake.
72608
72609 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72612         for NetBSD.  Problem reported by Bruno Haible.
72613
72614 2006-10-09  Jim Meyering  <jim@meyering.net>
72615
72616         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72617         Patch from Bruno Haible.
72618
72619 2006-10-09  Jim Meyering  <jim@meyering.net>
72620
72621         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72622         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72623         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72624
72625 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         Don't include <config.h> twice; this doesn't work in some cases,
72628         e.g., when config.h has "#define intmax_t long long int" and
72629         we include <config.h>, <inttypes.h>, <config.h> in that order.
72630         Problem reported by Matthew Woehlke in:
72631         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72632         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72633         * lib/fts-cycle.c: Don't include config.h.
72634         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72635         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72636         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72637         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72638         inttypes.h.
72639         * lib/xstrtoumax.c: Likewise.
72640         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72641         __strtol and the like, so that this module is more like its siblings.
72642         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72643         Remove; no longer needed now that we assume gnulib inttypes.h.
72644
72645 2006-10-08  Bruno Haible  <bruno@clisp.org>
72646
72647         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72648         option.
72649
72650 2006-10-07  Jim Meyering  <jim@meyering.net>
72651
72652         * modules/inttypes (inttypes.h): Revert what seems to have been
72653         an inadvertent part of today's change: use "|", not "/" in the
72654         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72655
72656 2006-10-07  Bruno Haible  <bruno@clisp.org>
72657
72658         * modules/sublist: New file.
72659
72660 2006-10-07  Bruno Haible  <bruno@clisp.org>
72661
72662         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72663         * modules/argz (argz.h): Likewise.
72664         * modules/arpa_inet (arpa/inet.h): Likewise.
72665         * modules/byteswap (byteswap.h): Likewise.
72666         * modules/configmake (configmake.h): Likewise.
72667         * modules/fcntl (fcntl.h): Likewise.
72668         * modules/fnmatch (fnmatch.h): Likewise.
72669         * modules/getopt (getopt.h): Likewise.
72670         * modules/glob (glob.h): Likewise.
72671         * modules/inttypes (inttypes.h): Likewise.
72672         * modules/netinet_in (netinet/in.h): Likewise.
72673         * modules/poll (poll.h): Likewise.
72674         * modules/stdbool (stdbool.h): Likewise.
72675         * modules/stdint (stdint.h): Likewise.
72676         * modules/sys_select (sys/select.h): Likewise.
72677         * modules/sys_socket (sys/socket.h): Likewise.
72678         * modules/sys_stat (sys/stat.h): Likewise.
72679         * modules/sysexits (sysexits.h): Likewise.
72680         * modules/unistd (unistd.h): Likewise.
72681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72682         Add a "DO NOT EDIT" comment to the generated file.
72683         (func_import): Likewise for gnulib-comp.m4.
72684
72685 2006-10-07  Bruno Haible  <bruno@clisp.org>
72686
72687         * lib/gl_sublist.h: New file.
72688         * lib/gl_sublist.c: New file.
72689
72690 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72693         name (relative to the original working directory) and the file
72694         name component (relative to the temporary working directory).  All
72695         callers changed.
72696         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72697         * lib/mkdir-p.c (make_dir_parents): Likewise.
72698         * lib/mkdir-p.h (make_dir_parents): Likewise.
72699
72700 2006-10-06  Eric Blake  <ebb9@byu.net>
72701
72702         Define several macros for use by the clean-temp module.
72703         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72704         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72705         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72706
72707         * lib/clean-temp.h (close_stream_temp): New declaration.
72708         * lib/clean-temp.c (includes): Pull in headers according to what
72709         other modules are in use.
72710         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72711
72712 2006-10-06  Bruno Haible  <bruno@clisp.org>
72713
72714         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72715         instead of fopen, fwriteerror.
72716
72717 2006-10-06  Bruno Haible  <bruno@clisp.org>
72718
72719         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72720         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72721         int.
72722         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72723         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72724         Return an error indicator.
72725         Suggested by Eric Blake.
72726
72727 2006-10-06  Bruno Haible  <bruno@clisp.org>
72728
72729         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72730         Reported by Eric Blake.
72731
72732 2006-10-06  Bruno Haible  <bruno@clisp.org>
72733
72734         * modules/closeout (Description): Mention stderr too.
72735
72736 2006-10-06  Bruno Haible  <bruno@clisp.org>
72737         and Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         * lib/closeout.c (close_stdout): Also close stderr.
72740         * lib/closeout.h: Update comment.
72741
72742 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72743
72744         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72745         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72746         * lib/dirchownmod.c: Include lchown.h.
72747         * lib/lchown.c: Don't include files that lchown.h now includes.
72748         Don't declare chown, since lchown.h now does that.
72749         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72750         (lchown): Define to rpl_chown if lchown is declared but
72751         does not exist.  Declare using a prototype if lchown is not
72752         declared.  Add a copyright notice.
72753         * lib/mkstemp.h: Include <unistd.h>.
72754         * lib/openat.c: Include lchown.h.
72755
72756         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72757         we now test for that separately.
72758         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72759         rather than O_NOFOLLOW, when testing whether it's possible to
72760         avoid a race condition reliably.
72761         * lib/savewd.c (savewd_chdir): Likewise.
72762
72763         Remove macros that are no longer needed now that stdint.h is
72764         reliable.
72765         * lib/fsusage.c (UINTMAX_MAX): Remove.
72766         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72767         * lib/utimecmp.c (SIZE_MAX): Remove.
72768
72769         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72770
72771         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72772         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72773         O_NOATIME works.
72774
72775 2006-10-05  Bruno Haible  <bruno@clisp.org>
72776
72777         * lib/gl_list.h (gl_sortedlist_search_from_to,
72778         gl_sortedlist_indexof_from_to): New declarations.
72779         (gl_list_implementation): New fields sortedlist_search_from_to,
72780         sortedlist_indexof_from_to.
72781         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72782         inline functions.
72783         * lib/gl_list.c (gl_sortedlist_search_from_to,
72784         gl_sortedlist_indexof_from_to): New functions.
72785         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72786         function.
72787         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72788         (gl_array_sortedlist_search_from_to): New function.
72789         (gl_array_list_implementation): Update.
72790         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72791         function.
72792         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72793         (gl_carray_sortedlist_search_from_to): New function.
72794         (gl_carray_list_implementation): Update.
72795         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72796         gl_linked_sortedlist_indexof_from_to): New functions.
72797         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72798         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72799         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72800         gl_tree_sortedlist_indexof_from_to): New functions.
72801         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72802         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72803         Update.
72804         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72805         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72806         Update.
72807
72808 2006-10-05  Bruno Haible  <bruno@clisp.org>
72809
72810         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72811         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72812         (struct gl_list_implementation): Add fields search_from_to,
72813         indexof_from_to. Remove fields search, indexof.
72814         (gl_list_search): Use the search_from_to method.
72815         (gl_list_search_from, gl_list_search_from_to): New functions.
72816         (gl_list_indexof): Use the indexof_from_to method.
72817         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72818         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72819         (gl_list_search_from, gl_list_search_from_to): New functions.
72820         (gl_list_indexof): Use the indexof_from_to method.
72821         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72822         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72823         gl_array_indexof. Add start_index, end_index arguments.
72824         (gl_array_search_from_to): Renamed from gl_array_search. Add
72825         start_index, end_index arguments.
72826         (gl_array_remove, gl_array_list_implementation): Update.
72827         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72828         gl_carray_indexof. Add start_index, end_index arguments.
72829         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72830         start_index, end_index arguments.
72831         (gl_carray_remove, gl_carray_list_implementation): Update.
72832         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72833         gl_linked_search. Add start_index, end_index arguments.
72834         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72835         start_index, end_index arguments.
72836         (gl_linked_remove): Update.
72837         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72838         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72839         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72840         field to 'size_t'.
72841         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72842         gl_tree_search. Add start_index, end_index arguments.
72843         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72844         start_index, end_index arguments.
72845         (gl_tree_remove): Update.
72846         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72847         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72848         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72849         function.
72850         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72851         gl_tree_search. Add start_index, end_index arguments.
72852         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72853         start_index, end_index arguments.
72854         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72855         Update.
72856         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72857
72858 2006-10-05  Bruno Haible  <bruno@clisp.org>
72859
72860         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72861
72862         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72863         fwriteerror_temp): New declarations.
72864         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72865         (descriptors): New variable.
72866         (cleanup): First, close the descriptors.
72867         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72868         fclose_temp, fwriteerror_temp): New functions.
72869
72870 2006-10-04  Jim Meyering  <jim@meyering.net>
72871
72872         * lib/fts.c (fts_open): Tiny comment change.
72873
72874 2006-10-04  Bruno Haible  <bruno@clisp.org>
72875
72876         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72877         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72878         gl_LOCK_BODY.
72879         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72880         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72881         gl_LOCK_EARLY_BODY.
72882         (gl_LOCK): Require gl_LOCK_BODY.
72883
72884 2006-10-04  Bruno Haible  <bruno@clisp.org>
72885
72886         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72887         (gl_oset_search_atleast): New declaration.
72888         (struct gl_oset_implementation): Add field 'search_atleast'.
72889         (gl_oset_search_atleast): New inline function.
72890         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72891         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72892         (gl_array_oset_implementation): Update.
72893         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72894         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72895         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72896
72897 2006-10-04  Bruno Haible  <bruno@clisp.org>
72898
72899         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72900
72901 2006-10-03  Bruno Haible  <bruno@clisp.org>
72902
72903         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72904         from gl_avltreehash_list_implementation.
72905
72906 2006-10-03  Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/gl_oset.c (gl_oset_add): Fix return type.
72909
72910 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72911
72912         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72913
72914 2006-10-02  Eric Blake  <ebb9@byu.net>
72915
72916         * modules/strnlen (Depends-on): Add extensions.
72917
72918 2006-10-02  Eric Blake  <ebb9@byu.net>
72919
72920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72921         definition in 2.60+.
72922
72923 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72924
72925         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72926         checks.
72927
72928 2006-10-02  Bruno Haible  <bruno@clisp.org>
72929
72930         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72931         to the AUTOMAKE_OPTIONS.
72932         Reported by Jim Meyering.
72933
72934 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72935
72936         Work around bug in Solaris 10 /proc file system:
72937         /proc/self/fd/NNN/.. isn't the parent directory of
72938         the directory whose file descriptor is NNN.  This needs to
72939         be worked around at run time, not compile time, since a
72940         program might be built on Solaris 8, where things work, and
72941         run on Solaris 10.
72942         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72943         to use the following interface instead:
72944         (OPENAT_BUFFER_SIZE): New macro.
72945         (openat_proc_name): New function.
72946         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72947         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72948         Likewise.
72949         * lib/openat-proc.c: New file.
72950         * modules/openat (Files): Add lib/openat-proc.c.
72951         (Depends-on): Add same-inode, stdbool.
72952         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72953
72954 2006-09-29  Bruno Haible  <bruno@clisp.org>
72955
72956         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72957         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72958         argument. Set stdout_closed before testing for ferror, not after.
72959         (fwriteerror, fwriteerror_no_ebadf): New functions.
72960
72961 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72962
72963         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72964
72965 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72966
72967         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72968         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72969
72970 2006-09-28  Jim Meyering  <jim@meyering.net>
72971
72972         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72973         Include <unistd.h>.
72974
72975 2006-09-28  Bruno Haible  <bruno@clisp.org>
72976
72977         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72978         * modules/linkedhash-list (Depends-on): Likewise.
72979         * modules/rbtreehash-list (Depends-on): Likewise.
72980
72981 2006-09-28  Bruno Haible  <bruno@clisp.org>
72982
72983         * lib/strndup.h: Simplify the redefinition of strndup.
72984         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72986
72987 2006-09-28  Bruno Haible  <bruno@clisp.org>
72988
72989         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72990         * lib/gl_linkedhash_list.c: Likewise.
72991         * lib/gl_rbtreehash_list.c: Likewise.
72992
72993 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72994
72995         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72996         getaddrinfo.
72997
72998         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72999         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73000         it causes <stdio_ext.h> to cause a compile-time error.
73001         Problem reported by Nelson H. F. Beebe.
73002         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73003         of HAVE_DECL___PENDING.
73004
73005         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73006         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73007         declaration.
73008
73009 2006-09-27  Jim Meyering  <jim@meyering.net>
73010
73011         This file could end up with a definition for a function
73012         named __strndup, rather than rpl_strndup on a system with
73013         incomplete weak_alias support.
73014         * lib/strndup.c (strndup): Rename from __strndup.
73015         Remove #defines that used to map __strndup to strndup.
73016         Don't use K&R prototypes.
73017         Remove LIBC-related code, since this file is not sync'd with glibc.
73018         * lib/strndup.h: Revamp, accordingly.
73019         * m4/strndup.m4: Modernize.
73020
73021 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * modules/savewd (Depends-on): Add 'raise'.
73024         * lib/savewd.c: Include <signal.h>, for 'raise'.
73025
73026 2006-09-26  Jim Meyering  <jim@meyering.net>
73027
73028         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73029         when we detect Darwin 8.7.0's acl_get_file bug.
73030         Rearrange to perform the new (below) run-test while $LIBS
73031         contains any acl-related library.  Set USE_ACL at the end.
73032         (gl_ACL_GET_FILE): New function.
73033
73034 2006-09-26  Eric Blake  <ebb9@byu.net>
73035
73036         * lib/verror.c: Include <config.h> unconditionally.
73037
73038 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73039
73040         * modules/clock-time (Maintainer): Add self.
73041         * modules/getlogin_r (Depends-on): Add extensions.
73042
73043 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73044
73045         * modules/clock-time: New module.
73046         * modules/nanosleep (Depends-on): Add clock-time.
73047         * modules/gethrxtime (Depends-on): Likewise.
73048         * modules/gettime (Depends-on): Likewise.
73049         * modules/settime (Depends-on): Likewise.
73050
73051         * modules/fts-lgpl: Depend on openat.
73052         * modules/mkancesdirs: Depend on savewd.
73053         * modules/mkdir-p: Likewise.
73054
73055 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73056
73057         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73058
73059         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73060         `gl_have_arbitrary_file_name_length_limit' to
73061         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73062         actually works between configure runs.
73063
73064 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73065             Bruno Haible  <bruno@clisp.org>
73066
73067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73068
73069 2006-09-25  Jim Meyering  <jim@meyering.net>
73070
73071         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73072         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73073
73074 2006-09-25  Eric Blake  <ebb9@byu.net>
73075
73076         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73077         exec's in 2006-09-18 patch when shuffling fds.
73078
73079 2006-09-25  Bruno Haible  <bruno@clisp.org>
73080
73081         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73082         Reported by Jim Meyering.
73083
73084 2006-09-24  Jim Meyering  <jim@meyering.net>
73085
73086         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73087         compare a pointer against a literal "0".  That caused failures with
73088         at least HP-UX's hpcc.
73089
73090 2006-09-22  Simon Josefsson  <jas@extundo.com>
73091
73092         * modules/gc-sha1:
73093         * modules/gc-md4:
73094         * modules/gc-hmac-sha1:
73095         * modules/gc-hmac-md5:
73096         * modules/gc-des:
73097         * modules/gc-arcfour: Distribute more files.
73098
73099 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73100
73101         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73102         (gl_linked_iterator_from_to): Initialize struct completely.
73103         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73104         (gl_tree_iterator_from_to): Likewise
73105         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73106         * lib/gl_array_list.c [lint] (gl_array_iterator)
73107         (gl_array_iterator_from_to): Likewise.
73108         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73109         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73110         (gl_carray_iterator_from_to): Likewise.
73111
73112         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73113         * lib/md4.c (md4_process_block): Remove unused variable.
73114         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73115         parentheses for clarity.
73116
73117 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73118
73119         * modules/bison-i18n (Depends-on): Add gettext.
73120
73121 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73122
73123         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73124         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73125         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73126         also add missing comma that caused broken test.
73127         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73128         stdlib.h, for `abort'.
73129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73130         variables.
73131         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73132         include unistd.h if present, for `rmdir'.
73133         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73134         variables.
73135         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73136         in the process include standard headers for prototypes.
73137         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73138         gets declared on GNU/Linux.
73139         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73140         unistd.h, for `rmdir'.
73141         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73142
73143         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73144         always true.
73145         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73146
73147         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73148
73149 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73150
73151         * gnulib-tool (func_version): Create output all at once.  This
73152         may help avoid triggering unnecessary SIGPIPEs, and at any
73153         rate it doesn't hurt.
73154
73155 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73156             Bruno Haible  <bruno@clisp.org>
73157
73158         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73159         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73160         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73161
73162         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73163         (gl_FUNC_VASPRINTF): Invoke it.
73164
73165 2006-09-22  Bruno Haible  <bruno@clisp.org>
73166
73167         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73168         getloadavg.c as first argument.
73169
73170 2006-09-22  Bruno Haible  <bruno@clisp.org>
73171
73172         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73173         at the beginning of the gl_INIT macro.
73174         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73175         gl_GETLOADAVG.
73176
73177 2006-09-22  Bruno Haible  <bruno@clisp.org>
73178
73179         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73180         module.
73181         Suggested by Ralf Wildenhues.
73182
73183 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73184
73185         Import this patch from libc:
73186
73187         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73188
73189         * lib/regex_internal.c (re_string_reconstruct): Handle
73190         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73191         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73192         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73193         re_string_context_at.
73194
73195         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73196         now requires it.
73197         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73198         gl_REGEX now does it for us.
73199         (gl_REGEX): Add test taken from
73200         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73201
73202         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73203         Check that large offsets work.  Modernize Autoconf usages.
73204         Prefer "yes" to mean a good thing rather than a bad.
73205         Don't put "#define mkstemp" in config.h, as this might interfere
73206         with standard system headers that "#define mkstemp mkstemp64".
73207
73208         * modules/mkstemp (Depends-on): Add extensions, so that
73209         mkstemp is visible on some platforms.
73210         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73211         (Include): Change to "mkstemp.h" from <stdlib.h>.
73212         (Files): Add mkstemp.h.
73213
73214         * lib/mkstemp.h: New file, since some standard headers
73215         #define mkstemp.
73216         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73217         Include "mkstemp.h".
73218         Make the _LIBC code resemble glibc original more,
73219         e.g., use K&R style.
73220         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73221         (mkstemp): Remove, since mkstemp.h does this for us.
73222         * lib/stdlib--.h: Include mkstemp.h.
73223
73224         Import this patch from libc:
73225
73226         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73227
73228         * lib/tempname.c (__gen_tempname): Change attempts_min
73229         into a macro.  Use preprocessor to decide how to initialize
73230         attempts [Coverity CID 67].
73231
73232 2006-09-20  Bruno Haible  <bruno@clisp.org>
73233
73234         * lib/mkdtemp.c: Import from libc.
73235         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73236                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73237                 attempts_min into a macro.  Use preprocessor to decide how to
73238                 initialize attempts [Coverity CID 67].
73239         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73240                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73241                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73242
73243 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73244
73245         * gnulib-tool (func_exit): New function, to allow to pass the
73246         exit status portably through the trap.  Use everywhere.
73247         (--help, --version): Signal a write error.
73248         (trap): catch SIGPIPE, for write errors.
73249         Exit at the end of the trap, with the correct exit status.
73250
73251 2006-09-19  Karl Berry  <karl@gnu.org>
73252
73253         * doc/gnulib.texi: note about the license texinfo files.
73254
73255 2006-09-19  Eric Blake  <ebb9@byu.net>
73256
73257         * gnulib-tool: Avoid space-tab.
73258
73259 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73260
73261         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73262         that prevented coreutils 6.1 from building.  Problem reported
73263         by Petter Reinholdtsen.
73264
73265 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * gnulib-tool (avoidlist): Fix typo that broke options like
73268         --avoid=lock that are used by coreutils bootstrap.
73269
73270 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73271
73272         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73273         more systematically.
73274
73275 2006-09-18  Jim Meyering  <jim@meyering.net>
73276
73277         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73278
73279 2006-09-18  Bruno Haible  <bruno@clisp.org>
73280
73281         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73282
73283 2006-09-18  Bruno Haible  <bruno@clisp.org>
73284
73285         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73286         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73287         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73288         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73289         * m4/gettext.m4: Require autoconf >= 2.52.
73290         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73291         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73292         of gl_cv_header_inttypes_h.
73293
73294 2006-09-18  Bruno Haible  <bruno@clisp.org>
73295
73296         * lib/javaversion.c: Include configmake.h.
73297
73298 2006-09-18  Bruno Haible  <bruno@clisp.org>
73299
73300         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73301         avoid that the while loops be executed in a subshell.
73302
73303 2006-09-18  Bruno Haible  <bruno@clisp.org>
73304
73305         * MODULES.html.sh (func_module): Break long lines.
73306         Suggested by Bruce Korb <bkorb@gnu.org>.
73307
73308 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73309
73310         Speed up by a factor of 1.12.
73311         * gnulib-tool (nl): New variable.
73312         (func_import): Rewrite include directive extraction to only read each
73313         directive once.
73314
73315 2006-09-17  Bruno Haible  <bruno@clisp.org>
73316
73317         * modules/javaversion (Makefile.am): Remove DEFS setting.
73318         (Depends-on): Add configmake, for PKGDATADIR definition.
73319
73320 2006-09-17  Bruno Haible  <bruno@clisp.org>
73321
73322         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73323
73324 2006-09-17  Bruno Haible  <bruno@clisp.org>
73325
73326         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73327         (func_modules_transitive_closure, func_modules_add_dummy,
73328         func_modules_to_filelist, func_import, func_create_testdir,
73329         func_create_megatestdir, ...): Use it wherever possible.
73330         Suggested by Ralf Wildenhues.
73331
73332 2006-09-16  Karl Berry  <karl@gnu.org>
73333
73334         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73335         to avoid sectioning errors.
73336         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73337         [ifinfo]: blank line after @center-ed titles.
73338         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73339         Spell FSF address consistently with others.
73340         (These changes approved by rms.)
73341
73342 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73343
73344         Speed up by a factor of 1.61.
73345         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73346         already checked module names again.
73347
73348 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73349
73350         Speed up by a factor of 1.13.
73351         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73352         for new_files, and the input to func_add_or_update.
73353
73354 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73355
73356         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73357         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73358
73359 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         * modules/mkancesdirs (Depends-on): Add fcntl.
73362         * modules/savewd: New file.
73363         * MODULES.html.sh (File system functions): Add savewd.
73364
73365         * modules/configmake (Makefile.am): Add support for the
73366         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73367
73368 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73369
73370         * m4/savewd.m4: New file.
73371
73372 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73375         (dirchownmod): New arg FD.  All callers changed.
73376         Use FD rather than opening the directory ourself, as opening is
73377         now the caller's responsibility.
73378         * lib/dirchownmod.h: Likewise.
73379         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73380         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73381         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73382         (test_dir): Remove.
73383         (mkancesdirs): Return length of prefix of FILE that has already
73384         been made, or -2 if there is a child doing the work.  Redo
73385         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73386         ".", and treat ".." specially since it might stray back into
73387         already-created areas.  Use a subprocess if necessary.  New arg
73388         WD; all users changed.  MAKE_DIR function should now return 1
73389         if it creates a directory that is not readable.  Return -2 if
73390         a child process is spun off.
73391         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73392         Adjust signature to match code.
73393         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73394         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73395         all users changed.
73396         * lib/savewd.c, lib/savewd.h: New files.
73397
73398 2006-09-15  Jim Meyering  <jim@meyering.net>
73399
73400         * modules/rename-dest-slash: New module.
73401         * MODULES.html.sh (posix_compat): Add it here.
73402
73403         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73404
73405 2006-09-15  Jim Meyering  <jim@meyering.net>
73406
73407         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73408         file.
73409
73410         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73411
73412 2006-09-15  Jim Meyering  <jim@meyering.net>
73413
73414         * lib/rename-dest-slash.c (has_trailing_slash): Use
73415         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73416         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73417         test before testing whether SRC is a directory.
73418         Suggestions from Bruno Haible.
73419
73420         Avoid a warning about an unused variable.
73421         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73422         into the #ifdef block where it's used.
73423
73424         * lib/rename-dest-slash.c: New file.
73425
73426 2006-09-14  Bruno Haible  <bruno@clisp.org>
73427
73428         * lib/allocsa.c: Include <config.h> unconditionally.
73429         * lib/asnprintf.c: Likewise.
73430         * lib/asprintf.c: Likewise.
73431         * lib/c-strcasecmp.c: Likewise.
73432         * lib/c-strcasestr.c: Likewise.
73433         * lib/c-strncasecmp.c: Likewise.
73434         * lib/c-strstr.c: Likewise.
73435         * lib/classpath.c: Likewise.
73436         * lib/clean-temp.c: Likewise.
73437         * lib/concatpath.c: Likewise.
73438         * lib/copy-file.c: Likewise.
73439         * lib/csharpcomp.c: Likewise.
73440         * lib/csharpexec.c: Likewise.
73441         * lib/execute.c: Likewise.
73442         * lib/fatal-signal.c: Likewise.
73443         * lib/findprog.c: Likewise.
73444         * lib/fwriteerror.c: Likewise.
73445         * lib/gl_array_list.c: Likewise.
73446         * lib/gl_array_oset.c: Likewise.
73447         * lib/gl_avltree_list.c: Likewise.
73448         * lib/gl_avltree_oset.c: Likewise.
73449         * lib/gl_avltreehash_list.c: Likewise.
73450         * lib/gl_carray_list.c: Likewise.
73451         * lib/gl_linked_list.c: Likewise.
73452         * lib/gl_linkedhash_list.c: Likewise.
73453         * lib/gl_list.c: Likewise.
73454         * lib/gl_oset.c: Likewise.
73455         * lib/gl_rbtree_list.c: Likewise.
73456         * lib/gl_rbtree_oset.c: Likewise.
73457         * lib/gl_rbtreehash_list.c: Likewise.
73458         * lib/imaxabs.c: Likewise.
73459         * lib/imaxdiv.c: Likewise.
73460         * lib/javacomp.c: Likewise.
73461         * lib/javaexec.c: Likewise.
73462         * lib/javaversion.c: Likewise.
73463         * lib/linebreak.c: Likewise.
73464         * lib/localcharset.c: Likewise.
73465         * lib/lock.c: Likewise.
73466         * lib/mbchar.c: Likewise.
73467         * lib/mbswidth.c: Likewise.
73468         * lib/mkdtemp.c: Likewise.
73469         * lib/pipe.c: Likewise.
73470         * lib/printf-args.c: Likewise.
73471         * lib/printf-parse.c: Likewise.
73472         * lib/progname.c: Likewise.
73473         * lib/progreloc.c: Likewise.
73474         * lib/readlink.c: Likewise.
73475         * lib/sh-quote.c: Likewise.
73476         * lib/stpcpy.c: Likewise.
73477         * lib/stpncpy.c: Likewise.
73478         * lib/strcasecmp.c: Likewise.
73479         * lib/strcasestr.c: Likewise.
73480         * lib/strcspn.c: Likewise.
73481         * lib/striconv.c: Likewise.
73482         * lib/strncasecmp.c: Likewise.
73483         * lib/strnlen1.c: Likewise.
73484         * lib/strstr.c: Likewise.
73485         * lib/strtok_r.c: Likewise.
73486         * lib/tls.c: Likewise.
73487         * lib/tmpdir.c: Likewise.
73488         * lib/unicodeio.c: Likewise.
73489         * lib/unsetenv.c: Likewise.
73490         * lib/vasnprintf.c: Likewise.
73491         * lib/vasprintf.c: Likewise.
73492         * lib/wait-process.c: Likewise.
73493         * lib/xallocsa.c: Likewise.
73494         * lib/xsetenv.c: Likewise.
73495         * lib/xstriconv.c: Likewise.
73496
73497 2006-09-13  Simon Josefsson  <jas@extundo.com>
73498
73499         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73500         that internally, suggested by Ralf Wildenhues
73501         <Ralf.Wildenhues@gmx.de>.
73502
73503 2006-09-13  Simon Josefsson  <jas@extundo.com>
73504
73505         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73506         @LIBOBJS@.
73507         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73508
73509 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73512         longer worry about uses that don't define HAVE_CONFIG_H.
73513         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73514         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73515         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73516         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73517         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73518         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73519         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73520         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73521         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73522         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73523         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73524         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73525         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73526         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73527         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73528         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73529         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73530         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73531         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73532         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73533         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73534         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73535         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73536         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73537         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73538         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73539         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73540         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73541         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73542         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73543         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73544         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73545         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73546         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73547         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73548         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73549         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73550         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73551         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73552         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73553         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73554         Likewise.
73555
73556 2006-09-13  Eric Blake  <ebb9@byu.net>
73557
73558         * lib/getopt.c: Fix typo in last commit.
73559
73560 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73561
73562         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73563         dgettext.
73564
73565 2006-09-12  Jim Meyering  <jim@meyering.net>
73566
73567         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73568         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73569         Reported by Nelson H. F. Beebe.
73570
73571 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73572
73573         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73574         program_invocation_name and program_invocation_short_name are
73575         initialized.
73576         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73577         and program_invocation_short_name to argp.h, so they are visible
73578         to user programs.
73579         * lib/argp.h: Likewise
73580
73581 2006-09-10  Bruno Haible  <bruno@clisp.org>
73582
73583         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73584         m4/inttypes_h.m4, m4/uintmax_t.m4.
73585
73586 2006-09-10  Bruno Haible  <bruno@clisp.org>
73587
73588         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73589         gl_AC_TYPE_UINTMAX_T.
73590
73591 2006-09-10  Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73594
73595 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73596
73597         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73598         convention.  Text proposed by Bruno Haible.
73599         (struct argp_option): Document the use of N_() wrappers.
73600
73601         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73602         '\v', and translate the two parts separately, instead of feeding
73603         the whole string to gettext.  This allows to exclude
73604         '\v' from the strings visible to the translator by writing doc
73605         strings as N_("..") "\v" N_("..").
73606
73607 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * config/srclist.txt: Undo latest change; the bug was fixed.
73610
73611 2006-09-09  Bruno Haible  <bruno@clisp.org>
73612
73613         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73614         assignments if building a library without libtool.
73615         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73616         in func_emit_lib_Makefile_am.
73617         (func_import): When building a static library libfoo.a, arrange to
73618         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73619         (func_create_testdir): Likewise.
73620         * modules/gc (configure.ac, Makefile.am): If building statically,
73621         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73622         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73623         * modules/striconv (configure.ac, Makefile.am): Likewise.
73624         Based on a suggestion by Ralf Wildenhues.
73625
73626 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73629         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73630         Also:
73631
73632         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73633         Add year_2050_test to catch glibc bug 2821
73634         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73635
73636         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73637         Prefer #ifdef to #if.
73638
73639         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73640         Return from 'main' instead of calling 'exit'.
73641
73642 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73645         returned the maximum time_t value rather than (time_t) -1.
73646         Problem originally reported by William Bardwell
73647         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73648
73649         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73650         Moved to here ...
73651         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73652         ... from here.
73653
73654 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73657         2821 is fixed.
73658
73659 2006-09-08  Jim Meyering  <jim@meyering.net>
73660
73661         Don't make generated files read-only.  That would bother too many
73662         people.  However, do retain the ability to work when targets are
73663         read-only: remove the destination and temporary files before writing
73664         them (when generated via sed or echo), or by using the -f option for
73665         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73666         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73667         * modules/byteswap, modules/configmake, modules/fcntl:
73668         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73669         * modules/localcharset, modules/netinet_in, modules/poll:
73670         * modules/stdbool, modules/stdint, modules/sys_select:
73671         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73672
73673 2006-09-08  Jim Meyering  <jim@meyering.net>
73674
73675         Avoid new build failure on FreeBSD 6.0.
73676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73677         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73678         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73679
73680 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73681
73682         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73683
73684 2006-09-07  Jim Meyering  <jim@meyering.net>
73685
73686         Fix global typo in last change: use chmod u-w, not chmod u-x.
73687         Spotted by Paul Eggert and Bruce Korb.
73688         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73689         * modules/byteswap, modules/configmake, modules/fcntl:
73690         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73691         * modules/localcharset, modules/netinet_in, modules/poll:
73692         * modules/stdbool, modules/stdint, modules/sys_select:
73693         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73694
73695 2006-09-06  Jim Meyering  <jim@meyering.net>
73696
73697         Make generated files be read-only.
73698         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73699         Ensure that each generated file is now read-only.
73700         * modules/argz: Likewise.
73701         * modules/arpa_inet: Likewise.
73702         * modules/byteswap: Likewise.
73703         * modules/configmake: Likewise.
73704         * modules/fcntl: Likewise.
73705         * modules/fnmatch: Likewise.
73706         * modules/getopt: Likewise.
73707         * modules/glob: Likewise.
73708         * modules/inttypes: Likewise.
73709         * modules/netinet_in: Likewise.
73710         * modules/poll: Likewise.
73711         * modules/stdbool: Likewise.
73712         * modules/stdint: Likewise.
73713         * modules/sys_select: Likewise.
73714         * modules/sys_socket: Likewise.
73715         * modules/sys_stat: Likewise.
73716         * modules/sysexits: Likewise.
73717         * modules/localcharset: Same as above, but continue using temporary
73718         file named "t-$@" (why different?) rather than the "$@-t" used
73719         everywhere else.
73720
73721         * modules/sysexits (Makefile.am): Replace literal occurrences
73722         of "sysexit.h" more readable, and more consistent, "$@".
73723
73724 2006-09-06  Bruno Haible  <bruno@clisp.org>
73725
73726         * modules/striconv: New file.
73727         * modules/xstriconv: New file.
73728         * MODULES.html.sh (Internationalization functions): Add striconv,
73729         xstriconv.
73730
73731 2006-09-06  Bruno Haible  <bruno@clisp.org>
73732
73733         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73734         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73735         not using libtool correctly.
73736
73737 2006-09-06  Bruno Haible  <bruno@clisp.org>
73738
73739         * lib/striconv.h: New file.
73740         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73741         iconvstring.c.
73742         * lib/xstriconv.h: New file.
73743         * lib/xstriconv.c: New file.
73744
73745 2006-09-06  Bruno Haible  <bruno@clisp.org>
73746
73747         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73748         lib_..._LDFLAGS.
73749
73750 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73751
73752         * lib/argz_.h: Sync from Libtool.
73753
73754         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73755                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73756
73757         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73758
73759 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73760
73761         * modules/trim: New file.
73762
73763 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73764
73765         * lib/trim.h: New file.
73766         * lib/trim.c: New file.
73767
73768 2006-09-05  Bruno Haible  <bruno@clisp.org>
73769
73770         * MODULES.html.sh (String handling): Add trim.
73771
73772 2006-09-04  Karl Berry  <karl@gnu.org>
73773
73774         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73775         until next release.
73776
73777 2006-09-03  Bruno Haible  <bruno@clisp.org>
73778
73779         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73780         correctly.
73781
73782 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73785         not gl_GETLOADAVG.  Omit unneeded semicolons.
73786         Problems reported by Ralf Wildenhues in
73787         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73788         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73789         at the end, which is the usual gnulib style.
73790
73791         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73792         of doing all the work ourselves.
73793         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73794         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73795
73796 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73799         Problem reported by Ralf Wildenhues in
73800         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73801
73802         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73803         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73804
73805 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73808         yesterday's patch by changing test -n to test -z.
73809
73810 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73811
73812         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73813         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73814         the former is now obsolescent.
73815
73816         * modules/chdir-long (Depends-on): Add fcntl.
73817
73818 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73819
73820         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73821         obsolescent, and programs should use gnulib instead.
73822         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73823         but with prefixes changed.
73824
73825 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73828         or stdbool.h, because they might not exist while configuring.
73829
73830         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73831         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73832         does that for us.
73833         (O_DIRECTORY): Remove.
73834
73835 2006-08-31  Eric Blake  <ebb9@byu.net>
73836
73837         * gnulib-tool: Don't let emacs change spaces to TAB.
73838
73839 2006-08-31  Bruno Haible  <bruno@clisp.org>
73840
73841         * gnulib-tool: When calling func_import more than once, do it in a
73842         subshell.
73843         Reported by Eric Blake <ebb9@byu.net>.
73844
73845 2006-08-31  Bruno Haible  <bruno@clisp.org>
73846
73847         * gnulib-tool (nl): Remove variable.
73848         (sed_transform_lib_file): Use more robust test for config-h module.
73849         (func_import): Fix typo in 2006-08-25 patch.
73850
73851 2006-08-31  Bruno Haible  <bruno@clisp.org>
73852
73853         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73854         specified, augment Makefile.am variables instead of assigning them.
73855
73856 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         Work around a bug in both the Linux and SunOS 64-bit kernels:
73859         nanosleep mishandles sleeps for longer than 2**31 seconds.
73860         Problem reported by Frank v Waveren in
73861         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73862         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73863         Check for nanosleep bug.
73864         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73865
73866 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73867
73868         Work around a bug in both the Linux and SunOS 64-bit kernels:
73869         nanosleep mishandles sleeps for longer than 2**31 seconds.
73870         Problem reported by Frank v Waveren in
73871         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73872         * lib/nanosleep.c (BILLION): New constant.
73873         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73874         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73875         implementation.
73876
73877 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         * modules/nanosleep (Depends-on): Add gettime.
73880
73881 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73882         and Simon Josefsson  <jas@extundo.com>
73883         and Oskar Liljeblad  <oskar@osk.mine.nu>
73884
73885         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73886         * gnulib-tool (func_import): New license type 'unmodifiable license
73887         text'.
73888         * modules/fdl: Use it.  Longer description.
73889         * module/gpl, module/lgpl: New files.
73890
73891 2006-08-30  Jim Meyering  <jim@meyering.net>
73892
73893         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73894         shadowing the parameter.
73895
73896 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73897
73898         Sync from Libtool:
73899
73900         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73901
73902         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73903         sharing with gnulib.  Report by Eric Blake.
73904
73905 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * modules/isapipe: New file.
73908         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73909
73910 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * modules/configmake (Makefile.am): Add a comment, and omit
73913         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73914         by Bruno Haible.
73915
73916 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73917
73918         * m4/isapipe.m4: New file.
73919
73920 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73921
73922         * lib/isapipe.c, lib/isapipe.h: New files.
73923
73924 2006-08-29  Jim Meyering  <jim@meyering.net>
73925
73926         * modules/configmake (Makefile.am): Make configmake.h depend on
73927         Makefile.  Otherwise, a stale configmake.h could hang around.
73928
73929 2006-08-29  Eric Blake  <ebb9@byu.net>
73930
73931         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73932         resolution of upstream bug 3044.
73933
73934 2006-08-29  Bruno Haible  <bruno@clisp.org>
73935
73936         * modules/localcharset (Depends-on): Add configmake.
73937         (Makefile.am): Remove setting of LIBDIR through DEFS.
73938
73939 2006-08-29  Bruno Haible  <bruno@clisp.org>
73940
73941         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73942         defined.
73943
73944 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73945
73946         * modules/fcntl: New file.
73947         * modules/chdir-safer (Depends-on): Add fcntl.
73948         * modules/fts: Likewise.
73949         * modules/mkdir-p: Likewise.
73950
73951         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73952         This undoes the most recent change, since we're now addressing the
73953         problem in a different way.
73954
73955         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73956         into output, since the output might be called Makefile.am even
73957         if $makefile_name is something different.
73958         (func_import): Use $makefile_am rather than
73959         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73960         empty.
73961
73962         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73963
73964 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73967         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73968         recent change to stdint.m4, since we're now addressing the problem in a
73969         different way.
73970
73971 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         * m4/fcntl_h.m4: New file.
73974
73975 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * lib/fcntl_.h: New file.
73978         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73979         the fcntl module.
73980         * lib/dirchownmod.c: Likewise.
73981         * lib/fts.c: Likewise.
73982
73983         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73984         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73985         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73986         just before including <inttypes.h>, to avoid circular inclusion.
73987
73988 2006-08-28  Jim Meyering  <jim@meyering.net>
73989
73990         * doc/visibility.texi: Actually read and correct the grammar of the
73991         sentence affected by yesterday's change.
73992
73993 2006-08-28  Eric Blake  <ebb9@byu.net>
73994
73995         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73996         needs wrapper.
73997
73998 2006-08-28  Eric Blake  <ebb9@byu.net>
73999
74000         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74001
74002 2006-08-28  Eric Blake  <ebb9@byu.net>
74003
74004         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74005
74006 2006-08-28  Bruno Haible  <bruno@clisp.org>
74007
74008         * modules/c-strstr: New file, from GNU gettext.
74009         * MODULES.html.sh (String handling): Add c-strstr.
74010
74011 2006-08-28  Bruno Haible  <bruno@clisp.org>
74012
74013         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74014         macros.
74015         Reported by Eric Blake.
74016
74017 2006-08-28  Bruno Haible  <bruno@clisp.org>
74018
74019         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74020         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74021         * lib/vasprintf.c: Include errno.h, limits.h.
74022         (EOVERFLOW): New fallback definition.
74023         (vasprintf): Test here whether the string length is > INT_MAX.
74024         * lib/vsnprintf.c: Include errno.h, limits.h.
74025         (EOVERFLOW): New fallback definition.
74026         (vsnprintf): Fix bug when generated string was too long for the buffer.
74027         Test here whether the string length is > INT_MAX.
74028
74029 2006-08-28  Bruno Haible  <bruno@clisp.org>
74030
74031         * lib/inttypes_.h (SCNX*): Remove definitions.
74032         Reported by Eric Blake.
74033
74034 2006-08-28  Bruno Haible  <bruno@clisp.org>
74035
74036         * lib/c-strstr.h: New file, from GNU gettext.
74037         * lib/c-strstr.c: New file, from GNU gettext.
74038
74039 2006-08-28  Bruno Haible  <bruno@clisp.org>
74040
74041         * gnulib-tool: Reorder some statements.
74042
74043 2006-08-28  Bruno Haible  <bruno@clisp.org>
74044
74045         * gnulib-tool: New option --makefile-name.
74046         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74047         $makefile_name.
74048         (func_import): Write $makefile_name to the cache file, and read it from
74049         there unless explicitly specified. Use $makefile_name as file name
74050         instead of Makefile.am. Adjust the recommendations accordingly.
74051
74052 2006-08-28  Bruno Haible  <bruno@clisp.org>
74053
74054         * gnulib-tool (func_verify_module): Check against misapplying patch.
74055
74056 2006-08-28  Bruno Haible  <bruno@clisp.org>
74057
74058         * gnulib-tool (func_relativize, func_relconcat): New functions.
74059         Give an error if --local-dir is given with --update.
74060         Remove trailing slashes from $local_gnulib_dir.
74061         (func_import): Store the relativized $local_gnulib_dir in
74062         gnulib-cache.m4, and read it from there if not specified explicitly.
74063
74064 2006-08-28  Bruno Haible  <bruno@clisp.org>
74065
74066         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74067         is the current directory. Respect also $local_gnulib_dir.
74068
74069 2006-08-28  Bruno Haible  <bruno@clisp.org>
74070             Simon Josefsson  <jas@extundo.com>
74071
74072         BeOS portability.
74073         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74074
74075 2006-08-27  Jim Meyering  <jim@meyering.net>
74076
74077         * doc/visibility.texi: Remove duplicate word: "pointer".
74078
74079 2006-08-26  Bruno Haible  <bruno@clisp.org>
74080
74081         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74082         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74083         (Makefile.am): Create inttypes.h from inttypes_.h.
74084         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74085
74086         * modules/imaxabs: New file.
74087
74088         * modules/imaxdiv: New file.
74089
74090 2006-08-26  Bruno Haible  <bruno@clisp.org>
74091
74092         * m4/inttypes.m4: New file.
74093         * m4/_inttypes_h.m4: Remove file.
74094         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74095         PRI_MACROS_BROKEN.
74096         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74097
74098         * m4/imaxabs.m4: New file.
74099
74100         * m4/imaxdiv.m4: New file.
74101
74102 2006-08-26  Bruno Haible  <bruno@clisp.org>
74103
74104         * lib/inttypes_.h: New file.
74105         * lib/inttypes.h: Remove file.
74106         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74107
74108         * lib/imaxabs.c: New file.
74109
74110         * lib/imaxdiv.c: New file.
74111
74112 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74113
74114         New config-h module, so that "make" output needn't be cluttered
74115         by -DHAVE_CONFIG_H.
74116         * MODULES.html.sh (Support for building libraries and executables):
74117         Add config-h.
74118         * modules/config-h: New file.
74119         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74120         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74121         the config-h module is used.
74122
74123         New configmake module, so that "make" output needn't be cluttered
74124         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74125         * MODULES.html.sh (Support for building libraries and executables):
74126         Add configmake.
74127         * modules/configmake: New file.
74128
74129 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74130
74131         * m4/config-h.m4: New file.
74132
74133 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * config/srclist.txt: Add elisp-comp.
74136
74137 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         * MODULES.html.sh (Support for building libraries and executables):
74140         Add elisp-comp.
74141         * build-aux/elisp-comp: New file.
74142         * modules/elisp-comp: New file.
74143
74144 2006-08-24  Bruno Haible  <bruno@clisp.org>
74145
74146         * gnulib-tool (func_create_testdir): Use non-default values of
74147         sourcebase and m4base.
74148
74149 2006-08-24  Bruno Haible  <bruno@clisp.org>
74150
74151         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74152         HTML structure.
74153
74154 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * modules/openat (Depends-on): Add lchown.
74157
74158 2006-08-23  Bruno Haible  <bruno@clisp.org>
74159
74160         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74161         of gl_LOCK_EARLY instead of gl_LOCK.
74162
74163 2006-08-23  Bruno Haible  <bruno@clisp.org>
74164
74165         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74166         on OSF/1 to no.
74167         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74168
74169 2006-08-23  Bruno Haible  <bruno@clisp.org>
74170
74171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74172         as unusable.
74173
74174         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74175         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74176         (gl_LOCK): New macro.
74177
74178 2006-08-22  Simon Josefsson  <jas@extundo.com>
74179
74180         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74181         to md5 module.
74182
74183 2006-08-22  Simon Josefsson  <jas@extundo.com>
74184
74185         * MODULES.html.sh: Add "Support for maintaining and release
74186         projects".
74187
74188         * build-aux/gnupload: New file, from coreutils.
74189
74190 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74191
74192         Avoid the need for AC_LIBSOURCES in m4 macros.
74193         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74194         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74195         * modules/check-version (EXTRA_DIST): Add check-version.h.
74196         * modules/crc (EXTRA_DIST): Add crc.h.
74197         * modules/des (EXTRA_DIST): Add des.h.
74198         * modules/gc (EXTRA_DIST): Add gc.h.
74199         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74200         * modules/getline (EXTRA_DIST): Add getline.h.
74201         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74202         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74203         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74204         * modules/md2 (EXTRA_DIST): Add md2.h.
74205         * modules/md4 (EXTRA_DIST): Add md4.h.
74206         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74207         * modules/read-file (EXTRA_DIST): Add read-file.h.
74208         * modules/readline (EXTRA_DIST): Add readline.h.
74209         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74210         rijndael-api-fst.h.
74211
74212 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74213
74214         * m4/rijndael.m4 (gl_ARCFOUR):
74215         * m4/arctwo.m4 (gl_ARCTWO):
74216         * m4/check-version.m4 (gl_CHECK_VERSION):
74217         * m4/crc.m4 (gl_CRC):
74218         * m4/des.m4 (gl_DES):
74219         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74220         * m4/gc.m4 (gl_GC):
74221         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74222         * m4/getline.m4 (gl_FUNC_GETLINE):
74223         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74224         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74225         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74226         * m4/md2.m4 (gl_MD2):
74227         * m4/md4.m4 (gl_MD4):
74228         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74229         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74230         * m4/readline.m4 (gl_FUNC_READLINE):
74231         * m4/rijndael.m4 (gl_RIJNDAEL):
74232         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74233         to get the necessary .h files and whatnot.
74234
74235 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74236
74237         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74238         gnulib rather than the other way around.
74239         * config/srclistvars.sh (COREUTILS): Remove.
74240
74241 2006-08-22  Jim Meyering  <jim@meyering.net>
74242
74243         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74244
74245         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74246
74247 2006-08-22  Eric Blake  <ebb9@byu.net>
74248
74249         * modules/regexprops-generic: New file.
74250         * MODULES.html.sh (Support for building documentation): List it.
74251
74252 2006-08-22  Eric Blake  <ebb9@byu.net>
74253
74254         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74255         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74256         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74257         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74258
74259 2006-08-22  Bruno Haible  <bruno@clisp.org>
74260
74261         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74262         and lib_LTLIBRARIES like the other lib_* variables.
74263
74264 2006-08-22  Bruno Haible  <bruno@clisp.org>
74265
74266         * build-aux/x-to-1.in: New file, from GNU gettext.
74267
74268 2006-08-22  Bruno Haible  <bruno@clisp.org>
74269
74270         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74271         <utmpx.h> exists.
74272
74273 2006-08-22  Bruno Haible  <bruno@clisp.org>
74274
74275         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74276         <utmpx.h> exists.
74277
74278 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         BeOS portability.
74281         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74282         exist.
74283         Problem reported by Bruno Haible.
74284
74285 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74286
74287         Avoid the need for AC_LIBSOURCES in m4 macros.
74288         * modules/acl (EXTRA_DIST): Add acl.h.
74289         * modules/argmatch (Files): Add m4/argmatch.m4.
74290         (configure.ac): Add gl_ARGMATCH.
74291         (EXTRA_DIST): Renamed from lib_SOURCES, for
74292         consistency with the other modules.  Remove argmatch.c.
74293         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74294         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74295         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74296         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74297         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74298         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74299         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74300         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74301         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74302         * modules/closeout (EXTRA_DIST): Add closeout.h.
74303         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74304         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74305         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74306         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74307         dirname.h; remove basename.c and stripslash.c.
74308         * modules/exclude (EXTRA_DIST): Add exclude.h.
74309         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74310         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74311         * modules/file-type (EXTRA_DIST): Add file-type.h.
74312         * modules/filemode (EXTRA_DIST): Add filemode.h.
74313         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74314         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74315         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74316         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74317         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74318         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74319         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74320         * modules/getdate (EXTRA_DIST): Add getdate.c.
74321         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74322         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74323         * modules/getpass (EXTRA_DIST): Add getpass.h.
74324         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74325         * modules/group-member (EXTRA_DIST): Add group-member.h.
74326         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74327         * modules/hash (EXTRA_DIST): Add hash.h.
74328         * modules/human (EXTRA_DIST): Add human.h.
74329         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74330         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74331         * modules/lchown (EXTRA_DIST): Add lchown.h.
74332         * modules/long-options (EXTRA_DIST): Add long-options.h.
74333         * modules/lstat (EXTRA_DIST): Add lstat.h.
74334         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74335         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74336         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74337         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74338         * modules/memxor (EXTRA_DIST): Add memxor.h.
74339         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74340         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74341         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74342         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74343         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74344         * modules/physmem (EXTRA_DIST): Add physmem.h.
74345         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74346         * modules/posixver (EXTRA_DIST): Add posixver.h.
74347         * modules/quote (EXTRA_DIST): Add quote.h.
74348         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74349         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74350         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74351         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74352         regex_internal.h regexec.c.
74353         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74354         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74355         * modules/same (EXTRA_DIST): Add same.h.
74356         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74357         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74358         * modules/savedir (EXTRA_DIST): Add savedir.h.
74359         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74360         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74361         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74362         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74363         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74364         * modules/strdup (EXTRA_DIST): Add strdup.h.
74365         * modules/strftime (EXTRA_DIST): Add strftime.h.
74366         * modules/strndup (EXTRA_DIST): Add strndup.h.
74367         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74368         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74369         * modules/time_r (EXTRA_DIST): Add time_r.h.
74370         * modules/timespec (EXTRA_DIST): Add timespec.h.
74371         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74372         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74373         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74374         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74375         * modules/userspec (EXTRA_DIST): Add userspec.h.
74376         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74377         * modules/utimens (EXTRA_DIST): Add utimens.h.
74378         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74379         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74380         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74381         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74382         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74383         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74384         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74385         * modules/yesno (EXTRA_DIST): Add yesno.h.
74386
74387 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74388
74389         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74390
74391         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74392         * m4/dev-ino.m4, same-inode.m4: Remove.
74393
74394         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74395         * m4/acl.m4 (AC_FUNC_ACL):
74396         * m4/backupfile.m4 (gl_BACKUPFILE):
74397         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74398         * m4/canon-host.m4 (gl_CANON_HOST):
74399         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74400         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74401         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74402         * m4/cloexec.m4 (gl_CLOEXEC):
74403         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74404         * m4/closeout.m4 (gl_CLOSEOUT):
74405         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74406         * m4/dirname.m4 (gl_DIRNAME):
74407         * m4/exclude.m4 (gl_EXCLUDE):
74408         * m4/exitfail.m4 (gl_EXITFAIL):
74409         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74410         * m4/file-type.m4 (gl_FILE_TYPE):
74411         * m4/filemode.m4 (gl_FILEMODE):
74412         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74413         * m4/fpending.m4 (gl_FUNC_FPENDING):
74414         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74415         * m4/fts.m4 (gl_FUNC_FTS):
74416         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74417         * m4/getdate.m4 (gl_GETDATE):
74418         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74419         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74420         * m4/getpass.m4 (gl_FUNC_GETPASS):
74421         * m4/gettime.m4 (gl_GETTIME):
74422         * m4/getugroups.m4 (gl_GETUGROUPS):
74423         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74424         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74425         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74426         * m4/hash.m4 (gl_HASH):
74427         * m4/idcache.m4 (gl_IDCACHE):
74428         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74429         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74430         * m4/long-options.m4 (gl_LONG_OPTIONS):
74431         * m4/lstat.m4 (gl_FUNC_LSTAT):
74432         * m4/md5.m4 (gl_MD5):
74433         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74434         * m4/memcoll.m4 (gl_MEMCOLL):
74435         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74436         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74437         * m4/memxor.m4 (gl_MEMXOR):
74438         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74439         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74440         * m4/modechange.m4 (gl_MODECHANGE):
74441         * m4/mountlist.m4 (gl_MOUNTLIST):
74442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74443         * m4/openat.m4 (gl_FUNC_OPENAT):
74444         * m4/pathmax.m4 (gl_PATHMAX):
74445         * m4/physmem.m4 (gl_PHYSMEM):
74446         * m4/posixtm.m4 (gl_POSIXTM):
74447         * m4/posixver.m4 (gl_POSIXVER):
74448         * m4/quote.m4 (gl_QUOTE):
74449         * m4/quotearg.m4 (gl_QUOTEARG):
74450         * m4/readtokens.m4 (gl_READTOKENS):
74451         * m4/readutmp.m4 (gl_READUTMP):
74452         * m4/regex.m4 (gl_REGEX):
74453         * m4/safe-read.m4 (gl_SAFE_READ):
74454         * m4/safe-write.m4 (gl_SAFE_WRITE):
74455         * m4/same.m4 (gl_SAME):
74456         * m4/save-cwd.m4 (gl_SAVE_CWD):
74457         * m4/savedir.m4 (gl_SAVEDIR):
74458         * m4/settime.m4 (gl_SETTIME):
74459         * m4/sha1.m4 (gl_SHA1):
74460         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74461         * m4/stat-macros.m4 (gl_STAT_MACROS):
74462         * m4/stat-time.m4 (gl_STAT_TIME):
74463         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74464         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74465         * m4/strdup.m4 (gl_FUNC_STRDUP):
74466         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74467         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74468         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74469         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74470         * m4/time_r.m4 (gl_TIME_R):
74471         * m4/timespec.m4 (gl_TIMESPEC):
74472         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74473         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74474         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74475         * m4/userspec.m4 (gl_USERSPEC):
74476         * m4/utimecmp.m4 (gl_UTIMECMP):
74477         * m4/utimens.m4 (gl_UTIMENS):
74478         * m4/xalloc.m4 (gl_XALLOC):
74479         * m4/xgetcwd.m4 (gl_XGETCWD):
74480         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74481         * m4/xreadlink.m4 (gl_XREADLINK):
74482         * m4/xstrtod.m4 (gl_XSTRTOD):
74483         * m4/yesno.m4 (gl_YESNO):
74484         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74485         to get the necessary .h files and whatnot.
74486
74487 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74488             Bruno Haible  <bruno@clisp.org>
74489
74490         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74491         /bin/sh understanding of '!' conditional negation.
74492
74493 2006-08-21  Jim Meyering  <jim@meyering.net>
74494
74495         * modules/openat (Depends-on): Really alphabetize.
74496
74497         * modules/acl (Depends-on): Add error and quote.
74498
74499         * check-module (find_included_lib_files): Add at-func.c to the
74500         ok-to-include-more-than-once white list.
74501
74502         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74503
74504 2006-08-21  Bruno Haible  <bruno@clisp.org>
74505
74506         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74507         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74508         Reported by Martin Lambers <marlam@marlam.de>.
74509
74510 2006-08-21  Bruno Haible  <bruno@clisp.org>
74511
74512         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74513         specify an installation location, don't emit a noinst_LIBRARIES or
74514         noinst_LTLIBRARIES assignment.
74515
74516 2006-08-21  Bruno Haible  <bruno@clisp.org>
74517
74518         BeOS portability.
74519         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74520         BeOS has mbrtowc() but no <wctype.h>.
74521
74522 2006-08-21  Bruno Haible  <bruno@clisp.org>
74523
74524         BeOS portability.
74525         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74526         exist.
74527
74528 2006-08-21  Bruno Haible  <bruno@clisp.org>
74529
74530         BeOS portability.
74531         * lib/mbchar.h: Include <wctype.h> only if it exists.
74532
74533 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         Remove files that are no longer needed by their respective modules.
74536         * m4/obstack.m4: Remove.
74537         * m4/strerror_r.m4: Remove.
74538         * m4/uint32_t.m4: Remove.
74539         * m4/uintptr_t.m4: Remove.
74540         * m4/ullong_max.m4: Remove.
74541         * m4/xstrtoimax.m4: Remove.
74542         * m4/xstrtoumax.m4: Remove.
74543
74544         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74545         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74546         dependencies now capture this.
74547
74548         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74549         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74550         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74551         * m4/human.m4 (gl_HUMAN): Likewise.
74552         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74553         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74554
74555         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74556
74557         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74558         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74559         stdint.
74560         * m4/human.m4 (gl_HUMAN): Likewise.
74561         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74562         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74563         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74564         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74565         * m4/xstrtol (gl_XSTRTOL): Likewise.
74566
74567         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74568         AC_TYPE_LONG_LONG_INT.
74569         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74570         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74571         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74572         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74573
74574         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74575         on stdbool.
74576
74577         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74578         (gl_PREREQ_XSTRTOUL): Remove.
74579
74580         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74581
74582         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74583         mode.
74584
74585 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         Add and change modules to make it easier for coreutils to use
74588         gnulib-tool.
74589         * modules/backupfile (Files): Remove m4/d-ino.m4.
74590         (Depends-on): Add d-ino.
74591         * modules/cycle-check (Depends-on): Add stdint.
74592         (lib_SOURCES): Add cycle-check.h.
74593         * modules/d-ino: New module.
74594         * modules/d-type: New module.
74595         * modules/error (Files): Remove m4/strerror_r.m4.
74596         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74597         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74598         m4/inttypes_h.m4, m4/uintmax_t.m4.
74599         (Depends-on): Add stdint.
74600         (lib_SOURCES): Add fsusage.h.
74601         * modules/getcwd (Files): Remove d-ino.m4.
74602         (Depends-on): Add d-ino.
74603         * modules/getndelim2 (Depends-on): Add stdint.
74604         * modules/glob (Files): Remove m4/d-type.m4.
74605         (Depends-on): Add d-type.
74606         * modules/host-os: New module.
74607         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74608         m4/inttypes_h.m4, m4/uintmax_t.m4.
74609         * Depends-on: Add stdint.
74610         (lib_SOURCES): Add human.h.
74611         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74612         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74613         m4/uintmax_t.m4, m4/ulonglong.m4.
74614         (Depends-on): Add stdint.
74615         (EXTRA_DIST): Add inttostr.h.
74616         * modules/lchmod: New module.
74617         * modules/link-follow: New module.
74618         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74619         (Depends-on): Add lchmod.
74620         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74621         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74622         (Depends-on): Add stdint.
74623         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74624         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74625         (Depends-on): Add stdint.
74626         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74627         * modules/perl: New module.
74628         * modules/regex (Depends-on): Add stdint.
74629         * modules/rmdir-errno: New module.
74630         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74631         m4/intmax_t.m4.
74632         (Depends-on): Add stdint.
74633         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74634         m4/uintmax_t.m4.
74635         (Depends-on): Add stdint.
74636         * modules/unlink-busy: New module.
74637         * modules/utimecmp (Depends-on): Add stdint.
74638         * modules/uptime: New module.
74639         * modules/winsz-ioctl: New module.
74640         * modules/winsz-termios: New module.
74641         * modules/xnanosleep (Depends-on): Add nanosleep.
74642         * modules/ullong_max: Remove.
74643         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74644         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74645         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74646         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74647         (Depends-on): Add inttypes.
74648         (lib_SOURCES): Add xstrtol.h.
74649         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74650         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74651         * MODULES.html.sh: Move 'assert' into the assert section.
74652         Move 'dummy' into the linking section.
74653         Remove ullong_max.
74654         Add section for compatibility checks for POSIX:2001 functions,
74655         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74656         winsz-ioctl, and winsz-termios into it.
74657         Add lchmod.
74658         Add top-level Misc section and put host-os, perl, and uptime
74659         into it.
74660
74661 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74664         now assume the stdint module.  Do not include inttypes.h.
74665         * lib/fsusage.h: Likewise.
74666         * lib/getndelim2.c: Likewise.
74667         * lib/human.h: Likewise.
74668         * lib/inttostr.h: Likewise.
74669         * lib/obstack.c: Likewise.
74670         * lib/regex_internal.h: Likewise.
74671         * lib/tempname.c: Likewise.
74672         * lib/utimecmp.c: Likewise.
74673         * lib/xstrtol.h: Likewise.
74674
74675         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74676
74677         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74678         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74679         * lib/xtime.h: Likewise.
74680
74681 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * modules/openat (Files): Add lib/fchmodat.c.
74684         Fixes problem reported by Jay Youngman.
74685
74686 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74687
74688         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74689         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74690
74691 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74692             Bruno Haible  <bruno@clisp.org>
74693
74694         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74695         and is a script that invokes bison. Tighten the code. Add comments.
74696
74697 2006-08-18  Jim Meyering  <jim@meyering.net>
74698
74699         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74700         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74701         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74702         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74703
74704 2006-08-18  Bruno Haible  <bruno@clisp.org>
74705
74706         * modules/bison-i18n: New file.
74707         * MODULES.html.sh (Internationalization functions): Add it.
74708
74709 2006-08-18  Bruno Haible  <bruno@clisp.org>
74710
74711         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74712         sys/statvfs.h. When getmntinfo was found, check its declaration and
74713         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74714
74715 2006-08-18  Bruno Haible  <bruno@clisp.org>
74716
74717         * m4/bison-i18n.m4: New file, from bison.
74718
74719 2006-08-18  Bruno Haible  <bruno@clisp.org>
74720
74721         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74722         (ME_DUMMY): Treat "kernfs" as a dummy.
74723         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74724
74725 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         Update from coreutils.
74728
74729         2006-08-15  Jim Meyering  <jim@meyering.net>
74730
74731         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74732
74733         2006-01-17  Jim Meyering  <jim@meyering.net>
74734
74735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74736
74737         2006-01-11  Jim Meyering  <jim@meyering.net>
74738
74739         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74740         Check for the lchmod function.
74741
74742 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         Update from coreutils.
74745
74746         * lib/__fpending.h: Add copyright notice.
74747         * lib/fprintftime.h: Likewise.
74748         * lib/savedir.c: Use (C) in copyright notice.
74749         * lib/savedir.h: Likewise.
74750
74751         2006-08-15  Jim Meyering  <jim@meyering.net>
74752
74753         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74754         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74755         in support of the EXPECTED_ERRNO macro.
74756         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74757         definitions.  Instead, define the appropriate symbols and include
74758         "at-func.c".
74759         * lib/mkdirat.c (mkdirat): Likewise.
74760         * lib/fchmodat.c (fchmodat): Likewise.
74761         (ENOSYS): Remove definition.
74762         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74763         it.  Don't include "unistd--.h" -- it wasn't ever used.
74764
74765         2006-01-17  Jim Meyering  <jim@meyering.net>
74766
74767         Rewrite fts.c not to change the current working directory,
74768         by using openat, fstatat, fdopendir, etc..
74769
74770         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74771         (HAVE_OPENAT_SUPPORT): Define.
74772         [_LIBC] (fchdir): Don't undef or define; no longer used.
74773         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74774         Now, this `function' always succeeds, and consumes its file descriptor
74775         parameter -- so callers must not close such FDs.  Update callers.
74776         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74777         (diropen): Add parameter, SP.  Adjust all callers.
74778         Implement using diropen_fd, rather than open.
74779         (fts_open): Initialize new member, fts_cwd_fd.
74780         Remove fts_rft-setting code.
74781         (fts_close): Close fts_cwd_fd, if necessary.
74782         (__opendir2): Define in terms of opendir or opendirat,
74783         depending on whether the FST_NOCHDIR flag is set.
74784         (fts_build): Since fts_safe_changedir consumes its FD, and since
74785         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74786         and close the dup'd file descriptor upon failure.
74787         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74788         (fts_safe_changedir): Tweak semantics to reflect that this function
74789         now calls cwd_advance_fd and hence consumes its FD argument.
74790         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74791         [struct FTS] (fts_rft): Remove now-unused member.
74792         [struct FTS] (fts_cycle.state): Improve comment.
74793
74794         * lib/openat.c (openat_needs_fchdir): New function.
74795         * lib/openat.h (openat_needs_fchdir): Declare it.
74796
74797 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74800         Problem and fix reported by Pádraig Brady in
74801         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74802
74803 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74806
74807 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74808
74809         * lib/memcoll.c (memcoll): Optimize for the common case where the
74810         arguments are bytewise equal.
74811
74812 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * doc/regexprops-generic.texi: Add a copyright notice.
74815
74816 2006-08-15  Bruno Haible  <bruno@clisp.org>
74817
74818         * modules/tmpdir (License): Change to LGPL.
74819
74820 2006-08-15  Bruno Haible  <bruno@clisp.org>
74821
74822         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74823         module.
74824
74825 2006-08-14  Simon Josefsson  <jas@extundo.com>
74826
74827         * config/srclist.txt: Add gnupload.
74828
74829 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74830
74831         Change copyright notice from LGPL 2 to GPL 2, since that's the
74832         standard form used in the gnulib repository.
74833         * tests/test-lock.c: Likewise.
74834         * tests/test-stdint.c: Likewise.
74835         * tests/test-tls.c: Likewise.
74836
74837         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74838         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74839         Add copyright notice.
74840
74841         * check-module: Add copyright notice.  Output a copyright
74842         notice if "--version" is specified.
74843         * modules/COPYING: New file.
74844         * tests/test-getaddrinfo.c: Add copyright notice.
74845         * tests/test-verify.c: Likewise.
74846
74847 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         Change copyright notice from LGPL 2 to GPL 2, since that's the
74850         standard form used in the gnulib repository.
74851         * lib/lock.c: LGPL -> GPL.
74852         * lib/lock.h: Likewise.
74853         * lib/strnlen1.c: Likewise.
74854         * lib/strnlen1.h: Likewise.
74855         * lib/tls.c: Likewise.
74856         * lib/tls.h: Likewise.
74857         * lib/tmpdir.c: Likewise.
74858
74859         * lib/TODO: Remove; this belongs only in coreutils.
74860
74861 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74862
74863         Add copyright notices to long-enough files that lack them, since
74864         otherwise the files aren't clearly free.  Use the same notice that
74865         getdate.texi already uses.
74866         * doc/alloca-opt.texi: Add copyright notice.
74867         * doc/alloca.texi: Likewise.
74868         * doc/ctime.texi: Likewise.
74869         * doc/functions.texi: Likewise.
74870         * doc/gcd.texi: Likewise.
74871         * doc/gnulib-tool.texi: Likewise.
74872         * doc/inet_ntoa.texi: Likewise.
74873         * doc/visibility.texi: Likewise.
74874
74875         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74876         * doc/quote.texi: Add copyright notice.
74877
74878         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74879         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74880         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74881         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74882         is now obsolete, and give a pointer to the Sun list.
74883         Add copyright notice.
74884
74885 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74886
74887         * config/srclistvars.sh: Add copyright notice.
74888
74889 2006-08-14  Eric Blake  <ebb9@byu.net>
74890
74891         Import the following change from libc:
74892
74893         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74894
74895         Upstream bug 2997.
74896         * lib/misc/error.c: Add space between program name and message if file
74897         name is missing.
74898
74899 2006-08-12  Karl Berry  <karl@gnu.org>
74900
74901         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74902         remove, these originate in gnulib now.
74903
74904 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74905
74906         * doc/Makefile (standards.info standards.html standards.dvi):
74907         Also depend on make-stds.texi.
74908
74909 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74910
74911         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74912         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74913
74914         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74915         in wchar_t.  Problem reported by Eric Blake.
74916
74917         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74918         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74919         Also, help the compiler to keep LEN in a register.
74920
74921 2006-08-11  Eric Blake  <ebb9@byu.net>
74922
74923         * users.txt: Sort.  Add tar.
74924
74925 2006-08-11  Bruno Haible  <bruno@clisp.org>
74926
74927         * users.txt: New file.
74928
74929 2006-08-11  Bruno Haible  <bruno@clisp.org>
74930
74931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74932         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74933
74934 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         * modules/snprintf (Depends-on): Remove minmax.
74937         (Maintainer): Add self and Bruno.
74938
74939 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74942         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74943         (EOVERFLOW): Define if the system does not.
74944         Do not include "minmax.h"; it wasn't used.
74945         (snprintf): Don't assume size_t promotes to an unsigned type.
74946         Fix bug when generated string was too long for the buffer: the
74947         buffer's contents are supposed to be the initial prefix of the
74948         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74949         exceeds INT_MAX; do the check ourselves.
74950
74951         Import the following changes from libc:
74952
74953         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74954
74955         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74956         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74957         set wc to the byte which couldn't be converted.
74958         (re_string_reconstruct): Don't clear valid_raw_len before calling
74959         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74960         tip_context using re_string_context_at.
74961
74962         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74963
74964         * lib/posix/regex.h: g++ still cannot handled [restrict].
74965
74966         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74967
74968         * lib/posix/regex.h: Remove special handling for VMS.
74969
74970 2006-08-10  Jim Meyering  <jim@meyering.net>
74971
74972         * modules/same-inode: New module.
74973         * modules/dev-ino: New module.
74974         * modules/cycle-check: Depend on these modules, rather than simply
74975         including their .h files.
74976         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74977         required via m4/cycle-check.m4.
74978         * modules/same: Depend on new same-inode module, rather than
74979         including same-inode.h.
74980         * modules/chdir-safer: New file.
74981
74982         * modules/chown (Depends-on): Add stat-macros.
74983
74984 2006-08-10  Jim Meyering  <jim@meyering.net>
74985
74986         * m4/cycle-check.m4: New file.
74987         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74988         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74989
74990 2006-08-10  Eric Blake  <ebb9@byu.net>
74991
74992         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74993         in from original proposal.
74994
74995 2006-08-10  Eric Blake  <ebb9@byu.net>
74996         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74997
74998         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74999         namespace.
75000
75001 2006-08-10  Bruno Haible  <bruno@clisp.org>
75002
75003         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75004         as well.
75005
75006 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75007
75008         Sync from coreutils.
75009
75010         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75011
75012         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75013         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75014
75015 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         * modules/restrict: Remove; no longer needed now that we assume
75018         Autoconf 2.59 or later.
75019         * MODULES.html.sh: Remove 'restrict'.
75020         * modules/argp (Depends-on): Remove 'restrict'.
75021         * modules/base64 (Depends-on): Likewise.
75022         * modules/gc (Depends-on): Likewise.
75023         * modules/getaddrinfo (Depends-on): Likewise.
75024         * modules/glob (Depends-on): Likewise.
75025         * modules/inet_ntop (Depends-on): Likewise.
75026         * modules/inet_pton (Depends-on): Likewise.
75027         * modules/memxor (Depends-on): Likewise.
75028         * modules/regex (Depends-on): Likewise.
75029         * modules/strtok_r (Depends-on): Likewise.
75030         * modules/time_r (Depends-on): Likewise.
75031
75032 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75033
75034         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75035         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75036         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75037         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75038         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75039         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75040         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75041         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75042
75043         Merge from coreutils.
75044         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75045         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75046         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75047         * m4/time_r.m4 (gl_TIME_R): Likewise.
75048
75049 2006-08-09  Karl Berry  <karl@gnu.org>
75050
75051         * config/srclist.txt: no more gettext-tools, per Bruno.
75052
75053 2006-08-08  Eric Blake  <ebb9@byu.net>
75054
75055         * modules/verror: New module.
75056         * MODULES.html.sh: Document it.
75057
75058 2006-08-08  Eric Blake  <ebb9@byu.net>
75059
75060         * lib/verror.h, lib/verror.c: New files.
75061
75062 2006-08-08  Eric Blake  <ebb9@byu.net>
75063
75064         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75065         verror_at_line output complies with GNU Coding Standards even when
75066         file is NULL.
75067
75068 2006-08-07  Bruno Haible  <bruno@clisp.org>
75069
75070         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75071         versions of AIX.
75072         Reported by Ralf Wildenhues.
75073
75074 2006-08-07  Bruno Haible  <bruno@clisp.org>
75075
75076         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75077         in an AC_DEFUN. Needed so that the autoconf snippets can use
75078         AC_REQUIRE.
75079
75080 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75081
75082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75083         Initialize pkgdata_DATA.
75084         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75085         overriding it.
75086
75087 2006-08-06  Eric Blake  <ebb9@byu.net>
75088
75089         * lib/error.h: Fold in some upstream changes from glibc.
75090         * lib/error.c: Likewise.
75091
75092 2006-08-04  Bruno Haible  <bruno@clisp.org>
75093
75094         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75095         Make the mostlyclean-local rule depend on mostlyclean-generic.
75096         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75097
75098 2006-07-31  Bruno Haible  <bruno@clisp.org>
75099
75100         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75101         <stdlib.h>, <string.h>.
75102
75103 2006-07-30  Bruno Haible  <bruno@clisp.org>
75104
75105         * modules/readlink (License): Change to LGPL.
75106
75107 2006-07-30  Bruno Haible  <bruno@clisp.org>
75108
75109         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75110         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75111         set PKGDATADIR to point to it.
75112
75113 2006-07-30  Bruno Haible  <bruno@clisp.org>
75114
75115         * modules/csharpexec (configure.ac): Comment out macro invocation.
75116         * modules/javaexec (configure.ac): Likewise.
75117         * modules/javacomp-script (configure.ac): Likewise.
75118
75119         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75120
75121 2006-07-30  Bruno Haible  <bruno@clisp.org>
75122
75123         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75124         linked-list.
75125
75126 2006-07-30  Bruno Haible  <bruno@clisp.org>
75127
75128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75129
75130 2006-07-30  Bruno Haible  <bruno@clisp.org>
75131
75132         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75133         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75134         get removed.
75135
75136 2006-07-29  Bruno Haible  <bruno@clisp.org>
75137
75138         Make it possible for gnulib-tool to work with locally modified or
75139         augmented gnulib repositories.
75140         * gnulib-tool (func_usage): Document --local-dir option.
75141         (local_gnulib_dir): New variable.
75142         Handle --local-dir option.
75143         (func_lookup_file): New function.
75144         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75145         (func_get_description, func_get_filelist, func_get_description,
75146         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75147         func_get_automake_snippet, func_get_include_directive,
75148         func_get_license, func_get_maintainer): Use func_lookup_file.
75149         (func_import, func_create_testdir): Use func_lookup_file.
75150
75151 2006-07-29  Bruno Haible  <bruno@clisp.org>
75152
75153         * modules/setenv (Depends-on): Add unistd.
75154
75155 2006-07-29  Bruno Haible  <bruno@clisp.org>
75156
75157         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75158
75159 2006-07-29  Bruno Haible  <bruno@clisp.org>
75160
75161         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75162
75163 2006-07-29  Bruno Haible  <bruno@clisp.org>
75164
75165         * gnulib-tool (import, update): If there is no Makefile.am, look at
75166         aclocal.m4, instead of bailing out.
75167
75168 2006-07-29  Bruno Haible  <bruno@clisp.org>
75169
75170         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75171         Categorize the options by when they are useful.
75172
75173 2006-07-29  Bruno Haible  <bruno@clisp.org>
75174
75175         * gnulib-tool (func_usage): Document option --no-libtool.
75176         Handle option --no-libtool.
75177         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75178         for changed semantics of $libtool variable.
75179         (func_import): Likewise. If libtool is not used, show this through
75180         an option --no-libtool.
75181         (func_create_testdir): Update.
75182
75183 2006-07-29  Bruno Haible  <bruno@clisp.org>
75184
75185         * gnulib-tool (func_import): Extend error message about missing
75186         --doc-base.
75187
75188 2006-07-29  Bruno Haible  <bruno@clisp.org>
75189
75190         * gnulib-tool (func_import): Don't create the $docbase directory if
75191         there is no file to store there.
75192
75193 2006-07-29  Bruno Haible  <bruno@clisp.org>
75194
75195         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75196         relevant, look for configure.ac there, not in the current directory.
75197         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75198
75199 2006-07-29  Bruno Haible  <bruno@clisp.org>
75200
75201         * gnulib-tool (SORT): New variable.
75202         (func_usage): Undocument --assume-autoconf option.
75203         Remove --assume-autoconf option handling.
75204         (autoconf_minversion): Determine from the contents of configure.ac.
75205         (func_import): Remove autoconf_minversion handling.
75206         Suggested by Eric Blake.
75207
75208 2006-07-29  Bruno Haible  <bruno@clisp.org>
75209
75210         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75211
75212 2006-07-29  Bruno Haible  <bruno@clisp.org>
75213
75214         * config/srclist.txt (*setenv.[ch]): Remove rules.
75215
75216 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75217
75218         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75219
75220 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75221
75222         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75223         arpa/inet.h.
75224
75225 2006-07-28  Simon Josefsson  <jas@extundo.com>
75226
75227         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75228         * modules/inet_pton (Depends-on): Likewise.
75229
75230 2006-07-28  Simon Josefsson  <jas@extundo.com>
75231
75232         * m4/netinet_in_h.m4: New file.
75233
75234 2006-07-28  Simon Josefsson  <jas@extundo.com>
75235
75236         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75237         #include's.
75238
75239 2006-07-28  Simon Josefsson  <jas@extundo.com>
75240
75241         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75242         #include's.
75243
75244 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75245
75246         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75247         setgid on directories only if they set these bits.
75248         * lib/modechange.h: Remove obsolete comment about masks.
75249
75250 2006-07-28  Eric Blake  <ebb9@byu.net>
75251
75252         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75253         macro expansion.
75254
75255 2006-07-28  Bruno Haible  <bruno@clisp.org>
75256
75257         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75258
75259 2006-07-28  Bruno Haible  <bruno@clisp.org>
75260
75261         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75262
75263 2006-07-28  Bruno Haible  <bruno@clisp.org>
75264
75265         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75266         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75267         Define fallbacks.
75268         Avoids link error on FreeBSD 4.x.
75269         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75270
75271         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75272         encoding.
75273         * lib/mbswidth.c (iswcntrl): Likewise.
75274
75275 2006-07-27  Bruno Haible  <bruno@clisp.org>
75276
75277         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75278         test.
75279
75280 2006-07-27  Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75283         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75284         defined.
75285
75286 2006-07-26  Eric Blake  <ebb9@byu.net>
75287
75288         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75289
75290 2006-07-26  Eric Blake  <ebb9@byu.net>
75291
75292         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75293         like mingw that lack mkstemp.
75294         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75295         avoid compilation warning on mingw.
75296
75297 2006-07-26  Bruno Haible  <bruno@clisp.org>
75298
75299         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75300         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75301         INT_FAST*_MIN, INTPTR_MIN.
75302
75303 2006-07-25  Bruno Haible  <bruno@clisp.org>
75304
75305         * modules/version-etc (Depends-on): Add stdarg.
75306
75307 2006-07-25  Bruno Haible  <bruno@clisp.org>
75308
75309         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75310         complex commands.
75311
75312 2006-07-25  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75315         defined in <stdarg.h> or config.h.
75316
75317 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75318
75319         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75320         (gl_STDIO_SAFER): Remove.
75321
75322 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75323
75324         * MODULES.html.sh (File stream based Input/Output):
75325         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75326         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75327         * modules/fopen-safer, modules/tmpfile-safer: New files.
75328         * modules/stdio-safer: Remove.
75329
75330 2006-07-24  Bruno Haible  <bruno@clisp.org>
75331
75332         * modules/tmpdir: New file.
75333         * MODULES.html.sh (File system functions): Add it.
75334
75335 2006-07-24  Bruno Haible  <bruno@clisp.org>
75336
75337         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75338         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75339
75340 2006-07-24  Bruno Haible  <bruno@clisp.org>
75341
75342         * modules/clean-temp: New file.
75343
75344 2006-07-24  Bruno Haible  <bruno@clisp.org>
75345
75346         * m4/tmpdir.m4: New file, from GNU gettext.
75347
75348 2006-07-24  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/tmpdir.h: New file, from GNU gettext.
75351         * lib/tmpdir.c: New file, from GNU gettext.
75352
75353 2006-07-24  Bruno Haible  <bruno@clisp.org>
75354
75355         * lib/clean-temp.h: New file, from GNU gettext.
75356         * lib/clean-temp.c: New file, from GNU gettext.
75357
75358 2006-07-23  Eric Blake  <ebb9@byu.net>
75359
75360         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75361         (Depends-on): Add binary-io.
75362
75363 2006-07-23  Eric Blake  <ebb9@byu.net>
75364
75365         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75366
75367 2006-07-23  Eric Blake  <ebb9@byu.net>
75368
75369         * lib/tmpfile-safer.c: New file.
75370         * lib/stdio-safer.h (fopen_safer): Add prototype.
75371         * lib/stdio--.h (tmpfile): Make safer.
75372
75373 2006-07-23  Bruno Haible  <bruno@clisp.org>
75374
75375         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75376         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75377         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75378         gl_linked_remove_at): Use it.
75379
75380 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75381         and Simon Josefsson <jas@extundo.com>
75382
75383         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75384
75385         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75386
75387 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * modules/close-stream: New file.
75390         * modules/closeout (Description): Make it clear that it exits
75391         with a diagnostic on error.
75392         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75393         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75394
75395 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75396
75397         * m4/close-stream.m4: New file.
75398
75399 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75400
75401         * lib/close-stream.c, lib/close-stream.h: New files.
75402
75403 2006-07-22  Bruno Haible  <bruno@clisp.org>
75404
75405         Merge from GNU gettext 0.15.
75406
75407         2006-05-01  Bruno Haible  <bruno@clisp.org>
75408
75409                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75410
75411         2006-07-22  Bruno Haible  <bruno@clisp.org>
75412
75413                 * modules/javaversion: New file.
75414                 * MODULES.html.sh (Java): Add javaversion.
75415
75416         2006-03-12  Bruno Haible  <bruno@clisp.org>
75417
75418                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75419
75420         2005-12-04  Bruno Haible  <bruno@clisp.org>
75421
75422                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75423                 (untested).
75424
75425         2006-06-21  Bruno Haible  <bruno@clisp.org>
75426
75427                 Avoid warnings from recent versions of mcs.
75428                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75429                 -o, -L, -r any more. Use options documented since mcs-1.0
75430                 instead. Similarly for -g.
75431
75432         2005-12-04  Bruno Haible  <bruno@clisp.org>
75433
75434                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75435                 .resources, not .resource.
75436
75437         2005-07-09  Bruno Haible  <bruno@clisp.org>
75438
75439                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75440                 add a .dll suffix.
75441                 Reported by Mark Junker <mjscod@gmx.de>.
75442
75443         2006-07-22  Bruno Haible  <bruno@clisp.org>
75444
75445                 * modules/gettext: Upgrade to gettext-0.15.
75446                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75447                 m4/visibility.m4.
75448                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75449
75450 2006-07-22  Bruno Haible  <bruno@clisp.org>
75451
75452         Merge from GNU gettext 0.15.
75453
75454         2006-03-25  Bruno Haible  <bruno@clisp.org>
75455
75456                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75457
75458         2006-07-21  Bruno Haible  <bruno@clisp.org>
75459
75460                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75461                 "1.1".
75462
75463         2006-05-09  Bruno Haible  <bruno@clisp.org>
75464
75465                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75466                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75467                 for the conftestver execution.
75468
75469         2006-05-01  Bruno Haible  <bruno@clisp.org>
75470
75471                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75472                 optional target-version argument. Verify that the compiler
75473                 groks source of the specified source-version, or add -source
75474                 option as necessary. Verify that the compiler produces
75475                 bytecode in the specified target-version, or add -target and
75476                 -source options as necessary. Make the result of the test
75477                 available as variable CONF_JAVAC. Also log error output in
75478                 config.log.
75479
75480         2006-03-11  Bruno Haible  <bruno@clisp.org>
75481
75482                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75483
75484         2006-05-09  Bruno Haible  <bruno@clisp.org>
75485
75486                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75487                 CLASSPATH_SEPARATOR to a semicolon.
75488
75489         2006-03-12  Bruno Haible  <bruno@clisp.org>
75490
75491                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75492                 available as variable CONF_JAVA, for subsequent autoconf
75493                 tests. Also log error output in config.log.
75494
75495         2006-07-19  Bruno Haible  <bruno@clisp.org>
75496
75497                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75498                 that getline works on glibc2 systems. Needed to avoid trouble
75499                 in relocatable.c.
75500                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75501
75502         2005-12-04  Bruno Haible  <bruno@clisp.org>
75503
75504                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75505                 launcher (untested).
75506
75507         2005-12-04  Bruno Haible  <bruno@clisp.org>
75508
75509                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75510
75511         2006-07-22  Bruno Haible  <bruno@clisp.org>
75512
75513                 * gettext.m4: Update from GNU gettext-0.15.
75514                 * nls.m4: Likewise.
75515                 * po.m4: Likewise.
75516                 * inttypes-pri.m4: Likewise.
75517                 * inttypes-h.m4: Renamed from inttypes.m4.
75518                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75519
75520 2006-07-22  Bruno Haible  <bruno@clisp.org>
75521
75522         Merge from GNU gettext 0.15.
75523
75524         2005-07-05  Bruno Haible  <bruno@clisp.org>
75525
75526                 * printf-args.c (printf_fetchargs): Work around broken
75527                 definition of wint_t on mingw.
75528
75529         2005-02-12  Bruno Haible  <bruno@clisp.org>
75530
75531                 * xallocsa.h: Add extern "C" for C++.
75532
75533         2006-05-17  Bruno Haible  <bruno@clisp.org>
75534
75535                 Cygwin portability.
75536                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75537
75538         2006-04-30  Bruno Haible  <bruno@clisp.org>
75539
75540                 * progreloc.c: Include <mach-o/dyld.h> if available.
75541                 (find_executable): Use _NSGetExecutablePath when possible.
75542
75543         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75544
75545                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75546                 function.
75547
75548         2005-12-29  Bruno Haible  <bruno@clisp.org>
75549
75550                 * progreloc.c (set_program_name_and_installdir): Fix
75551                 compilation error.
75552
75553         2005-12-04  Bruno Haible  <bruno@clisp.org>
75554
75555                 Cygwin portability.
75556                 * progreloc.c: Include <windows.h> also on Cygwin.
75557                 (find_executable): Add support for Cygwin.
75558                 (set_program_name_and_installdir): Handle also platforms with
75559                 nonempty EXEEXT.
75560
75561         2006-07-11  Bruno Haible  <bruno@clisp.org>
75562
75563                 * javacomp.c: Fix a comment.
75564                 Reported by Jim Meyering.
75565
75566         2006-04-30  Bruno Haible  <bruno@clisp.org>
75567
75568                 * javacomp.h (compile_java_class): Add source_version,
75569                 target_version arguments.
75570                 * javacomp.c: Rewritten to choose only a compiler that
75571                 respects the specified source_version and target_version.
75572
75573         2006-06-27  Bruno Haible  <bruno@clisp.org>
75574
75575                 Assume correct S_ISDIR macro.
75576                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75577
75578         2006-07-22  Bruno Haible  <bruno@clisp.org>
75579
75580                 * javaversion.h: New file, from GNU gettext.
75581                 * javaversion.c: New file, from GNU gettext.
75582                 * javaversion.java: New file, from GNU gettext.
75583                 * javaversion.class: New file, from GNU gettext.
75584
75585         2006-05-17  Bruno Haible  <bruno@clisp.org>
75586
75587                 Cygwin portability.
75588                 * javaexec.c (execute_java_class): Test for jview program
75589                 also on Cygwin.
75590
75591         2006-04-09  Bruno Haible  <bruno@clisp.org>
75592
75593                 * fatal-signal.c: Don't include string.h.
75594                 (at_fatal_signal): Use a copying loop instead of memcpy.
75595
75596         2005-12-04  Bruno Haible  <bruno@clisp.org>
75597
75598                 * csharpexec.c: Add support for 'clix' launcher (untested).
75599                 (execute_csharp_using_sscli): New function.
75600                 (execute_csharp_program): Call it.
75601
75602         2006-06-21  Bruno Haible  <bruno@clisp.org>
75603
75604                 Avoid warnings from recent versions of mcs.
75605                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75606                 -o, -L, -r any more. Use options documented since mcs-1.0
75607                 instead. Similarly for -g.
75608
75609         2005-07-09  Bruno Haible  <bruno@clisp.org>
75610
75611                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75612                 add a .dll suffix.
75613                 Reported by Mark Junker <mjscod@gmx.de>.
75614
75615         2006-06-17  Bruno Haible  <bruno@clisp.org>
75616
75617                 * config.charset: Update for NetBSD 3.0.
75618
75619         2006-05-17  Bruno Haible  <bruno@clisp.org>
75620
75621                 Cygwin portability.
75622                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75623
75624         2006-05-16  Bruno Haible  <bruno@clisp.org>
75625
75626                 * localcharset.c [CYGWIN]: Include <windows.h>.
75627                 (get_charset_aliases): For Cygwin, return the same CPxxx
75628                 aliases list as under WIN32.
75629                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75630                 the environment variables. Fall back to GetACP().
75631
75632         2006-04-05  Bruno Haible  <bruno@clisp.org>
75633
75634                 * config.charset: Update Juan Manuel Guerrero's address.
75635
75636         2005-02-12  Bruno Haible  <bruno@clisp.org>
75637
75638                 * allocsa.h: Add extern "C" for C++.
75639
75640         2005-02-10  Bruno Haible  <bruno@clisp.org>
75641
75642                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75643                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75644
75645         2006-07-22  Bruno Haible  <bruno@clisp.org>
75646
75647                 * gettext.h: Update to GNU gettext-0.15.
75648
75649 2006-07-22  Bruno Haible  <bruno@clisp.org>
75650
75651         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75652         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75653         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75654
75655 2006-07-21  Eric Blake  <ebb9@byu.net>
75656
75657         * modules/stdlib-safer: New file.
75658         * MODULES.html.sh (File stream based Input/Output): Add
75659         stdlib-safer.
75660
75661 2006-07-21  Eric Blake  <ebb9@byu.net>
75662
75663         * lib/stdlib-safer.h: New file from coreutils, required by
75664         stdlib--.h.
75665
75666 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75667
75668         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75669
75670 2006-07-20  Bruno Haible  <bruno@clisp.org>
75671
75672         * gnulib-tool: Recognize new option --assume-autoconf.
75673         (autoconf_minversion): New variable.
75674         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75675
75676 2006-07-20  Bruno Haible  <bruno@clisp.org>
75677
75678         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75679
75680 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75681
75682         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75683         Reindent and repaginate.
75684
75685 2006-07-19  Derek Price  <derek@ximbiot.com>
75686
75687         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75688         Correct grammar.
75689
75690 2006-07-17  Bruno Haible  <bruno@clisp.org>
75691
75692         * modules/list: New file.
75693         * modules/array-list: New file.
75694         * modules/carray-list, modules/carray-list-tests: New files.
75695         * modules/linked-list, modules/linked-list-tests: New files.
75696         * modules/avltree-list, modules/avltree-list-tests: New files.
75697         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75698         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75699         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75700         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75701         * modules/oset: New file.
75702         * modules/array-oset: New file.
75703         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75704         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75705         * tests/test-carray_list.c: New file.
75706         * tests/test-linked_list.c: New file.
75707         * tests/test-avltree_list.c: New file.
75708         * tests/test-rbtree_list.c: New file.
75709         * tests/test-linkedhash_list.c: New file.
75710         * tests/test-avltreehash_list.c: New file.
75711         * tests/test-rbtreehash_list.c: New file.
75712         * tests/test-avltree_oset.c: New file.
75713         * tests/test-rbtree_oset.c: New file.
75714         * MODULES.html.sh (Container data structures): New section.
75715
75716 2006-07-17  Bruno Haible  <bruno@clisp.org>
75717
75718         * m4/gl_list.m4: New file.
75719
75720 2006-07-17  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/gl_list.h: New file.
75723         * lib/gl_list.c: New file.
75724         * lib/gl_array_list.h: New file.
75725         * lib/gl_array_list.c: New file.
75726         * lib/gl_carray_list.h: New file.
75727         * lib/gl_carray_list.c: New file.
75728         * lib/gl_linked_list.h: New file.
75729         * lib/gl_linked_list.c: New file.
75730         * lib/gl_anylinked_list1.h: New file.
75731         * lib/gl_anylinked_list2.h: New file.
75732         * lib/gl_avltree_list.h: New file.
75733         * lib/gl_avltree_list.c: New file.
75734         * lib/gl_anyavltree_list1.h: New file.
75735         * lib/gl_anyavltree_list2.h: New file.
75736         * lib/gl_rbtree_list.h: New file.
75737         * lib/gl_rbtree_list.c: New file.
75738         * lib/gl_anyrbtree_list1.h: New file.
75739         * lib/gl_anyrbtree_list2.h: New file.
75740         * lib/gl_anytree_list1.h: New file.
75741         * lib/gl_anytree_list2.h: New file.
75742         * lib/gl_linkedhash_list.h: New file.
75743         * lib/gl_linkedhash_list.c: New file.
75744         * lib/gl_anyhash_list1.h: New file.
75745         * lib/gl_anyhash_list2.h: New file.
75746         * lib/gl_avltreehash_list.h: New file.
75747         * lib/gl_avltreehash_list.c: New file.
75748         * lib/gl_rbtreehash_list.h: New file.
75749         * lib/gl_rbtreehash_list.c: New file.
75750         * lib/gl_anytreehash_list1.h: New file.
75751         * lib/gl_anytreehash_list2.h: New file.
75752
75753         * lib/gl_oset.h: New file.
75754         * lib/gl_oset.c: New file.
75755         * lib/gl_array_oset.h: New file.
75756         * lib/gl_array_oset.c: New file.
75757         * lib/gl_avltree_oset.h: New file.
75758         * lib/gl_avltree_oset.c: New file.
75759         * lib/gl_rbtree_oset.h: New file.
75760         * lib/gl_rbtree_oset.c: New file.
75761         * lib/gl_anytree_oset.h: New file.
75762
75763 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * m4/mkancesdirs.m4: New file.
75766         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75767         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75768         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75769         it.
75770
75771 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75774         * lib/mkancesdirs.h: New files.
75775         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75776         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75777         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75778         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75779         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75780         callers changed.  Revamp internals significantly, by not
75781         attempting to create directories that are temporarily more
75782         permissive than the final results.  Do not attempt to use
75783         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75784         This removes some race conditions, fixes some bugs, and simplifies
75785         things.  Use new dirchownmod function to do owner and mode changes.
75786         * lib/mkdir-p.h: Likewise.
75787         * lib/modechange.c (octal_to_mode): New function.
75788         (struct mode_change): New member mentioned.
75789         (make_node_op_equals): New arg mentioned.  All callers changed.
75790         (mode_compile): Keep track of which mode bits the user has explicitly
75791         mentioned.
75792         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75793         New arg PMODE_BITS, to keep track of which mode bits the user
75794         mentioned; it treats S_ISUID and S_ISGID speciall.
75795         All callers changed.
75796         * lib/modechange.h: Likewise.
75797
75798 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         * MODULES.html.sh: Add mkancestors.
75801         * modules/mkancesdirs: New module.
75802         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75803         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75804         The chdir-safer and afs files are now orphans; I'll remove them
75805         unless someone speaks up.
75806         Add lib/dirchownmod.c, lib/dirchownmod.h.
75807         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75808         Add lchown, mkancesdirs.
75809         (Maintainer): Add self.
75810
75811 2006-07-15  Karl Berry  <karl@gnu.org>
75812
75813         * gnulib-tool: help message wording/arrangement.
75814
75815 2006-07-14  Simon Josefsson  <jas@extundo.com>
75816
75817         * doc/gnulib.texi (Libtool and Windows): New section.
75818
75819 2006-07-12  Simon Josefsson  <jas@extundo.com>
75820
75821         * modules/gendocs (License): Fix license, approved by Karl.
75822
75823 2006-07-12  Eric Blake  <ebb9@byu.net>
75824
75825         * MODULES.html.sh: Add gendocs.
75826
75827 2006-07-11  Eric Blake  <ebb9@byu.net>
75828
75829         * modules/fdl: New module, to install doc/fdl.texi.
75830         * MODULES.html.sh: Add new section for documentation modules.
75831         * gnulib-tool: Avoid space-tab.
75832         (--doc-base): New option, to manage files from doc.
75833
75834 2006-07-11  Eric Blake  <ebb9@byu.net>
75835
75836         * m4/absolute-header.m4: Fix comments to match recent change.
75837
75838 2006-07-11  Eric Blake  <ebb9@byu.net>
75839
75840         * gnulib-tool: List --doc-base before --tests-base.
75841
75842 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75843
75844         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75845
75846 2006-07-11  Bruno Haible  <bruno@clisp.org>
75847
75848         * README: Mention where to put documentation.
75849
75850 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75851
75852         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75853
75854 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75857         to stdint.m4.
75858
75859 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75862         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75863         "no/such/file/stdint.h" when there is no such file, so that
75864         the resulting C code can be parsed by dodgy compilers.
75865         Problems reported by Bob Proulx.
75866
75867 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75868
75869         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75870         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75871         macros into the GNU _D_EXACT_NAMLEN.
75872         * lib/savedir.c:  Likewise.
75873         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75874
75875 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75876         and Paul Eggert  <eggert@cs.ucla.edu>
75877
75878         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75879         * m4/savedir.m4:
75880         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75881         macros into the GNU _D_EXACT_NAMLEN.
75882
75883 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75886         around the absolute name, to work around a problem with the HP-UX
75887         11.23 native C compiler, reported by Bob Proulx.
75888
75889 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * doc/maintain.texi, make-stds.texi: Sync from
75892         <http://savannah.gnu.org/projects/gnustandards>.
75893
75894 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75897
75898 2006-07-09  Jim Meyering  <jim@meyering.net>
75899
75900         * m4/glob.m4: Remove a doubled word in a comment.
75901
75902 2006-07-09  Jim Meyering  <jim@meyering.net>
75903
75904         * lib/argp-pv.c: Remove a doubled word in a comment.
75905         * lib/check-version.c (check_version): Likewise.
75906         * lib/javacomp.c (compile_java_class): Likewise.
75907
75908 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75909
75910         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75911         for the benefit of people using Autoconf 2.60.  If you want to
75912         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75913         (or m4/onceonly.m4, if pre-2.57) manually.
75914
75915 2006-07-08  Jim Meyering  <jim@meyering.net>
75916
75917         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75918         comment.
75919         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75920         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75921         comment.
75922
75923 2006-07-08  Jim Meyering  <jim@meyering.net>
75924
75925         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75926
75927 2006-07-07  Simon Josefsson  <jas@extundo.com>
75928
75929         * tests/test-crc.c: Change expected crc value, the test vector
75930         were probably computed using the old broken crc.c?
75931
75932 2006-07-06  Simon Josefsson  <jas@extundo.com>
75933
75934         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75935         now the canonical place for the M4 file).
75936
75937         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75938         from the sys_socket dependency now.
75939
75940         * modules/inet_pton (Files): Ditto.
75941
75942         * modules/inet_ntop (Files): Ditto.
75943
75944 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75945
75946         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75947         not gl_PREREQ_GETUSERSHELL.
75948
75949 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75950
75951         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75952         with only one argument, for Autoconf 2.60.
75953         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75954         expand to nothing, so add a shell command to avoid syntax error.
75955         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75956
75957 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75958
75959         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75960
75961 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75962
75963         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75964         no longer needed.  Check for isblank decl.
75965         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75966         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75967         of existence.
75968
75969 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75970
75971         * lib/getloadavg.c: Use __VMS, not VMS.
75972         * lib/getopt.c: Likewise.
75973         * lib/getpagesize.h: Likewise.
75974         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75975         and probably does not work.
75976
75977 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75978
75979         * lib/.cppi-disable: Add wcwidth.
75980         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75981         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75982         (ISGRAPH): Remove.  All uses changed to isgraph.
75983         (FOLD) [!defined _LIBC]: Remove special case.
75984         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75985         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75986         HAVE_ISBLANK.
75987         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75988         case.
75989
75990 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75991
75992         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75993         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75994         brackets.  Other minor changes to suppress some compiler
75995         warnings.
75996
75997 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75998         and Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76001         of invoking obsolescent AC_HEADER_DIRENT macro.
76002         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76003         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76004         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76005         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76006         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76007         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76008         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76009         * m4/readdir.m4: Remove; no longer needed.
76010
76011 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76012         and Paul Eggert  <eggert@cs.ucla.edu>
76013
76014         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76015         Don't worry about this obsolete case any more.
76016         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76017         directories.
76018         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76019         worry about this obsolete case any more.
76020         * lib/fts.c: Likewise.
76021         * lib/getcwd.c: Likewise.
76022         * lib/glob.h: Likewise.
76023         * lib/savedir.c: Likewise.
76024
76025 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76026
76027         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76028         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76029         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76030         needed.
76031         All uses removed.
76032         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76033         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76034         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76035         needed.
76036         * m4/getdate.m4 (gl_GETDATE): Likewise.
76037         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76038         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76039         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76040         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76041         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76042         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76043         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76044         needed.
76045
76046 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76047
76048         * lib/memcasecmp.c: Include <limits.h>.
76049         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76050         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76051         Don't assume isdigit succeeds only on '0' through '9'.
76052
76053 2006-07-05  Eric Blake  <ebb9@byu.net>
76054
76055         * modules/getaddrinfo (Depends-on): Add snprintf.
76056
76057 2006-07-05  Eric Blake  <ebb9@byu.net>
76058
76059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76060         to avoid 'header present but could not be compiled' on cygwin.
76061
76062 2006-07-05  Eric Blake  <ebb9@byu.net>
76063
76064         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76065         missing from netdb.h.
76066         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76067
76068 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76069
76070         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76071         no longer needed.
76072         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76073         * m4/getdate.m4 (gl_GETDATE): Likewise.
76074         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76075         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76076         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76077         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76078         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76079
76080 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76081
76082         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76083         All uses of is_space replaced by isspace.
76084         * lib/exit.h: Don't talk about STDC_HEADERS.
76085         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76086         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76087         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76088         replaced by isprint etc.
76089         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76090         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76091         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76092         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76093         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76094         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76095
76096 2006-07-05  Bruno Haible  <bruno@clisp.org>
76097
76098         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76099         the function exists, before testing against AIX.
76100         Reported by Martin Lambers <marlam@marlam.de>.
76101
76102 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76105         From Mark D. Baushke.
76106
76107 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76108
76109         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76110         to the absolute name, not just one, to bypass Sun C 5.8's
76111         "warning: #include of /usr/include/... may be non-portable".
76112
76113 2006-07-04  Eric Blake  <ebb9@byu.net>
76114
76115         * modules/dirname-tests: New test module.
76116         * tests/test-dirname.c: New file, replacing dirname.c
76117         TEST_DIRNAME section that was recently deleted.
76118
76119 2006-07-04  Bruno Haible  <bruno@clisp.org>
76120
76121         Assume ANSI C header files and <ctype.h> functions.
76122         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76123         (mbsnwidth): Use isprint, iscntrl instead.
76124
76125 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         Merge from coreutils.
76128         * MODULES.html.sh: Add xstrtold.
76129         * modules/xstrtold: New file.
76130         * modules/cycle-check (Files): Add lib/same-inode.h.
76131         * modules/dirname (Files): Add m4/double-slash-root.m4.
76132         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76133         * modules/mkdir-p (Files): Add lib/same-inode.h.
76134         * modules/same (Files): Add lib/same-inode.h.
76135
76136 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76139         This is to keep the terminology clean; POSIX talks about
76140         "absolute pathnames", not "full pathnames", but the GNU
76141         Coding Standards say to use "path" for something else;
76142         so use "absolute" to keep both sides happy.
76143         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76144         Set gl_absolute_header, not gl_full_header_path.
76145         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76146         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76147         All uses changed.
76148
76149         Merge from coreutils.
76150
76151         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76152
76153         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76154         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76155         want to require the building of c-strtod.o.
76156         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76157         needs -lm directly.
76158         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76159
76160         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76163         --as-needed option if available.  Problem reported by Albert Chin in
76164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76165         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76166         cc merely issues a bunch of annoying warnings for --as-needed
76167         (this problem was reported by Bob Proulx).  Also, try linking with
76168         -lm to detect a bug in binutils 2.16 (this problem was reported
76169         by Ralf Wildenhues).
76170
76171         2006-06-18  Jim Meyering  <jim@meyering.net>
76172
76173         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76174         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76175         macro.
76176         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76177         also check for glibc-2.4's abort-inducing bug.
76178
76179         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76180         Low-probability clean-up should be to use rmdir to get rid of
76181         the just-created directory, not unlink.
76182
76183         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76184         configure fail, and request a bug report to inform us about it.
76185         Add a comment that, barring reports to the contrary, in 2007 we'll
76186         assume ftruncate is universally available.
76187
76188         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76189
76190         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76191
76192         2006-03-12  Jim Meyering  <jim@meyering.net>
76193
76194         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76195         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76196         * m4/same.m4 (gl_SAME): Likewise.
76197         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76198
76199         2006-03-11  Eric Blake  <ebb9@byu.net>
76200
76201         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76202         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76203         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76204         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76205
76206 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76209         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76210         reported by Mark D. Baushke, one in
76211         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76212
76213         Merge from coreutils.
76214
76215         * lib/.cppi-disable: Add stdint_.h.
76216         * lib/.cvsignore: Add stdint.h.
76217
76218         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76221         both double and long double versions.
76222         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76223         * lib/xstrtold.c: New file.
76224         * lib/xstrtod.h (xstrtold): New decl.
76225
76226         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76227
76228         * lib/filemode.c (setst): Remove.
76229         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76230         (arguably) clearer, and the generated code is a bit smaller on my
76231         Debian GNU/Linux stable x86 host.
76232
76233         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76234
76235         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76236         Assume that filemode.h includes sys/types.h and sys/stat.h.
76237         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76238         (ftypelet): Reorder to put common cases first, for efficiency.
76239         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76240         to do 'M'.
76241         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76242         of 10, for compatibility with FreeBSD.  All callers changed.
76243         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76244         types that can't be deduced solely from st_mode.  First arg is now a
76245         const pointer.
76246         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76247         (strmode): Renamed from mode_string.
76248         (filemodestring): New decl.
76249         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76250         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76251         needed.
76252         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76253
76254         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76255
76256         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76257         fsusage.h now does that.  Include fsusage.h first, to test interface.
76258         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76259         at most one method (the old code could have generated decls that
76260         didn't conform to C89, not that this was ever exercised).
76261         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76262
76263         2006-03-19  Jim Meyering  <jim@meyering.net>
76264
76265         Work even in a chroot where d_ino values for entries in "/"
76266         don't match the stat.st_ino values for the same names.
76267         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76268         number, iterate through all entries again, using lstat instead.
76269         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76270         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76271
76272         * lib/getcwd.c (__getcwd): Clarify a comment.
76273         Use memcpy in place of a call to strcpy.
76274
76275         2006-03-12  Jim Meyering  <jim@meyering.net>
76276
76277         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76278         matches that of the current directory (which we're about to chdir ".."
76279         out of), then save the dev-ino of the parent, instead.
76280
76281         * lib/same-inode.h (SAME_INODE): New file/macro.
76282         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76283         Include "same-inode.h", instead.
76284         * lib/same.c: Likewise.
76285         * lib/cycle-check.h: Include "same-inode.h".
76286         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76287         * lib/cycle-check.c (SAME_INODE): Remove definition.
76288         * lib/root-dev-ino.h: Include "same-inode.h".
76289
76290         2006-03-11  Eric Blake  <ebb9@byu.net>
76291
76292         * lib/same.c (same_name): s/base_name/last_component/
76293         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76294         * lib/filenamecat.c (file_name_concat): Likewise.
76295
76296         2006-03-11  Eric Blake  <ebb9@byu.net>,
76297                     Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76300         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76301         drive prefix.
76302         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76303         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76304         (last_component): New method.
76305         * lib/dirname.c (dir_len): Determine when drive letters need a
76306         subsequent slash.  Preserve // when it is special.
76307         (dir_name): Don't append dot when drive letter is absolute.
76308         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76309         * lib/basename.c (base_name): New semantics - malloc the result.
76310         Preserve // when it is special.  Preserve relative files that look
76311         like drive letters.
76312         (base_len): Preserve // when it is special.
76313         (last_component): New method, similar to old base_name semantics.
76314         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76315         base_name.  Strip redundant slashes from ///.
76316
76317 2006-07-03  Jim Meyering  <jim@meyering.net>
76318
76319         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76320         macro is used before the first cycle_check call.
76321
76322 2006-07-03  Eric Blake  <ebb9@byu.net>
76323
76324         * modules/dirname (Depends-on): Add xstrndup.
76325
76326 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76329         test cases, so that config.log is a bit easier to follow.
76330
76331 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76334         both are 64 bits, since this seems to be the tradition, and this
76335         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76336         we ever run into a host that prefers long long to long in this
76337         case, we'll need another configure-time test.  Problem reported by
76338         Jim Meyering.
76339
76340 2006-07-02  Eric Blake  <ebb9@byu.net>
76341
76342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76343
76344 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76345
76346         * modules/inttypes (Depends-on): No longer depends on stdint.
76347         * modules/stdint (Description): Say more about assumptions.
76348         Say that the fast types might differ.  Say macros are used.
76349         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76350         (Makefile.am): Revise list of substituted symbols to match
76351         new stdint.m4.
76352         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76353         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76354         * tests/test-stdint.c (verify_same_types)
76355         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76356         the code conforms to C99/C89.
76357         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76358         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76359
76360 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76361
76362         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76363         but fix a bug, by requiring at least 64 bits.
76364         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76365         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76366         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76367         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76368
76369         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76370         changes.  Make 2.59 a prerequisite.  Check and substitute for
76371         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76372         inttypes.h.  Do not use special include files; just use the
76373         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76374         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76375         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76376         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76377         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76378         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76379         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76380         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76381         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76382         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76383         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76384         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76385         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76386         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76387         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76388         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76389         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76390         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76391         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76392         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76393         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76394         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76395         not check for things that C99 does not require, e.g., int8_t.  If
76396         a test isn't needed unless <stdint.h> isn't working, and is
76397         unlikely to be needed for any other reason, then don't do it
76398         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76399         size_t, since we assume C89 freestanding at least.  Do not check
76400         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76401         the right thing even if the types are not defined.  Instead use:
76402         (gl_STDINT_TYPE_PROPERTIES): New macro.
76403         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76404         testing whether <sys/types.h> clashes, as Autoconf does this for
76405         us now.  All uses removed.
76406         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76407         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76408         (gl_CHECK_TYPE_SAME):
76409         Remove; no longer needed.
76410         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76411         exists, since we'll return 0 anyway in that case.
76412         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76413
76414 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76415
76416         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76417         possible collision with system files.
76418         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76419         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76420         WCHAR_MIN and WCHAR_MAX in this case.
76421         (<stddef.h>): Do not include; no longer needed.
76422         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76423         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76424         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76425         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76426         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76427         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76428         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76429         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76430         !defined(__c99))]: Include in this case too, since it's harmless
76431         now.
76432         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76433         dangerous to do so.
76434         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76435         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76436         (_STDINT_MIN, _STDINT_MAX): New macros.
76437         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76438         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76439         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76440         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76441         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76442         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76443         macros, not typedefs; this simplifies things quite a bit.
76444         Use long int for all types narrower than int64_t.
76445         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76446         Define in terms of long long int or int64_t or long int,
76447         not int64_t or int32_t.  This saves some compile-time testing.
76448         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76449         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76450         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76451         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76452         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76453         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76454         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76455         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76456         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76457         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76458         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76459         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76460         undef any previous version and define our own version, for
76461         simplicity and consistency with the new macros for types.
76462         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76463         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76464         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76465         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76466         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76467         @WINT_T_SUFFIX@ to keep things simple here.
76468         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76469         Simplify by assuming typical 8/16/32/64 host, since we're
76470         already doing that elsewhere anyway.
76471         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76472         and assume long long int is 64 bits if available.  This
76473         speeds up 'configure'.
76474
76475 2006-07-01  Eric Blake  <ebb9@byu.net>
76476
76477         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76478         Reported by Andreas Buening.
76479
76480 2006-07-01  Eric Blake  <ebb9@byu.net>
76481
76482         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76483
76484 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76485
76486         * lib/getaddrinfo.c: fixed typo
76487
76488 2006-06-29  Jim Meyering  <jim@meyering.net>
76489
76490         * modules/strftime (Maintainer): Add my name, since with the
76491         FPRINTFTIME changes strftime.c has forked from glibc.
76492
76493 2006-06-29  Eric Blake  <ebb9@byu.net>
76494
76495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76496
76497 2006-06-29  Eric Blake  <ebb9@byu.net>
76498
76499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76500
76501 2006-06-29  Eric Blake  <ebb9@byu.net>
76502
76503         * lib/stat_.h: New file.
76504
76505 2006-06-29  Eric Blake  <ebb9@byu.net>
76506
76507         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76508         unused static function.
76509
76510 2006-06-29  Eric Blake  <ebb9@byu.net>
76511
76512         * doc/functions.texi (Function Portability): Document missing lstat
76513         on mingw.
76514
76515 2006-06-29  Eric Blake  <ebb9@byu.net>
76516
76517         * MODULES.html.sh: Add sys_stat.
76518         * modules/sys_stat: New module.
76519         * modules/mkstemp (Depends-on): Add sys_stat.
76520
76521 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76522
76523         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76524
76525 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76526
76527         * m4/c-bs-a.m4: Removed.
76528
76529 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76530
76531         * lib/strftime.c: Assume strftime() exists.
76532
76533 2006-06-29  Derek Price  <derek@ximbiot.com>
76534
76535         * modules/c-bs-a: Removed - \a is C89.
76536         * MODULES.html.sh: Remove c-bs-a.
76537
76538 2006-06-29  Bruno Haible  <bruno@clisp.org>
76539
76540         * modules/wcwidth (License): Change to LGPL.
76541
76542 2006-06-28  Simon Josefsson  <jas@extundo.com>
76543
76544         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76545         on _WIN32.
76546
76547         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76548         getnameinfo.
76549
76550 2006-06-28  Simon Josefsson  <jas@extundo.com>
76551
76552         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76553
76554 2006-06-28  Simon Josefsson  <jas@extundo.com>
76555
76556         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76557         functions there.  It will succeed on Windows XP, but on Windows
76558         2000 and (presumably) earlier, it will fail, and use the internal
76559         re-implementation.
76560         (use_win32_p): New function.
76561         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76562         Support AI_NUMERICSERV to disable getservbyname.
76563         (getnameinfo): New function, only supports
76564         NI_NUMERICHOST|NI_NUMERICSERV for now.
76565
76566         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76567         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76568         getnameinfo.
76569
76570 2006-06-28  Eric Blake  <ebb9@byu.net>
76571
76572         * modules/wcwidth: New file.
76573         * modules/mbchar (Depends-on): Add wcwidth.
76574         * modules/mbswidth (Depends-on): Add wcwidth.
76575         * MODULES.html.sh: Add wcwidth.
76576
76577 2006-06-28  Eric Blake  <ebb9@byu.net>
76578
76579         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76581
76582 2006-06-28  Eric Blake  <ebb9@byu.net>
76583
76584         * lib/xvasprintf.h: Fix comments.
76585
76586 2006-06-28  Eric Blake  <ebb9@byu.net>
76587
76588         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76589         * lib/mbswidth.c (wcwidth): Move from here...
76590         * lib/wcwidth.h: ...to this new file.
76591
76592 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76593
76594         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76595
76596         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76597         it's obsolete.
76598         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76599
76600 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76601
76602         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76603         Autoconf 2.60 says this stuff was obsolete.
76604
76605 2006-06-28  Bruno Haible  <bruno@clisp.org>
76606
76607         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76608
76609 2006-06-28  Bruno Haible  <bruno@clisp.org>
76610
76611         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76612         gt_TYPE_WCHAR_T.
76613
76614 2006-06-28  Bruno Haible  <bruno@clisp.org>
76615
76616         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76617         declaration for wcwidth.
76618         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76619
76620 2006-06-28  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76623         (mkdir): Define using _mkdir.
76624
76625 2006-06-28  Bruno Haible  <bruno@clisp.org>
76626
76627         * lib/getaddrinfo.h: Fix POSIX URL.
76628         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76629         _WIN32.
76630         (use_win32_p): Make static.
76631         (getaddrinfo): Reject service name if it is empty or does not consist
76632         solely of decimal digits, or if its value is > 65535.
76633         (getnameinfo): Remove useless casts.
76634
76635 2006-06-27  Simon Josefsson  <jas@extundo.com>
76636
76637         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76638         Eggert and Martin Lambers.
76639
76640 2006-06-27  Simon Josefsson  <jas@extundo.com>
76641
76642         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76643         Eggert and Martin Lambers.
76644
76645 2006-06-27  Bruno Haible  <bruno@clisp.org>
76646
76647         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76648         result to 0, not to empty.
76649         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76650
76651 2006-06-27  Bruno Haible  <bruno@clisp.org>
76652
76653         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76654
76655 2006-06-26  Simon Josefsson  <jas@extundo.com>
76656
76657         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76658         present.
76659
76660 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76661
76662         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76663         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76664         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76665
76666 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76667
76668         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76669
76670 2006-06-26  Bruno Haible  <bruno@clisp.org>
76671
76672         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76673
76674 2006-06-26  Bruno Haible  <bruno@clisp.org>
76675
76676         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76677
76678 2006-06-26  Bruno Haible  <bruno@clisp.org>
76679
76680         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76681         SGI C compiler in pre-C99 mode.
76682         Suggested by Mark D. Baushke and Larry Jones.
76683
76684 2006-06-26  Bruno Haible  <bruno@clisp.org>
76685
76686         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76687         WCHAR_MAX.
76688         Reported by Mark D. Baushke and Larry Jones.
76689
76690 2006-06-26  Bruno Haible  <bruno@clisp.org>
76691
76692         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76693         in pre-C99 mode.
76694         Suggested by Mark D. Baushke and Larry Jones.
76695
76696 2006-06-23  Simon Josefsson  <jas@extundo.com>
76697             Bruno Haible  <bruno@clisp.org>
76698
76699         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76700         Emit mostlyclean-local rule.
76701         (func_emit_tests_Makefile_am): Likewise.
76702         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76703
76704 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76705
76706         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76707
76708 2006-06-23  Bruno Haible  <bruno@clisp.org>
76709
76710         * tests/test-stdint.c: Update to match ISO C 99 Technical
76711         Corrigendum 1.
76712
76713 2006-06-23  Bruno Haible  <bruno@clisp.org>
76714
76715         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76716
76717 2006-06-23  Bruno Haible  <bruno@clisp.org>
76718
76719         * lib/stdint_.h: Treat IRIX like OpenBSD.
76720
76721 2006-06-23  Bruno Haible  <bruno@clisp.org>
76722
76723         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76724         ISO C 99 Technical Corrigendum 1.
76725
76726 2006-06-22  Simon Josefsson  <jas@extundo.com>
76727
76728         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76729         MinGW.
76730
76731 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76732
76733         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76734         needed.  Some compiler complained about some of them.  Problem reported
76735         by Larry Jones in
76736         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76737
76738 2006-06-21  Simon Josefsson  <jas@extundo.com>
76739
76740         * tests/test-getaddrinfo.c: New file.
76741
76742         * modules/getaddrinfo-tests: New file.
76743
76744         * MODULES.html.sh: Add inet_pton.
76745
76746         * modules/inet_pton: New file.
76747
76748 2006-06-21  Simon Josefsson  <jas@extundo.com>
76749
76750         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76751         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76752         of using the (limited) gnulib implementation on Windows XP.
76753
76754         * m4/inet_pton.m4: New file.
76755
76756 2006-06-21  Simon Josefsson  <jas@extundo.com>
76757
76758         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76759         variable.
76760
76761         * lib/socket_.h: Don't define WINVER.
76762
76763         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76764         slightly modified to work in gnulib.
76765
76766 2006-06-21  Simon Josefsson  <jas@extundo.com>
76767
76768         * doc/gnulib.texi (Windows sockets): Add.
76769
76770 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76771
76772         * lib/read-file.c (fread_file): Start with buffer allocation of
76773         0 bytes rather than 1 byte; this simplifies the code.
76774         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76775         code to free buffer and save/restore errno.
76776         (internal_read_file): Remove unused local.
76777
76778 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76781         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76782         Problem reported by Denis Excoffier in
76783         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76784
76785 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76786
76787         * modules/sys_socket, modules/socklen: Include sys/types since
76788         FreeBSD 4.x's sys/socket.h needs it.
76789
76790 2006-06-19  Simon Josefsson  <jas@extundo.com>
76791
76792         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76793
76794 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76797
76798 2006-06-19  Bruno Haible  <bruno@clisp.org>
76799
76800         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76801         and FULL_PATH_INTTYPES_H in angle brackets.
76802         Reported by Mark D. Baushke <mdb@gnu.org>.
76803
76804 2006-06-17  Eric Blake  <ebb9@byu.net>
76805
76806         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76807         errno.
76808
76809 2006-06-17  Bruno Haible  <bruno@clisp.org>
76810
76811         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76812         <sys/inttypes.h>.
76813
76814 2006-06-17  Bruno Haible  <bruno@clisp.org>
76815
76816         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76817         whether errno is declared. Assume <errno.h> declares errno.
76818
76819 2006-06-17  Bruno Haible  <bruno@clisp.org>
76820
76821         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76822
76823 2006-06-17  Bruno Haible  <bruno@clisp.org>
76824
76825         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76826         problem on Solaris 2.5.1.
76827
76828 2006-06-16  Eric Blake  <ebb9@byu.net>
76829
76830         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76831         * lib/unicodeio.c [!defined errno]: Likewise.
76832         * lib/strtol.c [!defined errno]: Likewise.
76833         * lib/strtod.c [!defined errno]: Likewise.
76834
76835 2006-06-15  Eric Blake  <ebb9@byu.net>
76836
76837         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76838
76839 2006-06-15  Eric Blake  <ebb9@byu.net>
76840
76841         * config/srclist.txt (ssize_t.m4): Lose sync.
76842
76843 2006-06-15  Bruno Haible  <bruno@clisp.org>
76844
76845         * modules/stdint (Files): Include m4/full-header-path.m4,
76846         m4/size_max.m4, m4/wchar_t.m4.
76847         (Makefile.am): Many more substitutions.
76848         * modules/stdint-tests: New file.
76849         * tests/test-stdint.c: New file.
76850
76851 2006-06-15  Bruno Haible  <bruno@clisp.org>
76852
76853         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76854         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76855         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76856         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76857         gl_CHECK_TYPE_SAME): New macros.
76858
76859 2006-06-15  Bruno Haible  <bruno@clisp.org>
76860
76861         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76862
76863 2006-06-15  Bruno Haible  <bruno@clisp.org>
76864
76865         * lib/stdint_.h: Rewritten to be fully auto-configured.
76866         Fixes bug on HP-UX/IA64.
76867
76868 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         * lib/getdate.y (__attribute__): Don't define if already defined.
76871         Problem reported by Larry Jones.
76872         * lib/utimens.c (__attribute__): Likewise.
76873
76874 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76875
76876         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76877         reported by Andreas Schwab.
76878
76879 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76880             Bruno Haible  <bruno@clisp.org>
76881
76882         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76883         check for the declaration of strnlen and a run test that exposes the
76884         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76885         rpl_strndup.
76886
76887 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76888             Bruno Haible  <bruno@clisp.org>
76889
76890         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76891
76892 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76893
76894         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76895         compile test, for Tru64 4.0D.
76896
76897 2006-05-28  Karl Berry  <karl@gnu.org>
76898
76899         * config/srclist.txt (printf-args.c): lose sync.
76900
76901 2006-05-26  Martin Lambers  <marlam@marlam.de>
76902
76903         * lib/getpass.c: Updates the test for the native W32 API, and adds
76904         missing includes, thus fixing compilation warnings.
76905
76906 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76907
76908         * lib/exclude.c (exclude_fnmatch): New function.
76909         (excluded_file_name): Call exclude_fnmatch.
76910         * lib/exclude.h (excluded_file_name): New prototype
76911
76912 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         * lib/tempname.c (small_open, large_open): New macros.
76915         (__open, __open64) [!_LIBC]: Remove.
76916         (__gen_tempname): Use small_open and large_open instead of __open
76917         and __open64.  This fixes a portability bug on HP-UX 11.11i
76918         reported by Simon Wing-Tang in
76919         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76920
76921 2006-05-24  Bruno Haible  <bruno@clisp.org>
76922
76923         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76924         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76925         Reported by Thorsten Maerz <torte@netztorte.de> via
76926         Aaron Stone <aaron@serendipity.cx>.
76927
76928 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76931         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76932         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76933         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76934         not really conditional on the cache.
76935         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76936
76937 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76938
76939         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76940         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76941         (my_usleep): Don't mishandle maximum value.
76942
76943 2006-05-19  Jim Meyering  <jim@meyering.net>
76944
76945         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76946
76947 2006-05-17  Bruno Haible  <bruno@clisp.org>
76948
76949         Cygwin portability.
76950         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76951
76952 2006-05-17  Bruno Haible  <bruno@clisp.org>
76953
76954         * lib/stdint_.h: Fix recognition of Cygwin.
76955
76956 2006-05-15  Bruno Haible  <bruno@clisp.org>
76957
76958         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76959         on libtool patch by Ralf Wildenhues.
76960
76961 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76964         test for C99 conformance; (bool) 0.5 is an integer constant
76965         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76966         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76967
76968 2006-05-11  Simon Josefsson  <jas@extundo.com>
76969
76970         * m4/xvasprintf.m4: Fix obvious typo.
76971
76972 2006-05-11  Jim Meyering  <jim@meyering.net>
76973
76974         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76975         James Lemley.
76976
76977 2006-05-10  Simon Josefsson  <jas@extundo.com>
76978
76979         * lib/md4.c: Typo fix, update copyright years.
76980         (K1, K2): Don't use L because it turn computations into 64-bit on
76981         64-bit platforms.
76982
76983 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76984
76985         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76986         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76987         unwanted sign propagation, e.g., on hosts with 64-bit int.
76988         There still are some problems with reeelly weird theoretical hosts
76989         (e.g., 33-bit int) but it's not worth worrying about now.
76990         * lib/sha1.c (rol): Likewise.
76991         (K1, K2, K3, K4): Remove unnecessary L suffix.
76992
76993 2006-05-10  Bruno Haible  <bruno@clisp.org>
76994
76995         * lib/des.c: Cast to avoid warnings.
76996
76997 2006-05-09  Bruno Haible  <bruno@clisp.org>
76998
76999         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77000         (Depends-on): Depend also on xsize, stdarg.
77001         (configure.ac): Add gl_XVASPRINTF.
77002
77003 2006-05-09  Bruno Haible  <bruno@clisp.org>
77004
77005         * m4/xvasprintf.m4: New file.
77006
77007 2006-05-09  Bruno Haible  <bruno@clisp.org>
77008
77009         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77010         (EOVERFLOW): Define fallback value.
77011         (xstrcat): New function.
77012         (xvasprintf): Recognize the special case of a string concatenation.
77013
77014 2006-05-08  Eric Blake  <ebb9@byu.net>
77015
77016         * gnulib-tool (func_version): Base copyright year on CVS date.
77017         (func_emit_copyright_notice): New function.
77018         (func_emit_lib_Makefile_am): Use it.
77019         (func_emit_tests_Makefile_am): Likewise.
77020         (func_import): Likewise.
77021
77022 2006-05-08  Bruno Haible  <bruno@clisp.org>
77023
77024         * modules/stdarg: New file.
77025         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77026
77027 2006-05-08  Bruno Haible  <bruno@clisp.org>
77028
77029         * m4/stdarg.m4: New file, from GNU gettext.
77030
77031 2006-05-08  Bruno Haible  <bruno@clisp.org>
77032
77033         * config/srclist.txt (build-aux/config.rpath): different from latest
77034         release.
77035
77036 2006-05-08  Bruno Haible  <bruno@clisp.org>
77037
77038         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77039
77040 2006-05-05  Jim Meyering  <jim@meyering.net>
77041
77042         * m4/warning.m4: New file, derived from bison's file by the same name.
77043
77044 2006-05-03  Bruno Haible  <bruno@clisp.org>
77045
77046         * lib/stdint_.h: Shorter URL.
77047         * lib/inttypes.h: Likewise.
77048
77049 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77052
77053 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         * lib/verify.h: Document the internals better.  Most of this change
77056         was written by Bruno Haible.
77057
77058 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         * doc/verify.texi: New file, partly based on a proposal by
77061         Bruno Haible.
77062
77063 2006-05-02  Bruno Haible  <bruno@clisp.org>
77064
77065         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77066         test from here...
77067         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77068
77069 2006-04-29  Bruno Haible  <bruno@clisp.org>
77070
77071         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77072         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77073
77074 2006-04-29  Bruno Haible  <bruno@clisp.org>
77075
77076         * gnulib-tool: Make --update option actually work.
77077
77078 2006-04-29  Bruno Haible  <bruno@clisp.org>
77079
77080         * doc/gcd.texi: New file.
77081         * doc/gnulib.texi: Include it.
77082
77083 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * lib/getdate.y (get_date): When adding relative date, start with the
77086         initial time, not with the result of the first mktime call.
77087
77088 2006-04-25  Bruno Haible  <bruno@clisp.org>
77089
77090         * gnulib-tool (func_import): Output the include directives in three
77091         blocks, sorted separately.
77092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77093
77094 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77097         to define main with arguments, for C++.  Reported by Eric Blake.
77098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77099         Prefer 'int main ()' to 'int main (void)', for C++.
77100         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77101         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77102         for 'main', for C99 and C++.
77103
77104 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77107         Don't assume that exit status -1 is valid.
77108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77109         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77110         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77111         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77112         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77113         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77114         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77115         functions can be used without declaring them, or that you can
77116         exit with status -1.
77117         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77118
77119 2006-04-24  Karl Berry  <karl@gnu.org>
77120
77121         * config/srclist.txt (longdouble.m4): sync lost.
77122
77123 2006-04-24  Eric Blake  <ebb9@byu.net>
77124
77125         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77126
77127 2006-04-24  Bruno Haible  <bruno@clisp.org>
77128
77129         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77130         poll() implementation in AIX.
77131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77132
77133 2006-04-24  Bruno Haible  <bruno@clisp.org>
77134
77135         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77136         assigned exactly once.
77137
77138 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77139             Bruno Haible  <bruno@clisp.org>
77140
77141         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77142         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77143         for AM_CPPFLAGS.
77144
77145 2006-04-23  Bruno Haible  <bruno@clisp.org>
77146
77147         * modules/copy-file: Depend on unistd.
77148         * modules/execute: Likewise.
77149         * modules/fatal-signal: Likewise.
77150         * modules/findprog: Likewise.
77151         * modules/mkdtemp : Likewise.
77152         * modules/pipe: Likewise.
77153         * modules/wait-process: Likewise.
77154
77155 2006-04-23  Bruno Haible  <bruno@clisp.org>
77156
77157         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77158         condition was already detected.
77159         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77160
77161 2006-04-23  Bruno Haible  <bruno@clisp.org>
77162
77163         * lib/copy-file.c: Include <unistd.h> unconditionally.
77164         * lib/execute.c: Likewise.
77165         * lib/fatal-signal.c: Likewise.
77166         * lib/findprog.c: Likewise.
77167         * lib/mkdtemp.c: Likewise.
77168         * lib/pipe.h: Likewise.
77169         * lib/pipe.c: Likewise.
77170         * lib/wait-process.h: Likewise.
77171
77172 2006-04-23  Bruno Haible  <bruno@clisp.org>
77173
77174         * gnulib-tool (func_usage): Fix --import description. Document
77175         --update.
77176         (func_import): Create temporary file in a temporary directory, if
77177         --dry-run is specified. Silence errors from 'grep' when there are no
77178         m4 files in $m4dir.
77179         (func_create_testdir): Silence errors from 'grep' when there are no
77180         m4 files in $m4dir.
77181         Reported by Karl Berry <karl@freefriends.org>.
77182
77183 2006-04-20  Bruno Haible  <bruno@clisp.org>
77184
77185         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77186         one argument, so that the code will be portable to Autoconf 2.60.
77187         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77188         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77189         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77190
77191 2006-04-19  Derek Price  <derek@ximbiot.com>
77192             Eric Blake  <ebb9@byu.net>
77193
77194         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77195         rather than "/full/path.h".  Update comment to match.  Shorten &
77196         generalize m4_translit call via AS_TR_CPP.
77197
77198 2006-04-19  Derek Price  <derek@ximbiot.com>
77199             Eric Blake  <ebb9@byu.net>
77200
77201         * lib/inttypes.h: Correct grammar in comment.
77202
77203 2006-04-18  Derek Price  <derek@ximbiot.com>
77204             Paul Eggert  <eggert@cs.ucla.edu>
77205
77206         * modules/inttypes: New file.
77207         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77208
77209 2006-04-18  Derek Price  <derek@ximbiot.com>
77210             Paul Eggert  <eggert@cs.ucla.edu>
77211
77212         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77213         New files.
77214
77215 2006-04-18  Derek Price  <derek@ximbiot.com>
77216             Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * lib/inttypes.h: New file.
77219         * lib/strtoimax.c: Assume <inttypes.h>.
77220
77221 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77224         isn't mounted.  Problem reported by Kir Kolyshkin.
77225
77226 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77227
77228         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77229         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77230         Derek R. Price.
77231         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77232         implementation.
77233
77234 2006-04-12  Eric Blake  <ebb9@byu.net>
77235
77236         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77237         is now done automatically by the corresponding Autoconf macro.
77238
77239 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77240
77241         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77242         time_r.h.
77243
77244 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77245
77246         Merge regex changes from libc, removing some of our
77247         POSIX-conformance changes that were rejected and redoing them in a
77248         less-intrusive way.
77249
77250         * lib/regcomp.c (re_compile_internal, init_dfa):
77251         Length arg is now size_t, not Idx.  All uses changed.
77252         (peek_token): Forward decl now says internal_function.
77253         (__re_error_msgid, __re_error_msgid_idx):
77254         Now static rather than extern with attribute_hidden.
77255         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77256         For some reason libc prefers K&R style defns for external functions.
77257         (regerror) [!defined _LIBC]: Likewise.
77258         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77259         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77260         (build_range_exp, build_collating_symbol):
77261         Use K&R-style defn.
77262         (re_compile_fastmap): Use '\0' to memset, not 0.
77263         (utf8_sb_map): Make the calculations more obvious.
77264         (init_dfa, parse_bracket_exp, build_charclass_op):
77265         Call calloc and cast result, as glibc does.
77266         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77267         (build_range_exp, build_collating_symbol):
77268         Now internal functions.
77269
77270         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77271
77272         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77273         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77274         Don't depend on VMS; depend on __VMS instead, for POSIX
77275         namespace cleanness.
77276         (regoff_t): Define to ssize_t, not long int.
77277
77278         Remove the REG_ macros named below.  Instead, make the old names
77279         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77280         __USE_GNU_REGEX.
77281         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77282         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77283         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77284         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77285         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77286         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77287         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77288         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77289         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77290         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77291         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77292         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77293         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77294         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77295         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77296         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77297         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77298         (REG_NREGS):
77299         Remove.  All uses replaced by the old RE_* names.
77300         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77301         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77302         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77303         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77304         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77305         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77306         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77307         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77308         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77309         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77310         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77311         Don't bother having these macros be independent of each others'
77312         values, since they no longer exist in the POSIX name space.
77313
77314         Rename the following member names back to their old names,
77315         unless !__USE_GNU_REGEX.  All uses changed back.
77316         (buffer): Renamed from re_buffer.
77317         (allocated): Renamed from re_allocated.
77318         (used): Renamed from re_used.
77319         (syntax): Renamed from re_syntax.
77320         (fastmap): Renamed from re_fastmap.
77321         (translate): Renamed from re_translate.
77322         (can_be_null): Renamed from re_can_be_null.
77323         (regs_allocated): Renamed from re_regs_allocated.
77324         (fastmap_accurate): Renamed from re_fastmap_accurate.
77325         (no_sub): Renamed from re_no_sub.
77326         (not_bol): Renamed from re_not_bol.
77327         (not_eol): Renamed from re_not_eol.
77328         (newline_anchor): Renamed from re_newline_anchor.
77329         (num_regs): Renamed from rm_num_regs.
77330         (start): Renamed from rm_start.
77331         (end): Renamed from rm_end.
77332
77333         (free_state): Move up a bit.
77334
77335         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77336         #define to be empty.
77337         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77338         when that is what is intended.
77339         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77340         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77341         (MAX): New macro.
77342         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77343         All uses changed back to re_malloc, etc.  It's now the caller's
77344         responsibility to check for overflow; all callers changed.
77345         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77346         (re_x2nrealloc): Remove.
77347         (free_state): Remove decl.
77348
77349         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77350         (re_set_registers, re_exec):
77351         Use K&R-style defn.
77352
77353         2006-01-31  Roland McGrath  <roland@redhat.com>
77354
77355         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77356         Reported by Mike Frysinger <vapier@gentoo.org>.
77357
77358         2006-01-15  Andreas Jaeger  <aj@suse.de>
77359
77360         [BZ #1950]
77361         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77362         build_wcs_upper_buffer change.
77363         (build_wcs_upper_buffer): Change return type.
77364
77365         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77366
77367         * lib/regex_internal.h: Include <stdint.h> if available.
77368
77369         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77370
77371         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77372
77373         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77374
77375         * lib/regcomp.c: Adjust for changed secondary hash function.
77376
77377         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77378
77379         * lib/regex.h: Pretty printing.
77380         Clean up namespace a bit.
77381
77382         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77383
77384         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77385         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77386
77387         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77388                     Ulrich Drepper  <drepper@redhat.com>
77389
77390         [BZ #1302]
77391         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77392         changed.
77393         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77394
77395         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77396
77397         [BZ #281]
77398         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77399         * lib/regcomp.c: Remove unnecessary uses of
77400         unsigned RE_TRANSLATE_TYPE.
77401         * lib/regex_internal.h: Likewise.
77402         * lib/regex_internal.c: Likewise.
77403         * lib/regexec.c: Likewise.
77404         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77405
77406         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77407
77408         * lib/regexec.c (find_recover_state): Remove unnecessary
77409         initialization.
77410         (transit_state_bkref): Make DFA a const pointer.
77411         (get_subexp): Likewise.
77412         (check_arrival): Likewise.
77413         (update_cur_sifted_state): Likewise.
77414         (re_search_internal): Likewise.
77415         (prune_impossible_nodes): Likewise.
77416         (acquire_init_state_context): Likewise.
77417         (proceed_next_node): Likewise.
77418         (set_regs): Likewise.
77419         (free_fail_stack_return): Likewise.
77420         (check_arrival_expand_ecl): Mark DFA parameter as const.
77421         (check_arrival_expand_ecl_sub): Likewise.
77422         (check_subexp_limits): Likewise.
77423         (sub_epsilon_src_nodes):  Likewise.
77424         (add_epsilon_src_nodes):  Likewise.
77425         (merge_state_array): Likewise.
77426         (update_regs): Likewise.
77427         (build_trtable): Likewise.
77428         (sift_states_backward): Mark MCTX parameter as const.
77429         (build_sifted_states): Likewise.
77430         (update_cur_sifted_state): Likewise.
77431         (sift_states_mkref): Likewise.
77432         (check_arrival_expand_ecl): Mark eclosure as const.
77433         (check_dst_limits_calc_pos_1): Likewise.
77434         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77435         pointer.
77436
77437         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77438
77439         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77440         (transit_state_sb): Likewise.
77441         (transit_state_mb): Likewise.
77442         (sift_states_iter_mb): Likewise.
77443         (check_arrival_add_next_nodes): Likewise.
77444         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77445         [_LIBC] (re_search_2_stub): Use mempcpy.
77446
77447         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77448         mbrtowc for very simple UTF-8 case.
77449
77450         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77451         a pointer-to-const.
77452         (re_acquire_state_context): Likewise.
77453         * lib/regex_internal.h: Adjust prototypes.
77454
77455         * lib/regex.c: Prevent using C++ compilers.
77456
77457         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77458         (re_acquire_state_context): Likewise.
77459
77460 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77461
77462         * modules/regex (Depends-on): Add ssize_t.
77463
77464 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77467         translation table.
77468
77469 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77470
77471         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77472
77473 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77474             Bruno Haible  <bruno@clisp.org>
77475
77476         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77477         <sys/types.h> and <inttypes.h>.
77478
77479 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77480
77481         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77482         `__error_t_defined', so argp.h will not typedef the former.
77483
77484 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77487         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77488         glibc names.  Even if glibc is changed to conform to POSIX, the
77489         traditional names will be available anyway, since regex depends on
77490         the extensions module.  Also, fix a longstanding typo in the
77491         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77492         reported by Emanuele Giaquinta.  Also, change sense of cached
77493         variable, so that the message makes sense.
77494
77495 2006-03-24  Simon Josefsson  <jas@extundo.com>
77496
77497         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77498         including some doc fixes.
77499         (base64_encode_alloc): Fix +1 bug on allocation failures.
77500
77501 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77502
77503         * lib/base64.c (base64_encode): Do not read past end of array with
77504         unsanitized input on systems with CHAR_BIT > 8.
77505
77506 2006-03-24  Eric Blake  <ebb9@byu.net>
77507
77508         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77509
77510 2006-03-22  Karl Berry  <karl@gnu.org>
77511
77512         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77513         * config/srclistvars.sh (COREUTILS): new var.
77514
77515 2006-03-17  Jim Meyering  <jim@meyering.net>
77516
77517         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77518         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77519
77520 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77521
77522         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77523         no longer needs it.  Instead, check that regoff_t is as least
77524         as wide as ptrdiff_t.
77525
77526         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77527         so that our regex.h stays compatible with the installed regex.
77528         This is helpful for installers who configure --without-included-regex.
77529         Problem reported by Emanuele Giaquinta.
77530
77531 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77532
77533         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77534         Typedef to long int, not to off_, as POSIX will likely change
77535         in that direction.
77536
77537 2006-03-15  Eric Blake  <ebb9@byu.net>
77538
77539         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77540
77541 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77542
77543         * lib/argp-help.c (validate_uparams): Fix typo
77544         * lib/argp-parse.c (argp_default_options): Consistently begin help
77545         messages with a lowercase letter.
77546
77547 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77548
77549         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77550         overrun buffers and shouldn't be used (much as gets shouldn't be
77551         used).
77552         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77553
77554 2006-03-08  Simon Josefsson  <jas@extundo.com>
77555
77556         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77557         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77558
77559 2006-03-08  Simon Josefsson  <jas@extundo.com>
77560
77561         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77562         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77563
77564 2006-03-08  Simon Josefsson  <jas@extundo.com>
77565
77566         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77567         signal that configure disabled the device.
77568
77569 2006-03-08  Simon Josefsson  <jas@extundo.com>
77570
77571         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77572         languages.
77573
77574 2006-03-07  Simon Josefsson  <jas@extundo.com>
77575
77576         * modules/getopt (Depends-on): Add unistd.
77577
77578         * modules/unistd: New file.
77579
77580 2006-03-07  Simon Josefsson  <jas@extundo.com>
77581
77582         * modules/gc-random: New file.
77583
77584 2006-03-07  Simon Josefsson  <jas@extundo.com>
77585
77586         * m4/unistd_h.m4: New file.
77587
77588 2006-03-07  Simon Josefsson  <jas@extundo.com>
77589
77590         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77591         test to be side-effect free by storing the result in the cache
77592         variable gl_cv_lib_readline, and moving the assignment of
77593         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77594         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77595
77596 2006-03-07  Simon Josefsson  <jas@extundo.com>
77597
77598         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77599         error on missing devices (the functions will return an error).
77600
77601         * m4/gc.m4: Move random stuff to gc-random.m4
77602
77603 2006-03-07  Simon Josefsson  <jas@extundo.com>
77604
77605         * lib/unistd_.h: New file.
77606
77607 2006-03-07  Simon Josefsson  <jas@extundo.com>
77608
77609         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77610
77611 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77614         Problem reported by Juan Manuel Guerrero.
77615
77616 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77617
77618         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77619         the unistd module.
77620         * lib/getlogin_r.c: Likewise.
77621         * lib/getlogin_r.h: Likewise.
77622         * lib/glob.c: Likewise.
77623         * lib/pagealign_alloc.c: Likewise.
77624         * lib/unistd_.h: Remove; no longer needed.
77625
77626 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77627
77628         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77629         Add unistd.
77630         * modules/c-stack (Depends-on): Add unistd.
77631         * modules/getlogin_r: Likewise.
77632         * modules/glob: Likewise.
77633         * modules/pagealign_alloc: Likewise.
77634         * modules/unistd (Files): Remove lib/unistd_.h.
77635         (EXTRA_DIST): Remove.
77636         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77637         need unistd_.h.
77638         (MOSTLYCLEANFILES): Remove unistd.h-t.
77639
77640 2006-03-03  Simon Josefsson  <jas@extundo.com>
77641
77642         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77643
77644 2006-03-03  Simon Josefsson  <jas@extundo.com>
77645
77646         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77647         libidn and bison.
77648
77649 2006-03-03  Simon Josefsson  <jas@extundo.com>
77650
77651         * build-aux/maint.mk: Add indent target.
77652
77653 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77654
77655         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77656         our replacement poll.h in any case, to avoid a differing
77657         declaration from a system header.  Seen on AIX.
77658
77659 2006-03-01  Simon Josefsson  <jas@extundo.com>
77660
77661         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77662         <kasal@ucw.cz>.
77663
77664 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * modules/gettime (Depends-on): Add extensions module.
77667         * modules/nanosleep (Depends-on): Likewise.
77668         * modules/settime (Depends-on): Likewise.
77669
77670 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77673         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77674         pedantically.
77675         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77676         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77677
77678         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77679         not "==".  Reported by Ralf Wildenhues.
77680
77681 2006-03-01  Karl Berry  <karl@gnu.org>
77682
77683         * doc/Copyright/request-*: new files, synced from gnuorg.
77684
77685 2006-03-01  Karl Berry  <karl@gnu.org>
77686
77687         * config/srclist.txt (Copyright/*): new entries.
77688
77689 2006-02-28  Simon Josefsson  <jas@extundo.com>
77690
77691         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77692
77693 2006-02-27  Simon Josefsson  <jas@extundo.com>
77694
77695         * lib/base64.h: Indent #define's.  From Jim Meyering
77696         <jim@meyering.net>.
77697
77698 2006-02-27  Jim Meyering  <jim@meyering.net>
77699
77700         Revert the change of 2006-02-24, so these files can continue
77701         to be sync'd from gettext.
77702         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77703         of `config.h'.
77704
77705 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77706
77707         * modules/intprops: New file.
77708         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77709         Add intprops.
77710         * modules/getloadavg (Files): Remove lib/intprops.h.
77711         (Depends-on): Add intprops.
77712         * modules/human: Likewise.
77713         * modules/inttostr: Likewise.
77714         * modules/openat: Likewise.
77715         * modules/sig2str: Likewise.
77716         * modules/userspec: Likewise.
77717         * modules/utimecmp: Likewise.
77718         * modules/xnanosleep: Likewise.
77719         * modules/xstrtol: Likewise.
77720
77721 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77722
77723         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77724         * modules/lock-tests (TESTS): Use $(EXEEXT).
77725         * modules/tls-tests: Likewise.
77726         * modules/argp-tests: Likewise.
77727         (check_PROGRAMS): New var, replacing...
77728         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77729
77730 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77731
77732         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77733         `config.h'.
77734
77735 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77736
77737         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77738
77739 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77740
77741         Sync from coreutils.
77742         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77743         gl_CHDIR_SAFER.
77744
77745 2006-02-22  Jim Meyering  <jim@meyering.net>
77746
77747         Sync from coreutils.
77748         * m4/chdir-safer.m4: New file.
77749
77750 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77751
77752         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77753         AT_FDCWD exceeds INT_MAX.
77754         * lib/openat.h (AT_FDCWD): Likewise.
77755
77756 2006-02-17  Eric Blake  <address@hidden>
77757
77758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77759
77760 2006-02-16  Simon Josefsson  <jas@extundo.com>
77761
77762         * modules/getaddrinfo (Depends-on): Add sys_socket.
77763
77764 2006-02-15  Simon Josefsson  <jas@extundo.com>
77765
77766         * build-aux/maint.mk: Add dsyntax-check rule.
77767
77768 2006-02-15  Eric Blake  <ebb9@byu.net>
77769
77770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77771         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77772         'present but cannot compile' warnings on cygwin.
77773         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77774         use ws2tcpip.h if sys/socket.h works.
77775         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77776         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77777
77778 2006-02-14  Simon Josefsson  <jas@extundo.com>
77779
77780         * modules/maintainer-makefile (Files): Rename.
77781
77782         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77783         and (the local) Makefile.cfg to maint-cfg.mk.
77784
77785         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77786         to the latter.
77787
77788         * modules/maintainer-makefile: New module.
77789
77790         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77791         severaly stripped to make it possible to build it up from scratch
77792         with reliable tests.
77793
77794         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77795         fixes to permit overriding the default actions when configure and
77796         makefile are not available.
77797
77798 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77799
77800         Sync from coreutils.
77801         * modules/lstat (Depends-on): Don't depend on xalloc.
77802         (License): Change from GPL to LGPL, since this is now simply a
77803         replacement for a libc function.
77804
77805 2006-02-14  Jim Meyering  <jim@meyering.net>
77806
77807         Sync from coreutils.
77808
77809         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77810         failure on deficient systems, and simplify gnulib lgpl dependencies.
77811         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77812         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77813
77814         * lib/xalloc-die.c: Remove unused definition of N_.
77815
77816 2006-02-14  Jim Meyering  <jim@meyering.net>
77817
77818         Sync from coreutils.
77819         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77820         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77821         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77822         double-quote uses of that variable, to accommodate the rare case in
77823         which getmntent is available in none of the libraries checked.  This
77824         happens at least on FreeBSD 5.0.
77825
77826 2006-02-13  Simon Josefsson  <jas@extundo.com>
77827
77828         * gnulib-tool (Usage): Fix --import, from
77829         karl@freefriends.org (Karl Berry).
77830
77831 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77832
77833         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77834
77835 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77836
77837         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77838         "autoupdate" on 2005-12-12.
77839
77840 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * modules/closeout (Depends-on): Remove atexit.
77843
77844 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77845
77846         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77847         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77848
77849 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77852         __EXTENSIONS__ if this causes compilation to fail.  Problem
77853         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77854         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77855
77856 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77859         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77861         All uses changed.
77862
77863 2006-01-26  Simon Josefsson  <jas@extundo.com>
77864
77865         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77866         prototype is visible on mingw32.
77867
77868         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77869         for mingw32.
77870
77871         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77872         mingw32).
77873
77874 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77877         attempt to open for write; this always fails, at least on POSIX
77878         hosts.  This reinstates the 2006-01-09 change, which was
77879         inadvertently removed.
77880
77881 2006-01-26  Bruno Haible  <bruno@clisp.org>
77882
77883         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77884         Reported by Paul Eggert.
77885
77886 2006-01-26  Bruno Haible  <bruno@clisp.org>
77887             Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         * lib/stdbool_.h (_Bool)
77890         [(! (defined __cplusplus || defined __BEOS__)
77891           && !defined __GNUC__
77892           && !(defined __HP_cc || defined __xlc__
77893                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77894                || defined __sgi))]:
77895         #define to signed char in these cases too; this simplifies
77896         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77897         etc., separately) and makes it more conservative.
77898
77899 2006-01-25  Simon Josefsson  <jas@extundo.com>
77900
77901         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77902         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77903         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77904
77905 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77906
77907         * lib/argp-namefrob.h: Bugfix. Remove stray #
77908
77909 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77912         so that we test the test.
77913         Check for yet another HP-UX cc bug involving *bool |= bool.
77914
77915 2006-01-25  Karl Berry  <karl@gnu.org>
77916
77917         * config/srclist.txt (vasnprintf.c): sync lost.
77918
77919 2006-01-25  Jim Meyering  <jim@meyering.net>
77920
77921         Sync from the stable (b5) branch of coreutils:
77922
77923         * lib/fts.c (fts_children): Don't let close() clobber errno from
77924         failed fchdir().
77925
77926         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77927         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77928         a dangling symlink.  That can also happen at least for ELOOP.
77929         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77930         FYI, this bug predates the inclusion of fts.c in coreutils.
77931
77932         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77933         in their own block, so pre-c99 compilers don't object.
77934
77935         Avoid the double-free (first in fts_read, second in fts_close) that
77936         would occur when an `active' directory is made inaccessible (e.g.,
77937         via chmod a-x) during a traversal.
77938         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77939         before returning.  Reproduce this failure by
77940         mkdir -p a/b; cd a; chmod a-x . b
77941         Reported by Stavros Passas.
77942
77943 2006-01-25  Jim Meyering  <jim@meyering.net>
77944
77945         * lib/fileblocks.c: Remove more useless parentheses.
77946         * lib/readutmp.h: Likewise.
77947
77948 2006-01-25  Bruno Haible  <bruno@clisp.org>
77949
77950         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77951         warnings.
77952         Reported by Paul Eggert.
77953
77954 2006-01-25  Bruno Haible  <bruno@clisp.org>
77955
77956         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77957         rid of a trap command. For Solaris sh.
77958         Reported by Mark D. Baushke <mdb@gnu.org>.
77959
77960 2006-01-24  Simon Josefsson  <jas@extundo.com>
77961
77962         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77963         Bruno.
77964
77965 2006-01-24  Karl Berry  <karl@gnu.org>
77966
77967         * config/srclist.txt (argp-namefrob.h): sync lost.
77968
77969 2006-01-24  Jim Meyering  <jim@meyering.net>
77970
77971         * modules/openat (Files): Add lib/intprops.h.
77972         From Mark D. Baushke.
77973
77974 2006-01-24  Jim Meyering  <jim@meyering.net>
77975
77976         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77977         Reported by Mark D. Baushke.
77978
77979 2006-01-24  Jim Meyering  <jim@meyering.net>
77980
77981         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77982
77983 2006-01-24  Bruno Haible  <bruno@clisp.org>
77984
77985         * modules/strnlen (Maintainer): Change from glibc to all.
77986
77987 2006-01-24  Bruno Haible  <bruno@clisp.org>
77988
77989         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77990         Patch by Paul Eggert.
77991
77992 2006-01-24  Bruno Haible  <bruno@clisp.org>
77993
77994         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77995         already has it.
77996         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77997         2005-11-26.
77998
77999         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78000         'signed char' to avoid problems with the built-in _Bool type.
78001         Reported by Paul Eggert on 2005-11-26.
78002
78003 2006-01-24  Bruno Haible  <bruno@clisp.org>
78004
78005         * gnulib-tool (func_import): Avoid constructing complicated sed
78006         expressions inside backquote.
78007         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78008
78009 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78010
78011         These changes imported from libc.
78012         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78013         test and two separate function calls.
78014         * lib/strndup.c (__strndup): Add libc_hidden_def.
78015
78016 2006-01-23  Simon Josefsson  <jas@extundo.com>
78017
78018         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78019         Remove the test_*_SOURCES variable: automake infers it by default.
78020         * modules/tls-tests: Likewise.
78021
78022 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         Work around porting bugs reported by Dieter in
78025         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78026         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78027         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78028         Include "getopt.h" first, to check interface.
78029         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78030         !HAVE_DECL_GETENV.
78031         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78032         (__strndup): Revert to K&R-style function dfns, the glibc style.
78033         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78034         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78035         Include strnlen.h first, to get prototype properly.
78036         (strnlen): Renamed from __strnlen.
78037         Remove weak alias.
78038
78039 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78042
78043 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78044
78045         * config/srclist.txt: Adjust to reflect glibc reorganization.
78046         This affects only comments.
78047
78048 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78049
78050          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78051          Reported by Bruce Korb <bkorb@gnu.org>.
78052
78053 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78056         to pacify gcc -Wswitch-default.
78057
78058 2006-01-22  Bruno Haible  <bruno@clisp.org>
78059
78060         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78061         temporary buffer for sprintf, take into account the precision also
78062         for 'd', 'i', 'u', 'o', 'x', 'X'.
78063
78064 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78065
78066         * modules/argp-tests: New module
78067         * tests/test-argp.c: New file
78068         * tests/test-argp-2.sh: New file
78069
78070 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78071
78072         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78073         (__argp_base_name): Removed
78074         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78075         typo.
78076         (__argp_base_name): Provide macro definition or extern declaration
78077         depending on the configuration
78078
78079 2006-01-20  Simon Josefsson  <jas@extundo.com>
78080
78081         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78082
78083 2006-01-20  Simon Josefsson  <jas@extundo.com>
78084
78085         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78086
78087 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78088
78089         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78090         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78091         Suggested by Bruno Haible.
78092
78093 2006-01-20  Karl Berry  <karl@gnu.org>
78094
78095         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78096         until changes propagate, I guess.
78097
78098 2006-01-19  Simon Josefsson  <jas@extundo.com>
78099
78100         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78101
78102 2006-01-19  Simon Josefsson  <jas@extundo.com>
78103
78104         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78105
78106 2006-01-19  Simon Josefsson  <jas@extundo.com>
78107
78108         * gnulib-tool: Set check_PROGRAMS.
78109
78110         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78111         modules/des-tests, modules/gc-arcfour-tests,
78112         modules/gc-arctwo-tests, modules/gc-des-tests,
78113         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78114         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78115         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78116         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78117         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78118         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78119         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78120         test_*_SOURCES.
78121
78122 2006-01-18  Simon Josefsson  <jas@extundo.com>
78123
78124         * modules/socklen (Depends-on): Depend on sys_socket.
78125
78126 2006-01-18  Simon Josefsson  <jas@extundo.com>
78127
78128         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78129         modules/des-tests, modules/gc-arcfour-tests,
78130         modules/gc-arctwo-tests, modules/gc-des-tests,
78131         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78132         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78133         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78134         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78135         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78136         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78137         $(EXEEXT) to automake TESTS variable, for mingw32.
78138
78139 2006-01-17  Simon Josefsson  <jas@extundo.com>
78140
78141         * modules/socklen (Include): Need sys/socket.h.
78142
78143 2006-01-17  Bruno Haible  <bruno@clisp.org>
78144
78145         * modules/ssize_t (Include): Add <sys/types.h>.
78146
78147 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78150         it's not portable and it doesn't work with cross-compiles.
78151         Problem reported by Bruno Haible.  Fix missing-$ typo in
78152         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78153         -zignore from being used with Sun's C compiler.
78154
78155 2006-01-12  Simon Josefsson  <jas@extundo.com>
78156
78157         * lib/base64.c: Fix warning, reported by Bruno Haible
78158         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78159
78160 2006-01-12  Bruno Haible  <bruno@clisp.org>
78161
78162         * modules/ldd: New file.
78163         * build-aux/ldd.sh.in: New file.
78164         * MODULES.html.sh (Support for building libraries and executables): Add
78165         ldd.
78166
78167 2006-01-12  Bruno Haible  <bruno@clisp.org>
78168
78169         * m4/ldd.m4: New file.
78170
78171 2006-01-12  Bruno Haible  <bruno@clisp.org>
78172
78173         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78174         endless loop while replacing $auxdir with build-aux.
78175
78176 2006-01-11  Simon Josefsson  <jas@extundo.com>
78177
78178         * lib/stdint_.h (SIZE_MAX): Add missing (.
78179
78180 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         Sync from coreutils.
78183         * lib/md5.c: Fix commentary typos.
78184         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78185         * lib/md5.h (__attribute__): Remove; unused.
78186         * lib/sha1.c: Fix commentary to match md5 better.
78187         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78188         so that we don't need to worry about alignment.  All uses changed.
78189         This merges the 2005-10-28 md5 change into sha1.
78190
78191 2006-01-11  Jim Meyering  <jim@meyering.net>
78192
78193         Sync from coreutils.
78194         * lib/md5.c (OP): Fix spacing.
78195
78196 2006-01-11  Bruno Haible  <bruno@clisp.org>
78197
78198         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78199         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78200         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78201
78202 2006-01-11  Bruno Haible  <bruno@clisp.org>
78203
78204         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78205         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78206         the "early" section as well.
78207
78208 2006-01-11  Bruno Haible  <bruno@clisp.org>
78209
78210         Avoid "ar: no archive members specified" error on MacOS X.
78211         * gnulib-tool (func_modules_add_dummy): New function.
78212         (func_import, func_create_testdir): Invoke it.
78213
78214 2006-01-11  Bruno Haible  <bruno@clisp.org>
78215
78216         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78217         with $auxdir in AC_CONFIG_FILES statements.
78218
78219 2006-01-11  Bruno Haible  <bruno@clisp.org>
78220
78221         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78222         Initialize also noinst_HEADERS to empty.
78223
78224 2006-01-11  Bruno Haible  <bruno@clisp.org>
78225
78226         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78227         variables.
78228         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78229         autoreconf.
78230
78231 2006-01-11  Bruno Haible  <bruno@clisp.org>
78232
78233         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78234         overridable by the user.
78235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78236
78237 2006-01-10  Simon Josefsson  <jas@extundo.com>
78238
78239         * modules/sys_socket: New file.
78240
78241 2006-01-10  Simon Josefsson  <jas@extundo.com>
78242
78243         * m4/sys_socket_h.m4: New file.
78244
78245 2006-01-10  Simon Josefsson  <jas@extundo.com>
78246
78247         * lib/socket_.h: New file.
78248
78249 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         * modules/readutmp (Maintainer): Add myself.
78252
78253 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78256         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78257         People who are still concerned with buggy memcmp implementations
78258         can invoke gl_FUNC_MEMCMP themselves.
78259
78260 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * lib/regex_internal.h (BITSET_WORD_BITS):
78263         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78264         preprocessor mishandles large unsigned values as if they were signed.
78265         Problem reported by Claudio Fontana in
78266         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78267
78268 2006-01-10  Jim Meyering  <jim@meyering.net>
78269
78270         Avoid the double-free (first in fts_read, second in fts_close) that
78271         would occur when an `active' directory is made inaccessible (e.g.,
78272         via chmod a-x) during a traversal.
78273         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78274         before returning.  Reproduce this failure by
78275         mkdir -p a/b; cd a; chmod a-x . b
78276         Reported by Stavros Passas.
78277
78278         Sync from coreutils.
78279         * lib/sha1.c: Tweak grammar in a comment.
78280
78281 2006-01-10  Jim Meyering  <jim@meyering.net>
78282
78283         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78284         Patch by Joerg Sonnenberger.
78285
78286 2006-01-10  Bruno Haible  <bruno@clisp.org>
78287
78288         * modules/readutmp: Depend on module free.
78289         * modules/strtok_r: Depend on module restrict.
78290
78291 2006-01-10  Bruno Haible  <bruno@clisp.org>
78292
78293         * modules/gettext (configure.ac): Add an invocation of
78294         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78295
78296 2006-01-10  Bruno Haible  <bruno@clisp.org>
78297
78298         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78299         Reported by Werner Lemberg <wl@gnu.org>.
78300
78301 2006-01-10  Bruno Haible  <bruno@clisp.org>
78302
78303         * lib/localcharset.c: Update from GNU gettext.
78304
78305 2006-01-10  Bruno Haible  <bruno@clisp.org>
78306
78307         * lib/argp.h (__const): Remove macro. Use const instead.
78308         * lib/argp-fmtstream.h (__const): Likewise.
78309         * lib/glob_.h (__const): Remove macro.
78310         * lib/glob-libc.h: Use const instead of __const.
78311
78312 2006-01-10  Bruno Haible  <bruno@clisp.org>
78313
78314         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78315         variable.
78316         Needed to avoid an automake error regarding the 'gettext' module.
78317
78318 2006-01-09  Simon Josefsson  <jas@extundo.com>
78319
78320         * modules/inet_ntop (Depends-on): Add restrict.
78321
78322 2006-01-09  Simon Josefsson  <jas@extundo.com>
78323
78324         * modules/gc-rijndael-tests (License): Put under LGPL.
78325
78326         * modules/gc-des-tests (License): Likewise.
78327
78328         * modules/gc-arcfour-tests (License): Likewise.
78329
78330         * modules/gc-arctwo-tests (License): Likewise.
78331
78332         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78333
78334         * modules/gc-hmac-sha1-tests (Files): Likewise.
78335
78336         * modules/gc-hmac-md5-tests (License): Likewise.
78337
78338         * modules/gc-sha1-tests (License): Likewise.
78339
78340         * modules/gc-md5-tests (License): Likewise.
78341
78342         * modules/gc-md4-tests (License): Likewise.
78343
78344         * modules/gc-md2-tests (License): Likewise.
78345
78346         * modules/gc-tests (License): Likewise.
78347
78348         * modules/des-tests (License): Likewise.
78349
78350         * modules/md4-tests (License): Likewise.
78351
78352         * modules/md2-tests (License): Likewise.
78353
78354 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         Sync from coreutils:
78357
78358         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78359         * modules/lib-ignore: New file.
78360         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78361         chdir-safer.m4, lchmod.m4.
78362         * modules/openat: Add mkdirat.c, openat-priv.h.
78363
78364 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78365
78366         Sync from coreutils.
78367         * m4/lib-ignore.m4: New file.
78368         * m4/lchmod.m4: New file.
78369
78370 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         Sync from coreutils.
78373         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78374         for write access: POSIX says that must fail.
78375         * lib/fts.c (diropen): Likewise.
78376         * lib/save-cwd.c (save_cwd): Likewise.
78377         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78378         well, for minor improvements on hosts that lack O_DIRECTORY.
78379         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78380         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78381         Fall back on chown if open failed with EACCES.
78382
78383         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78384         Report an error at compile-time if only a 1-second nominal clock
78385         resolution is found.
78386
78387         * lib/lchmod.h: New file.
78388         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78389         (make_dir_parents): Use lchown rather than chown, and
78390         lchmod rather than chmod.
78391
78392         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78393         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78394         "proc" reported by n0dalus.
78395
78396         * lib/mountlist.c: Include <limits.h>.
78397         (dev_from_mount_options)
78398         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78399         New function.  It no longer assumes "dev=" has the System V meaning
78400         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78401         (read_file_system_list)
78402         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78403         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78404         dev= in that case.
78405
78406         * lib/posixtm.h (PDS_PRE_2000): New macro.
78407         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78408         allow_century.  All usages changed.  Reject dates outside the range
78409         1969-1999 if PDS_PRE_2000 is used.
78410
78411 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         Sync from coreutils.
78414         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78415         (Time of day items): Mention the possibility of leap seconds.
78416         Problem reported by Dr. David Alan Gilbert.
78417
78418 2006-01-09  Jim Meyering  <jim@meyering.net>
78419
78420         Sync from coreutils.
78421
78422         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78423
78424         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78425
78426         * lib/modechange.c (mode_compile): Reject an invalid mode string
78427         that starts with an octal digit.  From Andreas Gruenbacher.
78428
78429         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78430         and dup to open_safer and dup_safer, respectively.
78431         (openat_permissive): Fix typo in comment.
78432
78433         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78434         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78435         (_): Remove; no longer needed.
78436         (openat): Renamed from rpl_openat; no need for rpl_openat
78437         since openat.h renames openat for us.
78438         Replace most of the body with a call to openat_permissive,
78439         to avoid duplicate code.
78440         Port to (probably hypothetical) environments were mode_t is
78441         wider than int.
78442         (openat_permissive): Require mode arg, so that we can check
78443         types better.  Put it just after flags.  Change cwd failure
78444         indicator from pointer-to-bool to pointer-to-errno-value.
78445         All callers changed.
78446         Invoke openat_save_fail and/or openat_restore_fail if
78447         cwd_errno is null, so that openat can call us.
78448         (openat_permissive, fdopendir, fstatat, unlinkat):
78449         Simplify errno handling to avoid some duplicate code,
78450         as it's OK to set errno on success.
78451         * lib/openat.h: Revamp code so that function macros depend on
78452         __OPENAT_PREFIX only, not also on AT_FDCWD.
78453         (openat_ro): Remove.  Caller changed to use openat_permissive.
78454         (openat_permissive): Now a macro, if not a function.
78455         (openat_restore_fail, openat_save_fail): Now always functions,
78456         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78457
78458         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78459         and openat.c.
78460         * lib/mkdirat.c: Include openat-priv.h.
78461         Remove definitions of macros defined therein.
78462         * lib/openat.c: Likewise.
78463
78464         * lib/mkdirat.c (mkdirat): New file and function.
78465         * lib/openat.h (mkdirat): Declare.
78466
78467         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78468
78469         * lib/openat.h (openat_permissive): Declare.
78470         (openat_ro): Define.
78471
78472         * lib/openat.c (EXPECTED_ERRNO): New macro.
78473         (openat_permissive): New function -- used in remove.c rewrite.
78474         (all functions): Set errno just before returning, only if there
78475         was an actual failure.
78476         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78477
78478         Emulate openat-family functions using Linux's procfs, if possible.
78479         Idea and some code based on Ulrich Drepper's glibc changes.
78480
78481         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78482         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78483         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78484         before falling back on save_cwd and restore_cwd.
78485         (fdopendir, fstatat, unlinkat): Likewise.
78486
78487         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78488         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78489
78490         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78491         as second argument to va_arg.  Otherwise, some versions of gcc
78492         warn that `if this code is reached, the program will abort'.
78493
78494 2006-01-09  Jim Meyering  <jim@meyering.net>
78495
78496         Sync from coreutils.
78497         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78498         Require openat-priv.h.
78499
78500 2006-01-09  Bruno Haible  <bruno@clisp.org>
78501
78502         * modules/strnlen (Include): Use strnlen.h.
78503
78504 2006-01-09  Bruno Haible  <bruno@clisp.org>
78505
78506         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78507
78508 2006-01-09  Bruno Haible  <bruno@clisp.org>
78509
78510         * lib/sysexit_.h (EX_OK): New macro.
78511         Suggested by Martin Lambers <marlam@marlam.de>.
78512
78513 2006-01-09  Bruno Haible  <bruno@clisp.org>
78514
78515         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78516         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78517
78518 2006-01-09  Bruno Haible  <bruno@clisp.org>
78519
78520         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78521         numbers.
78522
78523 2006-01-09  Bruno Haible  <bruno@clisp.org>
78524
78525         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78526         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78527         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78528         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78529
78530 2006-01-09  Bruno Haible  <bruno@clisp.org>
78531
78532         * build-aux/javacomp.sh.in: New file, moved from lib/.
78533         * modules/javacomp-script (Files): Update.
78534         (configure.ac): Add AC_CONFIG_FILES invocation.
78535         (EXTRA_DIST): Remove variable.
78536
78537         * build-aux/javaexec.sh.in: New file, moved from lib/.
78538         * modules/javaexec (Files): Update.
78539         (configure.ac): Add AC_CONFIG_FILES invocation.
78540         (EXTRA_DIST): Remove javaexec.sh.in.
78541
78542         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78543         * modules/csharpcomp-script (Files): Update.
78544         (configure.ac): Add AC_CONFIG_FILES invocation.
78545         (EXTRA_DIST): Remove variable.
78546
78547         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78548         * modules/csharpexec (Files): Update.
78549         (configure.ac): Add AC_CONFIG_FILES invocation.
78550         (EXTRA_DIST): Remove csharpexec.sh.in.
78551
78552 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78553
78554         Sync from coreutils.
78555
78556         Add POSIX ACL support
78557         * lib/acl.h (copy_acl, set_acl): Add declarations.
78558         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78559         systems other than Linux.
78560         (chmod_or_fchmod): New function: use fchmod when possible,
78561         and chmod otherwise.
78562         (file_has_acl): Add a POSIX ACL implementation, with a
78563         Linux-specific subcase.
78564         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78565         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78566         acls are unsupported.
78567         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78568         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78569         are unsupported.
78570
78571 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78572
78573         Sync from coreutils.
78574         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78575
78576 2006-01-07  Bruno Haible  <bruno@clisp.org>
78577
78578         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78579         gl_EARLY.
78580
78581 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78584         Problem reported for Mingw by Mark Junker.
78585
78586 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         * README: Gnulib normally doesn't generate a tarball.
78589
78590 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78591
78592         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78593         long int, not int, for nanosecond counts, so that people who are
78594         used to POSIX struct timespec won't be surprised.  Reported by Jim
78595         Meyering.
78596
78597 2005-12-28  Bruno Haible  <bruno@clisp.org>
78598
78599         * build-aux/config.rpath: Update from GNU gettext.
78600
78601 2005-12-16  Jim Meyering  <jim@meyering.net>
78602
78603         * modules/fprintftime: New module.
78604         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78605
78606 2005-12-16  Jim Meyering  <jim@meyering.net>
78607
78608         * m4/fprintftime.m4: New file.
78609
78610 2005-12-16  Jim Meyering  <jim@meyering.net>
78611
78612         * lib/fprintftime.c, lib/fprintftime.h: New files.
78613
78614 2005-12-15  Simon Josefsson  <jas@extundo.com>
78615
78616         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78617         new m4/socklen.m4.
78618
78619 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78620
78621         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78622         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78623
78624 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78625
78626         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78627         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78628         struct uparams is valid. Fall back to the default values if it is
78629         not.
78630
78631 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78632
78633         * modules/argp (Files): Add argp-pin.c
78634         (Depends-on): dirname
78635         (lib_SOURCES): Add argp-pin.c
78636
78637 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78638
78639         * m4/argp.m4:  Check if program_invocation_name and
78640         program_invocation_short_name are declared and define appropriate
78641         macros if they are not.
78642
78643 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78644
78645         * lib/argp-help.c (__argp_base_name): New function
78646         (__argp_short_program_name): Rewrite using __argp_base_name
78647         * lib/argp-namefrob.h: Define program_invocation_name and
78648         program_invocation_short_name if requested
78649         (__argp_base_name): Add prototype
78650         * lib/argp-parse.c (argp_def): Use gettext wrappers
78651         (argp_default_parser): Use __argp_base_name
78652         * lib/argp-pin.c: New file. Defines program_invocation_name and
78653         program_invocation_short_name on systems that lack them.
78654
78655 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78658         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78659         porting problem reported by Georg Schwarz in
78660         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78661
78662 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78663
78664         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78665         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78666         porting problem reported by Georg Schwarz in
78667         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78668
78669 2005-12-05  Bruno Haible  <bruno@clisp.org>
78670
78671         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78672         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78673         Reported by Mark Junker <mjscod@gmx.de>.
78674
78675 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78676
78677         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78678         Use implementation from Albert Chin, with some
78679         comments/corrections by Stepan Kasal and myself.
78680
78681 2005-12-02  Bruno Haible  <bruno@clisp.org>
78682
78683         * gnulib-tool (func_import): Accept GPLed build tool modules when
78684         --lgpl is given.
78685         * modules/csharpcomp-script: New file.
78686         * modules/csharpcomp: Depend on it.
78687         * modules/javacomp-script: New file.
78688         * modules/javacomp: Depend on it.
78689         Suggested by Simon Josefsson.
78690
78691 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78694         statement, to work around an HP-UX 10.20 compiler bug reported by
78695         Peter O'Gorman.
78696
78697 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         * modules/savedir (Depends-on): Add openat.
78700
78701 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78702
78703         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78704         (uintmax_t) [defined uintmax_t]: Do not declare.
78705         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78706         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78707         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78708         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78709         sake of portability to weird hosts that C allows (though we don't
78710         know of any practical examples).
78711
78712         * lib/savedir.h (fdsavedir): New decl.
78713         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78714         contains most of the former guts of savedir.
78715         (savedir): Use savedirstream.
78716         Include "openat.h".
78717
78718 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78719
78720         * modules/obstack (Files): Add m4/ulonglong.m4.
78721         Problem reported by Davide Angelocola.
78722
78723 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78724
78725         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78726         coreutils no longer futzes with rounding modes.
78727
78728 2005-11-14  Jim Meyering  <jim@meyering.net>
78729
78730         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78731         replacement of mkstemp.
78732
78733 2005-11-10  Simon Josefsson  <jas@extundo.com>
78734
78735         * lib/readline.c: Remove EOL.
78736
78737 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * modules/gethrxtime (Depends-on): Add gettime.
78740
78741 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78744         or gettimeofday; no longer needed.
78745
78746 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78749         time business.
78750         (gethrxtime) [! (HAVE_NANOUPTIME
78751         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78752         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78753         our own approximation.
78754
78755 2005-11-08  Eric Blake  <ebb9@byu.net>
78756
78757         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78758
78759 2005-11-08  Eric Blake  <ebb9@byu.net>
78760
78761         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78762
78763 2005-11-04  Bruno Haible  <bruno@clisp.org>
78764
78765         * gnulib-tool: Implement --update mode.
78766
78767 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         Fix porting problem reported by Theodoros V. Kalamatianos.
78770         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78771         Don't assume that futimes failing means we must fail.
78772
78773 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78776         variables to suggest the intended function of the PATH_MAX check.
78777
78778 2005-10-30  Kean Johnston  <jkj@sco.com>
78779
78780         Trivial changes to support SCO systems.
78781         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78782         as PATH_MAX.
78783         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78784         where __ptr is null when no I/O is pending.
78785
78786 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78789         leave errno alone.  Problem reported by Dmitry V. Levin.
78790
78791 2005-10-28  Simon Josefsson  <jas@extundo.com>
78792
78793         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78794         Test more.
78795
78796         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78797
78798         * modules/md2, modules/md2-tests: New files.
78799
78800 2005-10-28  Simon Josefsson  <jas@extundo.com>
78801
78802         * m4/inet_ntop.m4: More tests.
78803
78804         * m4/gc-md2.m4, md2.m4: New file.
78805
78806 2005-10-28  Simon Josefsson  <jas@extundo.com>
78807
78808         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78809         "restrict" keywords, as per POSIX.  Protect the function
78810         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78811         Don't use K&R prototypes.  Check the sprintf return values.
78812         Re-define EAFNOSUPPORT if not present.  Indent.
78813
78814         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78815         suggested by Bruno Haible <bruno@clisp.org>.
78816
78817         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78818
78819         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78820
78821         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78822         libgcrypt).
78823
78824         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78825
78826         * lib/md2.h, lib/md2.c: New files.
78827
78828 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78829
78830         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78831         errno alone.  Problem reported by Frederic Jolliton.
78832
78833 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78834
78835         * modules/verify (License): Change from GPL to LGPL.  This is a
78836         tiny module and there are apparently near-equivalents that are
78837         under the BSD license.
78838
78839 2005-10-24  Simon Josefsson  <jas@extundo.com>
78840
78841         * modules/sha1: Relicense to LGPL.
78842
78843 2005-10-24  Simon Josefsson  <jas@extundo.com>
78844
78845         * lib/md4.h: Shrink buffer size, now that we changed the type.
78846
78847 2005-10-23  Simon Josefsson  <jas@extundo.com>
78848
78849         * gnulib-tool (func_import): Fix --tests-base.
78850
78851 2005-10-22  Simon Josefsson  <jas@extundo.com>
78852
78853         * modules/arcfour (Depends-on): Need stdint.
78854
78855 2005-10-22  Simon Josefsson  <jas@extundo.com>
78856
78857         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78858         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78859
78860 2005-10-22  Simon Josefsson  <jas@extundo.com>
78861
78862         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78863         suggested by Bruno Haible <bruno@clisp.org>.
78864
78865 2005-10-22  Simon Josefsson  <jas@extundo.com>
78866
78867         * lib/crc.h: Include stddef.h, for size_t.
78868
78869 2005-10-22  Simon Josefsson  <jas@extundo.com>
78870
78871         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78872         arcfour_context struct (simplify test vector testing in GNU
78873         Shishi).
78874
78875 2005-10-21  Simon Josefsson  <jas@extundo.com>
78876
78877         * modules/des, modules/des-tests: New files.
78878
78879         * modules/gc-des, modules/gc-des-tests: New files.
78880
78881         * tests/test-des.c, tests/test-gc-des.c: New file.
78882
78883 2005-10-21  Simon Josefsson  <jas@extundo.com>
78884
78885         * modules/arctwo, modules/arctwo-tests: New files.
78886
78887         * tests/test-arctwo.c: New file.
78888
78889         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78890
78891         * tests/test-gc-arctwo.c: New file.
78892
78893 2005-10-21  Simon Josefsson  <jas@extundo.com>
78894
78895         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78896         Bruno Haible <bruno@clisp.org>.
78897
78898         * m4/gc-des.m4: New file.
78899
78900 2005-10-21  Simon Josefsson  <jas@extundo.com>
78901
78902         * m4/arctwo.m4: New file.
78903
78904         * m4/gc-arctwo.m4: New file.
78905
78906 2005-10-21  Simon Josefsson  <jas@extundo.com>
78907
78908         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78909         block.
78910
78911 2005-10-21  Simon Josefsson  <jas@extundo.com>
78912
78913         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78914         <bruno@clisp.org>.
78915
78916         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78917
78918         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78919         Bruno Haible <bruno@clisp.org>.
78920
78921         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78922         <bruno@clisp.org>.
78923
78924 2005-10-21  Simon Josefsson  <jas@extundo.com>
78925
78926         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78927
78928 2005-10-21  Simon Josefsson  <jas@extundo.com>
78929
78930         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78931
78932 2005-10-21  Simon Josefsson  <jas@extundo.com>
78933
78934         * lib/des.h, lib/des.c: New files.
78935
78936         * lib/gc-gnulib.c: Support DES.c
78937
78938 2005-10-21  Simon Josefsson  <jas@extundo.com>
78939
78940         * lib/arctwo.h, lib/arctwo.c: New files.
78941
78942         * lib/gc-gnulib.c: Support ARCTWO.
78943
78944 2005-10-21  Simon Josefsson  <jas@extundo.com>
78945
78946         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78947         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78948
78949 2005-10-21  Simon Josefsson  <jas@extundo.com>
78950
78951         * gnulib-tool (func_import, func_create_testdir): Define automake
78952         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78953         Makefile.am snippet),
78954         suggested by Bruno Haible <bruno@clisp.org>.
78955
78956         * modules/gc (Makefile.am): Use it.
78957
78958 2005-10-21  Bruno Haible  <bruno@clisp.org>
78959
78960         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78961         patch.
78962
78963 2005-10-19  Simon Josefsson  <jas@extundo.com>
78964
78965         * tests/test-gc-rijndael.c: New file.
78966
78967         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78968
78969 2005-10-19  Simon Josefsson  <jas@extundo.com>
78970
78971         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78972         interface too.
78973
78974 2005-10-19  Simon Josefsson  <jas@extundo.com>
78975
78976         * tests/test-gc-arcfour.c: New file.
78977
78978         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78979
78980 2005-10-19  Simon Josefsson  <jas@extundo.com>
78981
78982         * modules/gc-md4, modules/gc-md4-tests: New file.
78983
78984         * tests/test-gc-md4.c: New file.
78985
78986 2005-10-19  Simon Josefsson  <jas@extundo.com>
78987
78988         * m4/gc-md4.m4: New file.
78989
78990 2005-10-19  Simon Josefsson  <jas@extundo.com>
78991
78992         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78993         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78994         <kasal@ucw.cz>.
78995
78996 2005-10-19  Simon Josefsson  <jas@extundo.com>
78997
78998         * m4/gc-arcfour.m4: New file.
78999
79000         * m4/gc-rijndael.m4: New file.
79001
79002 2005-10-19  Simon Josefsson  <jas@extundo.com>
79003
79004         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79005
79006 2005-10-19  Simon Josefsson  <jas@extundo.com>
79007
79008         * lib/gc-gnulib.c: Support ARCFOUR.
79009
79010 2005-10-19  Simon Josefsson  <jas@extundo.com>
79011
79012         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79013         support.
79014
79015         * lib/gc.h: Add ECB enum type.
79016
79017         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79018
79019 2005-10-18  Simon Josefsson  <jas@extundo.com>
79020
79021         * tests/test-md5.c: New file.
79022
79023         * modules/md5-tests: New file.
79024
79025 2005-10-18  Simon Josefsson  <jas@extundo.com>
79026
79027         * tests/test-md4.c: New file.
79028
79029         * modules/md4, modules/md4-tests: New files.
79030
79031 2005-10-18  Simon Josefsson  <jas@extundo.com>
79032
79033         * m4/md4.m4: New file.
79034
79035 2005-10-18  Simon Josefsson  <jas@extundo.com>
79036
79037         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79038
79039 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79040
79041         * gnulib-tool (func_create_testdir): Omit the second check whether
79042         BUILT_SOURCES in nonempty.
79043
79044 2005-10-17  Simon Josefsson  <jas@extundo.com>
79045
79046         * tests/test-rijndael.c: New file.
79047
79048 2005-10-17  Simon Josefsson  <jas@extundo.com>
79049
79050         * modules/sha1: Depend on stdint instead of md5.
79051
79052         * modules/md5: Depend on stdint, remove uint32_t.
79053
79054 2005-10-17  Simon Josefsson  <jas@extundo.com>
79055
79056         * modules/gc-sha1-tests: New file.
79057
79058         * tests/test-gc-sha1.c: New file.
79059
79060 2005-10-17  Simon Josefsson  <jas@extundo.com>
79061
79062         * m4/md5.m4: Remove call to uint32_t.m4.
79063
79064 2005-10-17  Simon Josefsson  <jas@extundo.com>
79065
79066         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79067
79068         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79069         md5.h.
79070
79071         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79072
79073         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79074
79075 2005-10-17  Simon Josefsson  <jas@extundo.com>
79076
79077         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79078
79079 2005-10-17  Simon Josefsson  <jas@extundo.com>
79080
79081         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79082
79083 2005-10-17  Simon Josefsson  <jas@extundo.com>
79084
79085         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79086
79087         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79088
79089 2005-10-17  Bruno Haible  <bruno@clisp.org>
79090
79091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79092         that it can also be used in a test.
79093
79094 2005-10-16  Bruno Haible  <bruno@clisp.org>
79095
79096         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79097         TESTS_ENVIRONMENT, so that individual tests can augment it.
79098
79099         * gnulib-tool (func_create_testdir): Use an intermediate target for
79100         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79101         macros, like $(ALLOCA_H), which cannot be passed through the command
79102         line.
79103
79104 2005-10-15  Simon Josefsson  <jas@extundo.com>
79105
79106         * modules/rijndael-tests: New file.
79107
79108         * modules/rijndael: New file.
79109
79110 2005-10-15  Simon Josefsson  <jas@extundo.com>
79111
79112         * m4/rijndael.m4: New file.
79113
79114 2005-10-15  Simon Josefsson  <jas@extundo.com>
79115
79116         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79117
79118         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79119
79120 2005-10-14  Simon Josefsson  <jas@extundo.com>
79121
79122         * tests/test-arcfour.c: New file.
79123
79124         * modules/arcfour, modules/arcfour-tests: New files.
79125
79126 2005-10-14  Simon Josefsson  <jas@extundo.com>
79127
79128         * m4/arcfour.m4: New file.
79129
79130 2005-10-14  Simon Josefsson  <jas@extundo.com>
79131
79132         * lib/arcfour.h, lib/arcfour.c: New files.
79133
79134 2005-10-14  Roland McGrath  <roland@redhat.com>
79135
79136         Import from libc.  [BZ #1331]
79137         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79138         macro argument.
79139         Reported by Matej Vela <vela@debian.org>.
79140
79141 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79142
79143         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79144         include <wchar.h>; no longer needed.
79145
79146 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79147
79148         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79149
79150 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79151         and  Ulrich Drepper  <drepper@redhat.com>
79152
79153         Import from libc.
79154         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79155         instead of inline stream orientation test and two separate
79156         function calls.  Pay no attention to USE_IN_LIBIO.
79157
79158 2005-10-13  Simon Josefsson  <jas@extundo.com>
79159
79160         * modules/gc-hmac-md5-tests: New file.
79161
79162         * tests/test-gc-hmac-sha1.c: New file.
79163
79164         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79165
79166         * modules/gc-hmac-md5-tests: New file.
79167
79168         * tests/test-gc-md5.c: New file.
79169
79170         * modules/gc-md5-tests: New file.
79171
79172 2005-10-13  Simon Josefsson  <jas@extundo.com>
79173
79174         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79175         Move memory allocation outside of loop.
79176
79177 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79178
79179         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79180         intermediate directory is in a read-only file system.  Problem
79181         reported by Eric Blake.
79182
79183 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79184
79185         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79186
79187 2005-10-12  Simon Josefsson  <jas@extundo.com>
79188
79189         * tests/test-hmac-sha1.c: New file.
79190
79191         * modules/hmac-sha1-tests: New file.
79192
79193         * modules/hmac-sha1: New file.
79194
79195 2005-10-12  Simon Josefsson  <jas@extundo.com>
79196
79197         * modules/gc-sha1: New file.
79198
79199 2005-10-12  Simon Josefsson  <jas@extundo.com>
79200
79201         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79202
79203         * tests/test-gc-pbkdf2-sha1.c: New file.
79204
79205 2005-10-12  Simon Josefsson  <jas@extundo.com>
79206
79207         * modules/gc-md5, modules/gc-hmac-md5: New files.
79208
79209         * modules/gc (Files): Remove md5, memxor and hmac files.
79210
79211 2005-10-12  Simon Josefsson  <jas@extundo.com>
79212
79213         * m4/gc-pbkdf2-sha1.m4: New file.
79214
79215         * m4/gc-hmac-sha1.m4: New file.
79216
79217         * m4/gc-sha1: New file.
79218
79219         * m4/hmac-sha1.m4: New file.
79220
79221 2005-10-12  Simon Josefsson  <jas@extundo.com>
79222
79223         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79224
79225         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79226
79227 2005-10-12  Simon Josefsson  <jas@extundo.com>
79228
79229         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79230         suggested by Bruno Haible <bruno@clisp.org>.
79231
79232 2005-10-12  Simon Josefsson  <jas@extundo.com>
79233
79234         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79235
79236 2005-10-12  Simon Josefsson  <jas@extundo.com>
79237
79238         * lib/gc-pbkdf2-sha1.c: New file.
79239
79240         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79241
79242 2005-10-12  Simon Josefsson  <jas@extundo.com>
79243
79244         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79245
79246         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79247
79248 2005-10-12  Simon Josefsson  <jas@extundo.com>
79249
79250         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79251         GC_USE_HMAC_MD5, respectively.
79252
79253         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79254         (gc_md5): Fix typo.
79255
79256         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79257
79258         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79259
79260         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79261
79262 2005-10-12  Bruno Haible  <bruno@clisp.org>
79263
79264         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79265         Reported by Stepan Kasal <kasal@ucw.cz>.
79266
79267 2005-10-11  Simon Josefsson  <jas@extundo.com>
79268
79269         * tests/test-crc.c: New file.
79270
79271         * modules/crc, modules/crc-tests: New files.
79272
79273 2005-10-11  Simon Josefsson  <jas@extundo.com>
79274
79275         * m4/crc.m4: New file.
79276
79277 2005-10-11  Simon Josefsson  <jas@extundo.com>
79278
79279         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79280
79281         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79282
79283         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79284
79285 2005-10-11  Simon Josefsson  <jas@extundo.com>
79286
79287         * lib/crc.h, lib/crc.c: New files.
79288
79289         * lib/gc.h (gc_hash_buffer): Add doc.
79290
79291 2005-10-11  Bruno Haible  <bruno@clisp.org>
79292
79293         * modules/c-strcasestr: New file.
79294         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79295
79296 2005-10-11  Bruno Haible  <bruno@clisp.org>
79297
79298         * modules/c-strcase: New file.
79299         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79300
79301 2005-10-11  Bruno Haible  <bruno@clisp.org>
79302
79303         * lib/strcasecmp.c: Include limits.h.
79304         (strcasecmp): Avoid integer overflow on exotic platforms.
79305         * lib/strncasecmp.c: Include limits.h.
79306         (strncasecmp): Avoid integer overflow on exotic platforms.
79307         Reported by Paul Eggert.
79308
79309 2005-10-11  Bruno Haible  <bruno@clisp.org>
79310
79311         * lib/c-strcasestr.h: New file, from GNU gettext.
79312         * lib/c-strcasestr.c: New file, from GNU gettext.
79313
79314 2005-10-11  Bruno Haible  <bruno@clisp.org>
79315
79316         * lib/c-strcase.h: New file, from GNU gettext.
79317         * lib/c-strcasecmp.c: New file, from GNU gettext.
79318         * lib/c-strncasecmp.c: New file, from GNU gettext.
79319
79320 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * modules/mempcpy (License): GPL -> LGPL.
79323         * modules/strchrnul (License): Likewise.
79324         * modules/sysexits (License): Likewise.
79325
79326 2005-10-08  Simon Josefsson  <jas@extundo.com>
79327
79328         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79329
79330 2005-10-07  Simon Josefsson  <jas@extundo.com>
79331
79332         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79333
79334 2005-10-06  Simon Josefsson  <jas@extundo.com>
79335
79336         * tests/test-hmac-md5.c: New file.
79337
79338         * modules/hmac-md5-tests: New file.
79339
79340         * modules/hmac-md5: New file.
79341
79342 2005-10-06  Simon Josefsson  <jas@extundo.com>
79343
79344         * m4/hmac-md5.m4: New file.
79345
79346         * m4/memxor.m4: Require gl_C_RESTRICT.
79347
79348 2005-10-06  Simon Josefsson  <jas@extundo.com>
79349
79350         * lib/memxor.c (memxor): Avoid casts and warnings.
79351
79352 2005-10-06  Simon Josefsson  <jas@extundo.com>
79353
79354         * lib/hmac-md5.c: New file.
79355
79356         * lib/hmac.h: New file.
79357
79358 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79361         promotes to int, not unsigned int, to catch the AIX 5.3
79362         compiler bug.
79363
79364 2005-10-05  Simon Josefsson  <jas@extundo.com>
79365
79366         * modules/memxor: New file.
79367
79368         * modules/iconv (Files): Move config.rpath to havelib, it is used
79369         there.
79370
79371         * modules/havelib (Files): Add config.rpath.
79372
79373 2005-10-05  Simon Josefsson  <jas@extundo.com>
79374
79375         * m4/memxor.m4: New file.
79376
79377 2005-10-05  Simon Josefsson  <jas@extundo.com>
79378
79379         * lib/memxor.c (memxor): Fix compiler error.
79380
79381         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79382         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79383
79384         * lib/memxor.h, lib/memxor.c: New files.
79385
79386         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79387         we assume all systems have it, suggested by Jim Meyering
79388         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79389         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79390         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79391         same reasons.
79392
79393 2005-10-05  Simon Josefsson  <jas@extundo.com>
79394
79395         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79396
79397 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79400         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79401         needed, since the source code now assumes these .h files.
79402
79403 2005-10-05  Derek Price  <derek@ximbiot.com>
79404
79405         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79406
79407 2005-10-05  Bruno Haible  <bruno@clisp.org>
79408
79409         * modules/stdint (License): Change to LGPL.
79410
79411 2005-10-04  Simon Josefsson  <jas@extundo.com>
79412
79413         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79414         D. Baushke" <mdb@gnu.org>.
79415
79416 2005-10-04  Bruno Haible  <bruno@clisp.org>
79417
79418         * lib/verify.h (verify_true): Provide alternative definition for C++.
79419
79420 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79421
79422         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79423         (SSIZE_MAX): New macro, if not already defined.
79424         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79425         than 2 GiB.
79426
79427 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79428
79429         Sync from coreutils.
79430         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79431         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79432         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79433         ULLONG_MAX doesn't work with 2.7.2.1.
79434
79435 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79438         From Ben Pfaff.
79439
79440         * modules/exclude (Depends-on): Depend on verify.
79441         * modules/strtoimax (Depends-on): Likewise.
79442         * modules/utimecmp (Depends-on): Likewise.
79443
79444 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         * lib/exclude.c: Include verify.h.
79447         (verify): Remove.  All callers changed to use verify.h's version.
79448         * lib/strtoimax.c: Likewise.
79449         * lib/utimecmp.c: Likewis.e
79450
79451         Sync from coreutils.
79452         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79453         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79454         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79455         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79456         bother returning ENOSYS if settimeofday or stime fails; just let
79457         them return whatever errno they want to return.
79458         * lib/utimens.c: Include unistd.h, for dup2.
79459         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79460         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79461
79462 2005-10-02  Jim Meyering  <jim@meyering.net>
79463
79464         Sync from coreutils.
79465         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79466         from glibc-2.2.5 that fails for read-only files.
79467
79468 2005-10-02  Jim Meyering  <jim@meyering.net>
79469
79470         Sync from coreutils.
79471         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79472         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79473         `#if HAVE_CONFIG_H'.
79474         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79475         Remove AT_FDCWD test.
79476         Do not consume the fd unless successful.
79477         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79478         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79479         block, so that we don't even try to compile it if settimeofday is
79480         available.  This works around a compilation failure on OSF1 V5.1,
79481         due to stime requiring a `long int*' while tv_sec is `int'.
79482
79483 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79484
79485         Sync from coreutils.
79486         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79487         against `yes', rather than just testing for nonempty.
79488
79489 2005-10-01  Simon Josefsson  <jas@extundo.com>
79490
79491         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79492         and Darwin.
79493
79494         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79495         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79496         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79497         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79498         Check if struct addrinfo is declared.
79499
79500 2005-10-01  Simon Josefsson  <jas@extundo.com>
79501
79502         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79503         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79504         AI_* and EAI_* definitions.  Protect function declarations.
79505
79506 2005-10-01  Jim Meyering  <jim@meyering.net>
79507
79508         Sync from coreutils.
79509
79510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79511         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79512         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79514         in the inet and nsl libraries.  Required on Solaris 5.7.
79515
79516 2005-10-01  Jim Meyering  <jim@meyering.net>
79517
79518         Sync from coreutils.
79519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79520         in the inet and nsl libraries.  Required on Solaris 5.7.
79521
79522 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79523
79524         * lib/getdelim.c (getdelim): Remove unused variables.
79525
79526 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79529         so that the code works even with ancient cpp.  Portability problem
79530         with GCC 2.7.2.1 reported by Thomas M.Ott.
79531
79532 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79533
79534         * modules/regex (Depends-on): Add strcase.
79535
79536         * modules/gethostname (Licence): Change from GPL to LGPL, since
79537         gethostname.c is a trivial implementation of a standard library
79538         function.
79539         * modules/poll (License): Change from GPL to LGPL, since it's
79540         derived from LGPL code.
79541
79542 2005-09-27  Jim Meyering  <jim@meyering.net>
79543
79544         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79545         HAVE_CONFIG_H.
79546
79547         * lib/intprops.h (signed_type_or_expr__): Define.
79548         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79549         for unsigned types.
79550
79551 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * lib/verify.h (verify_expr): Remove, replacing with:
79554         (verify_true): New macro that returns true instead of void.
79555         (verify_type__): Remove.
79556         (verify): Use verify_true rather than verify_type__.
79557
79558 2005-09-26  Bruno Haible  <bruno@clisp.org>
79559
79560         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79561         is necessary.
79562         (lib_SOURCES): Remove mbchar.c.
79563         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79564         (Files): Add m4/mbrtowc.m4.
79565         * modules/mbiter: Likewise.
79566         * modules/mbuiter: Likewise.
79567
79568 2005-09-26  Bruno Haible  <bruno@clisp.org>
79569
79570         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79571         compile mbchar.c if they are not both present.
79572         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79573         * m4/mbiter.m4 (gl_MBITER): Likewise.
79574         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79575         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79576         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79577
79578 2005-09-25  Jim Meyering  <jim@meyering.net>
79579
79580         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79581         also uses socklen_t.
79582
79583 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79584
79585         * lib/utimens.c (ENOSYS): Define if not already defined.
79586         (futimens): Support having a null PATH if the file descriptor
79587         is nonnegative.
79588
79589         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79590         Remove.
79591         (__attribute): Define to empty unless GCC 3.1 or later.
79592         This works around a core dump on OpenBSD 3.4, which has GCC
79593         2.95.3, which dumps core when given __attribute__(()).  It also
79594         simplifies other tests, since we really don't want to bother with
79595         worrying about which ancient version of GCC supported what.
79596         Original problem reported by Yoann Vandoorselaere, with part of
79597         the fix suggested by Derek Price.
79598
79599 2005-09-24  Jim Meyering  <jim@meyering.net>
79600
79601         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79602         so we can once again use a positive bitfield width of 1 -- now we
79603         don't have to explain why we were using a bitfield width of 2.
79604
79605 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79608         and similarly for the other external symbols.  Problem reported
79609         by James Gallager.
79610
79611         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79612         bug reported by Jim Meyering.
79613
79614         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79615         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79616         not needed, since socklen is a prerequisite module.
79617
79618 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79621         Problem reported by Eric Blake.
79622         (getaddrinfo): Initialize se so that it's not garbage.
79623         Redo internal storage allocation so that it doesn't make unportable
79624         assumptions about alignment.
79625         Fix a memory leak.
79626
79627         * lib/utimens.c (futimens): Use futimesat if available.
79628         Prefer it to futimes since it doesn't have the futimes bug.
79629
79630         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79631         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79632         Instead, declare a function that returns a pointer to an array,
79633         and use verify_type__ to declare the size of the array.
79634         Problem and germ of a solution reported by Bruno Haible.
79635         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79636         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79637
79638 2005-09-23  Jim Meyering  <jim@meyering.net>
79639
79640         Sync from coreutils.
79641         Correct build failure (socklen_t not defined) on at least
79642         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79643         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79644
79645 2005-09-23  Jim Meyering  <jim@meyering.net>
79646
79647         * modules/getaddrinfo (Depends-on): Add socklen.
79648
79649 2005-09-23  Bruno Haible  <bruno@clisp.org>
79650
79651         * tests/test-verify.c: New file.
79652
79653 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         Sync from coreutils.
79656
79657         * modules/argmatch (Depends-on): Add verify.
79658         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79659         unistd-safer.
79660         * modules/save-cwd (Depends-on): Likewise.
79661
79662         * modules/openat (Files): Add lib/openat-die.c.
79663         (Depends-on): Remove error, exitfail.
79664         Add dirname.
79665
79666         * modules/verify: New file.
79667         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79668         with "verify" module.
79669
79670 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         Sync from coreutils.
79673
79674         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79675         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79676         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79677         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79678         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79679         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79680         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79681         Don't bother checking for string.h, stdlib.h, unistd.h.
79682         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79683         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79684         module's job.
79685         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79686         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79687
79688         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79689         (gl_GETDATE): Use it.
79690
79691         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79692
79693 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         Sync from coreutils.
79696
79697         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79698         stat-time.h.
79699         * lib/argmatch.h: Include verify.h
79700         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79701         (ARGMATCH_ASSERT): Remove; unused.
79702         * lib/canonicalize.c: Assume STDC_HEADERS.
79703         * lib/exclude.c: Include "strcase.h".
79704         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79705         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79706         and stdio-safer.h.
79707         (getusershell): Call fopen, not fopen_safer.
79708         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79709         Do not include unistd-safer.h.
79710         (save_cwd): Don't call fd_safer; no longer needed
79711         now that we include fcntl--.h.
79712
79713         * lib/getdate.y (relative_time): New type.
79714         (RELATIVE_TIME_0): New constant.
79715         (parser_control): Use relative_time instead of doing it ourselves.
79716         (%union): Add new relative_time rel member.
79717         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79718         Now typeless.
79719         (relunit, relunit_snumber): Now of type rel.
79720         (zone, rel, relunit, get_date): Adjust to above changes.
79721
79722         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79723         Do not include unistd-safer.h.
79724         (getloadavg): Don't call fd_safer; no longer needed
79725         now that we include fcntl--.h.
79726
79727         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79728         (make_dir_parents): Treat ENOSYS like EEXIST.
79729
79730         Improve quality of diagnostics on restore_cwd failure.
79731         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79732         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79733         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79734         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79735         each time through the loop.  Do not diagnose restore_cwd failure;
79736         that is the caller's job (and perhaps the caller does not care).
79737
79738         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79739         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79740         If the file already exists but is not a directory, don't bother
79741         to try to make its parents.
79742         Close potential file descriptor leak if we can't chdir("/") (!).
79743         Don't always return true if chdir($PWD) fails; return true only
79744         if the requested action was done successfully (except for the
79745         chdir($PWD)).
79746         Don't log final directory unless we actually made it.
79747         Refactor to avoid duplicate code to fix up permissions.
79748         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79749
79750         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79751         to make it a bit faster and (I hope) clearer.
79752         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79753         Fix bug in formats like %2N.
79754
79755         * lib/verify.h: New file.
79756
79757 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79758
79759         Sync from coreutils.
79760         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79761
79762 2005-09-22  Jim Meyering  <jim@meyering.net>
79763
79764         Sync from coreutils.
79765
79766         * m4/lstat.m4 (gl_FUNC_LSTAT):
79767         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79768         Remove obsolete comment.
79769         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79770         * m4/xstrtod.m4: Likewise.
79771
79772         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79773
79774 2005-09-22  Jim Meyering  <jim@meyering.net>
79775
79776         Sync from coreutils.
79777
79778         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79779
79780         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79781         the .tm_year member, since otherwise gcc-4.0 would now warn about
79782         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79783
79784         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79785         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79786
79787         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79788         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79789         when run in a time zone for which daylight savings time is in effect
79790         for the starting date.
79791
79792         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79793         stop us from restricting permissions of just-created absolute-named
79794         directories.
79795         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79796         to restore initial working directory.
79797         * lib/mkdir-p.c (make_dir_parents): New parameter:
79798         different_working_dir, to tell caller if/when we change the working
79799         directory and are unable to return to the initial one.
79800         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79801         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79802         `return false'.  This fixes a bug introduced on 2004-07-30.
79803
79804         * lib/openat.c (fdopendir): Be sure to close the supplied
79805         file descriptor before returning.  This makes our replacement
79806         implementation a little closer to Solaris's, where fdopendir
79807         ties the file descriptor to the returned DIR* pointer.
79808         * lib/openat.c (unlinkat): New function.
79809         * lib/openat.h (unlinkat): Add prototype.
79810         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79811         (openat_restore_fail): Rename from openat_restore_die.
79812         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79813
79814         Provide an alternative to exiting immediately upon save_cwd or
79815         restore_cwd failure.  Now, an application can arrange e.g.,
79816         to perform a longjump in that case.
79817         * lib/openat.c: Include dirname.h.
79818         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79819         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79820         and openat_restore_die rather than calling error directly.
79821         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79822
79823         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79824         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79825         define.
79826
79827         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79828         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79829                             int utc, int nanoseconds);
79830         Background:
79831         date should not have to allocate a megabyte of virtual memory to
79832         handle a format argument like +%1048575T.  When implemented with
79833         strftime, it must allocate such a buffer, use strftime to fill it
79834         in, print it, then free it.
79835         With fprintftime, it simply prints everything and exits.
79836         With no need for memory allocation, that's one fewer way to fail.
79837         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79838         optional field width, not before, so we accept %9:z, not %:9z.
79839         (my_strftime): Be sure to use L_('x') for literals.
79840
79841         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79842         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79843         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79844         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79845         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79846         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79847         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79848         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79849         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79850         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79851         * lib/xgethostname.c, lib/xreadlink.c:
79852         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79853
79854         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79855         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79856         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79857         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79858         and don't include <sys/file.h>).
79859
79860 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79861
79862         Sync from coreutils.
79863
79864         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79865         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79866         [!LDAV_DONE]: Avoid unused variable warning.
79867
79868 2005-09-21  Bruno Haible  <bruno@clisp.org>
79869
79870         * lib/unicodeio.h (unicode_to_mb): New declaration.
79871
79872 2005-09-20  Derek Price  <derek@ximbiot.com>
79873
79874         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79875         getaddrinfo.h.
79876
79877 2005-09-20  Bruno Haible  <bruno@clisp.org>
79878
79879         * gnulib-tool: Remove trailing slashes from the values specified for
79880         --source-base, --m4-base, --tests-base, --aux-dir.
79881         Suggested by Simon Josefsson <jas@extundo.com>.
79882
79883 2005-09-20  Bruno Haible  <bruno@clisp.org>
79884
79885         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79886         func_modules_to_filelist, func_import, func_create_testdir): Make all
79887         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79888         change when gnulib-tool is invoked in a different locale.
79889
79890 2005-09-19  Simon Josefsson  <jas@extundo.com>
79891
79892         * m4/socklen.m4: Fix typo.
79893
79894 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79895
79896         Use a consistent style for including <config.h>.
79897         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79898         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79899         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79900         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79901         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79902         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79903         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79904         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79905         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79906         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79907         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79908         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79909         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79910         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79911         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79912         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79913         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79914         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79915         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79916         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79917         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79918         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79919         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79920         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79921         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79922         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79923         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79924         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79925         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79926         lib/xstrtoumax.c, lib/yesno.c:
79927         Standardize inclusion of config.h.
79928         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79929         lib/inttostr.h:  Removed inclusion of config.h from header files.
79930         * lib/inttostr.c:  Adjusted in-tree users.
79931         * lib/timespec.h: Remove superfluous warning to include config.h.
79932         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79933         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79934         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79935         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79936         config.h with HAVE_CONFIG_H.
79937
79938 2005-09-19  Jim Meyering  <jim@meyering.net>
79939
79940         * modules/pathmax (License): Change to LGPL.
79941
79942 2005-09-19  Derek Price  <derek@ximbiot.com>
79943
79944         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79945
79946 2005-09-19  Bruno Haible  <bruno@clisp.org>
79947
79948         * gnulib-tool (import): Provide default for --tests-base.
79949
79950 2005-09-19  Bruno Haible  <bruno@clisp.org>
79951
79952         * doc/quote.texi: New file, extracted from gnulib.texi.
79953         * doc/ctime.texi: New file, extracted from gnulib.texi.
79954         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79955         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79956         * doc/gnulib.texi: Include them.
79957
79958 2005-09-18  Bruno Haible  <bruno@clisp.org>
79959
79960         Portability fix.
79961         * gnulib-tool (func_readlink): New function.
79962         (func_ln_if_changed): Use it.
79963
79964 2005-09-18  Bruno Haible  <bruno@clisp.org>
79965
79966         * gnulib-tool: Support --with-tests also with --import.
79967         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79968         (func_import): Use variables $testsbase and $inctests. Emit a
79969         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79970         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79971         SUBDIRS += $testsdir.
79972         (func_create_testdir): Update.
79973
79974 2005-09-18  Bruno Haible  <bruno@clisp.org>
79975
79976         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79977         instead of $dry_run.
79978         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79979         (func_ln_if_changed): Don't handle dry-run here.
79980         (func_import): In dry-run mode, detect more precisely which actions
79981         would be performed, and don't use "...ing" verbs.
79982
79983 2005-09-18  Bruno Haible  <bruno@clisp.org>
79984
79985         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79986         (func_import): Use join on two temporary files instead of three nested
79987         loops, in order to determine which files are new or old.
79988
79989 2005-09-18  Bruno Haible  <bruno@clisp.org>
79990
79991         * gnulib-tool (func_import): Comment out code that spits out the
79992         new files with --dry-run.
79993
79994 2005-09-18  Bruno Haible  <bruno@clisp.org>
79995
79996         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79997
79998 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * lib/stat-time.h: New file.
80001         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80002         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80003         in a different way.
80004         (timespec_cmp): New function.
80005         * lib/utimecmp.c: Include stat-time.h.
80006         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80007         members exist, not on the obsolescent ST_MTIM_NSEC.
80008         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80009
80010 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80013
80014 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80015
80016         * MODULES.html.sh (File system functions): Add stat-time.
80017         * modules/stat-time: New file.
80018         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80019         is now done in a different way, by the stat-time module.
80020         * modules/utimecmp (Depends-on): Add stat-time.
80021
80022 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * m4/st_mtim.m4: Remove.  Superseded by...
80025         * m4/stat-time.m4: New file.
80026         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80027         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80028
80029 2005-09-15  Derek Price  <derek@ximbiot.com>
80030
80031         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80032
80033 2005-09-15  Derek Price  <derek@ximbiot.com>
80034
80035         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80036         * lib/regex_internal.c: Ditto, using this...
80037         (__GNUC_PREREQ): ...new macro.
80038         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80039         using...
80040         (__GNUC_PREREQ): ...this new macro.
80041
80042         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80043
80044 2005-09-15  Derek Price  <derek@ximbiot.com>
80045             Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80048         changes, consolidating in...
80049         * lib/regex_internal.h: ...this file.
80050
80051 2005-09-13  Jim Meyering  <jim@meyering.net>
80052
80053         * lib/canon-host.c: Filter through gnu indent and reword comments
80054         slightly.
80055         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80056
80057 2005-09-13  Derek Price  <derek@ximbiot.com>
80058
80059         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80060         failure.
80061         Reported by Jim Meyering  <jim@meyering.net>.
80062
80063 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80064
80065         * lib/base64.c: Typo.
80066         (base64_encode): Put b64str in initialized data section.
80067
80068 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80069
80070         Merge glibc and coreutils changes into gnulib, plus a few
80071         extra fixes.
80072         * lib/md5.c: Use #error rather than a string.
80073         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80074         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80075         (__attribute__): Define to empty for non recent-GCC.
80076         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80077         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80078         Renamed from their non-__ counterparts, with new macros replacing
80079         them if not _LIBC.  Add __THROW attribute.
80080         (rol): Remove.
80081         (struct md5_ctx): Align buffer if using GCC.
80082         * lib/sha1.h (struct sha1_ctx): Likewise.
80083         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80084         The old name was backwards.
80085         (NOTSWAP): Remove; not used.
80086         (rol): New macro, moved here from md5.h.
80087         (sha1_process_block): Remove a FIXME that doesn't make sense.
80088
80089 2005-09-12  Derek Price  <derek@ximbiot.com>
80090
80091         Return usable errors from canon-host.
80092         * lib/canon-host.h: New file.
80093         * lib/canon-host.c (canon_host): Wrap...
80094         (canon_host_r): ...this new function, which now relies exclusively on
80095         getaddrinfo.
80096         (ch_strerror): New function.
80097         (last_cherror): New global.
80098         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80099         interface.
80100         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80101         void *.
80102         (freeaddrinfo): Free ai->ai_canonname when set.
80103
80104 2005-09-12  Derek Price  <derek@ximbiot.com>
80105
80106         Make canon-host require getaddrinfo.
80107         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80108         AC_LIBSOURCE canon-host.h.  Call...
80109         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80110         gl_GETADDRINFO.
80111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80112
80113 2005-09-12  Derek Price  <derek@ximbiot.com>
80114
80115         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80116         LGPL.
80117         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80118
80119 2005-09-12  Derek Price  <derek@ximbiot.com>
80120
80121         * lib/gai_strerror.c: Include config.h when available.  Include
80122         getaddrinfo.h before other headers to test interface.
80123         Reported by Larry Jones <lawrence.jones@ugs.com>.
80124
80125 2005-09-12  Derek Price  <derek@ximbiot.com>
80126             Paul Eggert  <eggert@cs.ucla.edu>
80127
80128         * modules/glob (Files): Add glob-libc.h.
80129
80130 2005-09-12  Derek Price  <derek@ximbiot.com>
80131             Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80134         glob_.h, glob-libc.h.
80135         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80136
80137 2005-09-12  Derek Price  <derek@ximbiot.com>
80138             Paul Eggert  <eggert@cs.ucla.edu>
80139
80140         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80141         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80142         protecting things that should be done only in gnulib contexts.
80143         * lib/glob_.h: New file, containing only the glob things needed for
80144         gnulib.
80145         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80146         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80147         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80148         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80149         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80150         and to respect the namespace rules better.
80151
80152 2005-09-08  Simon Josefsson  <jas@extundo.com>
80153
80154         * modules/socklen: New file.
80155
80156 2005-09-08  Simon Josefsson  <jas@extundo.com>
80157
80158         * m4/socklen.m4: New file.
80159
80160 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80161
80162         * modules/utimens (Files): Add m4/utimbuf.m4, since
80163         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80164         Reported by Sergey Poznyakoff.
80165
80166 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80169         definitions, since that's the preferred style in glibc.
80170         Fix a minor spacing issue, and update copyright notice to match
80171         glibc's.
80172
80173 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80176
80177 2005-09-06  Simon Josefsson  <jas@extundo.com>
80178
80179         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80180         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80181
80182 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80183
80184         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80185         warning.
80186
80187 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80188
80189         * config/srclist.txt: Add glibc bug 1302.
80190
80191 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80192
80193         Change bitset word type from unsigned int to unsigned long int,
80194         as this has better performance on typical 64-bit hosts.
80195         Port bitset code to hosts with unusual word sizes.
80196         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80197         (build_collating_symbol):
80198         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80199         argument is a bitset.  This is merely a style issue, but it makes
80200         it clearer that an entire array is expected.
80201         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80202         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80203         Port to the case where bitset_word is not the same as unsigned int.
80204         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80205         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80206         Likewise.
80207         * lib/regexec.c (check_dst_limits_calc_pos_1,
80208         check_subexp_matching_top):
80209         (build_trtable, group_nodes_into_DFAstates):
80210         Likewise.
80211         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80212         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80213         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80214         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80215         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80216         * lib/regcomp.c (optimize_subexps, lower_subexp):
80217         Work even if bitset_word has holes in its bitwise representation.
80218         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80219         * lib/regexec.c (check_dst_limits_calc_pos_1,
80220         check_subexp_matching_top):
80221         Likewise.
80222         * lib/regex_internal.c (re_string_reconstruct):
80223         Don't assume UCHAR_MAX == 255.
80224         * lib/regex_internal.h (bitset_set_all): Likewise.
80225         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80226         All uses changed.
80227         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80228         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80229         All uses changed.
80230         (BITSET_WORD_MAX): New macro.
80231         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80232         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80233         (bitset_empty, bitset_copy):
80234         Prefer sizeof (bitset) to multiplying it out ourselves.
80235         (bitset_not_merge): Remove; unused.
80236         (bitset_contain): Return bool, not unsigned int with one bit on.
80237         All callers changed.
80238         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80239         alignment than re_node_set; do this by defining a new internal
80240         type struct dests_alloc and using it to allocate memory.
80241
80242 2005-09-05  Bruno Haible  <bruno@clisp.org>
80243
80244         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80245         links.
80246
80247 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80248
80249         * modules/size_max (Makefile.am): Add size_max.h
80250
80251 2005-09-04  Derek Price  <derek@ximbiot.com>
80252
80253         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80254
80255 2005-09-03  Simon Josefsson  <jas@extundo.com>
80256
80257         * gnulib-tool: Fix typo.
80258
80259 2005-09-03  Simon Josefsson  <jas@extundo.com>
80260
80261         * config/srclist.txt: Add glibc bug 1293.
80262
80263 2005-09-03  Derek Price  <derek@ximbiot.com>
80264
80265         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80266         From Larry Jones <lawrence.jones@ugs.com>.
80267
80268 2005-09-02  Simon Josefsson  <jas@extundo.com>
80269
80270         * modules/socklen: New file.
80271
80272 2005-09-02  Simon Josefsson  <jas@extundo.com>
80273
80274         * modules/havelib: New module.
80275
80276         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80277         Use havelib.
80278
80279 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         Check for arithmetic overflow when calculating sizes, to prevent
80282         some buffer-overflow issues.  These patches are conservative, in the
80283         sense that when I couldn't determine whether an overflow was possible,
80284         I inserted a run-time check.
80285         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80286         macros.
80287         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80288         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80289         (re_xnrealloc, re_x2nrealloc): New inline functions.
80290         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80291         parse_bracket_exp):
80292         (build_equiv_class, build_charclass): Check for arithmetic overflow
80293         in size expression calculations.
80294         * lib/regex_internal.c (re_string_realloc_buffers):
80295         (build_wcs_upper_buffer, re_node_set_add_intersect):
80296         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80297         (re_dfa_add_node, register_state): Likewise.
80298         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80299         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80300         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80301         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80302
80303 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80304
80305         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80306         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80307
80308 2005-09-02  Bruno Haible  <bruno@clisp.org>
80309
80310         Support for lib vs. lib64 distinction on biarch platforms.
80311         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80312         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80314
80315 2005-09-02  Bruno Haible  <bruno@clisp.org>
80316
80317         * gnulib-tool (import): In the other first-use case, provide defaults
80318         as well.
80319
80320 2005-09-02  Bruno Haible  <bruno@clisp.org>
80321
80322         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80323         patches not yet found in the latest gettext release.
80324
80325 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80328         to avoid a collision with bits/local_lim.h in glibc.
80329         All uses changed.  Problem reported by Dmitry V. Levin in
80330         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80331
80332         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80333         bugs in int versus size_t comparisons.
80334         (re_string_context_at): Fix bug where the code assumed that
80335         Idx is signed.
80336
80337         Use bool where appropriate.
80338         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80339         All callers changed.
80340         (calc_eclosure_iter): Likewise, for ROOT arg.
80341         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80342         (build_charclass_op): Likewise, for NON_MATCH arg.
80343         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80344         (re_string_construct_common): Likewise, for ICASE arg.
80345         * lib/regexec.c (re_search_2_stub, re_search_stub):
80346         Likewise, for RET_LEN arg.
80347         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80348         (set_regs): Likewise, for FL_BACKTRACK arg.
80349         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80350         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80351         (calc_eclosure_iter, parse_bracket_exp):
80352         Use bool for internal variables that are booleans.
80353         * lib/regexec.c (re_search_internal, check_matching,
80354         proceed_next_node):
80355         (set_regs, build_sifted_states, sift_states_bkref):
80356         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80357         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80358         (find_collation_sequence_value):
80359         Likewise.
80360         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80361         (re_node_set_compare):
80362         Return bool, not int. All callers changed.
80363         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80364         (build_trtable, check_node_accept): Likewise.
80365         * lib/regex_internal.h: Include stdbool.h.
80366
80367         Fix bugs uncovered when converting to bool.
80368         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80369         failure instead of charging ahead blindly.
80370         * lib/regex_internal.c (register_state): Likewise.
80371         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80372         for freeing internal storage.
80373         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80374         bitset pieces used as boolean, to avoid undefined behavior
80375         on hosts that do int overflow checking.
80376
80377 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         * config/srclist.txt: Add glibc bugs 1285-1287.
80380
80381 2005-09-01  Jim Meyering  <jim@meyering.net>
80382
80383         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80384         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80385         Require gl_STAT_MACROS, too.
80386
80387 2005-09-01  Bruno Haible  <bruno@clisp.org>
80388
80389         * gnulib-tool (import): In the first-use case, provide defaults.
80390
80391 2005-09-01  Bruno Haible  <bruno@clisp.org>
80392
80393         * gnulib-tool (func_import): Remove the .tmp files.
80394
80395 2005-09-01  Bruno Haible  <bruno@clisp.org>
80396
80397         * gnulib-tool (func_import): Fix handling of symbolic links.
80398
80399 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80400
80401         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80402         old glibc regex code mishandles strings longer than 2**31 bytes.
80403         This patch fixes this when the regex code is used in gnulib
80404         (i.e., outside glibc).
80405
80406         This patch should not affect the use of the regex code inside
80407         glibc.  No doubt this problem also needs to be handled for glibc
80408         as well, but the result will be an incompatible change to the
80409         glibc ABI, and the old ABI will have to be supported too.  That
80410         can be the the subject for another patch.
80411
80412         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80413         governing whether the rest of this patch is active.  By default,
80414         the macro is disabled and the patch has no effect.
80415         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80416         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80417         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80418         (re_match_2, re_set_registers): Use the new types.
80419         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80420         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80421         New macros.
80422         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80423         (re_string_context_at, bin_tree_t, re_dfastate_t):
80424         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80425         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80426         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80427         (re_string_char_size_at, re_string_wchar_at):
80428         (re_string_elem_size_at):
80429         Use the new types and macros to port to 64-bit hosts.
80430         Use unsigned types for internal values, so that the code
80431         mostly works even for arrays larger than SSIZE_MAX.
80432         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80433         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80434         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80435         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80436         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80437         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80438         (calc_inveclosure, parse_dup_op, build_range_exp):
80439         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80440         (fetch_number, create_token_tree, mark_opt_subexp):
80441         Likewise.
80442         * lib/regex_internal.c (re_string_construct_common,
80443         create_ci_newstate):
80444         (create_cd_newstate, re_string_allocate, re_string_construct):
80445         (re_string_realloc_buffers, build_wcs_upper_buffer):
80446         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80447         (re_string_reconstruct, re_string_peek_byte_case):
80448         (re_string_fetch_byte_case, re_string_context_at):
80449         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80450         (re_node_set_init_copy, re_node_set_add_intersect):
80451         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80452         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80453         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80454         (re_acquire_state, re_acquire_state_context, register_state):
80455         Likewise.
80456         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80457         search_cur_bkref_entry):
80458         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80459         (re_search_internal, re_search_2_stub, re_search_stub)
80460         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80461         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80462         (update_cur_sifted_state, check_dst_limits):
80463         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80464         (check_subexp_limits, sift_states_bkref, merge_state_array):
80465         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80466         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80467         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80468         (expand_bkref_cache, check_node_accept_bytes):
80469         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80470         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80471         (acquire_init_state_context, check_halt_node_context):
80472         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80473         (sift_states_backward, clean_state_log_if_needed):
80474         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80475         (find_recover_state, transit_state_sb, transit_state_mb):
80476         (transit_state_bkref, build_trtable, match_ctx_clean):
80477         Likewise.
80478         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80479         to work around an assumption that REG_MISSING is negative.
80480
80481         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80482         (seek_collating_symbol_entry) [defined _LIBC]:
80483         (lookup_collation_sequence_value) [defined _LIBC]:
80484         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80485         Use prototypes rather than old-style function definitions.
80486         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80487         (transit_state_sb) [0]:
80488         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80489
80490         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80491         rm_eo.
80492
80493         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80494         (optimize_subexps, lower_subexp):
80495         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80496         since the signed shift might overflow.  Use 1u<<31 instead.
80497         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80498         Likewise.
80499         * lib/regexec.c (check_dst_limits_calc_pos_1,
80500         check_subexp_matching_top): Likewise.
80501
80502         * lib/regcomp.c (optimize_subexps, lower_subexp):
80503         Use CHAR_BIT rather than 8, for clarity.
80504         * lib/regexec.c (check_dst_limits_calc_pos_1):
80505         (check_subexp_matching_top): Likewise.
80506         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80507         have to worry about portability issues when shifting it left.
80508         Remove no-longer-needed test for table_size > 0.
80509         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80510         in a word, as the resulting behavior is undefined.
80511         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80512         in one case, a <= should have been an <, and in another case the
80513         whole test was missing.
80514         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80515         the standard name CHAR_BIT.
80516         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80517         this is not true on one's complement and signed-magnitude hosts.
80518
80519         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80520         next_last_offset.
80521         (struct re_dfa_t): Remove unused member states_alloc.
80522         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80523
80524 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80525
80526         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80527         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80528         and large-file glibc and in 32-bit large-file Solaris.
80529
80530 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80533         lengths fit in regoff_t; this isn't true if regoff_t is the same
80534         width as size_t.
80535         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80536         (= START + RANGE) instead of RANGE.  This avoids overflow
80537         problems when regoff_t is the same width as size_t.
80538         All callers changed.
80539         (re_search_2_stub): Check for overflow when adding the
80540         sizes of the two strings.
80541         (re_search_stub): Check for overflow when adding START
80542         to RANGE; if it occurs, substitute the extreme value.
80543
80544 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80545
80546         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80547
80548 2005-08-31  Jim Meyering  <jim@meyering.net>
80549
80550         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80551         a pointer-to-const.
80552         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80553         (register_state): Likewise.
80554         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80555         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80556         (group_nodes_into_DFAstates): Likewise.
80557
80558 2005-08-31  Jim Meyering  <jim@meyering.net>
80559
80560         * check-module: Add a FIXME comment.
80561
80562 2005-08-31  Eric Blake  <ebb9@byu.net>
80563
80564         * modules/unistd-safer (Files): Add unistd--.h.
80565         * modules/stdio-safer (Files): Add stdio--.h.
80566
80567 2005-08-31  Derek Price  <derek@ximbiot.com>
80568
80569         * lib/getdelim.c (getdelim): Return EOF on EOF.
80570         Reported by Larry Jones <lawrence.jones@ugs.com>.
80571
80572 2005-08-31  Bruno Haible  <bruno@clisp.org>
80573
80574         Avoid unnecessary diffs in the generated lib/Makefile.am.
80575         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80576         the generated files.
80577         (func_import): Don't set cmd.
80578
80579 2005-08-31  Bruno Haible  <bruno@clisp.org>
80580
80581         * lib/strstr.c: Include <stddef.h>, for NULL.
80582         * lib/strcasestr.c: Likewise.
80583         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80584
80585 2005-08-31  Bruno Haible  <bruno@clisp.org>
80586
80587         * gnulib-tool: New option --macro-prefix.
80588         (func_import): Use macro_prefix.
80589         (import): Handle option --macro-prefix.
80590
80591 2005-08-31  Bruno Haible  <bruno@clisp.org>
80592
80593         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80594         Also use new variables cached_lgpl, cached_libtool.
80595
80596 2005-08-31  Bruno Haible  <bruno@clisp.org>
80597
80598         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80599         always instantiating them.
80600
80601 2005-08-31  Bruno Haible  <bruno@clisp.org>
80602
80603         * gnulib-tool (func_import): Read the previous cached settings
80604         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80605         earlier added by gnulib but are now dropped. Warn when a gnulib file
80606         overwrites a non-gnulib file.
80607
80608 2005-08-31  Bruno Haible  <bruno@clisp.org>
80609
80610         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80611         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80612         projects that don't keep autogenerated files in CVS. Put into
80613         actioncmd only the specified modules, not the transitive closure.
80614
80615 2005-08-31  Bruno Haible  <bruno@clisp.org>
80616
80617         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80618         Create directories that shall be filled.
80619         (import): Don't look for gl_* macros in configure.ac. Recurse across
80620         all directories containing a gnulib-cache.m4 files, if meaningful.
80621
80622 2005-08-31  Bruno Haible  <bruno@clisp.org>
80623
80624         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80625         (import): Set seen_libtool when we see gl_LIBTOOL.
80626
80627 2005-08-31  Bruno Haible  <bruno@clisp.org>
80628
80629         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80630         declaration macro definitions from generated gnulib.m4.
80631
80632 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80633
80634         * lib/iconvme.h: Add prototype for iconv_alloc.
80635
80636 2005-08-29  Simon Josefsson  <jas@extundo.com>
80637
80638         * lib/iconvme.c: Fix errno.
80639
80640 2005-08-29  Bruno Haible  <bruno@clisp.org>
80641
80642         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80643         that it works when the directory contains spaces.
80644
80645 2005-08-29  Bruno Haible  <bruno@clisp.org>
80646
80647         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80648
80649 2005-08-29  Bruno Haible  <bruno@clisp.org>
80650
80651         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80652         Emit more advice.
80653
80654 2005-08-29  Bruno Haible  <bruno@clisp.org>
80655         and Stepan Kasal  <kasal@ucw.cz>
80656
80657         * check-module: If more parameters are given, check each of them
80658         separately; add more exceptions, as noted by Jim Meyering.
80659         (check_module): New procedure.
80660         (%exempt_header): Now contains all exceptions.
80661
80662 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80663
80664         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80665
80666 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80667
80668         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80669
80670 2005-08-28  Bruno Haible  <bruno@clisp.org>
80671
80672         * m4/gnulib-tool.m4: New file.
80673
80674 2005-08-27  Jim Meyering  <jim@meyering.net>
80675
80676         * modules/unistd-safer (Files): Add pipe-safer.c.
80677         * modules/fcntl-safer (Files): Add creat-safer.c.
80678
80679 2005-08-27  Jim Meyering  <jim@meyering.net>
80680
80681         * m4/stdlib-safer.m4: New file.  From coreutils.
80682         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80683         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80684         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80685         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80686         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80687
80688 2005-08-27  Jim Meyering  <jim@meyering.net>
80689
80690         * lib/fopen-safer.c: Merge minor changes from coreutils.
80691         * lib/dup-safer.c: Likewise.
80692         * lib/fd-safer.c: Likewise.
80693
80694         Merge from coreutils.
80695         * lib/stdio--.h: New file.
80696         * lib/stdlib--.h: New file.
80697         * lib/mkstemp-safer.c: New file.
80698
80699         GNU tar needs these.
80700         * lib/pipe-safer.c: New file.
80701         * lib/creat-safer.c: New file.
80702         * lib/fcntl--.h (creat): Define to creat_safer.
80703         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80704         * lib/unistd--.h (pipe): Define to pipe_safer.
80705         * lib/unistd-safer.h: Declare pipe_safer.
80706
80707 2005-08-26  Simon Josefsson  <jas@extundo.com>
80708
80709         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80710         Haible <bruno@clisp.org>.
80711
80712 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * lib/regex_internal.h: Remove all references to
80715         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80716         or better.
80717         (bitset_not, bitset_merge, bitset_not_merge):
80718         (bitset_mask, re_string_allocate, re_string_construct):
80719         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80720         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80721         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80722         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80723         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80724         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80725         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80726         (re_acquire_state_context):
80727         Remove unnecessary forward decls.
80728         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80729         Put __attribute at function definition,
80730         now that the function decl has been removed.
80731         * lib/regex_internal.c (re_string_peek_byte_case):
80732         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80733         Likewise.
80734
80735 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80736
80737         * m4/regex.m4: Add AC_PREREQ(2.50).
80738         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80739
80740 2005-08-25  Simon Josefsson  <jas@extundo.com>
80741
80742         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80743         __fsetlocking.
80744
80745 2005-08-25  Simon Josefsson  <jas@extundo.com>
80746
80747         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80748         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80749         GLIBC specific code.
80750
80751 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80752
80753         Make regex safe for g++.  This fixes one real bug (an "err"
80754         that should have been "*err").  g++ problem reported by
80755         Sam Steingold.
80756         * lib/regex_internal.h (re_calloc): New macro, consistent with
80757         re_malloc etc.  All callers of calloc changed to use re_calloc.
80758         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80759         not int.  All callers changed.
80760         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80761         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80762         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80763         (find_recover_state): Change "err" to "*err"; this fixes what
80764         appears to be a real bug.
80765         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80766         versus int.
80767
80768 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80769
80770         * modules/regex (Depends-on): Add malloc, since the code
80771         assumes that !malloc(0) means failure.
80772
80773 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80774
80775         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80776
80777         alloca modernization/simplification for regex.
80778         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80779         needs to be at the start of the file, and can be moved into
80780         regex_internal.h and simplified.
80781         * lib/regex_internal.h: Include <alloca.h>.
80782         (__libc_use_alloca) [!defined _LIBC]: New macro.
80783         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80784         now works outside glibc.
80785
80786 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80787
80788         * config/srclist.txt: Add glibc bugs 1241, 1245.
80789
80790 2005-08-25  Jim Meyering  <jim@meyering.net>
80791
80792         * lib/open-safer.c: Include <config.h>.
80793         Otherwise, we'd lose LARGEFILE support in any file using
80794         e.g. "fcntl--.h"
80795
80796 2005-08-25  Bruno Haible  <bruno@clisp.org>
80797
80798         * m4/minmax.m4: Require autoconf 2.52.
80799         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80800         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80801         alternatives of translit over the alphabet.
80802         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80803
80804 2005-08-24  Simon Josefsson  <jas@extundo.com>
80805
80806         * tests/test-getpass.c: New file.
80807
80808 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80811         for GNU regex features.
80812
80813 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80814
80815         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80816         * lib/regex.h (regerror): Likewise.
80817
80818         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80819         requires this.  (The code never needed it.)
80820
80821         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80822         All uses of recently-renamed identifiers changed to use the new,
80823         POSIX-compliant names.  The code will build and run just fine
80824         without these changes, but it's better to eat our own dog food
80825         and use the standard-conforming names.
80826
80827         * lib/regex.h: Fix a multitude of POSIX name space violations.
80828         These changes have an effect only for programs that define
80829         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80830         do not change anything for programs compiled in the normal way.
80831         Also, there is no effect on the ABI.
80832
80833         (_REGEX_SOURCE): New macro.
80834         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80835         defined and _GNU_SOURCE is not; this fixes a name space violation.
80836
80837         Rename the following macros to obey POSIX requirements.
80838         The old names are still visible as macros if _REGEX_SOURCE is defined.
80839         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80840         RE_BACKSLASH_ESCAPE_IN_LISTS.
80841         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80842         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80843         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80844         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80845         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80846         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80847         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80848         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80849         (REG_INTERVALS): renamed from RE_INTERVALS.
80850         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80851         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80852         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80853         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80854         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80855         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80856         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80857         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80858         RE_UNMATCHED_RIGHT_PAREN_ORD.
80859         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80860         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80861         (REG_DEBUG): renamed from RE_DEBUG.
80862         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80863         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80864         unusual, since we can't clash with the POSIX REG_ICASE.
80865         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80866         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80867         (REG_NO_SUB): renamed from RE_NO_SUB.
80868         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80869         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80870         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80871         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80872         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80873         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80874         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80875         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80876         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80877         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80878         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80879         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80880         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80881         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80882         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80883         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80884         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80885         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80886         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80887         (REG_FIXED): Renamed from REGS_FIXED.
80888         (REG_NREGS): Renamed from RE_NREGS.
80889
80890         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80891         of other REG_* macros, since POSIX says the user is allowed to
80892         #undef these macros selectively.
80893
80894         (reg_errcode_t): Update comment stating what other tables need
80895         to be consistent.
80896
80897         Rename the following enum values to obey POSIX requirements.
80898         The old names are still visible as macros.
80899         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80900         is not defined, since GNU is supposed to be a superset of POSIX as
80901         much as possible, and since we want reg_errcode_t to be a signed
80902         type for implementation consistency.
80903         (_REG_NOERROR): Renamed from REG_NOERROR.
80904         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80905         (_REG_BADPAT): Renamed from REG_BADPAT.
80906         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80907         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80908         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80909         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80910         (_REG_EBRACK): Renamed from REG_EBRACK.
80911         (_REG_EPAREN): Renamed from REG_EPAREN.
80912         (_REG_EBRACE): Renamed from REG_EBRACE.
80913         (_REG_BADBR): Renamed from REG_BADBR.
80914         (_REG_ERANGE): Renamed from REG_ERANGE.
80915         (_REG_ESPACE): Renamed from REG_ESPACE.
80916         (_REG_BADRPT): Renamed from REG_BADRPT.
80917         (_REG_EEND): Renamed from REG_EEND.
80918         (_REG_ESIZE): Renamed from REG_ESIZE.
80919         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80920         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80921         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80922         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80923         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80924
80925         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80926         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80927         changed.  But support the old name if the new one is not defined
80928         and if _REGEX_SOURCE.
80929
80930         Change the following member names in struct re_pattern_buffer.
80931         The old names are still supported if !_REGEX_SOURCE.
80932         The new names are always supported, regardless of _REGEX_SOURCE.
80933         (re_buffer): Renamed from buffer.
80934         (re_allocated): Renamed from allocated.
80935         (re_used): Renamed from used.
80936         (re_syntax): Renamed from syntax.
80937         (re_fastmap): Renamed from fastmap.
80938         (re_translate): Renamed from translate.
80939         (re_can_be_null): Renamed from can_be_null.
80940         (re_regs_allocated): Renamed from regs_allocated.
80941         (re_fastmap_accurate): Renamed from fastmap_accurate.
80942         (re_no_sub): Renamed from no_sub.
80943         (re_not_bol): Renamed from not_bol.
80944         (re_not_eol): Renamed from not_eol.
80945         (re_newline_anchor): Renamed from newline_anchor.
80946
80947         Change the following member names in struct re_registers.
80948         The old names are still supported if !_REGEX_SOURCE.
80949         The new names are always supported, regardless of _REGEX_SOURCE.
80950         (rm_num_regs): Renamed from num_regs.
80951         (rm_start): Renamed from start.
80952         (rm_end): Renamed from end.
80953
80954         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80955         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80956         Prepend __ to parameter names.
80957
80958         Undo yesterday's changes.
80959
80960 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80963         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80964         lib/regex.c.
80965
80966 2005-08-24  Jim Meyering  <jim@meyering.net>
80967
80968         Sync from coreutils.
80969         * m4/fcntl-safer.m4: New file.
80970
80971         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80972         and object files for this module.
80973
80974 2005-08-24  Jim Meyering  <jim@meyering.net>
80975
80976         Sync from coreutils.
80977         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80978
80979 2005-08-24  Jim Meyering  <jim@meyering.net>
80980
80981         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80982         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80983
80984 2005-08-24  Jim Meyering  <jim@meyering.net>
80985
80986         * modules/fcntl-safer: New module.
80987         * modules/fts (Depends-on): Add fcntl-safer.
80988         * MODULES.html.sh (File descriptor based Input/Output):
80989         Add fcntl-safer.
80990
80991 2005-08-24  Bruno Haible  <bruno@clisp.org>
80992
80993         Support for unit test modules.
80994         * modules/README: Mention tests modules.
80995         * modules/TEMPLATE-TESTS: New file.
80996         * gnulib-tool: New options --extract-tests-module, --with-tests and
80997         --tests-base (unused for the moment).
80998         (testsbase, inctests): New variables.
80999         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81000         (func_verify_module): Exclude TEMPLATE-TESTS.
81001         (func_verify_nontests_module, func_verify_tests_module): New functions.
81002         (func_get_dependencies): Add implicit dependency for tests modules.
81003         (func_get_tests_module): New function.
81004         (func_modules_transitive_closure): When --with-tests was specified,
81005         include the unit tests as well, unless explicitly avoided.
81006         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81007         (func_emit_tests_Makefile_am): New function.
81008         (func_create_testdir): When --with-tests was specified, emit a
81009         tests/ directory.
81010         * MODULES.html.sh (Future developments): Update.
81011
81012 2005-08-24  Bruno Haible  <bruno@clisp.org>
81013
81014         * modules/tls-tests: New file.
81015         * tests/test-tls.c: New file, from GNU gettext.
81016
81017 2005-08-24  Bruno Haible  <bruno@clisp.org>
81018
81019         * modules/lock-tests: New file.
81020         * tests/test-lock.c: New file, from GNU gettext.
81021
81022 2005-08-24  Bruno Haible  <bruno@clisp.org>
81023
81024         * lib/lock.h: Add multiple inclusion guard.
81025         * lib/tls.h: Add multiple inclusion guard.
81026
81027 2005-08-24  Bruno Haible  <bruno@clisp.org>
81028
81029         * gnulib-tool: Add support for the --aux-dir option to
81030         --create-testdir, --create-megatestdir, --test, --megatest.
81031         (func_create_testdir, func_create_megatestdir): Optionally emit a
81032         AC_CONFIG_AUX_DIR directive.
81033         (create-testdir, create-megatestdir, test, megatest): Provide a
81034         default value for $auxdir.
81035
81036 2005-08-24  Bruno Haible  <bruno@clisp.org>
81037
81038         * gnulib-tool (import): Use compound statement instead of subshell
81039         where possible.
81040
81041 2005-08-24  Bruno Haible  <bruno@clisp.org>
81042
81043         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81044
81045 2005-08-24  Bruno Haible  <bruno@clisp.org>
81046
81047         * gnulib-tool (func_version): Update.
81048
81049 2005-08-24  Bruno Haible  <bruno@clisp.org>
81050
81051         * gnulib-tool (func_import, func_create_testdir,
81052         func_create_megatestdir): Quote all autoconf macro arguments.
81053
81054 2005-08-24  Bruno Haible  <bruno@clisp.org>
81055
81056         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81057         option --force, because --force causes the aclocal.m4 of each
81058         subdirectory to be newer than the corresponding config.h.in.
81059
81060 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81061
81062         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81063         All contents moved to gl_REGEX.
81064         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81065         assume that it does.
81066
81067 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81068
81069         * lib/regex.h (REG_NOSYS)
81070         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81071         Define, since POSIX requires it as of 2001.
81072         (_REG_ENOSYS)
81073         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81074         New private symbol, used to keep the enum signed in all cases.
81075         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81076         Youngman in
81077         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81078
81079         * lib/regex_internal.c (re_string_skip_chars, register_state):
81080         (calc_state_hash):
81081         Remove forward decls; no longer needed now that we use prototypes.
81082         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81083         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81084         (clean_state_log_if_needed): Likewise.
81085
81086 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81087
81088         * config/srclist.txt: Add glibc bugs 1231-1233.
81089
81090 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         Fix problems reported by Sam Steingold in
81093         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81094         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81095         assumed that reg_errcode_t is a signed type, which is not
81096         necessarily true if _XOPEN_SOURCE is not defined.
81097         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81098         since some compilers warn about it otherwise.
81099
81100 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81101
81102         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81103         (init_word_char, create_initial_state, duplicate_node_closure):
81104         (fetch_token, peek_token_bracket, build_range_exp):
81105         (build_collating_symbol): Remove forward decls; no longer needed
81106         now that we use prototypes.
81107
81108         * lib/regcomp.c:
81109         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81110         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81111         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81112         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81113         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81114         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81115         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81116         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81117         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81118         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81119         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81120         (build_charclass, build_charclass_op, fetch_number, create_tree):
81121         (create_token_tree, mark_opt_subexp, duplicate_tree):
81122         Use prototypes rather than old-style definitions.
81123
81124         * lib/regex_internal.c:
81125         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81126         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81127         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81128         (re_string_reconstruct, re_string_peek_byte_case):
81129         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81130         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81131         (re_node_set_init_copy, re_node_set_add_intersect):
81132         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81133         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81134         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81135         (re_acquire_state, re_acquire_state_context, register_state):
81136         (create_ci_newstate, create_cd_newstate, free_state):
81137         Likewise.
81138         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81139         re_search_2):
81140         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81141         (re_search_internal, prune_impossible_nodes):
81142         (acquire_init_state_context, check_matching, static):
81143         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81144         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81145         (update_regs, sift_states_backward, build_sifted_states):
81146         (clean_state_log_if_needed, merge_state_array):
81147         (update_cur_sifted_state, add_epsilon_src_nodes):
81148         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81149         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81150         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81151         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81152         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81153         (check_arrival, check_arrival_add_next_nodes):
81154         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81155         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81156         (check_node_accept_bytes, check_node_accept, extend_buffers):
81157         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81158         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81159         (sift_ctx_init):
81160         Likewise.
81161
81162         * lib/regex_internal.h:
81163         (re_string_allocate, re_string_construct, re_string_reconstruct):
81164         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81165         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81166         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81167         (re_string_context_at, re_string_peek_byte_case):
81168         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81169         is defined, since we now use prototypes always.
81170
81171         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81172         C89 or better.  All uses removed.
81173
81174 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81175
81176         * config/srclist.txt: Add glibc bugs 1220-1227.
81177
81178 2005-08-20  Jim Meyering  <jim@meyering.net>
81179
81180         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81181         of unused local, dfa.
81182
81183 2005-08-20  Bruno Haible  <bruno@clisp.org>
81184
81185         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81186
81187 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81188
81189         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81190         (re_node_set_insert_last, re_dfa_add_node):
81191         Rename local variables to avoid GCC shadowing warnings.
81192
81193 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81194
81195         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81196         [defined lint]: Suppress bogus uninitialized-variable warnings.
81197
81198         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81199         and let the caller return REG_ESPACE if out of space.  This
81200         removes an uninitialied-variable warning with GCC 4.0.1, and also
81201         avoids taking the address of a local variable.  All callers
81202         changed.
81203
81204 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81205
81206         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81207         $LIBCSRC/posix/regexec.c.
81208         Add glibc bug 1217 for regcomp.c.
81209
81210 2005-08-19  Jim Meyering  <jim@meyering.net>
81211
81212         * lib/regexec.c (proceed_next_node): Redo local variables to
81213         avoid GCC shadowing warnings.
81214
81215 2005-08-18  Bruno Haible  <bruno@clisp.org>
81216
81217         * lib/strstr.c (strstr): Fix return value in multibyte case.
81218         * lib/strcasestr.c (strcasestr): Likewise.
81219
81220 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81223
81224 2005-08-17  Jim Meyering  <jim@meyering.net>
81225
81226         Make the %s format (seconds since the epoch) work for a negative
81227         number and when used with a zero-padded field width, e.g. %015s.
81228
81229         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81230         label so that it precedes the code to set `digits'.  Otherwise,
81231         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81232         print `00-22'.  Now, it prints `-0022', as it should.
81233
81234 2005-08-17  Bruno Haible  <bruno@clisp.org>
81235
81236         * modules/strstr (Files): Add m4/mbrtowc.m4.
81237         (Depends-on): Add mbuiter.
81238
81239 2005-08-17  Bruno Haible  <bruno@clisp.org>
81240
81241         * modules/strcasestr: New file.
81242         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81243         strcasestr.
81244
81245 2005-08-17  Bruno Haible  <bruno@clisp.org>
81246
81247         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81248
81249 2005-08-17  Bruno Haible  <bruno@clisp.org>
81250
81251         * modules/mbuiter: New file.
81252         * MODULES.html.sh (Extended multibyte and wide character utilities):
81253         Add mbuiter.
81254
81255 2005-08-17  Bruno Haible  <bruno@clisp.org>
81256
81257         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81258         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81259
81260 2005-08-17  Bruno Haible  <bruno@clisp.org>
81261
81262         * m4/strcasestr.m4: New file.
81263
81264 2005-08-17  Bruno Haible  <bruno@clisp.org>
81265
81266         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81267         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81268
81269 2005-08-17  Bruno Haible  <bruno@clisp.org>
81270
81271         * lib/strcasestr.h: New file.
81272         * lib/strcasestr.c: New file.
81273
81274 2005-08-17  Bruno Haible  <bruno@clisp.org>
81275
81276         * lib/strcasecmp.c: Use mbuiter.h.
81277
81278 2005-08-17  Bruno Haible  <bruno@clisp.org>
81279
81280         * lib/mbuiter.h: New file.
81281
81282 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81283
81284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81285         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81286         and gl_GETOPT are both invoked via different paths (as happens
81287         with GNU tar CVS because it uses both argp and getopt), the former
81288         wins.
81289
81290 2005-08-16  Bruno Haible  <bruno@clisp.org>
81291
81292         * modules/tls: New file.
81293         * MODULES.html.sh (Multithreading): Add tls.
81294
81295 2005-08-16  Bruno Haible  <bruno@clisp.org>
81296
81297         * modules/strnlen1: New file.
81298         * MODULES.html.sh (String handling): Add strnlen1.
81299
81300 2005-08-16  Bruno Haible  <bruno@clisp.org>
81301
81302         * modules/strcase (Files): Add m4/mbrtowc.m4.
81303         (Depends-on): Add strnlen1, mbchar.
81304
81305 2005-08-16  Bruno Haible  <bruno@clisp.org>
81306
81307         * modules/mbiter: New file.
81308         * MODULES.html.sh (Extended multibyte and wide character utilities):
81309         Add mbiter.
81310
81311 2005-08-16  Bruno Haible  <bruno@clisp.org>
81312
81313         * modules/mbfile: New file.
81314         * MODULES.html.sh (Extended multibyte and wide character utilities):
81315         Add mbfile.
81316
81317 2005-08-16  Bruno Haible  <bruno@clisp.org>
81318
81319         * modules/mbchar: New file.
81320         * MODULES.html.sh (Extended multibyte and wide character utilities):
81321         New section.
81322
81323 2005-08-16  Bruno Haible  <bruno@clisp.org>
81324
81325         * m4/tls.m4: New file, from GNU gettext.
81326
81327 2005-08-16  Bruno Haible  <bruno@clisp.org>
81328
81329         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81330         always.
81331         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81332
81333 2005-08-16  Bruno Haible  <bruno@clisp.org>
81334
81335         * m4/mbiter.m4: New file.
81336
81337 2005-08-16  Bruno Haible  <bruno@clisp.org>
81338
81339         * m4/mbfile.m4: New file.
81340
81341 2005-08-16  Bruno Haible  <bruno@clisp.org>
81342
81343         * m4/mbchar.m4: New file.
81344
81345 2005-08-16  Bruno Haible  <bruno@clisp.org>
81346
81347         * lib/tls.h: New file, from GNU gettext.
81348         * lib/tls.c: New file, from GNU gettext.
81349
81350 2005-08-16  Bruno Haible  <bruno@clisp.org>
81351
81352         * lib/strnlen1.h: New file.
81353         * lib/strnlen1.c: New file.
81354
81355 2005-08-16  Bruno Haible  <bruno@clisp.org>
81356
81357         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81358         (mbi_init): Update.
81359         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81360         NUL byte, not after it.
81361
81362 2005-08-16  Bruno Haible  <bruno@clisp.org>
81363
81364         * lib/strcase.h (strcasecmp): Add note in comments.
81365         * lib/strncasecmp.c: Use code from strcasecmp.c.
81366         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81367         (strcasecmp): Work correctly in multibyte locales.
81368
81369 2005-08-16  Bruno Haible  <bruno@clisp.org>
81370
81371         * lib/mbiter.h: New file.
81372
81373 2005-08-16  Bruno Haible  <bruno@clisp.org>
81374
81375         * lib/mbfile.h: New file.
81376
81377 2005-08-16  Bruno Haible  <bruno@clisp.org>
81378
81379         * lib/mbchar.h: New file.
81380         * lib/mbchar.c: New file.
81381
81382 2005-08-16  Bruno Haible  <bruno@clisp.org>
81383
81384         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81385         the valid ones. Makes the comparison operations transitive:
81386         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81387         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81388
81389 2005-08-15  Simon Josefsson  <jas@extundo.com>
81390
81391         * modules/ssize_t (License): Change to 'unlimited'.
81392
81393         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81394
81395 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81396
81397         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81398         Add comments for each pending glibc patch.
81399
81400 2005-08-15  Bruno Haible  <bruno@clisp.org>
81401
81402         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81403         __cplusplus is defined.
81404
81405 2005-08-14  Jim Meyering  <jim@meyering.net>
81406
81407         Sync from coreutils.
81408
81409         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81410         Use the hash-table-based cycle-detection code not just when
81411         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81412         Reported by James Youngman in
81413         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81414         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81415         FTS_TIGHT_CYCLE_CHECK.
81416         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81417         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81418         once again.
81419         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81420         * lib/fts.c (fd_safer): Remove decl.
81421         Include fcntl--.h rather than unistd-safer.h
81422         (fts_safe_changedir): Don't call fd_safer; no longer needed
81423         now that we include fcntl--.h.
81424
81425 2005-08-12  Simon Josefsson  <jas@extundo.com>
81426
81427         * modules/getndelim2: Use ssize_t module.
81428         * modules/getnline: Likewise.
81429         * modules/safe-read: Likewise.
81430         * modules/xreadlink: Likewise.
81431
81432         * modules/ssize_t: New file.
81433
81434 2005-08-12  Simon Josefsson  <jas@extundo.com>
81435
81436         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81437
81438 2005-08-12  Simon Josefsson  <jas@extundo.com>
81439
81440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81441         ssize_t.
81442
81443 2005-08-12  Simon Josefsson  <jas@extundo.com>
81444
81445         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81446         readline, getdelim and check_version.
81447         (Support for systems lacking ISO C 99: Sizes of integer types):
81448         Add size_max.
81449
81450 2005-08-12  Bruno Haible  <bruno@clisp.org>
81451
81452         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81453
81454 2005-08-11  Simon Josefsson  <jas@extundo.com>
81455
81456         * modules/readline: New file.
81457
81458         * modules/strnlen (Files): Add strnlen.h.
81459
81460 2005-08-11  Simon Josefsson  <jas@extundo.com>
81461
81462         * m4/readline.m4: New file.
81463
81464 2005-08-11  Simon Josefsson  <jas@extundo.com>
81465
81466         * lib/readline.h, readline.c: New file.
81467
81468 2005-08-11  Simon Josefsson  <jas@extundo.com>
81469
81470         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81471         gl_AVOID.
81472
81473 2005-08-11  Bruno Haible  <bruno@clisp.org>
81474
81475         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81476
81477 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81478
81479         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81480
81481 2005-08-10  Simon Josefsson  <jas@extundo.com>
81482
81483         * tests/test-iconvme.c: New file.
81484
81485 2005-08-10  Simon Josefsson  <jas@extundo.com>
81486
81487         * m4/strnlen.m4: New file.
81488
81489         * m4/strndup.m4: Don't check for strnlen declaration, done in
81490         strnlen.m4.
81491
81492 2005-08-10  Simon Josefsson  <jas@extundo.com>
81493
81494         * lib/strndup.c: Use strnlen.h.
81495
81496         * lib/strnlen.h: New file.
81497
81498 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81499
81500         * README: Typos.
81501
81502 2005-08-02  Simon Josefsson  <jas@extundo.com>
81503
81504         * modules/readline: New file.
81505
81506 2005-08-02  Simon Josefsson  <jas@extundo.com>
81507
81508         * modules/getdelim: New file.
81509
81510         * modules/getline: Rewrite, don't use getndelim2.
81511
81512 2005-08-02  Simon Josefsson  <jas@extundo.com>
81513
81514         * m4/getline.m4: Separate out getdelim stuff into separate module.
81515
81516         * m4/getdelim.m4: New file.
81517
81518 2005-08-02  Simon Josefsson  <jas@extundo.com>
81519
81520         * lib/getline.h, getline.c: Rewrite.
81521
81522         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81523
81524 2005-07-31  Bruno Haible  <bruno@clisp.org>
81525
81526         * lib/lock.h (gl_lock_initializer): New macro.
81527         (gl_lock_define_initialized): Use it.
81528         (gl_rwlock_initializer): New macro.
81529         (gl_rwlock_define_initialized): Use it.
81530         (gl_recursive_lock_initializer): New macro.
81531         (gl_recursive_lock_define_initialized): Use it.
81532
81533 2005-07-30  Karl Berry  <karl@gnu.org>
81534
81535         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81536         Report from Ben Pfaff, regarding getopt.
81537
81538 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81539
81540         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81541         normal way.
81542         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81543         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81544         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81545         (gl_GETOPT): Use the new macros.  Most of the implementation
81546         is moved to the new macros.  This is for programs like Emacs
81547         that don't want all the functionality of gl_GETOPT.
81548
81549 2005-07-26  Bruno Haible  <bruno@clisp.org>
81550
81551         * m4/lock.m4: Update from GNU gettext.
81552
81553 2005-07-26  Bruno Haible  <bruno@clisp.org>
81554
81555         * lib/lock.h: Update from GNU gettext.
81556         * lib/lock.c: Update from GNU gettext.
81557
81558 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81559
81560         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81561         obsolescent AC_TRY_RUN.  Include the default includes files, for
81562         'exit'.
81563
81564 2005-07-24  Bruno Haible  <bruno@clisp.org>
81565
81566         * modules/visibility: New file.
81567         * MODULES.html.sh (Misc): Add visibility.
81568
81569 2005-07-24  Bruno Haible  <bruno@clisp.org>
81570
81571         * m4/visibility.m4: New file.
81572
81573 2005-07-24  Bruno Haible  <bruno@clisp.org>
81574
81575         * doc/visibility.texi: New file.
81576
81577 2005-07-22  Bruno Haible  <bruno@clisp.org>
81578
81579         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81580         $(ALLOCA_H), redundant through BUILT_SOURCES.
81581         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81582         redundant through BUILT_SOURCES.
81583         * modules/byteswap (Makefile.am): Remove explicit dependency on
81584         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81585         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81586         $(FNMATCH_H), redundant through BUILT_SOURCES.
81587         * modules/getopt (Makefile.am): Remove explicit dependency on
81588         $(GETOPT_H), redundant through BUILT_SOURCES.
81589         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81590         redundant through BUILT_SOURCES.
81591         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81592         redundant through BUILT_SOURCES.
81593         * modules/stdbool (Makefile.am): Remove explicit dependency on
81594         $(STDBOOL_H), redundant through BUILT_SOURCES.
81595         * modules/stdint (Makefile.am): Remove explicit dependency on
81596         $(STDINT_H), redundant through BUILT_SOURCES.
81597         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81598         Remove explicit dependency on $(SYSEXITS_H).
81599         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81600
81601 2005-07-18  Simon Josefsson  <jas@extundo.com>
81602
81603         * lib/check-version.c (check_version): Accept identical versions too.
81604
81605 2005-07-18  Bruno Haible  <bruno@clisp.org>
81606
81607         * modules/lock: New file.
81608         * MODULES.html.sh (Multithreading): New section.
81609
81610 2005-07-18  Bruno Haible  <bruno@clisp.org>
81611
81612         * m4/lock.m4: New file, from GNU gettext.
81613
81614 2005-07-18  Bruno Haible  <bruno@clisp.org>
81615
81616         * lib/lock.h: New file, from GNU gettext.
81617         * lib/lock.c: New file, from GNU gettext.
81618
81619 2005-07-18  Bruno Haible  <bruno@clisp.org>
81620
81621         * lib/lock.h (gl_once_t): New type.
81622         (gl_once_define, gl_once): New macros.
81623         * lib/lock.c (fresh_once): New variable.
81624         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81625         functions.
81626
81627 2005-07-16  Simon Josefsson  <jas@extundo.com>
81628
81629         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81630         workaround, suggested by Bruno.
81631
81632 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81633
81634         * modules/xalloc (Depends-on): Add xalloc-die.
81635         * modules/xvasprintf (Depends-on): Add xalloc-die.
81636
81637 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81638
81639         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81640         with a minor change.
81641
81642 2005-07-15  Bruno Haible  <bruno@clisp.org>
81643
81644         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81645         When using lib/poll.c, define poll as rpl_poll.
81646
81647 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * modules/argp (Depends-on): Remove unlocked-io.
81650
81651 2005-07-14  Derek Price  <derek@ximbiot.com>
81652
81653         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81654         for glob symlink bug.
81655
81656 2005-07-14  Bruno Haible  <bruno@clisp.org>
81657
81658         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81659         Instead, test for *_unlocked function declarations directly.
81660
81661 2005-07-11  Simon Josefsson  <jas@extundo.com>
81662
81663         * modules/size_max: New file.
81664
81665         * modules/xsize: Depend on size_max module for size_max.m4.
81666
81667 2005-07-11  Simon Josefsson  <jas@extundo.com>
81668
81669         * lib/size_max.h: New file.
81670
81671 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81674         copyright symbol and the year.
81675         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81676         (version_etc_va): Use parameterized copyright notice.
81677         Reword to conform to the current GNU coding standards.
81678
81679 2005-07-11  Karl Berry  <karl@gnu.org>
81680
81681         * doc/gnulib.texi (Quoting): new node.
81682         (Initial import): more info, from Patrice.
81683
81684 2005-07-11  Bruno Haible  <bruno@clisp.org>
81685
81686         * gnulib-tool (func_usage): Document option --avoid.
81687         (Command line options): Handle --avoid.
81688         (func_acceptable): New function.
81689         (func_modules_transitive_closure): Use it.
81690
81691 2005-07-11  Bruno Haible  <bruno@clisp.org>
81692
81693         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81694         Reported by Jim Meyering.
81695
81696 2005-07-10  Bruno Haible  <bruno@clisp.org>
81697
81698         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81699         Needed when size_t is smaller than 'unsigned int'.
81700         Reported by Paul Eggert.
81701
81702 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81703
81704         * modules/argp (Depends-on): Add unlocked-io
81705
81706 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81707
81708         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81709         block of defines.
81710
81711 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81712
81713         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81714         fix now.
81715
81716 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81717         and Paul Eggert  <eggert@cs.ucla.edu>
81718
81719         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81720         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81721
81722 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81723
81724         * modules/regex (Files): Add lib/regex_internal.c,
81725         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81726         (Depends-on): Add extensions.
81727         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81728
81729 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81730
81731         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81732         pathconf.
81733         * m4/same.m4 (gl_SAME): Likewise.
81734         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81735
81736         * m4/regex.m4: Adjust to new libc regex implementation.
81737         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81738         all the .c and .h parts of (the new) regex.
81739         Quote the m4 stuff better.
81740         Check for RE_ICASE bug of old gnulib.
81741         Check for REG_STARTEND of recent libc.
81742         Rename local variables from jm_* to gl_*.
81743         Quote operand of "test -f".
81744         Say "recent enough" version of libc, not "version 2".
81745         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81746         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81747         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81748         Remove check for btowc, isascii.
81749         Require AM_LANGINFO_CODESET.
81750
81751 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * lib/regex.c, regex.h: Sync from libc.
81754         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81755         * lib/regexec.c:
81756         New files, synced from libc, except that regex_internal.h
81757         currently has a small porting fix.
81758
81759 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81760
81761         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81762         regex_internal.c, regexec.c.
81763         Add regex_internal.h too, but as a comment, since the libc version
81764         is currently broken in gnulib mode.
81765
81766 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81767
81768         Support programs like Emacs that use gnulib but not gettext.
81769         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81770         * modules/gettext-h: New file.
81771         * modules/gettext (Files): Remove lib/gettext.h.
81772         (Depends-on): Add gettext-h.
81773         (Makefile.am): Remove lib_SOURCES.
81774         * modules/argmatch, modules/c-stack, modules/closeout:
81775         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81776         * modules/execute, modules/file-type, modules/getaddrinfo:
81777         * modules/getopt, modules/human, modules/javacomp:
81778         * modules/javaexec, modules/mkdir-p, modules/obstack:
81779         * modules/openat, modules/pagealign_alloc, modules/pipe:
81780         * modules/quotearg, modules/regex, modules/rpmatch:
81781         * modules/unicodeio, modules/userspec, modules/version-etc:
81782         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81783         * modules/xsetenv:
81784         Depend on gettext-h, not gettext.
81785
81786 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81787
81788         * gnulib-tool (func_import): Add support for 'public domain' license.
81789         * modules/alloca, modules/atexit, modules/memmove:
81790         Now public domain, not GPL.
81791         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81792         * modules/realloc, modules/strerror, modules/strtod:
81793         Now LGPL, not GPL.
81794
81795 2005-07-05  Bruno Haible  <bruno@clisp.org>
81796
81797         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81798         autoconf CVS. Needed for mingw.
81799
81800 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81801
81802         Remove the dependency of the strftime module on the tzset module.
81803         * modules/strftime (Depends-on): Remove dependency on tzset.
81804
81805 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81806
81807         Remove the dependency of the strftime module on the tzset module.
81808         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81809         gl_FUNC_TZSET_CLOBBER.
81810
81811 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81812
81813         Remove the dependency of the strftime module on the tzset module.
81814         * lib/strftime.c (my_strftime)
81815         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81816         Copy the input structure, to work around some of the bug with
81817         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81818         Solaris releases, you should also use the tzset module, but we won't
81819         require it as a dependency any more since we don't want LGPLed code
81820         to depend on GPLed code.
81821
81822 2005-07-02  Jim Meyering  <jim@meyering.net>
81823
81824         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81825         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81826         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81827         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81828
81829 2005-07-02  Jim Meyering  <jim@meyering.net>
81830
81831         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81832
81833 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81834
81835         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81836         declares only 'struct timespec;' (!).
81837
81838 2005-07-01  Jim Meyering  <jim@meyering.net>
81839
81840         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81841         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81842         * lib/save-cwd.c, tempname.c:
81843         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81844         and don't include <sys/file.h>).
81845
81846 2005-06-29  Jim Meyering  <jim@meyering.net>
81847
81848         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81849         type name.  Use the variable name instead.
81850         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81851         Likewise.
81852
81853 2005-06-28  Simon Josefsson  <jas@extundo.com>
81854
81855         * modules/check-version (Files): Add check-version.m4.
81856
81857 2005-06-28  Simon Josefsson  <jas@extundo.com>
81858
81859         * m4/check-version.m4: New file, suggested by Jim Meyering
81860         <jim@meyering.net>.
81861
81862 2005-06-28  Simon Josefsson  <jas@extundo.com>
81863
81864         * lib/check-version.h, lib/check-version.c: New files.
81865
81866 2005-06-28  Simon Josefsson  <jas@extundo.com>
81867
81868         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81869         collision with global variable.  Better indentation.  Don't
81870         increment buffer pointer beyond buffer end.  Based on comments
81871         from Paul Eggert <eggert@cs.ucla.edu>.
81872
81873         * lib/base64.h: Indent.
81874
81875 2005-06-28  Simon Josefsson  <jas@extundo.com>
81876
81877         * doc/gnulib.texi (Library version handling): New section.
81878
81879 2005-06-28  Jim Meyering  <jim@meyering.net>
81880
81881         * check-module (find_included_lib_files): Hard-code another
81882         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81883         but modules/fts-lgpl (correctly) does not list those files.
81884
81885         * modules/canonicalize (Files): Add lib/pathmax.h.
81886
81887 2005-06-25  Simon Josefsson  <jas@extundo.com>
81888
81889         * modules/check-version: New file.
81890
81891 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81892
81893         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81894         initializer of struct addrinfo, as an indication that we don't
81895         care how many members the structure has.
81896
81897 2005-06-24  Derek Price  <derek@ximbiot.com>
81898         and Bruno Haible  <bruno@clisp.org>
81899
81900         Remove stat module & update lstat.
81901         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81902         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81903         * m4/stat.m4: Remove this file.
81904
81905 2005-06-24  Derek Price  <derek@ximbiot.com>
81906         and Bruno Haible  <bruno@clisp.org>
81907
81908         Remove stat module & update lstat.
81909         * lib/stat.c: Remove this file...
81910         (slash_aware_lstat): ...moving this content and its support...
81911         * lib/lstat.c (rpl_lstat): ...into here.
81912         * lib/lstat.h: New file.
81913
81914 2005-06-24  Derek Price  <derek@ximbiot.com>
81915         and Bruno Haible  <bruno@clisp.org>
81916
81917         Remove stat module & update lstat.
81918         * config/srclist.txt (libc sources): Remove stat.
81919
81920 2005-06-24  Derek Price  <derek@ximbiot.com>
81921         and Bruno Haible  <bruno@clisp.org>
81922
81923         Remove stat module & update lstat.
81924         * MODULES.html.sh (stat): Remove.
81925         * MODULES.html: Regenerated.
81926         * modules/lstat (Description): Correct function name.
81927         (Files): Add "lstat.h".
81928         (Depends-on): Remove stat, add xalloc, stat-macros.
81929         * modules/stat: Remove this file.
81930         (Include): Add "lstat.h", remove <sys/stat.h>.
81931
81932 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81933
81934         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81935         (ranged_convert): Don't save conversion in a temporary struct.
81936         This causes a warning with GCC 4.0.0, and anyway in the typical
81937         case it's not worth the extra 100 bytes or so of code.
81938         (ranged_convert, __mktime_internal): When calling a function via a
81939         pointer P, use P () rather than (*P) (), as we now assume C89 or
81940         better.
81941
81942 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81945         "who -r" failed to give output.  Problem reported by Tim Waugh.
81946
81947         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81948         (xcalloc): Use it to avoid needless tests.
81949         Problem reported by Jim Meyering.
81950
81951 2005-06-20  Derek Price  <derek@ximbiot.com>
81952
81953         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81954         unnecessary for Autoconfs > 2.59c.
81955
81956 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81957
81958         * lib/argp.h (__option_is_short): Check upper limit of
81959         __key. Isprint() requires its argument to have the value
81960         of an unsigned char or EOF.
81961
81962 2005-06-16  Jim Meyering  <jim@meyering.net>
81963
81964         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81965         when either N or S is zero.
81966
81967 2005-06-16  Derek Price  <derek@ximbiot.com>
81968
81969         * m4/bison.m4: Declare YACC & YFLAGS precious.
81970
81971 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81974         multibyte string or pattern, fall back on unibyte matching.
81975         Problem reported by James Youngman.
81976
81977 2005-06-08  Bruno Haible  <bruno@clisp.org>
81978
81979         * modules/csharpcomp: New file.
81980         * MODULES.html.sh (C#): Add csharpcomp.
81981
81982 2005-06-08  Bruno Haible  <bruno@clisp.org>
81983
81984         * m4/csharpcomp.m4: New file, from GNU gettext.
81985
81986 2005-06-08  Bruno Haible  <bruno@clisp.org>
81987
81988         * lib/csharpcomp.h: New file, from GNU gettext.
81989         * lib/csharpcomp.c: New file, from GNU gettext.
81990         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81991
81992 2005-06-08  Bruno Haible  <bruno@clisp.org>
81993
81994         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81995         warning on mingw.
81996
81997 2005-06-07  Derek Price  <derek@ximbiot.com>
81998
81999         Sync from CVS.
82000         * lib/glob_.h: Indent nested #ifdef.
82001
82002 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         Sync from coreutils.
82005         Use "file name" when talking about file names, instead of "filename"
82006         or "path", as per the GNU coding standards.
82007         * lib/mkdir-p.c: Renamed from makepath.c.
82008         (make_dir_parents): Renamed from make_path.  All callers changed.
82009         * lib/mkdir-p.h: Likewise.  All includers changed.
82010         * lib/filenamecat.c: Renamed from path-concat.c.
82011         (file_name_concat): Renamed from path_concat.  All callers changed.
82012         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82013         * lib/filenamecat.h: Likewise.  All includers changed.
82014         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82015         in comments or local variable names.
82016         * lib/basename.c: Likewise.
82017         * lib/canonicalize.c, canonicalize.h: Likewise.
82018         * lib/dirname.c, dirname.h: Likewise.
82019         * lib/euidaccess.c: Likewise.
82020         * lib/exclude.c: Likewise
82021         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82022         * lib/fsusage.c, fsuage.h: Likewise.
82023         * lib/fts.c, fts_.h: Likewise.
82024         * lib/getcwd.c: Likewise.
82025         * lib/getloadavg.c: Likewise.
82026         * lib/mkstemp.c: Likewise.
82027         * lib/mountlist.c, mountlist.h: Likewise.
82028         * lib/openat.c, openat.h: Likewise.
82029         * lib/readlink-stub.c: Likewise.
82030         * lib/readutmp.c, readutmp.h: Likewise.
82031         * lib/rename.c: Likewise.
82032         * lib/rmdir.c: Likewise.
82033         * lib/same.c: Likewise.
82034         * lib/savedir.c: Likewise.
82035         * lib/stripslash.c: Likewise.
82036         * lib/tempname.c: Likewise.
82037         * lib/xreadlink.c: Likewise.
82038         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82039         All uses changed.
82040         * lib/exclude.h: Likewise.
82041
82042         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82043         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82044         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82045         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82046         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82047         files have been getting away with it for years (MORE/BSD 4.3
82048         is extinct now).
82049         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82050         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82051
82052         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82053         Define to 256, not 255, as per modern POSIX.
82054
82055 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82056
82057         Sync from coreutils.
82058         Use "file name" when talking about file names, instead of "filename"
82059         or "path", as per the GNU coding standards.
82060         * MODULES.html.sh: mkdir-p renamed from makepath.
82061         filenamecat renamed from path-concat.
82062         * modules/filenamecat: Renamed from modules/path-concat.
82063         (Files): filenamecat.h and filenamecat.c renamed from
82064         path-concat.h and path-concat.c.
82065         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82066         (Include): filenamecat.h, not path-concat.h.
82067         * modules/mkdir-p: Renamed from modules/makepath.
82068         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82069         makepath.c.
82070         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82071         (Include): mkdir-p.h, not makepath.h.
82072
82073 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82074
82075         Sync from coreutils.
82076         * m4/mkdir-p.m4: Renamed from makepath.m4.
82077         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82078         Rename files from makepath.c to mkdir-p.c, and from
82079         makepath.h to mkdir-p.h.
82080         * m4/filenamecat.m4: Renamed from path-concat.m4.
82081         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82082         Rename files from path-concat.c to filenamecat.c,
82083         and from path-concat.h to filenamecat.h.
82084         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82085         "file name" in local variables or comments.
82086         * m4/rename.m4: Likewise.
82087
82088 2005-06-01  Bruno Haible  <bruno@clisp.org>
82089
82090         * modules/csharpexec: New file.
82091         * MODULES.html.sh (C#): New section.
82092
82093 2005-06-01  Bruno Haible  <bruno@clisp.org>
82094
82095         * m4/csharp.m4: New file, from GNU gettext.
82096         * m4/csharpexec.m4: New file, from GNU gettext.
82097
82098 2005-06-01  Bruno Haible  <bruno@clisp.org>
82099
82100         * lib/csharpexec.h: New file, from GNU gettext.
82101         * lib/csharpexec.c: New file, from GNU gettext.
82102         * lib/csharpexec.sh.in: New file, from GNU gettext.
82103
82104 2005-05-31  Derek Price  <derek@ximbiot.com>
82105             Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         Sync from cvs.
82108         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82109
82110 2005-05-31  Derek Price  <derek@ximbiot.com>
82111             Paul Eggert  <eggert@cs.ucla.edu>
82112
82113         Sync from cvs.
82114         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82115
82116 2005-05-29  Derek Price  <derek@ximbiot.com>
82117
82118         * config/srclist.txt (glob_.h, glob.c): Add these files.
82119
82120 2005-05-29  Derek Price  <derek@ximbiot.com>
82121
82122         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82123         * modules/glob: New file.
82124         * modules/getlogin_r: Add link to POSIX spec in description.
82125
82126 2005-05-29  Derek Price  <derek@ximbiot.com>
82127             Paul Eggert  <eggert@cs.ucla.edu>
82128
82129         * m4/glob.m4: New file.
82130
82131 2005-05-29  Derek Price  <derek@ximbiot.com>
82132             Paul Eggert  <eggert@cs.ucla.edu>
82133
82134         * lib/glob_.h, lib/glob.c: New files.
82135
82136 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82137
82138         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82139         * modules/fts-lgpl (Depends-on): Remove gettext.
82140
82141 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82144         and don't require gt_INTTYPES_PRI.
82145
82146 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82147
82148         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82149
82150         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82151         the configuration hassle isn't worth it.
82152         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82153         (LONGEST_MODIFIER, PRIuMAX): Remove.
82154
82155 2005-05-27  Bruno Haible  <bruno@clisp.org>
82156
82157         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82158
82159 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82160
82161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82162         _POSIX_PTHREAD_SEMANTICS for Solaris.
82163
82164 2005-05-25  Derek Price  <derek@ximbiot.com>
82165
82166         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82167
82168 2005-05-25  Derek Price  <derek@ximbiot.com>
82169             Paul Eggert  <eggert@cs.ucla.edu>
82170
82171         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82172         * lib/getlogin_r.c, getlogin_r.h: New files.
82173
82174 2005-05-25  Bruno Haible  <bruno@clisp.org>
82175             Derek Price  <derek@ximbiot.com>
82176
82177         * lib/getlogin_r.h: Simplify API documentation.
82178
82179 2005-05-23  Derek Price  <derek@ximbiot.com>
82180
82181         * modules/minmax (Files): Add m4/minmax.m4.
82182         (configure.ac): Add gl_MINMAX.
82183
82184 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82187         so that unistd-safer.h (GPL'ed code) need not be included.
82188
82189 2005-05-22  Bruno Haible  <bruno@clisp.org>
82190
82191         * m4/minmax.m4: New file.
82192         Based on a patch by Derek Price <derek@ximbiot.com>.
82193
82194 2005-05-22  Bruno Haible  <bruno@clisp.org>
82195
82196         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82197         (INT64_MIN): Fix definition.
82198         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82199
82200         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82201         NEED_SIGNED_INT_TYPES.
82202
82203         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82204         HAVE_SYSTEM_INTTYPES.
82205
82206 2005-05-22  Bruno Haible  <bruno@clisp.org>
82207
82208         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82209         Also include <sys/param.h> if it defines MIN, MAX.
82210         Based on a patch by Derek Price <derek@ximbiot.com>.
82211
82212 2005-05-21  Jim Meyering  <jim@meyering.net>
82213
82214         * modules/fts (Files): Add m4/inttypes-pri.m4.
82215         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82216
82217 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82218
82219         New fts module.
82220         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82221         (setup_dir, free_dir): New functions.
82222         (enter_dir, leave_dir): Define trivial
82223         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82224         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82225         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82226         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82227         Move to fts-cycle.c.
82228         (fts_open): Use setup_dir.
82229         (fts_close): Use free_dir.
82230         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82231         This adds a label and some gotos, but the alternatives were messier.
82232         Check for memory allocation failure when entering a dir.
82233         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82234         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82235         (FTS): New member fts_cycle, that is a union that contains the
82236         old active_dir_ht and cycle_state.  All uses changed to mention
82237         fts_cycle.ht and fts_cycle.state.
82238         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82239         fts.c, with the following changes:
82240         (setup_dir, free_dir): New functions.
82241         (enter_dir): Now returns bool.  Return true if successful, false
82242         if memory exhausted.  All callers changed.
82243         Do not bother partly cleaning up on
82244         memory allocation failure; that is free_dir's job.
82245         However, free ad if hash_insert fails, to avoid memory leak.
82246         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82247         fts->fts_options to see which union member to use.
82248
82249 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82250
82251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82252         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82253
82254 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82255
82256         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82257
82258 2005-05-20  Jim Meyering  <jim@meyering.net>
82259
82260         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82261         Now a macro, to pacify GCC.
82262
82263 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82264
82265         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82266         of -1.
82267
82268 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82269
82270         * lib/chown.c (rpl_chown): Return -1 on failure.
82271
82272 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82273
82274         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82275         Don't check for stddef.h.
82276         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82277         don't use its results.
82278         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82279         since we include them unconditionally.  Don't require
82280         AM_STDBOOL_H, since stdbool is a prerequisite.
82281         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82282         since we assume C89 or better.
82283         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82284         as we don't use their results.
82285         Don't check for fchdir, memmove, memset, strrchr, as we use
82286         them unconditionally.
82287         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82288         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82289
82290 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82291
82292         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82293         Include <stddef.h> unconditionally, since we assume C89 now.
82294         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82295         * lib/fts.c: Include fts_.h first, to check interface.
82296         Do not include intprops.h; no longer needed.
82297         Include cycle-check.h and hash.h, since fts_.h no longer does.
82298         Remove unnecessary casts of closedir to void.
82299         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82300         decide whether to decrement nlinks.
82301         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82302         (FTS): Use struct hash_table * instead of Hash_table, so that
82303         we no longer need to include hash.h here.
82304
82305 2005-05-18  Jim Meyering  <jim@meyering.net>
82306
82307         * modules/dirfd (License): Change to LGPL.  Most of the code
82308         is already in the public domain.
82309
82310 2005-05-18  Jim Meyering  <jim@meyering.net>
82311
82312         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82313         Reported by Yoann Vandoorselaere.
82314
82315 2005-05-17  Jim Meyering  <jim@meyering.net>
82316
82317         * m4/fts.m4: New file, from coreutils.
82318
82319 2005-05-17  Jim Meyering  <jim@meyering.net>
82320
82321         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82322
82323 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82324
82325         Sync from coreutils.
82326         * m4/unlinkdir.m4: New file.
82327
82328 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82329
82330         Sync from coreutils.
82331         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82332         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82333         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82334         White space changes only.
82335         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82336         special.
82337         * lib/yesno.c: Include getline.h, not ctype.h.
82338         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82339         Use getline to remove arbitrary restriction on response length.
82340
82341 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82342
82343         * config/srclist-update: Spell out "Street" in FSF postal
82344         mail address; this is the style the FSF seems to prefer.
82345
82346         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82347         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82348         this updates FSF postal mail address.
82349
82350         Sync from coreutils.
82351         * modules/unlinkdir: New file.
82352         * modules/yesno (Depends-on): Add getline.
82353         * MODULES.html.sh (File system functions): Add unlinkdir.
82354
82355 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82356
82357         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82358         lib/strsep.h:
82359         Change the initial comment to refer to GPL, not LGPL.
82360         gnulib-tool will change it to LGPL as needed.
82361
82362         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82363         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82364         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82365         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82366         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82367         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82368         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82369         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82370         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82371         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82372         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82373         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82374         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82375         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82376         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82377         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82378         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82379         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82380         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82381         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82382         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82383         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82384         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82385         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82386         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82387         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82388         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82389         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82390         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82391         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82392         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82393         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82394         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82395         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82396         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82397         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82398         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82399         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82400         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82401         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82402         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82403         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82404         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82405         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82406         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82407         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82408         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82409         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82410         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82411         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82412         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82413         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82414         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82415         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82416         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82417         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82418         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82419         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82420         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82421         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82422         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82423         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82424         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82425         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82426         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82427         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82428         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82429         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82430         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82431         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82432         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82433         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82434         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82435         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82436         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82437         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82438         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82439         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82440         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82441         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82442         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82443         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82444         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82445         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82446         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82447         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82448         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82449         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82450         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82451         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82452         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82453         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82454         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82455         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82456         lib/yesno.c, lib/yesno.h:
82457         Update FSF postal mail address.
82458
82459 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82460
82461         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82462         tests/test-memmem.c, tests/test-stpncpy.c:
82463         Update FSF postal mail address.
82464
82465 2005-05-13  Bruno Haible  <bruno@clisp.org>
82466
82467         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82468         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82469         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82470         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82471         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82472         Add support for 64-bit integers in the MSVC compiler.
82473
82474 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82475
82476         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82477
82478 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82479
82480         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82481
82482 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82483
82484         * doc/getdate.texi (General date syntax): Don't say that date
82485         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82486         Problem reported by Nic Ferrier.
82487
82488 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82489
82490         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82491         specified in ai_socktype. Fix invalid ai_protocol
82492         check. ai_protocol is usually set to 0 or depending on
82493         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82494         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82495         ai_socktype / ai_protocol in the returned addrinfo structure.
82496
82497 2005-05-10  Simon Josefsson  <jas@extundo.com>
82498
82499         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82500         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82501
82502 2005-05-10  Karl Berry  <karl@gnu.org>
82503
82504         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82505         (from http://www.gnu.org/licenses).
82506         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82507         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82508         fdl.texi suffices.
82509
82510 2005-05-10  Karl Berry  <karl@gnu.org>
82511
82512         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82513         (COPYING.DOC): remove.
82514
82515         * config/srclist-update: new FSF address.
82516
82517 2005-05-10  Derek Price  <derek@ximbiot.com>
82518
82519         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82520         possible.
82521
82522 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82523             Bruno Haible  <bruno@clisp.org>
82524
82525         * modules/inet_ntop: New file.
82526         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82527         inet_ntop.
82528
82529 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82530             Bruno Haible  <bruno@clisp.org>
82531
82532         * m4/inet_ntop.m4: New file.
82533
82534 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82535             Bruno Haible  <bruno@clisp.org>
82536
82537         * lib/inet_ntop.h: New file.
82538         * lib/inet_ntop.c: New file, from glibc with modifications.
82539
82540 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82541
82542         * modules/time_r (License): Change to LGPL.
82543         * modules/extensions (License): Change to LGPL.  Actually,
82544         the license is more permissive than that, but currently gnulib-tool
82545         doesn't know how to handle more-permissive licenses.
82546
82547         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82548         Problem reported by Dave Love.
82549
82550 2005-05-08  Jim Meyering  <jim@meyering.net>
82551
82552         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82553         blank.
82554
82555 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82556
82557         * modules/argmatch (Depends-on): Add stdbool.
82558         * modules/backupfile (Depends-on): Likewise.
82559         * modules/chdir-long (Depends-on): Likewise.
82560         * modules/closeout (Depends-on): Likewise.
82561         * modules/cycle-check (Depends-on): Likewise.
82562         * modules/dirname (Depends-on): Likewise.
82563         * modules/fnmatch (Depends-on): Likewise.
82564         * modules/fsusage (Depends-on): Likewise.
82565         * modules/fwriteerror (Depends-on): Likewise.
82566         * modules/getcwd (Depends-on): Likewise.
82567         * modules/getloadavg (Depends-on): Likewise.
82568         * modules/hard-locale (Depends-on): Likewise.
82569         * modules/makepath (Depends-on): Likewise.
82570         * modules/mountlist (Depends-on): Likewise.
82571         * modules/nanosleep (Depends-on): Likewise.
82572         * modules/posixtm (Depends-on): Likewise.
82573         * modules/quotearg (Depends-on): Likewise.
82574         * modules/readtokens (Depends-on): Likewise.
82575         * modules/readtokens0 (Depends-on): Likewise.
82576         * modules/readutmp (Depends-on): Likewise.
82577         * modules/save-cwd (Depends-on): Likewise.
82578         * modules/strftime (Depends-on): Likewise.
82579         * modules/userspec (Depends-on): Likewise.
82580         * modules/utimecmp (Depends-on): Likewise.
82581         * modules/xgetcwd (Depends-on): Likewise.
82582         * modules/xnanosleep (Depends-on): Likewise.
82583         * modules/xstrtod (Depends-on): Likewise.
82584         * modules/yesno (Depends-on): Likewise.
82585
82586 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82587
82588         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82589         needless checks.
82590
82591 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82592
82593         Merge from coreutils.  Among other things,
82594         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82595         * lib/fd-safer.c: New file.
82596         * lib/fcntl-safer.h, open-safer.c: Remove.
82597         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82598         * lib/dup-safer.c: Include unistd-safer.h first.
82599         Don't include errno.h.
82600         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82601         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82602         * lib/file-type.c: Rely on file-type.h change.
82603         * lib/getloadavg.c: Include unistd-safer.h.
82604         (getloadavg): Use safer open.
82605         * lib/getusershell.c: Include "stdio-safer.h".
82606         (getusershell): Use safer fopen.
82607         * lib/long-options.c (long_options): Use NULL rather than 0.
82608         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82609         'free'.
82610         * lib/modechange.c: Likewise.
82611         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82612         (MODE_DONE): New constant.
82613         (struct mode_change): Remove 'next' member.
82614         (make_node_op_equals): New function; like the old one of the
82615         same name, except it allocates an array.
82616         (mode_compile, mode_create_from_ref): Use it.
82617         (mode_compile): Allocate result as an array, not a linked list.
82618         Parse octal string ourself, so that we catch mistakes like "+0".
82619         (mode_adjust): Arg is an array, not a linked list.
82620         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82621         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82622         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82623         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82624         Remove.  This is now stat-macros.h's job.
82625         (talloc): Remove.  All callers replaced by xalloc, so that
82626         our invokers don't have to worry about reporting memory failures.
82627         (make_node_op_equals): Remove.
82628         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82629         New constants.
82630         (struct mode_change): Moved here from modechange.h.
82631         (mode_append_entry): Remove.
82632         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82633         apps to have incorrect behavior.  Use simpler algorithm for head
82634         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82635         Detect more invalid usages rather than having somewhat-random behavior.
82636         Don't insert an "a=" action, as that leads to incorrect behavior.
82637         (mode_compile, mode_create_from_ref): Return NULL on error instead
82638         of an enum, since now there's only one way to have an error.  All
82639         callers changed.
82640         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82641         at the correct time.  Simplify calculation of "+u" and its ilk.
82642         Don't mishandle "+X".
82643         (mode_free): Remove "register" and localize decls.
82644         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82645         (struct mode_change): Move to modechange.c; callers don't
82646         need to see this stuff.
82647         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82648         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82649         (mode_change, mode_adjust): Reflect the new signatures noted above.
82650         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82651         that might redefine system include files.
82652         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82653         (my_usleep): Use NULL rather than (void *) 0.
82654         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82655         Use siginterrupt to specify that system calls should be interrupted.
82656         (rpl_nanosleep): Move initialization of suspended closer to call of
82657         my_usleep.
82658         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82659         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82660         (desirable_utmp_entry): New function.
82661         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82662         using x2nrealloc, to simplify logic.
82663         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82664         size calculation.  Do not assume utmp file is a regular file.
82665         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82666         (READ_UTMP_CHECK_PIDS): New constant.
82667         * lib/save-cwd.c: Include unistd-safer.h.
82668         (save_cwd): Use fd_safer.
82669         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82670         [!_LIBC] Include "stat-macros.h" instead.
82671         * lib/unistd-safer.h (fd_safer): New decl.
82672
82673 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82674
82675         * modules/getloadavg (Depends-on): Add unistd-safer.
82676         * modules/getusershell (Depends-on): Add stdio-safer.
82677         * modules/lstat (Depends-on): Remove xalloc.
82678         * modules/mkstemp (Depends-on): Add stat-macros.
82679         * modules/modechange (Depends-on): Remove xstrtol.
82680         Add stat-macros, xalloc.
82681         * modules/save-cwd (Depends-on): Add unistd-safer.
82682         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82683         * modules/unistd-safer (Files): Add lib/fd-safer.c
82684         (Makefile.am): Remove lib_SOURCES.
82685
82686         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82687         Remove fcntl-safer; unistd-safer supersedes it.
82688
82689 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82690
82691         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82692         AC_HEADER_STAT.
82693         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82694         (gl_PREREQ_CHOWN): Remove.
82695         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82696         it.  Don't require AC_HEADER_STAT.
82697         (gl_PREREQ_LSTAT): Remove.
82698         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82699         Don't require AC_HEADER_STAT.
82700         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82701         (gl_PREREQ_RMDIR): Remove.
82702         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82703         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82704         the stat-macros module a prerequisite.
82705         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82706         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82707         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82708         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82709         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82710         variable names.
82711         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82712         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82713         variable prefixes.
82714         * m4/fcntl-safer.m4: Remove.
82715         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82716         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82717         Invoke gl_PREREQ_FD_SAFER.
82718         (gl_PREREQ_FD_SAFER): New macro.
82719         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82720         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82721         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82722         Remove duplicate call to AC_LIBOBJ(readutmp).
82723         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82724
82725         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82726         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82727
82728 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82729
82730         * MODULES.html.sh (Misc): Add byteswap.
82731
82732 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82733
82734         * modules/getcwd (Depends-on): Add extensions.
82735         * modules/openat (Depends-on): Likewise.
82736
82737 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82738
82739         * modules/byteswap: New file.
82740
82741 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82742
82743         * m4/byteswap.m4: New file.
82744
82745 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82746
82747         * lib/byteswap_.h: New file.
82748
82749 2005-04-25  Karl Berry  <karl@gnu.org>
82750
82751         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82752
82753 2005-04-25  Albert Chin  <china@thewrittenword.com>
82754
82755         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82756         Toolkit C bug.
82757
82758 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82759
82760         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82761         (func_ln_if_changed): Remove forcibly for no error message
82762         in case file does not exist.
82763
82764 2005-04-19  Simon Josefsson  <jas@extundo.com>
82765
82766         * gnulib-tool (Options): Make --symlink mean --symbolic.
82767
82768 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82769
82770         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82771
82772 2005-04-16  Simon Josefsson  <jas@extundo.com>
82773
82774         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82775
82776 2005-04-15  Simon Josefsson  <jas@extundo.com>
82777
82778         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82779
82780 2005-04-15  Simon Josefsson  <jas@extundo.com>
82781
82782         * gnulib-tool: Rename --symlink to --symbolic.
82783
82784 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82785
82786         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82787         symbolic links to files instead of copying/moving.  Add --aux-dir,
82788         specifying directory relative --dir where auxiliary build tools
82789         are placed.
82790
82791 2005-04-14  Bruno Haible  <bruno@clisp.org>
82792
82793         * modules/allocsa (License): Change to LGPL.
82794         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82795
82796 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82799         that "UTC +1 second" continues to work.  Problem reported
82800         by Dmitry V. Levin.
82801         (relunit_snumber): New rule.
82802         (relunit): Use it.
82803
82804 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82805
82806         * lib/getdate.y (universal_time_zone_table): New constant.
82807         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82808         universal_time_zone_table.
82809         (lookup_zone): Prefer universal_time_zone_table to
82810         local_time_zone_table, so that "GMT" time stamps are allowed in
82811         London during the summer.  Problem reported by Ian Abbott.
82812
82813 2005-04-12  Jim Meyering  <jim@meyering.net>
82814
82815         * lib/human.c (humblock): Set *options even when returning due to
82816         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82817         warning from gcc-4.
82818
82819 2005-04-09  Jim Meyering  <jim@meyering.net>
82820
82821         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82822         -Wuninitialized: initialize tm0.tm_year.
82823
82824 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82825
82826         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82827         count, since there's no maximum.  All uses changed.
82828         Add member dsts_seen.
82829         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82830         not being INT_MAX.
82831         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82832         Use pc_rels_seen to decide whther a date is absolute.
82833
82834         * lib/getdate.y (number): Don't overwrite year.
82835         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82836         check.
82837
82838 2005-04-02  Simon Josefsson  <jas@extundo.com>
82839
82840         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82841         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82842
82843 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82844
82845         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82846         where no absolute path name can be longer than PATH_MAX.
82847
82848 2005-03-27  Jim Meyering  <jim@meyering.net>
82849
82850         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82851
82852 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82855         "one's complement" -> "ones' complement" in comment, as per Knuth.
82856         "value of type" -> "type or expression" in comment.
82857         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82858
82859 2005-03-26  Jim Meyering  <jim@meyering.net>
82860
82861         Comment nits.
82862         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82863         Correct typos: s/or/of/.
82864
82865 2005-03-26  Jim Meyering  <jim@meyering.net>
82866
82867         * modules/check-include-files: Move to ../ and rename to...
82868         * check-module: ...this.
82869
82870 2005-03-25  Jim Meyering  <jim@meyering.net>
82871
82872         * modules/xvasprintf (Files): Add xalloc.h.
82873
82874 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82875
82876         * modules/gettext (Files): config/config.rpath ->
82877         build-aux/config.rpath
82878         * modules/iconv (Files): Likewise.
82879         Problem reported by Oskar Liljeblad.
82880
82881 2005-03-23  Jim Meyering  <jim@meyering.net>
82882
82883         * modules/check-include-files: New script to check for
82884         missing dependencies, multiple includes, etc.
82885
82886         * modules/c-strtold (Depends-on): Add xalloc.
82887         * modules/c-strtod (Depends-on): Add xalloc.
82888         * modules/hash (Depends-on): Add xalloc.
82889         (Files): Remove lib/xalloc.h.
82890
82891         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82892         * modules/userspec (Files): Add lib/inttostr.h.
82893
82894 2005-03-23  Jim Meyering  <jim@meyering.net>
82895
82896         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82897
82898 2005-03-22  Jim Meyering  <jim@meyering.net>
82899
82900         * modules/stat-macros: New module.
82901         * modules/canonicalize, modules/euidaccess, modules/file-type,
82902         * modules/filemode, modules/lchown, modules/makepath,
82903         * modules/rmdir, modules/stat: Depend on new stat-macros module
82904         rather than listing lib/stat-macros.h manually.
82905         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82906
82907 2005-03-22  Jim Meyering  <jim@meyering.net>
82908
82909         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82910
82911 2005-03-22  Bruno Haible  <bruno@clisp.org>
82912
82913         * config/srclist.txt: Replace target directory 'config' with
82914         'build-aux'.
82915         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82916         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82917         ../build-aux/.
82918
82919 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82920
82921         * modules/chdir-long (Depends-on): Add mempcpy.
82922
82923         * modules/acl, modules/backupfile, modules/c-strtod,
82924         modules/c-strtold, modules/canon-host, modules/canonicalize,
82925         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82926         modules/exclude, modules/exitfail, modules/file-type,
82927         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82928         modules/getdate, modules/getline, modules/getpagesize,
82929         modules/getpass, modules/getugroups, modules/group-member,
82930         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82931         modules/inttostr, modules/long-options, modules/makepath,
82932         modules/md5, modules/memcasecmp, modules/memcoll,
82933         modules/modechange, modules/mountlist, modules/path-concat,
82934         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82935         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82936         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82937         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82938         modules/strftime, modules/strndup, modules/strverscmp,
82939         modules/timespec, modules/unlocked-io, modules/userspec,
82940         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82941         modules/yesno:
82942         Remove lib_SOURCES line from Makefile.am section, as this is now
82943         done automatically by the corresponding Autoconf macro.
82944
82945 2005-03-21  Jim Meyering  <jim@meyering.net>
82946
82947         Changes imported from coreutils.
82948
82949         * lib/cycle-check.c: Don't include xalloc.h.
82950
82951         * lib/path-concat.c: Don't include assert.h.
82952         (path_concat): Remove assertion that would have triggered
82953         for ABASE starting with more than one slash.
82954         Reported by Andreas Schwab.
82955
82956         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82957         properly when ABASE is an absolute file name.
82958         Correct the description of this function.
82959         Include <assert.h>.
82960         Add an assertion and a test driver.
82961         This fixes a bug introduced on 2004-07-02.
82962         Andreas Schwab reported the resulting failure of cp --parents:
82963         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82964
82965 2005-03-21  Jim Meyering  <jim@meyering.net>
82966
82967         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82968         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82969
82970 2005-03-21  Jim Meyering  <jim@meyering.net>
82971         and  Paul Eggert  <eggert@cs.ucla.edu>
82972
82973         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82974         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82975         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82976         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82977         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82978         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82979         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82980         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82981         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82982         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82983         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82984         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82985         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82986         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82987         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82988         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82989         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82990         for these modules.
82991
82992 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82993
82994         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82995         (which shouldn't happen), generate nothing instead of returning 0
82996         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82997
82998 2005-03-16  Bruno Haible  <bruno@clisp.org>
82999
83000         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83001         HAVE_LONGLONG_64BIT.
83002
83003 2005-03-16  Bruno Haible  <bruno@clisp.org>
83004
83005         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83006         HAVE_LONGLONG_64BIT.
83007
83008 2005-03-16  Bruno Haible  <bruno@clisp.org>
83009
83010         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83011         HAVE_LONGLONG_64BIT.
83012
83013 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83014
83015         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83016         reliably distinguish strftime failure from empty output on POSIX
83017         hosts.
83018
83019 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83022         (iconv_string): Don't guess a size-zero buffer, as that might cause
83023         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83024         result would be 'too large', where 'too large' is (heuristically)
83025         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83026         overflow concerns.  This will prevent some unwanted malloc failures
83027         when the inputs are very large.
83028
83029 2005-03-15  Karl Berry  <karl@gnu.org>
83030
83031         * config/srclist.txt (config.rpath): from gettext.
83032         * config/config.rpath: update.
83033
83034 2005-03-15  Bruno Haible  <bruno@clisp.org>
83035
83036         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83037         to 'negate'.
83038
83039         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83040         variable.
83041
83042         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83043         results.
83044
83045 2005-03-14  Simon Josefsson  <jas@extundo.com>
83046
83047         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83048         <fx@gnu.org>.
83049
83050 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83051
83052         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83053         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83054         intprops.h.
83055         * lib/strtol.c: Likewise.
83056
83057 2005-03-14  Jim Meyering  <jim@meyering.net>
83058
83059         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83060         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83061         to be nonzero so that we (and caller) can detect the difference
83062         between a valid zero-length expansion and an error return, even
83063         when the underlying strftime fails before writing anything into
83064         that location.
83065
83066 2005-03-14  Bruno Haible  <bruno@clisp.org>
83067
83068         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83069         Update from GNU gettext 0.14.3.
83070
83071 2005-03-10  Jim Meyering  <jim@meyering.net>
83072
83073         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83074
83075 2005-03-10  Jim Meyering  <jim@meyering.net>
83076
83077         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83078         so that this module works on systems without fchdir.
83079
83080 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83081
83082         Factor int-properties macros into a single file, except for
83083         glibc-related files.
83084         * lib/intprops.h: New file.
83085         * lib/getloadavg.c: Include it instead of limits.h.
83086         (INT_STRLEN_BOUND): Remove.
83087         * lib/human.c: Include intprops.h.
83088         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83089         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83090         302/1000.
83091         * lib/inttostr.h: Include intprops.h instead of limits.h.
83092         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83093         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83094         for consistency with intprops.h.
83095         (time_t_is_integer, twos_complement_arithmetic): Use them.
83096         * lib/sig2str.h: Include <signal.h>, intprops.h.
83097         (INT_STRLEN_BOUND): Remove.
83098         * lib/strftime.c (TYPE_SIGNED): Remove.
83099         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83100         * lib/strtol.c: Adjust comments to match intprops.h.
83101         * lib/userspec.c: Include intprops.h.
83102         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83103         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83104         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83105         instead of rolling our own expressions.
83106         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83107
83108         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83109         instead of int.
83110         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83111         the right thing even if adding 1900 would overflow.  Similarly
83112         for tm_mon + 1 and tm_yday + 1.
83113         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83114         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83115         (DO_SIGNED_NUMBER): New macro.
83116         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83117
83118 2005-03-07  Bruno Haible  <bruno@clisp.org>
83119
83120         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83121
83122 2005-03-07  Bruno Haible  <bruno@clisp.org>
83123
83124         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83125
83126 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83127
83128         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83129         (func_import): Only replace files via --import when they have actually
83130         changed.
83131
83132 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83133
83134         * m4/mmap-anon.m4: New file.
83135         * m4/pagealign_alloc.m4: New file.
83136
83137 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83138             Bruno Haible  <bruno@clisp.org>
83139
83140         * modules/pagealign_alloc: New file.
83141         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83142
83143 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83144             Bruno Haible  <bruno@clisp.org>
83145
83146         * lib/pagealign_alloc.h: New file.
83147         * lib/pagealign_alloc.c: New file.
83148
83149 2005-03-03  Bruno Haible  <bruno@clisp.org>
83150
83151         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83152         Use an all-permissive copyright notice, recommended by RMS.
83153
83154 2005-03-02  Bruno Haible  <bruno@clisp.org>
83155
83156         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83157         of AIX, the replacement has to be done only after <string.h> is
83158         included, therefore not in config.h. stpncpy.h does the replacement,
83159         and stpncpy.c uses it.
83160
83161 2005-03-02  Bruno Haible  <bruno@clisp.org>
83162
83163         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83164         stpncpy.c uses it.
83165
83166 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83167
83168         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83169         The workaround isn't strictly needed for POSIX conformance, and
83170         it's too much of a pain to configure and maintain.  We'll ask
83171         people to fix their kernels instead.
83172         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83173         (NANOSLEEP_BUG_WORKAROUND): Remove.
83174         (xnanosleep): Remove the workaround.
83175
83176 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83179         Reported by Derek Price.
83180         (Include): Add "timespec.h".
83181
83182         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83183
83184 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83185
83186         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83187         to detect nanosleep bug.
83188
83189 2005-03-01  Bruno Haible  <bruno@clisp.org>
83190
83191         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83192
83193 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         * modules/gethrxtime: New file.
83196         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83197         (Depends-on): Add gethrxtime.
83198         (configure.ac): Add gl_XNANOSLEEP.
83199         (Makefile.am): Remove lib_SOURCES line.
83200
83201 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83202
83203         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83204         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83205
83206 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83207
83208         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83209         * lib/timespec.h (gettime): Return void, since it always
83210         succeeds now.  All uses changed.
83211         * lib/gettime.c (gettime): Likewise.
83212         [HAVE_NANOTIME]: Prefer nanotime.
83213         Assume gettimeofday succeeds, as POSIX requires.
83214         Assime time () succeeds, since other code already does.
83215         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83216         (timespec_subtract): Remove.
83217         (NANOSLEEP_BUG_WORKAROUND): New constant.
83218         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83219         things considerably.  Use it only on GNU/Linux hosts, since the
83220         workaround shouldn't be needed elsewhere.
83221
83222 2005-02-24  Bruno Haible  <bruno@clisp.org>
83223
83224         * modules/gettext (Files): Add m4/glibc2.m4.
83225
83226 2005-02-24  Bruno Haible  <bruno@clisp.org>
83227
83228         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83229         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83230         * m4/progtest.m4:
83231         Update from GNU gettext 0.14.2.
83232         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83233
83234 2005-02-24  Bruno Haible  <bruno@clisp.org>
83235
83236         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83237         * lib/config.charset: Update from GNU gettext 0.14.2.
83238
83239 2005-02-24  Bruno Haible  <bruno@clisp.org>
83240
83241         * lib/gettext.h: Update from GNU gettext 0.14.2.
83242
83243 2005-02-23  Simon Josefsson  <jas@extundo.com>
83244
83245         * m4/iconvme.m4: New file.
83246
83247 2005-02-23  Jim Meyering  <jim@meyering.net>
83248
83249         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83250         change.
83251         Thanks to Bruno Haible for catching it.
83252
83253 2005-02-22  Simon Josefsson  <jas@extundo.com>
83254
83255         * modules/iconvme: New file.
83256
83257         * MODULES.html.sh: Add iconvme.
83258
83259 2005-02-22  Simon Josefsson  <jas@extundo.com>
83260
83261         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83262
83263 2005-02-22  Simon Josefsson  <jas@extundo.com>
83264
83265         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83266
83267 2005-02-22  Jim Meyering  <jim@meyering.net>
83268
83269         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83270         s/ifndef/ifdef/.
83271
83272 2005-02-20  Neil Conway  <neilc@samurai.com>
83273
83274         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83275         returned by OSX/Darwin if the specified buffer is not large
83276         enough for the hostname.
83277
83278 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83279
83280         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83281         pass it to _help, otherwise the latter coredumps trying to
83282         dereference state.root_argp.
83283
83284 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83285
83286         * modules/chdir-long (Depends-on): Add memrchr.
83287         * modules/memrchr (Files): Add lib/memrchr.h.
83288         (Include): "memrchr.h".
83289
83290 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83291
83292         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83293
83294 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         * lib/memrchr.h: New file.
83297         * lib/chdir-long.c: Include it.
83298         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83299         Don't bother including stddef.h.
83300
83301 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83302
83303         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83304         inclusion.
83305         Include <sys/types.h>, for dev_t.
83306         (ME_DUMMY, ME_REMOTE): Move from here....
83307         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83308         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83309         Dmitry V. Levin.
83310         Include mountlist.h first, to test the interface.
83311
83312 2005-01-29  Bruno Haible  <bruno@clisp.org>
83313
83314         * lib/progname.c (program_name): Initialize.
83315         Needed when linking statically on MacOS X.
83316
83317 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83318
83319         Sync from coreutils.
83320         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83321         (Depends-on): Add c-strtod.
83322         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83323
83324 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83325
83326         Sync from coreutils.
83327         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83328
83329         Remove files that are specific to coreutils.
83330         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83331
83332 2005-01-28  Bruno Haible  <bruno@clisp.org>
83333
83334         * modules/javacomp: New file.
83335         * MODULES.html.sh (Java): Add javacomp.
83336
83337 2005-01-28  Bruno Haible  <bruno@clisp.org>
83338
83339         * m4/javacomp.m4: New file, from GNU gettext.
83340
83341 2005-01-28  Bruno Haible  <bruno@clisp.org>
83342
83343         * lib/javacomp.sh.in: New file, from GNU gettext.
83344         * lib/javacomp.h: New file, from GNU gettext.
83345         * lib/javacomp.c: New file, from GNU gettext.
83346
83347 2005-01-26  Simon Josefsson  <jas@extundo.com>
83348
83349         * lib/gai_strerror.c: Use GPL in header.
83350
83351 2005-01-26  Bruno Haible  <bruno@clisp.org>
83352
83353         * modules/javaexec: New file.
83354         * MODULES.html.sh (Java): Add javaexec.
83355
83356 2005-01-26  Bruno Haible  <bruno@clisp.org>
83357
83358         * m4/javaexec.m4: New file, from GNU gettext.
83359
83360 2005-01-26  Bruno Haible  <bruno@clisp.org>
83361
83362         * lib/javaexec.sh.in: New file, from GNU gettext.
83363         * lib/javaexec.h: New file, from GNU gettext.
83364         * lib/javaexec.c: New file, from GNU gettext.
83365
83366 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83367
83368         * modules/lchown (Depends-on): Remove lchown.h
83369
83370 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83371
83372         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83373         must be defined if the header file was not found, in order
83374         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83375
83376 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83377
83378         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83379         initializers for struct pentry_state.
83380         (__argp_error): Check return value of __asprintf
83381         (__argp_failure): Translate error message
83382
83383         * lib/argp-parse.c: Removed braces around the expansion of N_()
83384
83385 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83386
83387         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83388         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83389         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83390         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83391         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83392         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83393         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83394         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83395         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83396         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83397         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83398         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83399         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83400         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83401         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83402         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83403         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83404         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83405         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83406         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83407         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83408         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83409         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83410         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83411         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83412         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83413         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83414         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83415         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83416         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83417         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83418         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83419         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83420         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83421         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83422         Use an all-permissive copyright notice, recommended by RMS.
83423
83424 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83425
83426         * modules/chdir-long (Depends-on): Remove mempcpy.
83427
83428 2005-01-21  Jim Meyering  <jim@meyering.net>
83429
83430         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83431         same value as for Solaris 9.
83432
83433         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83434         component length.  This included changing the parameter to be
83435         of type `char *' rather than `char const *'.
83436         * lib/chdir-long.h (chdir_long): Update prototype.
83437
83438         * lib/openat.c (fdopendir, fstatat): New functions.
83439         * lib/openat.h: Include headers required for use of DIR and struct
83440         stat.
83441         [AT_SYMLINK_NOFOLLOW]: Define.
83442         (fdopendir, fstatat): Add prototypes.
83443
83444 2005-01-21  Bruno Haible  <bruno@clisp.org>
83445
83446         * modules/classpath: New file.
83447         * MODULES.html.sh (Java): Add classpath.
83448
83449 2005-01-21  Bruno Haible  <bruno@clisp.org>
83450
83451         * lib/classpath.h: New file, from GNU gettext.
83452         * lib/classpath.c: New file, from GNU gettext.
83453
83454 2005-01-20  Simon Josefsson  <jas@extundo.com>
83455
83456         * modules/version-etc-fsf: New file.
83457
83458 2005-01-20  Simon Josefsson  <jas@extundo.com>
83459
83460         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83461         * lib/version-etc.c: Remove version_etc_copyright.
83462         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83463         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83464
83465 2005-01-20  Simon Josefsson  <jas@extundo.com>
83466
83467         * lib/base64.h (isbase64): Add.
83468
83469         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83470         using a unsigned prototype, don't inline.
83471         (base64_decode): Use it.
83472
83473 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83474
83475         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83476         it.
83477
83478 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83479
83480         * lib/save-cwd.c (save_cwd): Remove code to support the case
83481         where fchdir is missing or flaky.
83482
83483 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83484
83485         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83486
83487 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83488
83489         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83490         AC_LIBSOURCES now does this.
83491         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83492         with new ullong_max module.
83493
83494 2005-01-19  Bruno Haible  <bruno@clisp.org>
83495
83496         * modules/sh-quote: New file.
83497         * MODULES.html.sh (Executing programs): Add sh-quote.
83498
83499 2005-01-19  Bruno Haible  <bruno@clisp.org>
83500
83501         * lib/sh-quote.h: New file, from GNU gettext.
83502         * lib/sh-quote.c: New file, from GNU gettext.
83503
83504 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83505
83506         Merge from coreutils.
83507         * m4/ullong_max.m4: New file.
83508         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83509         (gl_MACROS): Assume localeconv exists.
83510
83511 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83512
83513         Merge changes from coreutils, as described below in several
83514         changelogs dated today.
83515
83516         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83517         (O_DIRECTORY): Remove; not needed here, since "." must be
83518         a directory.  All uses removed.
83519         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83520         universal on Suns, and we also need to test for IRIX.
83521         Revamp code to use 'if' rather than '#if'.
83522         Avoid unnecessary comparison of cwd->desc to 0.
83523
83524         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83525         for known valid error numbers rather than observed invalid ones.
83526
83527 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83528
83529         * modules/ullong_max: New file.
83530
83531         * modules/chdir-long, modules/openat: New files.
83532         * modules/save-cwd (Depends-on): Depend on chdir-long.
83533         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83534
83535 2005-01-18  Jim Meyering  <jim@meyering.net>
83536
83537         Merge from coreutils.
83538         * m4/chdir-long.m4, m4/openat.m4: New files.
83539         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83540         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83541         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83542         is sane and DOES follow symlinks.  Besides, testing 20 different
83543         systems found no broken chown implementations.
83544         Prompted by a change in rsync's copy of this macro.
83545         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83546
83547         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83548
83549         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83550         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83551         NULL-means-set-to-current-time semantics.
83552         Remove temporary file immediately, rather than waiting
83553         for configure's at-exit trap code to do it.
83554
83555 2005-01-18  Jim Meyering  <jim@meyering.net>
83556
83557         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83558
83559         * lib/utimens.c (futimens): Account for the fact that futimes
83560         can also fail with errno == ENOSYS or errno == ENOENT.
83561         Patch from Dmitry V. Levin.
83562
83563         Change the name of the robust chdir function from chdir to chdir_long.
83564         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83565         (restore_cwd): Use chdir_long, not chdir.
83566         * lib/chdir-long.c: Renamed from chdir.c.
83567         * lib/chdir-long.h: Renamed from chdir.h.
83568         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83569         Hurd.
83570
83571 2005-01-18  Bruno Haible  <bruno@clisp.org>
83572
83573         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83574         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83575         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83576         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83577         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83578         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83579         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83580         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83581         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83582         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83583         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83584         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83585         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83586         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83587         Use an all-permissive copyright notice, recommended by RMS.
83588
83589 2005-01-18  Bob Proulx  <bob@proulx.com>
83590
83591         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83592         simplify offsetof() macro construct to avoid compile failure with
83593         native HP-UX 11.0 ANSI C compiler.
83594
83595 2005-01-17  Bruno Haible  <bruno@clisp.org>
83596
83597         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83598         redundant because stpncpy.m4 takes care of it.
83599
83600 2005-01-17  Bruno Haible  <bruno@clisp.org>
83601
83602         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83603
83604 2005-01-17  Bruno Haible  <bruno@clisp.org>
83605
83606         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83607         used.
83608
83609 2005-01-17  Bruno Haible  <bruno@clisp.org>
83610
83611         * lib/fwriteerror.h (fwriteerror): Change specification to include
83612         fclose.
83613         * lib/fwriteerror.c: Include <stdbool.h>.
83614         (fwriteerror): At the end, close the file stream. Record whether
83615         stdout was already closed.
83616
83617 2005-01-17  Bruno Haible  <bruno@clisp.org>
83618
83619         * lib/execute.c (environ): Declare if needed.
83620         * lib/pipe.c (environ): Likewise.
83621         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83622
83623 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83624
83625         * modules/argp: Depend on vsnprintf
83626
83627 2005-01-10  Jim Meyering  <jim@meyering.net>
83628
83629         * modules/closeout (Depends-on): Add atexit.
83630
83631 2005-01-06  Bruno Haible  <bruno@clisp.org>
83632
83633         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83634
83635 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83636
83637         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83638         definitions to be after all include files, to avoid collisions.
83639         Problem reported by Bob Proulx.
83640
83641 2005-01-04  Jim Meyering  <jim@meyering.net>
83642
83643         Changes imported from coreutils.
83644         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83645         as the mkstemp template, use a temporary directory and an
83646         8.3-friendly template to avoid trouble on systems like DJGPP.
83647         Reported by Juan M. Guerrero via Stepan Kasal.
83648         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83649         close. Remove the temporary directory right away, rather than waiting
83650         for configure's at-exit trap code to do it.
83651         Suggestion from Stepan Kasal.
83652
83653 2005-01-01  Simon Josefsson  <jas@extundo.com>
83654
83655         * gnulib-tool: Print #include directives when --import'ing.
83656
83657 2004-12-28  Simon Josefsson  <jas@extundo.com>
83658
83659         * tests/test-base64.c: Include required header files.  Remove
83660         unused variables.
83661
83662 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83663
83664         * modules/error (Depends-on): Remove gettext.
83665
83666 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83667
83668         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83669         not needed.  This removes a dependency on the gettext module.
83670         [defined _LIBC]: Do not include <libintl.h>; not needed.
83671
83672 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83673
83674         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83675         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83676
83677 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83678
83679         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83680         HAVE_DECL_STRTOLD.
83681
83682 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         * modules/getdate (Depends-on): Remove alloca-opt.
83685
83686 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83687
83688         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83689
83690 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83691
83692         * lib/argp-parse.c: Include <stddef.h>.
83693         (alignof, alignto): New macros.
83694         (parser_init): Don't assume that void * is aligned sufficiently
83695         for struct option.
83696
83697         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83698         need to extend the stack.
83699         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83700         large.
83701
83702 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83703
83704         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83705
83706 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83707
83708         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83709         (2004-10-24) change.  Apparently this was a false alarm.
83710
83711         * modules/getdate: Depend on alloca-opt, not alloca.
83712
83713 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83714
83715         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83716         Remove now-obsolete comment about AIX.
83717         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83718         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83719         (YYMAXDEPTH): New macro.
83720
83721 2004-12-18  Simon Josefsson  <jas@extundo.com>
83722
83723         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83724
83725 2004-12-18  Bruno Haible  <bruno@clisp.org>
83726
83727         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83728
83729 2004-12-18  Bruno Haible  <bruno@clisp.org>
83730
83731         * lib/fatal-signal.c (fatal_signals): Make non-const.
83732         (init_fatal_signals): New function.
83733         (uninstall_handlers, install_handlers): Ignore signals that were set to
83734         SIG_IGN.
83735         (at_fatal_signal): Call init_fatal_signals.
83736         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83737         SIG_IGN.
83738         Reported by Paul Eggert.
83739
83740 2004-12-18  Bruno Haible  <bruno@clisp.org>
83741
83742         * doc/alloca.texi: New file.
83743         * doc/alloca-opt.texi: New file.
83744
83745 2004-12-17  Jim Meyering  <jim@meyering.net>
83746
83747         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83748         Otherwise, install-sh could exit with improper exit status when
83749         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83750
83751 2004-12-16  Simon Josefsson  <jas@extundo.com>
83752
83753         * tests/test-base64.c: Add license.
83754
83755 2004-12-15  Stepan Kasal  <address@hidden>
83756
83757         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83758
83759 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83760
83761         * modules/getcwd (Files): Add m4/d-ino.m4.
83762         Suggested by Mark D. Baushke.
83763
83764 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83765
83766         * lib/getdate.y (textint): New member "negative".
83767         (time_zone_hhmm): New function.
83768         Expect 14 shift-reduce conflicts, not 13.
83769         (o_colon_minutes): New rule.
83770         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83771         (yylex): Set the "negative" member of signed numbers.
83772
83773 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83774
83775         * doc/getdate.texi (Time of day items, Time zone items):
83776         Describe new formats +00:00, UTC+00:00.
83777
83778 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83779
83780         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83781         spurious "-l"s.  Problem reported by Stepan Kasal.
83782
83783 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83784
83785         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83786         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83787
83788 2004-12-04  Simon Josefsson  <jas@extundo.com>
83789
83790         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83791         Vandoorselaere <yoann@prelude-ids.org>.
83792
83793 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         Changes imported from coreutils.
83796         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83797         exist.
83798         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83799
83800 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83801
83802         Changes imported from coreutils.
83803         * lib/hard-locale.c: Assume <locale.h> exists.
83804         Include "strdup.h".
83805         (GLIBC_VERSION): New macro.
83806         (hard_locale): Assume setlocale exists.
83807         Rewrite to avoid #ifdef.
83808         Use strdup rather than malloc + strcpy.
83809         * lib/human.c: Assume <locale.h> exists.
83810         (human_readable): Assume localeconv exists.
83811
83812 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83813
83814         * modules/hard-locale (Depends-on): Add strdup.
83815
83816 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83817
83818         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83819         convert T2, not T.  (Imported from libc.)
83820
83821 2004-11-30  Simon Josefsson  <jas@extundo.com>
83822
83823         * modules/restrict (License): Change to LGPL.
83824
83825 2004-11-30  Simon Josefsson  <jas@extundo.com>
83826
83827         * m4/restrict.m4: Add copyright and copying conditions.
83828
83829 2004-11-30  Simon Josefsson  <jas@extundo.com>
83830
83831         * m4/base64.m4: New file.
83832
83833 2004-11-30  Simon Josefsson  <jas@extundo.com>
83834
83835         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83836         base64.
83837
83838         * tests/test-base64.c: New file.
83839
83840         * modules/base64: New file.
83841
83842 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83843
83844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83845         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83846
83847         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83848
83849 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83850
83851         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83852         (__getcwd.c): Don't restore errno; glibc doesn't.
83853         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83854         first, falling back to our code only if its results look suspicious.
83855         Ensure that the resulting buffer is only as large as necessary.
83856
83857         * lib/readutmp.c: Include readutmp.h first.
83858         Include <errno.h>, since readutmp.h no longer does that.
83859         * lib/readutmp.h: Don't include <errno.h>,
83860         <sys/param.h>, <time.h>; not needed to establish interface.
83861         (errno): Remove decl.
83862         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83863         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83864         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83865
83866 2004-11-28  Simon Josefsson  <jas@extundo.com>
83867
83868         * lib/base64.h, base64.c: New file.
83869
83870 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83871
83872         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83873
83874 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83875
83876         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83877         (Depends-on): Remove pathmax, same.  Add mempcpy.
83878         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83879         (Makefile.am): Append getcwd.h to lib_SOURCES.
83880         (Include): Add getcwd.h.
83881         (Maintainer): Change from Jim Meyering to "all, glibc",
83882         since getdate now uses intended-for-glibc code.
83883         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83884         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83885
83886 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83889         HP's ANSI C compiler.
83890         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83891         Declaring int functions causes warnings on some modern systems and
83892         shouldn't be needed to compile on ancient ones.
83893         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83894         defined.
83895
83896         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83897         with the following changes.
83898         (__set_errno): Parenthesize properly.
83899         Include <stdbool.h>.
83900         (MIN, MAX, MATCHING_INO): New macros.
83901         (__getcwd): Define with prototype, not K&R form.
83902         Use heuristics to allocate default buffer on stack if possible.
83903         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83904         behavior, and to avoid the PATH_MAX limit when computing
83905         ../../../../...
83906         Use MATCHING_INO to compare inode number to file.
83907         Check for arithmetic overflow in size calculations.
83908         Fix bug in reallocation of dot array that caused getcwd to fail
83909         on directories nested deeper than 75.
83910         Be more careful about saving errno on error.
83911         Do not use realloc; use only free+malloc, as this is a bit
83912         more flexible and avoids a needless copy operation.
83913         Do not inspect st_dev and st_ino for symbolic links; POSIX
83914         doesn't specify the latter.
83915         Check for closedir errors.
83916         Avoid needless casts.
83917         Use "#ifdef weak_alias" around weak_alias, to be like other
83918         glibc code.
83919         The following changes to getcwd.c have effect only when used in
83920         gnulib; they have no effect inside glibc proper.
83921         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83922         as alloca isn't used.
83923         (alloca, __alloca): Likewise.
83924         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83925         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83926         unconditionally, as gnulib assumes C89 or better.
83927         Do not include <sys/param.h>.
83928         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83929         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83930         better.
83931         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83932         Include <dirent.h> in a way that is compatible with modern Autoconf.
83933         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83934         New macros, if not already defined.
83935         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83936         Use "_LIBC", not "defined _LIBC", for consistency.
83937         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83938         a mempcpy module.
83939         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83940         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83941         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83942         credit only to Jim Meyering and adjust the copyright dates.
83943         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83944         <stdlib.h>, <unistd.h>, "pathmax.h".
83945         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83946         (INITIAL_BUFFER_SIZE): Remove.
83947         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83948
83949 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83950
83951         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83952         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83953         Use the _ONCE methods, for efficiency.
83954         Check for fcntl.h.  In test program, include <errno.h>
83955         and <fcntl.h> if available.  Remove old K&R cruft from
83956         test program.  Check for common errors in GNU/Linux,
83957         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83958         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83959         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83960         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83961         name accordingly.
83962         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83963         accommodate new getcwd.c.
83964         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83965         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83966         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83967         that's all we need now.
83968
83969 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83970
83971         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83972         argp-parse.c depends on getopt internals, that means we should
83973         always use our getopt, to be on the safe side.
83974         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83975         order not to spoil the result of an eventual previous invocation
83976         of gl_GETOPT_SUBSTITUTE.
83977
83978 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83979
83980         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83981         redefinition warnings. To avoid them, include the defines
83982         in `#if !defined __need_getopt ... #endif'. The only place
83983         where __getopt_argv_const is used is in definitions
83984         of getopt_long and getopt_long_only below, which are as well
83985         protected by `#ifndef __need_getopt'.
83986         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83987         __need_getopt after including <stdio.h> and <unistd.h> These
83988         headers might have defined it.
83989
83990 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83993
83994 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83995
83996         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83997         (futimens): New function, which uses futimes if available.
83998         (futimens, utimens): Support timespec==NULL, with same semantics
83999         as utime and utimens.
84000         * lib/utimens.h (futimens): New decl.
84001
84002 2004-11-23  Jim Meyering  <jim@meyering.net>
84003
84004         * lib/getopt_.h: Remove trailing blanks.
84005
84006 2004-11-23  Jim Meyering  <jim@meyering.net>
84007
84008         * lib/__fpending.c: Add comment.
84009
84010 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84011
84012         * modules/canonicalize (Depends-on): Add xreadlink.
84013         Problem reported by James Youngman.
84014
84015 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84016
84017         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84018         New macros.
84019         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84020         optopt): Use them instead of invoking ## directly; otherwise, the
84021         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84022
84023 2004-11-19  Bruno Haible  <bruno@clisp.org>
84024
84025         * lib/strtok_r.c: Move comments from here...
84026         * lib/strtok_r.h: ... to here.
84027
84028 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84029
84030         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84031         implementations that mishandle size_t overflow.
84032
84033 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84034
84035         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84036         might fail.  Problem reported by Yoann Vandoorselaere.
84037         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84038         implementations that mishandle size_t overflow.
84039
84040 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         * modules/canon-host (Depends-on): Add strdup.
84043
84044 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84047
84048 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84049
84050         * lib/canon-host.c: Include "strdup.h".
84051         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84052         Use strdup instead of malloc/strcpy to duplicate strings.
84053
84054         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84055         (human_space_before_unit): New constant.
84056         * lib/human.c (human_readable): Support it.
84057
84058         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84059         (xgetcwd): Set errno correctly when failing.
84060         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84061         the failure is actually due to a PATH_MAX problem.
84062
84063         Further getopt changes to make it more likely that glibc will
84064         buy the changes back.
84065         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84066         (getopt): Use it, so to preserve glibc semantic
84067         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84068         when compiling for libc.
84069         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84070         (getopt_long, getopt_long_only): Use it.
84071
84072         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84073         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84074         (getopt): Argv is now char * const *, as per standard.
84075         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84076         not char *__getopt_argv_const *.
84077         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84078         _getopt_long_only_r): Likewise.
84079         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84080         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84081         _getopt_long_r, _getopt_long_only_r): Likewise.
84082         * lib/getopt_.h (__getopt_argv_const): Remove.
84083         (getopt): Argv is now char * const *, as per standard.
84084
84085         * lib/getdate.y (tORDINAL): New token.
84086         (day, relunit): Allow it for relative times.
84087         (relative_time_table): Use tORDINAL for ordinals.
84088
84089 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84090
84091         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84092         Document that "second" isn't allowed as an ordinal number.
84093
84094 2004-11-16  Jim Meyering  <jim@meyering.net>
84095
84096         * modules/closeout (Depends-on): Add fpending.
84097
84098 2004-11-15  Jim Meyering  <jim@meyering.net>
84099
84100         * lib/closeout.c: Include "__fpending.h" once again.
84101         Include <stdbool.h>.
84102         (close_stdout): Don't fail just because stdout was closed initially,
84103         since some programs don't write to stdout in the normal course of
84104         operation (other than --version and --help), and we don't want this
84105         function to make e.g. `touch file >&-' fail.
84106         But do fail if it was closed and someone has tried to write to it.
84107         E.g., `printf foo >&-' must fail.
84108
84109 2004-11-13  Jim Meyering  <jim@meyering.net>
84110
84111         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84112
84113 2004-11-12  Simon Josefsson  <jas@extundo.com>
84114
84115         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84116         small doc fix is still pending.
84117
84118 2004-11-11  Simon Josefsson  <jas@extundo.com>
84119
84120         * modules/strtok_r: New file.
84121
84122         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84123         strtok_r.
84124
84125 2004-11-11  Simon Josefsson  <jas@extundo.com>
84126
84127         * m4/strtok_r.m4: New file.
84128
84129         * m4/getopt.m4: Replace opterr.
84130
84131 2004-11-11  Simon Josefsson  <jas@extundo.com>
84132
84133         * lib/strtok_r.h, strtok_r.c: New file.
84134
84135 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84136
84137         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84138         of replacing opterr, getopt, etc.  This should handle the
84139         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84140
84141 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84142
84143         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84144         we can stop lying to compilers about the constness of argv when we
84145         are compiled outside glibc.
84146         (getopt, getopt_long, getopt_long_only): Use it.
84147         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84148         _getopt_internal, getopt): Likewise.
84149         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84150         _getopt_long_only_r): Likewise.
84151         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84152         _getopt_long_r, _getopt_long_only_r): Likewise.
84153
84154         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84155         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84156         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84157         the other external symbols.
84158         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84159         declaration, since the above renaming now works around collisions.
84160
84161 2004-11-11  Jim Meyering  <jim@meyering.net>
84162
84163         * lib/linebreak.c: Remove trailing blanks.
84164         * lib/alloca_.h: Likewise.
84165         * lib/acosl.c: Likewise.
84166         * lib/euidaccess.c: Likewise.
84167         * lib/allocsa.h: Likewise.
84168
84169 2004-11-10  Simon Josefsson  <jas@extundo.com>
84170
84171         * m4/getaddrinfo.m4: New file.
84172
84173 2004-11-10  Simon Josefsson  <jas@extundo.com>
84174
84175         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84176
84177 2004-11-10  Simon Josefsson  <jas@extundo.com>
84178
84179         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84180         getaddrinfo.
84181
84182         * modules/getaddrinfo: New file.
84183
84184 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84185
84186         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84187
84188 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84189
84190         * lib/mktime.c (SHR): New macro, which is a portable
84191         substitute for >> that should work even on Crays.
84192         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84193         Problem reported by Mark D. Baushke in
84194         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84195         * lib/getdate.y (SHR): Likewise.
84196         (tm_diff): Use it.
84197         * lib/strftime.c (SHR): Likewise.
84198         (tm_diff): Use it.
84199         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84200         quote_these_too, so that right shifts are well defined.  All uses
84201         changed.
84202
84203 2004-11-10  Jim Meyering  <jim@meyering.net>
84204
84205         Ensure that no close failure goes unreported.
84206         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84207         return early when it seems there's nothing to flush.
84208         Don't include __fpending.h.
84209
84210 2004-11-10  Jim Meyering  <jim@meyering.net>
84211
84212         * modules/closeout (Depends-on): Remove fpending.
84213
84214 2004-11-10  Jim Meyering  <jim@meyering.net>
84215
84216         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84217
84218 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84219
84220         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84221         gl_FUNC_STRFTIME.
84222         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84223         and AC_REQUIRE when possible, to avoid duplicate checks.
84224         Check for <wchar.h>.
84225
84226 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84227
84228         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84229
84230 2004-11-09  Bruno Haible  <bruno@clisp.org>
84231
84232         * m4/sockpfaf.m4: New file.
84233
84234 2004-11-05  Bruno Haible  <bruno@clisp.org>
84235
84236         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84237         Reported by Mark D. Baushke <mdb@cvshome.org>.
84238
84239 2004-11-04  Bruno Haible  <bruno@clisp.org>
84240
84241         2004-09-11  Bruno Haible  <bruno@clisp.org>
84242                 * allocsa.valgrind: New file.
84243         2004-02-06  Bruno Haible  <bruno@clisp.org>
84244                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84245                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84246                 Reported by Christopher Seip <chris.seip@hp.com>.
84247
84248 2004-11-04  Bruno Haible  <bruno@clisp.org>
84249
84250         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84251         (Makefile.am): Distribute it.
84252
84253 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84254
84255         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84256         with errno == ERANGE if the buffer is too small.
84257         Problem reported by Mark D. Baushke.
84258
84259 2004-11-03  Albert Chin  <china@thewrittenword.com>
84260             Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84263         equivalent, substitute $ac_type for equivalent type rather than
84264         blindly using uint32_t *always* which won't work if uint32_t is not
84265         available.  Define _UINT32_T to work around typedef of uint32_t if
84266         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84267         2.5.1.
84268
84269 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84270
84271         * m4/jm-macros.m4: Sync from coreutils.
84272         (gl_MACROS): Check for mbrlen, for pathchk.
84273         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84274
84275 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84276
84277         * lib/xreadlink.c (MAXSIZE): New macro.
84278         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84279         size does not exceed MAXSIZE.  Avoid cast.
84280         As suggested by Mark D. Baushke in
84281         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84282         if readlink fails with buffer size just under MAXSIZE, try again
84283         with MAXSIZE.
84284
84285 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84286
84287         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84288
84289 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84290         and  Paul Eggert  <eggert@cs.ucla.edu>
84291
84292         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84293         (get_date): Overparenthesize to avoid GCC warning.
84294
84295 2004-11-02  Bruno Haible  <bruno@clisp.org>
84296
84297         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84298         returns void.
84299
84300 2004-11-02  Bruno Haible  <bruno@clisp.org>
84301
84302         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84303         function returns void.
84304
84305 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84306
84307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84308         fflush_unlocked, flockfile, funlockfile, funlockfile,
84309         fputs_unlocked, putc_unlocked.
84310
84311 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84314         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84315         already declared.
84316
84317 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84318
84319         * modules/getdate (Files): Add doc/getdate.texi.
84320         (Depends-on): Add setenv, xalloc.
84321
84322 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         * lib/getdate.y: Add support for TZ="foo" within a date string.
84325         Fix some bugs near time_t boundaries.  Reject dates with
84326         out-of-range components, e.g., "Sept 31".
84327         Include <stdlib.h>, "setenv.h", "xalloc.h".
84328         (ISDIGIT_LOCALE): Remove; unused.
84329         Note that the TZ and time functions used here are not reentrant.
84330         (mktime_ok, get_tz): New functions.
84331         (TZBUFSIZE): New constant.
84332         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84333         This requires that we sometimes generate our own TZ="XXX..." setting.
84334
84335 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84336
84337         * doc/getdate.texi: New file, from coreutils with modifications for
84338         the new TZ parsing.
84339
84340 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84341
84342         * lib/mktime.c (not_equal_tm): Remove redundant check.
84343
84344 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84345
84346         * modules/regex (lib_SOURCES): Add regex.c.
84347         Reported by James Youngman in
84348         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84349
84350 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84351
84352         * lib/getdate.y: Use Bison 1.875 features, and some minor
84353         code cleanups.  This change does not affect semantics.
84354         Don't include <stdlib.h>; no longer needed.
84355         Don't include unlocked-io.h; only the "#if TEST" code uses
84356         stdio, and performance isn't crucial there.
84357         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84358         Bison 1.875 features as described below.
84359         All uses of "PC." replaced by "pc->".
84360         (YYSTYPE): Add a forward declaration.
84361         (yylex, yyerror): Use full prototypes in forward decls.
84362         Use "%pure-parser" rather than obsolescent "%pure_parser".
84363         Use %parse-param and %lex-param instead of obsolescent
84364         YYPARSE_PARAM and YYLEX_PARAM.
84365         (meridian_table, month_and_day_table, time_units_table,
84366         relative_time_table, time_zone_table, military_table,
84367         lookup_zone, lookup_word, get_date):
84368         Use NULL instead of 0 where appropriate.
84369         (to_hour): Avoid abort (), to avoid a dependency on
84370         stdlib.h.
84371         (yyerror, yylex): Now accepts parser_control * arg.
84372         (main) [TEST]: Use '\0' rather than 0 for char.
84373
84374 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84375
84376         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84377
84378 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84379
84380         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84381         It's now the caller's responsibility to handle the case where
84382         !HAVE_GETPAGESIZE && !defined getpagesize.
84383
84384         * lib/mktime.c (leapyear): Arg is long int, not int.
84385
84386 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84387
84388         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84389
84390 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84393         missing.  Problem reported by James Youngman.
84394
84395 2004-10-16  Simon Josefsson  <jas@extundo.com>
84396
84397         * gnulib-tool: Fix comments.  Fix parse problem.
84398         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84399
84400 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84401
84402         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84403         implementation of getopt_long.  Problem reported by Alexander Taler in:
84404         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84405
84406 2004-10-15  Bruno Haible  <bruno@clisp.org>
84407
84408         * gnulib-tool: Untabify. Initialize supplied_libname.
84409         (func_usage): More homogenous output.
84410         (func_modules_transitive_closure, func_modules_to_filelist,
84411         func_emit_lib_Makefile_am): New functions.
84412         (func_import): New function, extracted from big case statement. Use
84413         func_get_license, func_modules_transitive_closure,
84414         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84415         opt_lgpl. Don't use test -a, as it's not portable.
84416         (func_create_testdir): Use func_modules_transitive_closure,
84417         func_modules_to_filelist, func_emit_lib_Makefile_am.
84418
84419 2004-10-15  Bruno Haible  <bruno@clisp.org>
84420
84421         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84422
84423 2004-10-15  Bruno Haible  <bruno@clisp.org>
84424
84425         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84426         the portions belonging to each module.
84427         Suggested by Derek Robert Price <derek@ximbiot.com>.
84428
84429 2004-10-12  Simon Josefsson  <jas@extundo.com>
84430
84431         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84432         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84433         to real functions.
84434
84435 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84436
84437         * modules/vsnprintf: New file.
84438
84439 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84440
84441         * m4/vsnprintf.m4: New file.
84442
84443 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84444
84445         * lib/vsnprintf.h: New file.
84446         * lib/vsnprintf.c: New file.
84447
84448 2004-10-11  Bruno Haible  <bruno@clisp.org>
84449
84450         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84451         vsnprintf.
84452
84453 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84456
84457 2004-10-07  Bruno Haible  <bruno@clisp.org>
84458
84459         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84460         fits into the provided buffer.
84461
84462 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84463
84464         * lib/diacrit.c, diacrit.h: Add GPL notice.
84465
84466         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84467         notice.
84468         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84469         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84470         This avoids a potential constant-folding bug.
84471
84472 2004-10-05  Bruno Haible  <bruno@clisp.org>
84473
84474         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84475         for the declaration of strsep.
84476
84477 2004-10-05  Bruno Haible  <bruno@clisp.org>
84478
84479         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84480
84481 2004-10-04  Simon Josefsson  <jas@extundo.com>
84482
84483         * modules/memmem: New file.
84484         * tests/test-memmem.c: New file.
84485         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84486
84487 2004-10-04  Simon Josefsson  <jas@extundo.com>
84488
84489         * m4/memmem.m4: New file.
84490
84491 2004-10-04  Simon Josefsson  <jas@extundo.com>
84492
84493         * lib/memmem.h: New file.
84494         * lib/memmem.c: New file, taken from glibc.
84495
84496 2004-10-04  Simon Josefsson  <jas@extundo.com>
84497
84498         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84499         '#ifdef USE_UNLOCKED_IO'.
84500
84501 2004-10-04  Simon Josefsson  <jas@extundo.com>
84502
84503         * config/srclist.txt: Add memmem from glibc.
84504
84505 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84508
84509         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84510         modules/exclude, modules/getdate, modules/getline,
84511         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84512         modules/getusershell, modules/linebuffer, modules/md5,
84513         modules/mountlist, modules/posixtm, modules/readtokens,
84514         modules/readutmp, modules/regex, modules/sha1,
84515         modules/version-etc, modules/yesno:
84516         Remove dependency on unlocked-io.
84517
84518 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84521
84522         * m4/unlocked-io.m4: Add copyright notice.
84523         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84524
84525 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84526
84527         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84528         * lib/xmalloc.c (xmemdup): Likewise.
84529         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84530         XFREE): Remove these long-obsolescent macros.
84531         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84532         * lib/xstrdup.c: Remove.
84533
84534         * lib/regex.c (re_comp): Cast gettext return value to char *,
84535         Problem reported by Martin Neitzel via Mark D. Baushke.
84536
84537 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84538
84539         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84540         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84541         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84542         regex.c, sha1.c, version-etc.c, yesno.c:
84543         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84544         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84545         the includer's responsibility.
84546
84547         Sync from coreutils.
84548
84549         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84550         points to the start of a string, as the C Standard says the
84551         resulting behavior is undefined.
84552
84553         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84554         simple -> simple_backups, numbered_existing ->
84555         numbered_existing_backups, numbered -> numbered_backups
84556         to avoid shadowing problems.  All uses changed.
84557         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84558         * lib/backupfile.c (check_extension, numbered_backup):
84559         Rename locals to avoid shadowing 'basename'.
84560         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84561         once.
84562
84563         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84564         * lib/.cvsignore: Add getopt.h.
84565
84566 2004-10-04  Bruno Haible  <bruno@clisp.org>
84567
84568         * modules/README: New file.
84569         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84570         not a module.
84571
84572 2004-10-02  Jim Meyering  <jim@meyering.net>
84573
84574         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84575
84576 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84577
84578         * modules/strsep: New file.
84579
84580 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84581
84582         * m4/strsep.m4: New file.
84583
84584 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84585
84586         * lib/strsep.h: New file.
84587         * lib/strsep.c: New file.
84588
84589 2004-10-01  Simon Josefsson  <jas@extundo.com>
84590
84591         * lib/snprintf.c (snprintf): Handle size==0.
84592
84593 2004-10-01  Simon Josefsson  <jas@extundo.com>
84594             Bruno Haible  <bruno@clisp.org>
84595
84596         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84597         (snprintf): Declare 'args'.
84598
84599 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84600
84601         * lib/snprintf.c: Remove comments as to why each header is needed.
84602
84603 2004-10-01  Bruno Haible  <bruno@clisp.org>
84604
84605         * MODULES.html.sh: Add strsep.
84606
84607 2004-09-30  Simon Josefsson  <jas@extundo.com>
84608
84609         * modules/snprintf: New file.
84610
84611 2004-09-30  Simon Josefsson  <jas@extundo.com>
84612
84613         * m4/snprintf.m4: New file.
84614
84615 2004-09-30  Simon Josefsson  <jas@extundo.com>
84616
84617         * lib/snprintf.h, lib/snprintf.c: New files.
84618
84619 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84620
84621         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84622         (hol_entry_help): Never translate an empty string.
84623         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84624         * lib/argp.h (OPTION_NO_TRANS): New option.
84625
84626 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         * modules/argp (Maintainer): Replace Simon Josefsson
84629         by Sergey Poznyakoff.
84630
84631 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84634         changes merged back into glibc.
84635
84636 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84637
84638         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84639
84640 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84641
84642         * lib/xvasprintf.c: Include xalloc.h.
84643         (xvasprintf): Use xalloc_die, not xmalloc_die.
84644
84645 2004-09-29  Bruno Haible  <bruno@clisp.org>
84646
84647         * modules/alloca-opt: New file, derived from modules/alloca.
84648         * modules/allocsa: Depend on alloca-opt instead of alloca.
84649         * modules/setenv: Likewise.
84650         * modules/vasnprintf: Likewise.
84651         * MODULES.html.sh: Add alloca-opt.
84652
84653 2004-09-28  Simon Josefsson  <jas@extundo.com>
84654
84655         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84656         LGPL, and to replace license template from GPL to LGPL.
84657
84658 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84659
84660         * modules/dummy: Change license to LGPL.
84661
84662 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84665
84666 2004-09-24  Simon Josefsson  <jas@extundo.com>
84667
84668         * modules/minmax (License): Change from GPL to LGPL.
84669
84670 2004-09-23  Simon Josefsson  <jas@extundo.com>
84671
84672         * gnulib-tool (--import): Typo.
84673
84674 2004-09-23  Simon Josefsson  <jas@extundo.com>
84675
84676         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84677
84678 2004-09-22  Bruno Haible  <bruno@clisp.org>
84679
84680         * modules/*: Add 'License' field.
84681         * gnulib-tool: Accept --extract-license option.
84682         (func_get_license): New function.
84683
84684 2004-09-21  Bruno Haible  <bruno@clisp.org>
84685
84686         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84687         Reported by Simon Josefsson.
84688
84689 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84690
84691         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84692         gl_AC_TYPE_LONG_LONG.
84693
84694 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84695
84696         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84697
84698 2004-09-18  Simon Josefsson  <jas@extundo.com>
84699         and  Paul Eggert  <eggert@cs.ucla.edu>
84700
84701         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84702         calls with autoreconf.  Define GL_LIB.
84703
84704 2004-09-14  Karl Berry  <karl@gnu.org>
84705
84706         * config/srclist.txt: unsync setenv.c, sigh.
84707
84708 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84711         Problem reported by Bruno Haible in:
84712         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84713
84714 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84715
84716         * config/srclist.txt: Comment out argp-pvh.c.
84717
84718 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84719
84720         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84721         in case some system header has #define'd it.  Problem reported by
84722         Soeren D. Schulze in
84723         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84724
84725 2004-09-09  Karl Berry  <karl@gnu.org>
84726
84727         * regex.[ch]: delete from the root.  These were supposed to be
84728                 synced with emacs cvs, but this has not happened for about
84729                 a year, and anyway nothing else uses emacs regex.[ch].
84730                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84731                 lib/regex[.ch] is untouched.
84732
84733 2004-09-09  Bruno Haible  <bruno@clisp.org>
84734
84735         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84736
84737 2004-09-09  Bruno Haible  <bruno@clisp.org>
84738
84739         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84740         modifications.
84741         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84742
84743 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84744
84745         * modules/xvasprintf: New file.
84746         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84747
84748 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84749
84750         * lib/xvasprintf.h: New file.
84751         * lib/xvasprintf.c: New file.
84752         * lib/xasprintf.c: New file.
84753
84754 2004-09-08  Bruno Haible  <bruno@clisp.org>
84755
84756         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84757
84758 2004-09-08  Bruno Haible  <bruno@clisp.org>
84759
84760         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84761         length is > INT_MAX.
84762         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84763         more.
84764
84765 2004-09-08  Bruno Haible  <bruno@clisp.org>
84766
84767         * lib/stdint_.h: New file, taken from GNU clisp.
84768
84769 2004-09-08  Bruno Haible  <bruno@clisp.org>
84770             Oskar Liljeblad  <oskar@osk.mine.nu>
84771
84772         * modules/stdint: New file.
84773         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84774
84775 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84776
84777         Import from coreutils.
84778         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84779         strings on unbounded length.  alloca's performance benefits aren't
84780         that important here.
84781         (V_STRDUP): Remove.
84782         (parse_with_separator): New function, with most of the internals
84783         of the old parse_user_spec.  Allow user to omit both user and group,
84784         for compatibility with FreeBSD.
84785         Clone only the user name, not the entire spec.
84786         Do not set *uid, *gid unless entirely successful.
84787         Avoid memory leak in some failing cases.
84788         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84789         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84790         (parse_user_spec): Rewrite to use parse_with_separator.
84791
84792 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84793
84794         * modules/userspec: Don't depend on alloca.
84795
84796 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84797
84798         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84799
84800 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84801
84802         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84803         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84804         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84805
84806 2004-08-16  Simon Josefsson  <jas@extundo.com>
84807
84808         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84809         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84810         Add --dry-run for --import.
84811         Let user provided command line parameters override configure.ac
84812         settings.
84813
84814 2004-08-12  Simon Josefsson  <jas@extundo.com>
84815
84816         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84817         as discussed with Paul Eggert in threads rooted at
84818         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84819         and
84820         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84821         Before, the test was empty, and relied on ELIDE_CODE in source
84822         code.)
84823         (gl_PREREQ_GETOPT): New macro.
84824         (gl_GETOPT): Use them.
84825
84826 2004-08-12  Simon Josefsson  <jas@extundo.com>
84827
84828         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84829         * lib/getopt_.h: Renamed from getopt.h.
84830
84831 2004-08-12  Simon Josefsson  <jas@extundo.com>
84832
84833         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84834         Change default library name from libfoo to libgnu.
84835         Now, if you have a configure.ac that says:
84836                 gl_SOURCE_BASE(gl)
84837                 gl_M4_BASE(gl/m4)
84838                 gl_MODULES(error getopt etcetera)
84839                 gl_INIT
84840         you can import all you need by running:
84841                 ../gnulib/gnulib-tool --import
84842
84843         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84844         (Makefile.am): Rewrite, use logic from argz.
84845         (Include): Use <getopt.h> instead of "getopt.h".
84846
84847 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84848
84849         * modules/argp (Files): Add m4/unlocked-io.m4.
84850         (Depends-on): Add extensions.
84851
84852 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84853
84854         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84855         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84856         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84857         Check for program_invocation_name, program_invocation_short_name,
84858         flockfile, funlockfile, features.h, _getopt_long_only_r.
84859
84860 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84861
84862         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84863         its complicated substitute.
84864         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84865         and program_invocation_name.
84866         (__argp_basename) [!_LIBC]: Remove; the only use was
84867         replaced by its body.
84868         (__argp_short_program_name): Change condition from
84869         !defined __argp_short_program_name to
84870         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84871         to match argp-namefrob.h.
84872         (__argp_failure): Don't assume strerror_r returns char *.
84873         * lib/argp-parse.c (N_): Define unconditionally.
84874         (argp_default_options): Fill out initializers with 0 to avoid
84875         gcc warnings.
84876
84877 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84878
84879         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84880         getopt1.c.
84881
84882 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84883
84884         Merge from coreutils.
84885
84886         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84887
84888         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84889         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84890
84891 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84892
84893         Merge from coreutils.
84894
84895         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84896         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84897         for Reliant Unix 5.43.
84898
84899         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84900         (union fooround): Use uintmax_t, not long int.
84901         The rest is a merge from libc:
84902         [defined _LIBC]: Include <shlib-compat.h>.
84903         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84904
84905         * lib/settime.c (settime): Recode to avoid warning with
84906         Sun Forte C 6U2.
84907
84908         * lib/strverscmp.c: Convert to UTF-8.
84909
84910 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84913         m4/uintmax_t.m4.
84914
84915 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         * modules/xalloc-die: New file.
84918         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84919
84920         * modules/md5 (Files): Add m4/uint32_t.m4.
84921         * modules/sha1: Renamed from modules/sha.
84922         (Files):
84923         Rename lib/sha.h to lib/sha1.h.
84924         Rename lib/sha.c to lib/sha1.c.
84925         Rename m4/sha.m4 to m4/sha1.m4.
84926         (lib_SOURCES): Likewise.
84927         (configure.ac): Rename gl_SHA to gl_SHA1.
84928         (Include): sha.h -> sha1.h.
84929
84930 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84931
84932         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84933         * m4/sha1.m4: Renamed from sha.m4.
84934         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84935
84936 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84937
84938         * lib/obstack.h (obstack_empty_p):
84939         Don't assume that chunk->contents is suitably aligned.
84940         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84941         Likewise. Problem reported by Benno in
84942         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84943
84944         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84945         readable.  This could be improved further but it'd take some work.
84946
84947 2004-08-08  Simon Josefsson  <jas@extundo.com>
84948
84949         * modules/xgethostname (Depends-on): Remove exit and error (not
84950         used).
84951
84952         * modules/getpass-gnu: Add getpass.h.
84953         (Depends-on): Add stdbool.
84954         * modules/getpass: Add getpass.h.
84955
84956 2004-08-08  Simon Josefsson  <jas@extundo.com>
84957
84958         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84959         Check getpass declaration.
84960
84961 2004-08-08  Simon Josefsson  <jas@extundo.com>
84962
84963         * lib/xgethostname.c: Don't include error.h (not used).
84964
84965         * lib/getpass.h: Add.
84966         * lib/getpass.c: Include getpass.h first.
84967
84968 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84969
84970         * lib/xalloc-die.c: New file.
84971         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84972         All uses removed.
84973         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84974         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84975         xalloc-die.c.
84976         (_, N_, xalloc_die): Move to xalloc-die.c.
84977         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84978         so that we needn't mess with xalloc_msg_memory_exhausted.
84979
84980         * lib/sha1.h: Renamed from sha.h.
84981         (SHA1_H): Renamed from _SHA_H.
84982         (sha1_ctx): Renamed from sha_ctx.
84983         (sha1_init_ctx): Renamed from sha_init_ctx.
84984         (sha1_process_block): Renamed from sha_process_block.
84985         (sha1_process_bytes): Renamed from sha_process_bytes.
84986         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84987         (sha1_read_ctx): Renamed from sha_read_ctx.
84988         (sha1_stream): Renamed from sha_stream.
84989         (sha1_buffer): Renamed from sha_buffer.
84990         * lib/sha1.c: Likewise; renamed from sha.c.
84991         Do not include <sys/types.h>.
84992         Include <stddef.h> rather than <stdlib.h>.
84993
84994 2004-08-08  Bruno Haible  <bruno@clisp.org>
84995
84996         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84997         FILESYSTEM_PREFIX_LEN.
84998         * lib/progreloc.c: Likewise.
84999         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85000
85001 2004-08-06  Simon Josefsson  <jas@extundo.com>
85002
85003         * modules/progname (Depends-on): Don't depend on stdbool.
85004
85005 2004-08-06  Simon Josefsson  <jas@extundo.com>
85006
85007         * modules/getsubopt: New file.
85008         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85009         getsubopt.
85010
85011 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85012
85013         More merge from coreutils.
85014
85015         * m4/utimens.m4, m4/utimecmp.m4: New files.
85016         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85017         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85018         prereq.m4, sha.m4: Import changes from coreutils.
85019
85020 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85021
85022         More merge from coreutils.
85023         * modules/raise, modules/readtokens0, modules/utimens:
85024         * modules/utimecmp, module/xnanosleep: New files.
85025         * modules/strftime: Add lib/strftime.h.
85026         Change include from <time.h> to "strftime.h".
85027         * modules/yesno: Add lib/yesno.h.
85028         * modules/backupfile: Remove lib/addext.c.
85029         * modules/euidaccess: Add stat-macros.h.
85030         * modules/canonicalize, modules/euidaccess,
85031         modules/filemode, modules/lchown, modules/makepath,
85032         modules/rmdir, modules/stat: Likewise.
85033
85034 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85035
85036         Merge from tar.
85037         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85038         SIZE_MAX is a valid preprocessor constant.
85039         (__argp_basename): Change from "#ifndef _LIBC"
85040         to "#ifndef __argp_short_program_name", so that
85041         we don't compile these functions for tar.
85042
85043         More merges from coreutils.
85044         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85045         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85046         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85047         * lib/addext.c: Remove; no longer needed.
85048         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85049         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85050         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85051         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85052         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85053         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85054         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85055         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85056         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85057         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85058         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85059         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85060         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85061         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85062         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85063         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85064         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85065         Import changes from coreutils.
85066
85067 2004-08-05  Simon Josefsson  <jas@extundo.com>
85068
85069         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85070
85071 2004-08-05  Simon Josefsson  <jas@extundo.com>
85072
85073         * m4/getsubopt.m4: New file.
85074
85075 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85076
85077         Merge from coreutils.
85078
85079         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85080         * m4/getcwd-path-max.m4: New files.
85081
85082         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85083         FILESYSTEM_PREFIX_LEN ->
85084         FILE_SYSTEM_PREFIX_LEN.
85085         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85086         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85087         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85088         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85089
85090         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85091         prerequisite modules now handle the DOS stuff.
85092         Don't check for unistd.h.
85093
85094 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85095
85096         Merge from coreutils.
85097
85098         * lib/.gdb-history: Remove; this doesn't belong here.
85099
85100         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85101         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85102         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85103         * lib/getcwd.c: New files.
85104
85105         * lib/dirname.h: Include <stdbool.h>.
85106         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85107         for consistency with POSIX terminology.  All uses changed.
85108         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85109         (strip_trailing_slashes): Use bool for booleans.
85110         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85111
85112         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85113         sometimes returns a positive errno value even when it succeeds.
85114         (print_errno_message) [!LIBC]: Fall back on strerror if
85115         __strerror_r fails.
85116
85117         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85118         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85119         (longest_relative_suffix): New function.
85120         (path_concat): Use it.  Assume first argument is not NULL.
85121         Port to DOS.  Omit redundant separators.
85122         Report an error instead of returning NULL.
85123         Use mempcpy instead of memcpy.
85124         (xpath_concat): Remove: not declared or used.
85125
85126         * lib/same.h: Include <stdbool.h>
85127         (same_name): Return bool, not int.
85128         * lib/same.c (same_name): Likewise.
85129         (errno): Don't declare; we assume C89 or better now.
85130
85131         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85132         if not already defined.
85133
85134         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85135         * lib/dup-safer.c (errno): Likewise.
85136
85137 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85138
85139         Merge from coreutils.
85140         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85141         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85142         * modules/path-concat: Don't depend on strdup.
85143
85144 2004-08-03  Simon Josefsson  <jas@extundo.com>
85145
85146         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85147         * lib/progname.h: Don't include stdbool.h.
85148
85149 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85150
85151         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85152         * MODULES.html.sh (func_all_modules): Remove fatal.
85153
85154 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85155
85156         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85157
85158 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85159
85160         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85161         working.
85162
85163 2004-08-02  Simon Josefsson  <jas@extundo.com>
85164
85165         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85166         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85167         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85168
85169 2004-08-01  Simon Josefsson  <jas@extundo.com>
85170
85171         * lib/xgetdomainname.c: Include stdlib.h, for free().
85172
85173 2004-07-19  Bruno Haible  <bruno@clisp.org>
85174
85175         * MODULES.html.sh (func_all_modules): Add dummy.
85176
85177 2004-07-16  Simon Josefsson  <jas@extundo.com>
85178
85179         * modules/dummy: New file.
85180
85181 2004-07-16  Simon Josefsson  <jas@extundo.com>
85182
85183         * lib/dummy.c: New file.
85184
85185 2004-07-16  Bruno Haible  <bruno@clisp.org>
85186
85187         * lib/backupfile.h: Add extern "C" for C++.
85188         * lib/closeout.h: Likewise.
85189         * lib/copy-file.h: Likewise.
85190         * lib/findprog.h: Likewise.
85191         * lib/full-write.h: Likewise.
85192         * lib/pathname.h: Likewise.
85193         * lib/progname.h: Likewise.
85194         * lib/stpcpy.h: Likewise.
85195         * lib/stpncpy.h: Likewise.
85196         * lib/strcase.h: Likewise.
85197         * lib/strstr.h: Likewise.
85198         * lib/xalloc.h: Likewise.
85199
85200         * lib/mbswidth.h: Add extern "C" for C++.
85201         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85202
85203 2004-07-13  Robert Millan  <robertmh@gnu.org>
85204
85205         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85206
85207 2004-07-09  Simon Josefsson  <jas@extundo.com>
85208
85209         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85210         failed without this.)
85211
85212 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85213
85214         * modules/chown (Files): Add lib/fchown-stub.c, since
85215         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85216
85217 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85218
85219         * lib/fchown-stub.c: New file.
85220
85221 2004-06-24  Jim Meyering  <jim@meyering.net>
85222
85223         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85224
85225 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         * modules/argz: Omit "#include".
85228
85229         * MODULES.html.sh (func_all_modules): Add calloc, to match
85230         2004-06-01 addition of calloc module.
85231
85232 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85233
85234         * m4/argz.m4: New file, which is autoupdated from libtool.
85235
85236 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85237
85238         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85239         libtool.
85240
85241 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85242
85243         * config/srclist-update: Don't insist on "USA." before the
85244         close-comment, as libtool omits the period and puts the */ on a
85245         separate line.
85246         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85247         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85248
85249 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85250
85251         * modules/argz: New file.
85252         * MODULES.html.sh (func_all_modules): Add argz.
85253
85254 2004-06-12  Jim Meyering  <jim@meyering.net>
85255         and  Paul Eggert  <eggert@cs.ucla.edu>
85256
85257         * modules/hash (Files): Add lib/xalloc.h.
85258         * modules/pipe (Depends-on): Add wait-process.
85259         * modules/stat (Depends-on): Add xalloc.
85260         * modules/userspec (Files): Add lib/userspec.h.
85261         * modules/xstrto
85262
85263         Upgrade from gettext-0.13.
85264         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85265         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85266         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85267
85268 2004-06-10  Jim Meyering  <jim@meyering.net>
85269
85270         * lib/calloc.c: New file.
85271
85272 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         * lib/getdate.y (yylex): Allow space between sign and number.
85275         Problem reported by Dan Jacobson.
85276
85277 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85278
85279         Merge from coreutils CVS.
85280
85281         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85282         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85283         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85284         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85285         xstrtol.m4: Fix copyright date and/or serial number.
85286
85287         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85288         See if we need an fchown replacement.
85289         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85290         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85291         and use the replacement function if we detect either defect.
85292
85293         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85294         gl_UTIMECMP.
85295
85296 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85297         and  Jim Meyering  <jim@meyering.net>
85298
85299         Merge from coreutils CVS.
85300
85301         * lib/stat-macros.h: New file, with contents from file-type.h
85302         and coreutils' system.h.
85303         * lib/file-type.c: Include "stat-macros.h".
85304         * lib/file-type.h (file_type): Move all macro definitions to new file,
85305         stat-macros.h.
85306
85307         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85308         Wrap old code with this conditional.
85309         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85310         function that does not dereference symlinks.
85311         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85312
85313         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85314         dependency problems.
85315         (xreadlink): Accept new arg SIZE, for efficiency.
85316         All decls and uses changed.
85317         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85318
85319         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85320         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85321
85322         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85323         sysexits.h.
85324
85325 2004-06-01  Jim Meyering  <jim@meyering.net>
85326
85327         * m4/calloc.m4: New file.
85328
85329 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85330
85331         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85332         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85333         Also, fix a typo in a diagnostic.
85334
85335 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85336
85337         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85338         or AC_FUNC_REALLOC.
85339
85340 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85341
85342         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85343         macros to be defined.
85344         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85345         the allocator returns NULL because the requested size is zero.
85346
85347 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85348
85349         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85350         var.  Add comment explaining why libc still defines it.  This
85351         merges the following patch from glibc:
85352         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85353
85354 2004-05-20  Andreas Schwab  <schwab@suse.de>
85355
85356         * m4/free.m4: Replace free if it not known to work, not the other
85357         way round.
85358
85359 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85360
85361         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85362         present in glibc since revision 1.1 of this file.
85363         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85364         obstack_alignment_mask, obstack_alloc, obstack_base,
85365         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85366         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85367         obstack_grow0, obstack_init, obstack_int_grow,
85368         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85369         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85370         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85371         nonexistent functions.
85372
85373 2004-05-18  Karl Berry  <karl@gnu.org>
85374
85375         * config/srclist.txt: break link for vasnprintf.c.
85376
85377 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85378
85379         Port obstack to the AS/400, where pointers are 16 bytes wide and
85380         you cannot cast an integer to a valid pointer.  This patch is
85381         currently waiting to be integrated into glibc; see
85382         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85383
85384         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85385         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85386         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85387         (struct obstack): temp member is now a union of a pointer and
85388         an integer, instead of an integer.  All integer uses changed.
85389         This does not affect the physical layout of struct obstack,
85390         except on hosts (like the AS/400) where the size or alignment of
85391         void * is greater than that of ptrdiff_t.
85392         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85393         __STDC__)]: Store temporary in pointer member of union, not
85394         integer member.
85395         * lib/obstack.c: Include <stddef.h>, for offsetof.
85396         (struct fooalign): Remove; it doesn't need a name.
85397         (union fooround): Change double to long double, and add void *.
85398         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85399         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85400         not a macro.  Hence the values are always int; so remove all
85401         casts-to-int in uses.
85402
85403 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85406         we can get this patch merged into glibc.
85407
85408 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85409             Paul Eggert  <eggert@cs.ucla.edu>
85410
85411         * m4/argp: Depend on alloca.
85412
85413 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85414             Paul Eggert  <eggert@cs.ucla.edu>
85415
85416         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85417         freecoding.
85418
85419 2004-05-17  Bruno Haible  <bruno@clisp.org>
85420
85421         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85422         precision that consists of a '.' followed by an empty digit string.
85423         Patch by Tor Lillqvist <tml@iki.fi>.
85424
85425 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85428         for backward compatibility with older code.  We need our own
85429         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85430         it under some other name, and our alloca.h will define it.
85431
85432 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85433             Derek Price  <derek@ximbiot.com>
85434
85435         * lib/alloca.c: Include <alloca.h>, to get our interface.
85436         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85437         include <alloca.h> first.  Use C89 prototype for alloca; this
85438         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85439         Use #elif for simplicity, since we can assume C89 now.
85440         Don't try to source the system alloca.h since it will not be found
85441         and to prevent recursively including its replacement.
85442         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85443         * lib/regex.c: Likewise.
85444
85445 2004-05-16  Derek Price  <derek@ximbiot.com>
85446             Paul Eggert  <eggert@cs.ucla.edu>
85447
85448         getline cleanup.  This changes the getndelim2 API: both order of
85449         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85450         no delimiter).
85451
85452         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85453         interface does that.
85454         (getline): Always use getdelim, so that we don't have two
85455         copies of this code.
85456         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85457         if available.
85458         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85459         (GETNDELIM2_MAXIMUM): New macro.
85460         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85461         instead of the old practice of delim2==0.  All callers changed.
85462         Return -1 on overflow, instead of returning junk.
85463         Do not set *linesize unless allocation succeeds.
85464         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85465         that we include sys/types.h.
85466         * lib/getnline.h: Likewise.
85467         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85468         (getndelim2): Reorder arguments.
85469         * lib/getnline.c (getnline, getndelim):
85470         Don't discard the NMAX argument.
85471         (getnline): Invoke getndelim, to avoid code duplication.
85472         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85473         of (size_t) -1 by callers of the getnline family.
85474
85475 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85478         Check for gettimeofday.
85479         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85480         Check for settimeofday, stime.
85481
85482 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85483
85484         * lib/nanosleep.c (suspended): Change its type from int to
85485         sig_atomic_t volatile.
85486         (first_call): Make it private to rpl_nanosleep, and have it
85487         be zero initially as that's a bit faster.
85488         (my_usleep): Round up fractional times instead of truncating them,
85489         as this is the usual meaning for 'sleep'.
85490
85491         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85492         doesn't work.
85493         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85494         (ENOSYS): Define if not defined.
85495         (settime): Fall back on stime if it exists and settimeofday fails.
85496         But don't bother with fallbacks if a method fails with errno == EPERM.
85497
85498 2004-05-11  Jim Meyering  <jim@meyering.net>
85499
85500         Prior to this change, the save_cwd caller required read access to the
85501         current directory on most systems (ones with the fchdir function).
85502
85503         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85504         fails, try write-only, and finally, resort to using xgetcwd.
85505
85506 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85507
85508         * lib/obstack.c, obstack.h: Import changes from libc.
85509
85510 2004-04-28  Bruno Haible  <bruno@clisp.org>
85511
85512         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85513         also implicitly appends .exe to executables.
85514         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85515         accepts Windows pathnames.
85516         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85517         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85518         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85519         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85520         Reported by Derek Robert Price <derek@ximbiot.com>.
85521
85522 2004-04-21  Karl Berry  <karl@gnu.org>
85523
85524         * config/srclist.txt (localcharset.c): break sync.
85525
85526 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85527
85528         * m4/host-os.m4: Add a copyright notice.
85529
85530 2004-04-20  Jim Meyering  <jim@meyering.net>
85531
85532         Change UTILS_ to gl_ in AC_DEFINE'd names.
85533         Change utils_- and jm_-prefixed variables, too.
85534         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85535         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85537
85538         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85539         Don't emit trailing blanks.
85540         Also rename jm_-prefixed variables to have gl_ prefix.
85541
85542         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85543         Also rename jm_-prefixed variables to have gl_ prefix.
85544
85545         * m4/jm-macros.m4: Reflect the renamings.
85546         * m4/prereq.m4: Likewise.
85547
85548 2004-04-20  Jim Meyering  <jim@meyering.net>
85549
85550         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85551         memory.
85552
85553 2004-04-20  Jim Meyering  <jim@meyering.net>
85554             Bruno Haible  <bruno@clisp.org>
85555
85556         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85557         memory when realloc fails.
85558
85559 2004-04-19  Jim Meyering  <jim@meyering.net>
85560
85561         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85562         now that readutmp.c may call `free (0)'.
85563
85564 2004-04-19  Bruno Haible  <bruno@clisp.org>
85565
85566         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85567         * m4/inttypes_h.m4: Likewise.
85568         * m4/stdint_h.m4: Likewise.
85569         * m4/intmax_t.m4: Likewise.
85570         * m4/uintmax_t.m4: Likewise.
85571
85572 2004-04-18  Jim Meyering  <jim@meyering.net>
85573
85574         * m4/prereq.m4: Don't forbid jm_ prefix.
85575
85576         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85577         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85578         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85579         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85580         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85581         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85582         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85583         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85584         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85585         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85586         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85587         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85588         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85589         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85590         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85591         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85592         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85593         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85594         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85595
85596 2004-04-18  Jim Meyering  <jim@meyering.net>
85597
85598         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85599         failure, don't leak memory and do call END_UTMP_ENT.
85600
85601 2004-04-16  Jim Meyering  <jim@meyering.net>
85602
85603         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85604         coreutils' stat program.
85605         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85606
85607 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85608
85609         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85610         C89.
85611         (CHAR_BIT): Remove, since we assume C89.
85612         Include <stdint.h> if available, as per current Autoconf CVS advice.
85613
85614 2004-03-31  Jim Meyering  <jim@meyering.net>
85615
85616         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85617         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85618         * m4/xalloc.m4: Likewise.
85619
85620 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85621
85622         Merge from coreutils.
85623
85624         * m4/inttostr.m4: New file.
85625         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85626         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85627         Require gl_CLOCK_TIME.
85628         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85629
85630 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85631
85632         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85633         not bool, to be more consistent with Unix conventions.
85634         Suggested by Bruno Haible.
85635
85636         Merge from coreutils.
85637
85638         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85639         * lib/umaxtostr.c: New files.
85640
85641         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85642         the usual <time.h> dance.
85643         (get_date): Change signature to support fractional time stamps.
85644         All callers changed.
85645         * lib/getdate.y: Include "getdate.h" first, as we can now
85646         assume C89 and don't need to worry about 'const'.
85647         Similarly, include "unlocked-io.h" near start, not in middle.
85648         Include <limits.h>.
85649         (textint.value): Use long int rather than int.
85650         (textint.digits): Use size_t rather than int.
85651         (BILLION, LOG10_BILLION): New constants.
85652         (parser_control): New member rel_ns.  Members day_ordinal,
85653         time_zone, month, day, hour, minutes, rel_year, rel_month,
85654         rel_day, rel_hour, rel_minutes, rel_seconds
85655         are now long int, not int.  Member seconds is now struct timespec,
85656         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85657         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85658         not int.
85659         (%union.intval): Now long int, not int.
85660         New member timespec.
85661         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85662         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85663         (spec): Now is a timespec or an item list.
85664         (timespec, items): New nonterminals.
85665         (time, rel, relunit, number, get_date):
85666         Add support for fractional seconds.
85667         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85668         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85669         (to_hour): First arg is now long int, not int.
85670         (to_year): Returns long int, not int.
85671         Don't treat year -70 like 70.
85672         (tm_diff): Returns long int, not int.
85673         (lookup_word): Use bool instead of int when appropriate.
85674         (yylex): Use size_t for count, not int.
85675         Detect overflow when parsing large integer constants.
85676         Add support for fractions.
85677         (get_date): Make pointers 'const' if possible.
85678         Use more-portable code to detect integer overflow.
85679         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85680         Don't use ctime; it's not reliable if the year has >4 digits.
85681
85682         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85683         This is for compatibility with BSD.
85684
85685         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85686         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85687         From coreutils' system.h.
85688
85689         * lib/userspec.c: Don't include "posixver.h".
85690         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85691         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85692         compatible extension.  Simplify code by removing a boolean int
85693         that was always nonzero if a string was nonnull.
85694
85695 2004-03-30  Jim Meyering  <jim@meyering.net>
85696
85697         Merge from coreutils.
85698
85699         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85700         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85701         on some systems one must include <grp.h> before it.
85702         Reported by Christian Krackowizer.
85703
85704 2004-03-30  Jim Meyering  <jim@meyering.net>
85705
85706         Merge from coreutils.
85707
85708         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85709
85710         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85711         an empty input stream.
85712
85713         * lib/readtokens.c: Include <stdbool.h>.
85714         (readtoken): Use `size_t' rather than int/long.
85715         All callers adjusted.
85716         Use `bool' rather than `int' where appropriate.
85717         Use memset rather than an explicit loop.
85718         Use x2nrealloc rather than xrealloc.
85719         Allow the use of `\0' as a delimiter.
85720         (readtokens): Likewise.
85721         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85722
85723 2004-03-30  Jim Meyering  <jim@meyering.net>
85724
85725         * m4/realloc.m4: Remove file, since now it does no more than
85726         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85727         the `configure.ac' section of module/realloc.
85728         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85729
85730 2004-03-30  Bruno Haible  <bruno@clisp.org>
85731
85732         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85733         nonnull.
85734
85735 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85736
85737         Merge changes to getloadavg.c from coreutils and Emacs.
85738
85739         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85740         Define to an expression, not to the empty string.
85741         Include cloexec.h and xalloc.h.
85742         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85743         Use set_cloexec_flag rather than rolling our own.
85744         * lib/cloexec.c, lib/cloexec.h: New files.
85745
85746 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85747
85748         * m4/cloexec.m4: New file.
85749
85750 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85751
85752         * lib/getopt.h: Sync with libc CVS.
85753
85754 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85755             Bruno Haible  <bruno@clisp.org>
85756
85757         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85758         mbswidth.
85759
85760 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85761             Bruno Haible  <bruno@clisp.org>
85762
85763         * lib/mbswidth.h: Include <wchar.h> only if
85764         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85765         <wchar.h>.
85766         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85767
85768 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85769
85770         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85771         Sync with libc CVS.
85772         * lib/getopt_int.h: New file, also synced from libc.
85773
85774 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85775
85776         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85777         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85778         Bring back getopt.c, getopt.h, getopt1.c.
85779
85780 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85781
85782         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85783         All uses changed.  Check for sa_sigaction member; this fixes
85784         a bug first reported by Jason Andrade in
85785         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85786
85787 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85788
85789         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85790         '#if' expressions.  Unlike the code it replaces, it does not
85791         depend on (defined _SC_PAGESIZE).  However, it does depend on
85792         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85793         first reported by Jason Andrade in
85794         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85795
85796 2004-02-25  Simon Josefsson  <jas@extundo.com>
85797
85798         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85799
85800 2004-02-25  Simon Josefsson  <jas@extundo.com>
85801
85802         * lib/strdup.h: New file.
85803         * lib/strdup.c: Include it.
85804         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85805         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85806
85807 2004-02-23  Karl Berry  <karl@gnu.org>
85808
85809         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85810         (from fencepost.gnu.org:/gd/gnuorg).
85811
85812 2004-02-23  Karl Berry  <karl@gnu.org>
85813
85814         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85815         * config/srclist.txt: add maintain/standards documents.
85816
85817 2004-02-18  Bruno Haible  <bruno@clisp.org>
85818
85819         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85820         Reported by Derek Robert Price <derek@ximbiot.com>.
85821
85822 2004-02-16  Karl Berry  <karl@gnu.org>
85823
85824         * config/mkinstalldirs, install-sh: update from automake.
85825
85826 2004-02-06  Karl Berry  <karl@gnu.org>
85827
85828         * m4/po.m4: update from gettext 0.14.1.
85829
85830 2004-02-06  Karl Berry  <karl@gnu.org>
85831
85832         * lib/config.charset: update from gettext 0.14.1.
85833
85834 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85835
85836         Add comments and code, prompted by suggestions from Bruno Haible
85837         for sh-quote.
85838         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85839         describing the enum quoting_style values.
85840         * lib/quotearg.c (quotearg_alloc): New function.
85841         (quotearg_buffer_restyled): Treat lone { and } as special.
85842         Treat = as special.  Work around bug with older shells
85843         that "see" a '\' that is really the 2nd byte of a multibyte char.
85844         Quote empty string with shell_quoting_style.
85845
85846 2004-02-03  Bruno Haible  <bruno@clisp.org>
85847
85848         * m4/pipe.m4: New file, from GNU gettext.
85849
85850 2004-02-03  Bruno Haible  <bruno@clisp.org>
85851
85852         * lib/pipe.h: New file, from GNU gettext.
85853         * lib/pipe.c: New file, from GNU gettext.
85854
85855 2004-01-27  Bruno Haible  <bruno@clisp.org>
85856
85857         * m4/execute.m4: New file, from GNU gettext.
85858
85859 2004-01-27  Bruno Haible  <bruno@clisp.org>
85860
85861         * lib/execute.h: New file, from GNU gettext.
85862         * lib/execute.c: New file, from GNU gettext.
85863         * lib/w32spawn.h: New file, from GNU gettext.
85864
85865 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85866
85867         Merge from diffutils.
85868
85869         * lib/file-type.c (file_type): Add typed memory objects.
85870         * lib/file-type.h (S_TYPEISTMO): New macro.
85871
85872         * lib/c-stack.h (c_stack_action): Remove argv argument.
85873         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85874         (die): Don't calculate message unless segv_action returns.
85875         (get_stack_location, min_address_from_argv, max_address_from_argv,
85876         volatile stack_base, volatile_stack_size): Remove.
85877         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85878         that every segmentation violation is a stack overflow.  (Ouch!)
85879         See Debian bug 136249 (still outstanding) for more info about why
85880         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85881
85882 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85883
85884         Exit-status fix from coreutils.
85885
85886         Use exit_failure consistently in place of EXIT_FAILURE,
85887         so that program exit statuses are consistent on failure.
85888
85889         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85890         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85891         * lib/argmatch.h: Comment fix to match the above.
85892         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85893         Now a macro referring to exit_failure, instead of a separate
85894         variable.  Include "exitfail.h" to get it.
85895         * lib/xstrtol.h: Include "exitfail.h".
85896         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85897
85898         * lib/long-options.c (parse_long_options): Use prototype
85899         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85900         for clarity.
85901
85902 2004-01-21  Jim Meyering  <jim@meyering.net>
85903
85904         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85905         so as not to conflict with a different-sized __mktime_internal
85906         function in GNU libc.
85907         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85908         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85909
85910 2004-01-20  Karl Berry  <karl@gnu.org>
85911
85912         * config/config.guess: update from config.
85913
85914         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85915
85916 2004-01-20  Bruno Haible  <bruno@clisp.org>
85917
85918         Safer stack allocation.
85919         * lib/setenv.c: Include allocsa.h.
85920         (alloca): Remove fallback definition.
85921         (freea): Remove macro.
85922         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85923         instead of freea.
85924
85925 2004-01-20  Bruno Haible  <bruno@clisp.org>
85926
85927         * m4/eealloc.m4: New file, from GNU gettext.
85928
85929 2004-01-20  Bruno Haible  <bruno@clisp.org>
85930
85931         * m4/allocsa.m4: New file, from GNU gettext.
85932
85933 2004-01-20  Bruno Haible  <bruno@clisp.org>
85934
85935         * lib/xallocsa.h: New file, from GNU gettext.
85936         * lib/xallocsa.c: New file, from GNU gettext.
85937
85938 2004-01-20  Bruno Haible  <bruno@clisp.org>
85939
85940         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85941
85942 2004-01-20  Bruno Haible  <bruno@clisp.org>
85943
85944         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85945         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85946         specially.
85947
85948 2004-01-20  Bruno Haible  <bruno@clisp.org>
85949
85950         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85951         patch.
85952
85953 2004-01-20  Bruno Haible  <bruno@clisp.org>
85954
85955         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85956
85957 2004-01-20  Bruno Haible  <bruno@clisp.org>
85958
85959         * lib/eealloc.h: New file.
85960
85961 2004-01-20  Bruno Haible  <bruno@clisp.org>
85962
85963         * lib/binary-io.h: Avoid warnings on Cygwin.
85964
85965 2004-01-20  Bruno Haible  <bruno@clisp.org>
85966
85967         * lib/allocsa.h: New file, from GNU gettext.
85968         * lib/allocsa.c: New file, from GNU gettext.
85969
85970 2004-01-18  Karl Berry  <karl@gnu.org>
85971
85972         * doc/gpl.texi, doc/lgpl.texi: new files.
85973
85974 2004-01-18  Karl Berry  <karl@gnu.org>
85975
85976         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85977         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85978
85979 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85980
85981         Merge from coreutils.
85982
85983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85984         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85985         (gl_DEFAULT_POSIX2_VERSION): Move
85986         the documentation from 'configure' into 'config.hin',
85987         so that 'configure --help' isn't burdened by it and
85988         we don't have to worry about its formatting there.
85989         Reword the documentation so that it's more succinct
85990         and can be run together into a single paragraph.
85991         * m4/same.m4 (gl_SAME): Check for pathconf.
85992
85993 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85994
85995         Merge from coreutils.
85996
85997         * lib/posixver.c: Include posixver.h.
85998
85999         * lib/same.c: Include <stdbool.h>, <limits.h>.
86000         (_POSIX_NAME_MAX): Define if not defined.
86001         (MIN): New macro.
86002         (same_name): If file names are silently truncated, report
86003         that the file names are the same if they are the same after
86004         the silent truncation.
86005
86006         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86007         conversion function.
86008         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86009         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86010         longer needed.
86011
86012 2004-01-15  Jim Meyering  <jim@meyering.net>
86013
86014         Merge from coreutils.
86015
86016         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86017         if no library is required.
86018         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86019         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86020         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86021         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86022         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86023         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86024         value, $ac_cv_search_crypt, if it's "none required".
86025         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86026         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86027         not gl_FUNC_GETLOADAVG.
86028         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86029         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86030
86031 2004-01-15  Jim Meyering  <jim@meyering.net>
86032
86033         Merge from coreutils.
86034
86035         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86036         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86037         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86038
86039         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86040         optional configure-time default.
86041
86042         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86043
86044         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86045
86046 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86047
86048         Merge from coreutils.
86049
86050         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86051         value, $ac_cv_search_nanosleep, if it's "none required".
86052
86053 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86054
86055         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86056         with like-named macro in fnmatch.c.
86057         (EXT): Use an internal constant instead.
86058
86059         Merge fnmatch patches from glibc.
86060         * lib/fnmatch.c (mbsinit): Remove define.
86061         Add libc_hidden_ver (__fnmatch, fnmatch).
86062         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86063         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86064
86065 2004-01-14  Karl Berry  <karl@gnu.org>
86066
86067         * config/install-sh: update from automake.
86068
86069 2004-01-13  Karl Berry  <karl@gnu.org>
86070
86071         * config/install-sh: update from automake.
86072
86073 2004-01-09  Karl Berry  <karl@gnu.org>
86074
86075         * config/install-sh: update from automake.
86076
86077 2004-01-05  Karl Berry  <karl@gnu.org>
86078
86079         * config/config.{sub,guess}: update from config.
86080
86081 2003-12-31  Karl Berry  <karl@gnu.org>
86082
86083         * config/depcomp: update from automake.
86084
86085 2003-12-14  Karl Berry  <karl@gnu.org>
86086
86087         * lib/config.charset: update from gettext-runtime.
86088
86089 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86090
86091         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86092         Bug reported by Alfred M. Szmidt.
86093
86094 2003-12-03  Bruno Haible  <bruno@clisp.org>
86095
86096         * m4/gettext.m4: Upgrade from gettext-0.13.
86097         * m4/po.m4: Upgrade from gettext-0.13.
86098         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86099         * m4/intmax.m4: New file, from gettext-0.13.
86100         * m4/printf-posix.m4: New file, from gettext-0.13.
86101
86102 2003-11-29  Karl Berry  <karl@gnu.org>
86103
86104         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86105
86106 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86107             Bruno Haible  <bruno@clisp.org>
86108
86109         * lib/printf-parse.h: Don't include sys/types.h.
86110         (ARG_NONE): New macro.
86111         (char_directive): Change type of *arg_index fields to size_t.
86112         * lib/printf-parse.c: Don't include sys/types.h.
86113         (SSIZE_MAX): Remove macro.
86114         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86115         Remove unnecessary overflow check.
86116         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86117         fields.
86118
86119 2003-11-25  Bruno Haible  <bruno@clisp.org>
86120
86121         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86122
86123 2003-11-25  Bruno Haible  <bruno@clisp.org>
86124
86125         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86126         gt_TYPE_SSIZE_T.
86127
86128 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86129
86130         * modules/alloca: Remove dependency on xalloc.
86131
86132 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86133
86134         * lib/alloca.c: Remove dependency on xalloc module.
86135         (xalloc_die): Remove.
86136         (memory_full) [!defined emacs]: New macro.
86137         [!defined emacs]: Don't include xalloc.h.
86138         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86139         address arithmetic overflows.  Change datatypes a bit to avoid
86140         unnecessary casts.
86141
86142 2003-11-22  Jim Meyering  <jim@meyering.net>
86143
86144         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86145         s/size/size_t/.
86146
86147 2003-11-21  Karl Berry  <karl@gnu.org>
86148
86149         * config/config.{sub,guess}: update from config.
86150
86151 2003-11-18  Karl Berry  <karl@gnu.org>
86152
86153         * config/config.{sub,guess}: update from config.
86154
86155         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86156
86157 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86158
86159         * README: Mention that S+T cannot overflow if S is the size of
86160         an existing object and T is sufficiently small.
86161
86162 2003-11-17  Jim Meyering  <jim@meyering.net>
86163
86164         On systems without utime and without a utimes function capable of
86165         dealing with a NULL struct utimbuf* argument, this utime replacement
86166         could -- in unusual circumstances -- leak a file descriptor.
86167         * lib/utime.c: Include <unistd.h> and <errno.h>.
86168         (utime_null): Be sure to close `fd' and to preserve errno.
86169         Reported by Geoff Collyer via Arnold Robbins.
86170
86171 2003-11-17  Bruno Haible  <bruno@clisp.org>
86172
86173         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86174         (Depends-on): Add xsize.
86175
86176 2003-11-17  Bruno Haible  <bruno@clisp.org>
86177
86178         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86179
86180 2003-11-17  Bruno Haible  <bruno@clisp.org>
86181
86182         * lib/vasnprintf.c (alloca): Remove fallback definition.
86183         (freea): Remove definition.
86184         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86185         Reported by Paul Eggert.
86186
86187 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86188             Bruno Haible  <bruno@clisp.org>
86189
86190         Protect against address arithmetic overflow.
86191         * lib/printf-args.h: Include stddef.h.
86192         (arguments): Change type of field 'count' to size_t.
86193         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86194         'unsigned int' where appropriate.
86195         * lib/printf-parse.h: Include sys/types.h.
86196         (char_directive): Change type of *arg_index fields to ssize_t.
86197         (char_directives): Change type of fields 'count', max_*_length to
86198         size_t.
86199         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86200         (SSIZE_MAX): Define fallback value.
86201         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86202         instead of 'int' where appropriate. Check a_allocated, d_allocated
86203         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86204         * lib/vasnprintf.c: Include xsize.h.
86205         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86206         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86207         overflow. Avoid wraparound when converting a width or precision from
86208         decimal to binary.
86209
86210 2003-11-16  Bruno Haible  <bruno@clisp.org>
86211
86212         Update from GNU gettext.
86213         * lib/printf-parse.c: Generalize to it can be compiled for wide
86214         strings.
86215         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86216         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86217         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86218         SNPRINTF): New macros.
86219         Don't include <alloca.h> if the file is used inside libintl.
86220         (local_wcslen): New function, for Solaris 2.5.1.
86221         (VASNPRINTF): Use it instead of wcslen.
86222
86223 2003-11-16  Bruno Haible  <bruno@clisp.org>
86224
86225         * lib/xsize.h (xmax): New function.
86226         (xsum, xsum3, xsum4): Declare as "pure" functions.
86227
86228 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86229
86230         * modules/xalloc (Files): Undo latest change, since xalloc.h
86231         no longer needs SIZE_MAX or PTRDIFF_MAX.
86232
86233 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86234
86235         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86236         gl_PTRDIFF_MAX.
86237
86238 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86239
86240         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86241         "return", to pacify some unknown compiler.  Problem reported
86242         by Joerg Schilling.
86243
86244 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86245
86246         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86247         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86248         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86249         heuristic is just as accurate as far as we know, and it removes a
86250         dependency on size_max.m4 and ptrdiff_max.m4.
86251
86252 2003-11-11  Bruno Haible  <bruno@clisp.org>
86253
86254         * modules/xsize (Files): Add m4/size_max.m4.
86255         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86256
86257 2003-11-11  Bruno Haible  <bruno@clisp.org>
86258
86259         * m4/size_max.m4: New file.
86260         * m4/ptrdiff_max.m4: New file.
86261         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86262         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86263         (gl_XALLOC): Invoke it.
86264
86265 2003-11-11  Bruno Haible  <bruno@clisp.org>
86266
86267         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86268         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86269         defined.
86270
86271 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86272
86273         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86274         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86275         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86276         From Bruno Haible.
86277         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86278         not (size_t) -1, since it's defined here.
86279
86280 2003-11-09  Karl Berry  <karl@gnu.org>
86281
86282         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86283
86284 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86285
86286         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86287         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86288         Reject sizes of exactly SIZE_MAX bytes.
86289         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86290         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86291
86292 2003-11-05  Bruno Haible  <bruno@clisp.org>
86293
86294         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86295         SIZE_MAX defined in <limits.h> on Solaris.
86296
86297 2003-11-04  Jim Meyering  <jim@meyering.net>
86298
86299         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86300         variable names, rather than @VAR@.
86301         * modules/poll: Likewise.
86302
86303 2003-11-04  Bruno Haible  <bruno@clisp.org>
86304
86305         * modules/xsize: New file.
86306         * modules/linebreak: Depend on xsize.
86307         * MODULES.html.sh (func_all_modules): Add xsize.
86308
86309 2003-11-04  Bruno Haible  <bruno@clisp.org>
86310
86311         * m4/xsize.m4: New file.
86312
86313 2003-11-04  Bruno Haible  <bruno@clisp.org>
86314
86315         * lib/xsize.h: New file.
86316         * lib/linebreak.c: Include xsize.h.
86317         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86318         argument for overflow.
86319         Suggested by Paul Eggert.
86320
86321 2003-11-03  Karl Berry  <karl@gnu.org>
86322
86323         * config/config.{guess,sub}: update from config.
86324
86325 2003-11-03  Jim Meyering  <jim@meyering.net>
86326
86327         * modules/userspec (lib_SOURCES): Add userspec.h.
86328         (Include): Add "userspec.h".
86329         Improve description.
86330
86331 2003-11-03  Jim Meyering  <jim@meyering.net>
86332
86333         * lib/userspec.c: Include "userspec.h".
86334         * lib/userspec.h: New file.
86335
86336 2003-11-03  Bruno Haible  <bruno@clisp.org>
86337
86338         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86339
86340 2003-11-03  Bruno Haible  <bruno@clisp.org>
86341
86342         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86343         available, to avoid (extremely rare) race condition.
86344         Suggested by Paul Eggert.
86345
86346 2003-11-02  Karl Berry  <karl@gnu.org>
86347
86348         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86349
86350 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86351
86352         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86353         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86354         (read_filesystem_list): Set and use me_type_malloced.
86355         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86356         whatever the type happens to be), for brevity and consistency.
86357         Check for size calculation overflow on Alphas running OSF/1.
86358
86359 2003-10-31  Jim Meyering  <jim@meyering.net>
86360
86361         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86362
86363         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86364
86365 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86366             Bruno Haible  <bruno@clisp.org>
86367
86368         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86369         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86370
86371 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86372
86373         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86374         netbsd*-gnu*.  Suggested by Robert Millan.
86375
86376 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86377
86378         * modules/group-member: Depend on stdbool.
86379
86380 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86381
86382         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86383
86384 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86385
86386         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86387         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86388         after the 'gnu' in these cases.  This fixes some bugs in the
86389         previous change, and is based on suggestions by Robert Millan.
86390
86391 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86392
86393         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86394         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86395         no longer needed.
86396         * lib/quotearg.c (quotearg_n_options): Use it.
86397         * lib/group-member.c: Include <stdbool.h>.
86398         (free_group_info): Arg is now const *; don't free arg.
86399         (get_group_info): Now returns bool and accepts struct group_info *,
86400         rather than returning a malloc'ed struct group_info *.
86401         All uses changed.  Check for overflow in internal size calculation.
86402
86403         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86404         rather than xmalloc/xrealloc.
86405         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86406         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86407         conformance bug: the old code used a pointer after freeing the
86408         storage that it addressed.
86409         * lib/hash.c (hash_initialize): Simplify the code by using
86410         xalloc_oversized rather than doing it by hand.
86411         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86412         the buffer preserved.  Use free and xmalloc instead.
86413         * lib/quotearg.c (quotearg_n_options): Likewise.
86414         Use a simpler test for size overflow.  Don't use xalloc_oversized
86415         because unsigned int might be wider than size_t (!); this suggests
86416         that we should switch from unsigned int to size_t for slot numbers.
86417
86418 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86419
86420         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86421         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86422         NetBSD kernels.  Requested by Richard Stallman.
86423
86424 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86425
86426         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86427         to allocate the returned structure.  Do not allocate a subarray,
86428         as x2nrealloc will do that.
86429         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86430         instead of xnrealloc.
86431         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86432
86433 2003-10-27  Bruno Haible  <bruno@clisp.org>
86434
86435         * lib/stdbool_.h: Better support for BeOS.
86436
86437 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86438
86439         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86440         now uses inline.
86441
86442 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86443
86444         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86445         callers that want to do their own size-overflow checking.  Include
86446         <stdbool.h>, since xalloc_oversized returns bool.
86447         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86448         to use xalloc_oversized.
86449
86450         Add two functions x2realloc, x2nrealloc, for programs that grow
86451         arrays dynamically by doubling their sizes.
86452         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86453         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86454         New functions.
86455
86456         Port to C99 semantics for 'inline' of external functions.
86457         Bug reported by Bruno Haible.
86458         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86459         with the old contents of xnmalloc.
86460         (xnmalloc, xmalloc): Use it.
86461         (xnrealloc_inline): New static inline function,
86462         with the old contents of xnrealloc.
86463         (xnrealloc, xrealloc): Use it.
86464
86465         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86466         that.
86467
86468 2003-10-26  Karl Berry  <karl@gnu.org>
86469
86470         * config/srclist.txt (COPYING.DOC): no longer available from
86471         /gd/gnuorg; don't know where the ultimate source is.
86472
86473 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86474
86475         Fix several address-calculation bugs in the hash modules,
86476         plus some minor code cleanup.
86477
86478         * lib/hash.h: Include <stdbool.h>, for bool.
86479         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86480         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86481         hash_get_n_entries, hash_get_max_bucket_length,
86482         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86483         hash_rehash): Use size_t rather than unsigned.
86484         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86485         hash_get_n_buckets_used, hash_get_n_entries,
86486         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86487         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86488         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86489         Likewise.
86490         (SIZE_MAX): Define if not defined.
86491         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86492         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86493         hash_print):
86494         Use const * when possible.
86495         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86496         (check_tuning): Fix bug: if tuning parameters were very close to
86497         0 or 1, rounding errors could have caused subscript violations.
86498         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86499         (hash_initialize): Add 'fail:' label
86500         to free table and return NULL, and use it to simplify code.
86501         Use calloc rather than clearing the storage ourself.
86502         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86503         buffer size calculations.
86504         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86505         Include <stddef.h>, for size_t.
86506         * lib/hash-pjw.c (hash_pjw): Likewise.
86507         Switch to method described by Bruno Haible.
86508         Include <limits.h>, for CHAR_BIT.
86509         (SIZE_BITS): New macro.
86510
86511 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86512
86513         * m4/getline.m4 (AM_FUNC_GETLINE):
86514         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86515         hosts.  Problem reported by Derek Robert Price in
86516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86517         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86518         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86519
86520 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86521
86522         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86523         ceiling the allocation at NMAX bytes rather than silently
86524         discarding input bytes before NMAX is reached.  This makes
86525         a difference only if NMAX exceeds SIZE_MAX / 2.
86526
86527         * lib/obstack.c: Merge from glibc.
86528         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86529         Add libc_hidden_def (_obstack_newchunk).
86530         (_obstack_free) [! defined _LIBC]: Remove.
86531         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86532         a clone of the function body.
86533         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86534         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86535
86536         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86537         glibc.
86538         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86539         arg to memcpy.
86540
86541         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86542         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86543         Don't use lvalue casts, as GCC plans to remove support for them
86544         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86545         was also present in the non-GCC version, indicating that this
86546         code had always been buggy and had never been widely used.
86547         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86548         Use the fast variant of each macro, rather than copying the
86549         definiens of the fast variant; that way, we'll be more likely to
86550         catch future bugs in the fast variants.
86551
86552 2003-10-20  Bruno Haible  <bruno@clisp.org>
86553
86554         * modules/wait-process: New file.
86555         * MODULES.html.sh (func_all_modules): Add wait-process.
86556
86557 2003-10-20  Bruno Haible  <bruno@clisp.org>
86558
86559         * m4/wait-process.m4: New file.
86560
86561 2003-10-20  Bruno Haible  <bruno@clisp.org>
86562
86563         * lib/wait-process.h: New file, from GNU gettext.
86564         * lib/wait-process.c: New file, from GNU gettext.
86565
86566 2003-10-19  Jim Meyering  <jim@meyering.net>
86567
86568         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86569         HPUX 10.20.
86570
86571 2003-10-18  Karl Berry  <karl@gnu.org>
86572
86573         * config/config.guess: update from config.
86574
86575 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86576
86577         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86578         (getgroups): First arg is int, not size_t.
86579         Don't let 'free' mangle errno.
86580
86581 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86582
86583         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86584
86585 2003-10-16  Karl Berry  <karl@gnu.org>
86586
86587         * config/config.{guess,sub}: update from config.
86588
86589 2003-10-16  Jim Meyering  <jim@meyering.net>
86590
86591         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86592         memcpy.
86593
86594 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86595
86596         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86597         (SIZE_MAX): Remove.
86598         (new_exclude, add_exclude_file): Initial size no longer needs to
86599         be a power of 2.
86600         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86601         our own address arithmetic overflow checking.
86602
86603         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86604         (fnmatch): Do not alloca more than 2000 wide characters;
86605         instead, use malloc for large buffers.
86606         Check for address arithmetic overflow, and return -1
86607         with errno set to ENOMEM in that case.
86608         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86609         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86610         instead, return -1.  Check for address arithmetic overflow.
86611
86612 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86613
86614         Handle invalid suffixes and overflow independently, so that
86615         callers can treat them independently as needed.  Fix some bugs in
86616         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86617         suffix for a human-readable blocksize.  The major caller-visible
86618         change is the addition of a new
86619         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86620         that both overflow and suffix chars were found.
86621
86622         * lib/human.c (humblock): Don't check separately for invalid suffix
86623         char; that is xstrtoumax's job (now that its bug is fixed).
86624         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86625         INTMAX_MAX]: New macros.
86626         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86627         TYPE_MAXIMUM): New macros.
86628         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86629         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86630         if overflow occurs, as it's what __strtol does and it's more useful
86631         in practice.
86632         (__xstrtol): If __strtol reports some error other than ERANGE,
86633         reflect it to the caller as LONGINT_INVALID.  If it reports
86634         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86635         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86636         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86637         value.
86638         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86639         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86640         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86641         [defined UINTMAX_MAX]: New macros.
86642
86643 2003-10-14  Bruno Haible  <bruno@clisp.org>
86644
86645         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86646
86647 2003-10-14  Bruno Haible  <bruno@clisp.org>
86648
86649         * m4/sig_atomic_t: New file, from GNU gettext.
86650         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86651
86652 2003-10-14  Bruno Haible  <bruno@clisp.org>
86653
86654         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86655         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86656         Also use volatile where needed.
86657
86658 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86659
86660         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86661         Change maintainer from Bruno Haible to 'all'.
86662
86663 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86664
86665         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86666
86667 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86668
86669         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86670         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86671         and define in terms of the other primitives.
86672         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86673         (SIZE_MAX): Define if not already defined.
86674         (array_size_overflow): New function.
86675         (xalloc_die): Abort instead of exiting if 'error' returns.
86676         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86677         (xmalloc, xrealloc): Use them.
86678         (xcalloc): Check for address arithmetic overflow.
86679         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86680         a bit faster than strcpy.
86681
86682 2003-10-10  Simon Josefsson  <jas@extundo.com>
86683
86684         * modules/argp (Depends-on): Add restrict and strcase.
86685
86686 2003-10-10  Simon Josefsson  <jas@extundo.com>
86687
86688         * m4/argp.m4: Add AC_C_INLINE.
86689
86690 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86691
86692         Merge getpass from libc, plus a few fixes.
86693
86694         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86695         Include <stdbool.h>.
86696         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86697         __fsetlocking to empty.
86698         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86699         do include <bits/libc-lock.h>.
86700         Do not include <fcntl.h>; not needed.
86701         [_LIBC]: Include <wchar.h>.
86702         (NOTCANCEL_MODE): New macro.
86703         (flockfile, funlockfile) [_LIBC]: New macros.
86704         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86705         [!_LIBC]: New macros.
86706         (call_fclose): New function.
86707         (getpass): Use it.  Save tty stream separately; this simplifies the
86708         code and makes it more reliable if stdin happens to equal stdout.
86709         Invoke __fsetlocking on tty.
86710         Handle thread cancellation if needed.
86711         Namespace cleanup (use __tcgetattr, __getline).
86712         Use bool for Booleans.
86713         [USE_IN_LIBIO]: Handle wide streams.
86714         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86715         stream might go where.
86716
86717         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86718         doesn't have to include <stdio.h> before us.
86719         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86720         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86721         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86722         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86723         if not declared, so that we can use getpass.c code from libc without
86724         rewriting it.
86725         (flockfile, ftrylockfile, funlockfile): New macros.
86726
86727 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86728
86729         * modules/getpass: Depend on stdbool.
86730
86731 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86732
86733         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86734
86735 2003-10-07  Karl Berry  <karl@gnu.org>
86736
86737         * config/config.{guess,sub}: update from config.
86738
86739 2003-10-06  Jim Meyering  <jim@meyering.net>
86740             Bruno Haible  <bruno@clisp.org>
86741
86742         This lets translators provide better translations for the
86743         "Written by ..." part of --version output.
86744         * lib/version-etc.h: Include stdarg.h.
86745         (version_etc_copyright): Declare as readonly.
86746         (version_etc): Make this function variadic with a NULL-terminated list
86747         of author name strings.
86748         (version_etc_va): New declaration.
86749         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86750         (version_etc_copyright): Declare as readonly.
86751         (version_etc_va): New function. Provide a different translatable string
86752         for each possible number of authors < 10. Abbreviate when there are 10
86753         authors or more.
86754         (version_etc): Make this function variadic. Call version_etc_va.
86755         Suggestion from Gary V. Vaughan.
86756
86757         * lib/long-options.h (parse_long_options): Change prototype: the
86758         authors string is moved to the end and becomes variadic.
86759         * lib/long-options.c: Include stdarg.h.
86760         (parse_long_options): Make this function variadic, too.
86761         Call version_etc_va, not version_etc.
86762
86763 2003-10-06  Bruno Haible  <bruno@clisp.org>
86764
86765         * modules/version-etc-2: Remove file.
86766         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86767
86768 2003-10-06  Bruno Haible  <bruno@clisp.org>
86769
86770         * modules/fatal-signal: New file.
86771         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86772
86773 2003-10-06  Bruno Haible  <bruno@clisp.org>
86774
86775         * m4/fatal-signal.m4: New file.
86776         * m4/signalblocking.m4: New file, from GNU gettext.
86777
86778 2003-10-06  Bruno Haible  <bruno@clisp.org>
86779
86780         * lib/version-etc-2.h: Remove file.
86781         * lib/version-etc-2.c: Remove file.
86782
86783 2003-10-06  Bruno Haible  <bruno@clisp.org>
86784
86785         * lib/fatal-signal.h: New file, from GNU gettext.
86786         * lib/fatal-signal.c: New file, from GNU gettext.
86787
86788 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86789
86790         * README: Rework advice for preventing empty .o files.
86791         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86792         not <sys/types.h>.
86793
86794 2003-10-04  Karl Berry  <karl@gnu.org>
86795
86796         * lib/argp*: update from libc.
86797
86798 2003-10-04  Karl Berry  <karl@gnu.org>
86799
86800         * config/config.{guess,sub}: update from config.
86801
86802 2003-10-02  Bruno Haible  <bruno@clisp.org>
86803
86804         * modules/lchown (Include): Add lchown.h.
86805         * modules/time_r (Include): Use "..." syntax.
86806         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86807
86808 2003-10-01  Simon Josefsson  <jas@extundo.com>
86809
86810         * MODULES.html.sh (func_all_modules): Move gethostname from section
86811         'based on' to section 'lacking' POSIX:2001.
86812
86813 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86814
86815         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86816         to output mode on the same stream.
86817
86818 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86819
86820         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86821         Fix arg typo in previous patch.
86822
86823 2003-09-28  Jim Meyering  <jim@meyering.net>
86824
86825         * lib/error.c: Correct cpp indentation.
86826
86827 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86828
86829         * modules/free: New file.
86830
86831 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86832
86833         * m4/free.m4: New file.
86834
86835 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86836
86837         * lib/minmax.h (MIN, MAX)
86838         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86839         Omit the special code that used __typeof__, since we worry that
86840         it could be more trouble than it's worth.  See:
86841         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86842         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86843
86844         * lib/free.c: New file.
86845
86846 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86847
86848         Trivial fixes to Makefile.am parts of module listings.
86849         * modules/strstr: Append strstr.h to lib_SOURCES.
86850         * modules/strcase: Likewise, for strcase.h.
86851
86852 2003-09-27  Karl Berry  <karl@gnu.org>
86853
86854         * config/mkinstalldirs: update from automake.
86855
86856 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86857
86858         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86859         (error_tail): Do not loop, reallocating temporary buffer, since
86860         the output cannot contain more wide characters than the input
86861         contains bytes, the size must be big enough already.  This avoids
86862         one potential size overflow calculation.  Check for size overflow
86863         when calculating temporary buffer size.  Free temporary buffer
86864         when done, if it was allocated with malloc; this plugs a memory
86865         leak.  Remove casts from void * to pointers, that are no longer
86866         needed now that we're assuming C89 or better.
86867
86868         Merge error changes from glibc.
86869
86870         * lib/error.c, error.h: Update copyright notice header to match glibc.
86871         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86872         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86873         Disable cancellation while printing error.
86874         * lib/error.h: Prepend __ to parameter names.
86875
86876 2003-09-26  Jim Meyering  <jim@meyering.net>
86877
86878         * lib/error.c (error_tail): Move some declarations
86879         into inner scope where the local variables are used.
86880
86881 2003-09-26  Bruno Haible  <bruno@clisp.org>
86882
86883         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86884         stpncpy().
86885         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86886
86887 2003-09-26  Bruno Haible  <bruno@clisp.org>
86888
86889         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86890         (stpncpy): Define as alias for gnu_stpncpy.
86891         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86892
86893 2003-09-25  Simon Josefsson  <jas@extundo.com>
86894
86895         * lib/xgetdomainname.h: New file.
86896         * lib/xgetdomainname.c: New file.
86897
86898 2003-09-25  Simon Josefsson  <jas@extundo.com>
86899             Bruno Haible  <bruno@clisp.org>
86900
86901         * modules/getdomainname: New file.
86902         * modules/xgetdomainname: New file.
86903         * MODULES.html.sh (func_all_modules): Add getdomainname,
86904         xgetdomainname.
86905
86906 2003-09-25  Simon Josefsson  <jas@extundo.com>
86907             Bruno Haible  <bruno@clisp.org>
86908
86909         * m4/getdomainname.m4: New file.
86910
86911 2003-09-25  Simon Josefsson  <jas@extundo.com>
86912             Bruno Haible  <bruno@clisp.org>
86913
86914         * lib/getdomainname.h: New file.
86915         * lib/getdomainname.c: New file.
86916
86917 2003-09-25  Karl Berry  <karl@gnu.org>
86918
86919         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86920
86921 2003-09-25  Karl Berry  <karl@gnu.org>
86922
86923         * config/install-sh: update from automake.
86924
86925 2003-09-25  Bruno Haible  <bruno@clisp.org>
86926
86927         * modules/version-etc-2: New file, from modules/version-etc with
86928         modifications.
86929         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86930
86931 2003-09-25  Bruno Haible  <bruno@clisp.org>
86932
86933         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86934         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86935
86936 2003-09-24  Simon Josefsson  <jas@extundo.com>
86937
86938         * modules/xgethostname: Add xgethostname.h.
86939
86940 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86941
86942         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86943         the buffer associated with the argument.  Bug reported by
86944         Simon Josefsson.
86945
86946 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86947
86948         * README: Document assumptions that 'int' is at least 32 bits
86949         wide, that integer arithmetic is 2's complement without overflow,
86950         that there are no holes in integer values, that adding sizes of
86951         two nonoverlapping objects can't overflow, and that all-bits-zero
86952         yields scalar zero.  Fix spelling and capitalization typos.
86953
86954 2003-09-19  Karl Berry  <karl@gnu.org>
86955
86956         * lib/argp.h: update from libc.
86957
86958 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86959
86960         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86961         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86962         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86963
86964 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86965
86966         * gnulib-tool: Use "test -h", not "test -L", for portability
86967         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86968         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86969         (sed_extract_prog): Issue s commands one-by-one, rather than
86970         using \| in one s command.
86971
86972 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86973
86974         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86975         input error, instead of returning NULL the next time we are called
86976         (and therefore losing track of errno).
86977
86978 2003-09-16  Bruno Haible  <bruno@clisp.org>
86979
86980         * gnulib-tool (func_create_testdir): Warn about duplicated
86981         dependencies.
86982
86983 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86984
86985         * modules/argmatch, modules/fatal, modules/obstack,
86986         modules/xalloc, modules/xgethostname: Sort dependencies by
86987         importance, not alphabetically.
86988
86989 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86992         fails, so that the caller gets the proper errno.
86993
86994         * lib/readutmp.c (read_utmp): Likewise.
86995         Check for fstat error.  Close stream and free storage
86996         when failing.
86997
86998 2003-09-14  Karl Berry  <karl@gnu.org>
86999
87000         * config/srclist.txt (strdup.c): disable for c89 changes.
87001
87002 2003-09-14  Jim Meyering  <jim@meyering.net>
87003
87004         * lib/getloadavg.c: Correct cpp indentation.
87005         * lib/strdup.c: Likewise.
87006         * lib/vasnprintf.c: Likewise.
87007
87008 2003-09-14  Bruno Haible  <bruno@clisp.org>
87009
87010         * modules/fwriteerror: New file.
87011         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87012
87013 2003-09-14  Bruno Haible  <bruno@clisp.org>
87014
87015         * lib/fwriteerror.h: New file.
87016         * lib/fwriteerror.c: New file.
87017
87018 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87019
87020         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87021         modules/xgethostname, modules/xalloc: Depend on exit.
87022
87023 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87024
87025         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87026
87027         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87028         and AC_MINIX, too, so that their extensions are available.
87029
87030         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87031         This macro has been superseded by gl_BACKUPFILE.
87032
87033         More patches to assume C89 or better.
87034
87035         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87036
87037         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87038         unconditionally.
87039         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87040         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87041         Include <string.h>, <stdlib.h> unconditionally.
87042         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87043         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87044         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87045         headers or for string.h.
87046         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87047         or strtoul.
87048
87049         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87050         headers.
87051         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87052         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87053         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87054         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87055         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87056         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87057         memcpy, memset.
87058         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87059         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87060         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87061         strtol.
87062         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87063         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87064         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87065         strtoul.
87066
87067 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87068
87069         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87070         * lib/obstack.c [!defined _LIBC]: Likewise.
87071         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87072         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87073         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87074
87075         More changes to assume C89 or better.
87076
87077         * lib/error.c (error_tail): Assume vprintf.
87078
87079         * lib/argmatch.c (getenv): Remove decl.
87080         * lib/progreloc.c (get_full_program_name): Define via prototype.
87081         * lib/setenv.c (clearenv): Likewise.
87082         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87083         needed.
87084         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87085         (malloc, memcpy): Remove decls.
87086         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87087         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87088         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87089         (memcpy): Remove macro.
87090         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87091         (__P): Remove.  All uses removed.
87092         (PTR): Remove.  All uses changed to void *.
87093         (CHAR_BIT, NULL): Remove.
87094         (spaces, zeros, memset_space, memset_zero)
87095         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87096         Remove.
87097         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87098         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87099         Define with prototype.
87100         Remove now-unnecessary prototype decl.
87101         (extra_args_spec): Assume ANSI C.  All uses changed.
87102         (extra_args_spec_iso): Remove.
87103         (my_strftime, emacs_strftimeu): Define via prototype.
87104         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87105         unconditionally.
87106         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87107         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87108         (strtoul, strtol): Remove decls.
87109         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87110         LONG_MAX): Remove.
87111         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87112         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87113         (LOCALE_PARAM_PROTO): New macro.
87114         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87115         (INTERNAL (strtol), strtol): Define with a prototype.
87116         (PARAMS): Remove.  All uses removed.
87117         * lib/tempname.c: Include <string.h> unconditionally.
87118         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87119         * lib/xgethostname.c (main): Define with a prototype.
87120         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87121         Include <stdlib.h> unconditionally.
87122         (calloc, malloc, realloc, free): Remove decls.
87123         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87124         Include <stdlib.h> unconditionally.  Sort include file names.
87125         (strtod): Remove.
87126         (xstrtod): Define with a prototype.
87127         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87128         (strtol, strtoul): Remove decls.
87129
87130 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87131
87132         More patches to assume C89 or better.
87133         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87134         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87135         string.h, memchr, STDC_HEADERS.
87136
87137 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87138
87139         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87140         Include <stdlib.h>, <string.h> unconditionally.
87141         Remove now-unnecessary cast to char *.
87142         * lib/strnlen.c: Include <string.h> unconditionally.
87143         * lib/yesno.c (yesno): Define with a prototype.
87144
87145 2003-09-11  Bruno Haible  <bruno@clisp.org>
87146
87147         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87148
87149 2003-09-10  Jim Meyering  <jim@meyering.net>
87150
87151         * lib/error.c: Correct indentation of cpp directives.
87152
87153 2003-09-10  Bruno Haible  <bruno@clisp.org>
87154
87155         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87156         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87157         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87158         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87159         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87160         <stdlib.h> and <string.h> checks.
87161         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87162         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87163
87164 2003-09-10  Bruno Haible  <bruno@clisp.org>
87165
87166         * lib/strcspn.c: Include <string.h> unconditionally.
87167         * lib/strpbrk.c: Include <string.h> unconditionally.
87168         * lib/strstr.c: Include <string.h> unconditionally.
87169         * lib/unicodeio.c: Include <string.h> unconditionally.
87170         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87171         * lib/unsetenv.c: Likewise.
87172         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87173         * lib/yesno.c: Include <stdlib.h> unconditionally.
87174         (rpmatch): Add prototype.
87175
87176 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87177
87178         More patches to assume C89 or better.
87179         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87180         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87181         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87182         or for string.h.
87183         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87184         stdlib.h.
87185         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87186         C headers.
87187         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87188         string.h.
87189         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87190         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87191         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87192         or for string.h.
87193         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87194         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87195         C headers.
87196         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87197         memcpy.
87198         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87199         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87200         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87201         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87202         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87203         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87204         string.h, free.
87205         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87206         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87207         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87208         C headers, or for string.h.
87209         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87210         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87211         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87212         headers, memory.h, stdlib.h, string.h, strings.h.
87213         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87214         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87215         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87216         strchr.
87217         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87218         headers, memory.h, string.h.
87219         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87220         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87221         free.
87222         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87223         headers.
87224         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87225         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87226         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87227         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87228         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87229
87230 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87231
87232         More K&R removal.
87233
87234         * lib/acosl.c (main): Use a prototype.
87235         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87236         tanl.c: Likewise.
87237
87238         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87239
87240         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87241         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87242         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87243         with a prototype.
87244         * lib/getopt.c (const): Remove macro.
87245         Include <string.h> unconditionally.
87246         (my_index): Remove; all uses changed to strchr.
87247         (strlen): Remove decl.
87248         (exchange): Remove forward decl; no longer needed.
87249         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87250         Define with prototype.
87251         * lib/getopt1.c (const): Remove macro.
87252         (getopt_long, getopt_long_only, main): Define with prototype.
87253
87254         * lib/getugroups.c: Include <string.h> unconditionally.
87255
87256         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87257         (getusershell, setusershell, endusershell, readname, main):
87258         Define with prototypes.
87259
87260         * lib/group-member.c: Include group-member.h first.
87261         Include <stdlib.h> unconditionally.
87262
87263         * lib/hard-locale.c: Include hard-locale.h first.
87264         Include <stdlib.h>, <string.h> unconditionally.
87265
87266         * lib/hash.c (free, malloc): Remove decls.
87267         Include <stdlib.h> unconditionally.
87268
87269         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87270         (getenv): Do not declare.
87271
87272         * lib/idcache.c: Include <string.h> unconditionally.
87273
87274         * lib/long-options.c: Include long-options.h first, to test interface.
87275         Include <stdlib.h> unconditionally.
87276
87277         * lib/makepath.c: Include makepath.h first, to test interface.
87278         Include <stdlib.h> and <string.h> unconditionally.
87279
87280         * lib/linebuffer.c: Include <stdlib.h>.
87281         (free): Remove decl.
87282
87283         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87284         stddef.h. rpl_malloc returns void *, not char *.
87285         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87286         prototype.
87287
87288         * lib/md5.h: Include <limits.h> unconditionally.
87289         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87290         (__P): Remove; all uses removed.
87291         * lib/md5.c: Include "md5.h" first.
87292         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87293         md5_buffer, md5_process_bytes, md5_process_block):
87294         Define with prototypes.
87295         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87296         * lib/sha.c: Include "sha.h" first.
87297         Include <stdlib.h>, <string.h> unconditionally.
87298
87299         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87300         * lib/memcmp.c (__ptr_t): Likewise.
87301         * lib/memrchr.c (__ptr_t): Likewise.
87302         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87303         Include <string.h> unconditionally.
87304         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87305         * lib/memchr.c: Include <stdlib.h> unconditionally.
87306         * lib/memchr.c (LONG_MAX): Remove.
87307         * lib/memrchr.c (LONG_MAX): Likewise.
87308         * lib/memchr.c (__memchr): Define via a prototype.
87309         * lib/memrchr.c (__memrchr): Likewise.
87310         * lib/memcmp.c (__P): Remove, and remove all uses.
87311         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87312         Remove forward decls; no longer needed.
87313         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87314         Use types required by C89 in prototype.
87315
87316         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87317         * lib/savedir.c: Likewise.
87318         * lib/mkdir.c (free): Remove decl.
87319         * lib/rmdir.c (rmdir): Define with a prototype.
87320         * lib/savedir.c: Include savedir.h first, to test interface.
87321
87322         * lib/mktime.c (STDC_HEADERS): Remove.
87323         Include <stdlib.h>, <string.h> unconditionally.
87324
87325         * lib/modechange.c: Include <stdlib.h> unconditionally.
87326         (malloc): Remove decl.
87327
87328         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87329         (free): Remove decl.
87330
87331         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87332         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87333         (This type really should be intptr_t, but that's a C99ism.)
87334         (_obstack_memcpy): Remove: all uses changed to memcpy.
87335         Include <string.h> unconditionally.
87336         (struct obstack): Assume __STDC__ for types of members
87337         chunkfun, freefun, extra_arg.
87338         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87339         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87340         obstack_begin, obstack_specify_allocation,
87341         obstack_specify_allocation_with_arg, obstack_chunkfun,
87342         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87343         Remove unprototyped decls and the macros that use them.
87344         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87345         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87346         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87347         (defined __STDC__ && __STDC__)]:
87348         Remove nonprototyped code.
87349         Include <stdlib.h> unconditionally.
87350         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87351         _obstack_allocated_p, _obstack_free, obstack_free,
87352         _obstack_memory_used, print_and_abort):
87353         Define using prototypes.
87354         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87355         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87356         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87357         obstack_next_free, obstack_object_size, obstack_room) [0]:
87358         Remove unused, unprototyped code.
87359
87360         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87361
87362         * lib/physmem.c (physmem_total, physmem_available, main): Define
87363         with prototypes.
87364
87365         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87366         (main): Define with a prototype.
87367
87368         * lib/posixver.c (getenv): Remove decl.
87369
87370         * lib/putenv.c (malloc): Returns void *, not char *.
87371         Include <string.h> unconditionally.
87372         (strchr, memcpy, NULL): Do not define.
87373
87374         * lib/readtokens.c: Include readtokens.h first, to test interface.
87375         Include <stdlib.h>, <string.h> unconditionally.
87376         (init_tokenbuffer): Define with a prototype.
87377
87378         * lib/regex.c (PARAMS): Remove.  All uses removed.
87379         All uses of _RE_ARGS removed, too.
87380         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87381         unconditionally.
87382         (bzero): Assume memset exists.
87383         (memcmp, memcpy, NULL): Remove.
87384         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87385         char, or assignments to local vars of type signed char.
87386         (init_syntax_once, PREFIX(extract_number_and_incr),
87387         PREFIX(print_partial_compiled_pattern),
87388         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87389         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87390         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87391         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87392         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87393         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87394         wcs_compile_range, byte_compile_range, truncate_wchar,
87395         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87396         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87397         count_mbs_length, wcs_re_match_2_internal,
87398         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87399         PREFIX(alt_match_null_string_p),
87400         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87401         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87402         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87403         now-unnecessary declaration, if any.
87404         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87405         regcomp, regexec):
87406         Remove now-unnecessary casts among pointer types.
87407         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87408
87409         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87410         (free): Remove decl.
87411
87412         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87413
87414         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87415         (free): Remove decl.
87416
87417         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87418         * lib/xgetcwd.c: Likewise.
87419
87420         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87421         (free): Remove decl.
87422
87423         * lib/strchrnul.c (strchrnul): Define with a prototype.
87424         Fix bug: c_in was not converted to char before searching.
87425
87426         The following changes are not K&R related:
87427
87428         * lib/group-member.h: Include <sys/types.h>, so that this file is
87429         self-contained.
87430         * lib/makepath.h: Likewise.
87431
87432         * lib/getusershell.c (readname, default_index, line_size, readname):
87433         Use size_t, not int, for sizes.
87434         (readname): If the size overflows, report an error instead of
87435         looping forever.
87436
87437 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87438
87439         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87440         libc.
87441
87442 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87443
87444         * README: New section: portability guidelines.
87445
87446 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87447
87448         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87449         C89 spec.
87450
87451 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87452
87453         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87454
87455 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87456
87457         Assume C89 or better; remove K&R cruft.
87458         A few of these changes were first proposed by Derek Robert Price
87459         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87460
87461         * lib/addext.c: Include <string.h> unconditionally.
87462         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87463         Don't declare getenv or malloc.
87464
87465         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87466         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87467         (NULL): Remove.
87468         (find_stack_direction, alloca): Use prototypes.
87469
87470         * lib/atexit.c (atexit): Define using a prototype.
87471
87472         * lib/basename.c, dirname.c, stripslash.c:
87473         Include <string.h> unconditionally.
87474
87475         * lib/bcopy.c: Include <stddef.h>.
87476         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87477
87478         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87479
87480         * lib/error.h (error, error_at_line, error_print_progname)
87481         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87482         * lib/error.c: Include error.h first, to check interface.
87483         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87484         (VA_START): Remove; all uses changeed to va_start.
87485         (exit, strerror): Remove decls.
87486         (error_print_progname): Prototype uncondionally.
87487         Don't include <errno.h>; no longer needed.
87488         (private_strerror): Remove.
87489         (error_tail): Always define.
87490         (error, error_at_line): Assume C89 or better; always use prototypes.
87491         * lib/fatal.c: Include "fatal.h" first, to test interface.
87492         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87493         (VA_START): Remove; all uses changed to va_start.
87494         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87495         this case.
87496         (exit): Remove decl.
87497         (fatal): Prototype unconditionally.  Assume va_start works.
87498         Abort at end, to pacify gcc.
87499
87500         * lib/euidaccess.c (main): Define with a prototype.
87501
87502         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87503
87504         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87505
87506         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87507         prototypes.
87508         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87509         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87510         (getenv): Remove decl.
87511         (fnmatch): Define using a prototype.
87512         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87513         (FCT): Define using a prototype.
87514
87515         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87516
87517         * lib/gethostname.c: Include <stddef.h>.
87518         (gethostname): Define with prototype.  Length is size_t, not int.
87519
87520 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87521
87522         Assume C89 or better; remove K&R cruft.
87523         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87524         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87525         string.h, getenv, malloc.
87526         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87527         headers.
87528         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87529         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87530         do not check for strerror.
87531         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87532         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87533         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87534         do not check for doprnt or vprintf.
87535         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87536         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87537
87538 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87539
87540         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87541         getversion.c should have been removed then, but was accidentally
87542         preserved.
87543
87544         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87545         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87546
87547 2003-09-08  Karl Berry  <karl@gnu.org>
87548
87549         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87550                 config, forget about prep.
87551
87552         * config/depcomp, missing: update from automake.
87553
87554 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87555
87556         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87557         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87558
87559 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87560
87561         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87562         copy_tm_result.  Bug reported by Simon Josefsson in
87563         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87564
87565 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87566
87567         * m4/time_r.m4: New file.
87568         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87569         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87570         is. Check for timegm declaration.
87571         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87572         Do not check for gmtime_r.
87573         Replace mktime if __mktime_internal does not exist and if mktime
87574         hasn't been replaced already.
87575
87576 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87577
87578         * lib/time_r.c, lib/time_r.h: New files.
87579
87580         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87581         __localtime_r.
87582         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87583         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87584
87585         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87586         __gmtime_r.
87587         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87588         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87589         Include <time_r.h>.
87590
87591         * lib/timegm.c: Switch to glibc implementation, with the following
87592         changes:
87593         [defined HAVE_CONFIG_H]: Include <config.h>.
87594         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87595         (__mktime_internal) [!defined _LIBC]: New decl.
87596         (__gmtime_r) [!defined _LIBC]: New macro and function.
87597         (timegm): Use a prototype, since gnulib assumes C89.
87598         Do not bother declaring tmp to be const, as it's not really usefu.
87599         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87600         (timegm): Declare only if HAVE_DECL_TIMEGM.
87601
87602 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87603
87604         * MODULES.html.sh (func_all_modules): Add time_r.
87605         * modules/time_r: New file.
87606         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87607         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87608
87609 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87610
87611         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87612         Bug reported by Lute Kamstra in
87613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87614
87615         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87616         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87617         course with correspondingly smaller numbers for tomorrow and
87618         yesterday.  From Tadayoshi Funaba.  Originally installed into
87619         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87620         coreutils merge?).
87621
87622 2003-08-31  Simon Josefsson  <jas@extundo.com>
87623
87624         * modules/timegm: New file.
87625         * MODULES.html.sh (func_all_modules): Add timegm.
87626
87627 2003-08-31  Simon Josefsson  <jas@extundo.com>
87628
87629         * m4/timegm.m4: New file.
87630
87631 2003-08-31  Simon Josefsson  <jas@extundo.com>
87632
87633         * lib/timegm.h: New file.
87634         * lib/timegm.c: New file.  Based on
87635         wget-1.8.2/src/http.c:mktime_from_utc.
87636
87637 2003-08-31  Karl Berry  <karl@gnu.org>
87638
87639         * lib/argp.h: update from libc.
87640
87641 2003-08-28  Bruno Haible  <bruno@clisp.org>
87642
87643         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87644         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87645         followed by '#define fnmatch fnmatch_posix' gives an error.
87646
87647 2003-08-28  Bruno Haible  <bruno@clisp.org>
87648
87649         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87650         warning on QNX, which defines O_BINARY to 000000.
87651
87652 2003-08-27  Jim Meyering  <jim@meyering.net>
87653
87654         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87655         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87656         would fail after 32.  Reported by Danny Levinson.  Details here:
87657         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87658
87659 2003-08-24  Bruno Haible  <bruno@clisp.org>
87660
87661         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87662         MSVC7 <stdio.h> is included later.
87663
87664 2003-08-22  Simon Josefsson  <jas@extundo.com>
87665
87666         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87667
87668 2003-08-20  Karl Berry  <karl@gnu.org>
87669
87670         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87671
87672 2003-08-20  Bruno Haible  <bruno@clisp.org>
87673
87674         * modules/progname: New file.
87675         * MODULES.html.sh (func_all_modules): Add progname.
87676
87677 2003-08-20  Bruno Haible  <bruno@clisp.org>
87678
87679         * lib/progname.h: New file, from GNU gettext.
87680         * lib/progname.c: New file, from GNU gettext.
87681         * lib/progreloc.c: New file, from GNU gettext.
87682
87683 2003-08-19  Jim Meyering  <jim@meyering.net>
87684
87685         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87686         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87687
87688 2003-08-19  Bruno Haible  <bruno@clisp.org>
87689
87690         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87691         more.
87692
87693 2003-08-19  Bruno Haible  <bruno@clisp.org>
87694
87695         * lib/xstrdup.c: Assume <string.h> exists.
87696
87697 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87698
87699         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87700         in makefile rules.
87701
87702 2003-08-18  Jim Meyering  <jim@meyering.net>
87703
87704         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87705         * m4/lib-ld.m4: Likewise.
87706
87707 2003-08-18  Jim Meyering  <jim@meyering.net>
87708
87709         * lib/setenv.h: Indent nested cpp directive.
87710         * lib/vasnprintf.c: Remove trailing blanks.
87711
87712 2003-08-17  Simon Josefsson  <jas@extundo.com>
87713
87714         * modules/xstrndup: New file.
87715         * MODULES.html.sh (func_all_modules): Add xstrndup.
87716
87717 2003-08-17  Simon Josefsson  <jas@extundo.com>
87718
87719         * modules/argp: Fix autoconf macro name. Add more dependencies.
87720
87721 2003-08-17  Simon Josefsson  <jas@extundo.com>
87722
87723         * m4/xstrndup.m4: New file.
87724
87725 2003-08-17  Simon Josefsson  <jas@extundo.com>
87726
87727         * m4/argp.m4: New file.
87728
87729 2003-08-17  Simon Josefsson  <jas@extundo.com>
87730             Bruno Haible  <bruno@clisp.org>
87731
87732         * lib/xstrndup.h: New file.
87733         * lib/xstrndup.c: New file.
87734
87735 2003-08-17  Bruno Haible  <bruno@clisp.org>
87736
87737         * modules/strndup (Files, Include): Add lib/strndup.h.
87738
87739 2003-08-17  Bruno Haible  <bruno@clisp.org>
87740
87741         * modules/euidaccess (Files): Add lib/euidaccess.h.
87742
87743 2003-08-17  Bruno Haible  <bruno@clisp.org>
87744
87745         * lib/strndup.h: New file.
87746
87747 2003-08-17  Bruno Haible  <bruno@clisp.org>
87748
87749         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87750         like AC_GNU_SOURCE.
87751         * modules/extensions (configure.ac): Comment out the invocation of
87752         gl_USE_SYSTEM_EXTENSIONS.
87753
87754 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87755
87756         Merges from coreutils, etc.
87757         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87758         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87759         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87760         fixing a typo.
87761         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87762         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87763
87764 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87765
87766         Document merge from coreutils.
87767         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87768         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87769         * modules/utime: Add m4/utimes-null.m4.
87770
87771 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87772
87773         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87774         space, undoing this 2003-08-12 change:
87775         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87776
87777 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87778
87779         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87780         strtoul.c from libc, undoing this 2003-08-12 change:
87781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87782
87783 2003-08-16  Jim Meyering  <jim@meyering.net>
87784
87785         Merges from coreutils.
87786         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87787         prefix.  Adjust cache variables similarly.  Create 500 rather than
87788         just 300 files, to exercise bug on Darwin6.5, too.
87789         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87790         $missing_dir.
87791         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87792         AM_SYS_POSIX_TERMIOS.
87793         Reported by mkc@mathdogs.com.
87794         Also change use of $am_cv_sys_posix_termios
87795         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87796         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87797         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87798         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87799         in /proc/mounts until it finds one with matching device number.  This
87800         is unnecessary when the FILE argument *is* a mount point.  No stat call
87801         is necessary in that case.  So, disable the statvfs-testing code on
87802         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87803         as RedHat bug# 84846.
87804         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87805         to 1MB, so as not to render systems with no stack size limit (e.g.,
87806         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87807         Include <unistd.h>.  On some systems,
87808         it is required for the definition of _SC_PAGESIZE.
87809
87810 2003-08-16  Jim Meyering  <jim@meyering.net>
87811
87812         Merge from coreutils.
87813         * lib/xstrtoimax.c: #else #if -> #elif.
87814         * lib/xstrtoumax.c: Likewise.
87815
87816 2003-08-16  Jim Meyering  <jim@meyering.net>
87817
87818         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87819         * m4/utimes.m4: Removed.
87820         * m4/utimes-null.m4: Renamed from utimes.m4.
87821
87822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87823         to 1MB, so as not to render systems with no stack size limit (e.g.,
87824         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87825         Include <unistd.h>.  On some systems,
87826         it is required for the definition of _SC_PAGESIZE.
87827
87828 2003-08-16  Jim Meyering  <jim@meyering.net>
87829         and Paul Eggert  <eggert@cs.ucla.edu>
87830
87831         Merges from coreutils, etc.
87832
87833         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87834         using the latest version from cvs.  This avoids problems with #line
87835         directives using a vendor (Sun) compiler.
87836         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87837         Don't set GETGROUPS_LIB here; now it's
87838         done via getgroups.m4's wrapper function.
87839         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87840         rather than just in sh-util/configure.in, so that the
87841         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87842         same.
87843         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87844         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87845         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87846         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87847         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87848         Remove code that is now done by the newly-required macros.
87849         Append $(EXEEXT) to DF_PROG.
87850         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87851         Do not invoke or require the following here,
87852         since prereq.m4 or some gnulib .m4 now does this for us:
87853         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87854         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87855         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87856         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87857         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87858         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87859         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87860         AC_FUNC_OBSTACK.
87861         Do not replace the following functions, as this is now the job
87862         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87863         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87864         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87865         atexit getpass, strdup, getpagesize.
87866         Replace 'raise'.
87867         Do not check for the following functions, as this is now the job
87868         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87869         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87870         setregid.
87871         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87872         Check for sys/sysctl.h.
87873         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87874         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87875         of checking for ssize_t ourselves.
87876
87877         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87878         Require every macro that gnulib/modules/* suggests for us.
87879         (jm_PREREQ_ADDEXT): New macro.
87880         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87881         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87882
87883         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87884         (gl_PHYSMEM): Use it.
87885         Also check for `table' function.
87886         Check for new headers and functions.
87887         Add check for sys/sysmp.h.
87888         With suggestions from Kaveh Ghazi.
87889         Ignore headers that are present but cannot be compiled.  This
87890         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87891         C 5.4.
87892
87893 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87894
87895         Document merge from coreutils.
87896         * modules/userspec: Depend on posixver.
87897         * modules/strftime: Depend on tzset.
87898
87899 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87900
87901         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87902         rather than tab, after '#' in shell-script copyright notices.
87903         Suggested by Bruno Haible.
87904
87905 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87906
87907         * config/srclist-update: Use three spaces, rather than tab, after '#'
87908         in shell-script copyright notices.  Suggested by Bruno Haible.
87909         Remove unnecessary parenthesization in regular expression.
87910
87911 2003-08-15  Jim Meyering  <jim@meyering.net>
87912
87913         Merge from coreutils.
87914         * lib/xgethostname.c: Include <stdlib.h>.
87915         (xghostname): Don't exit for anything other than memory-related
87916         failure; just return NULL.
87917         * lib/userspec.c: Include "posixver.h".
87918         (parse_user_spec): Accept `.' as a separator only
87919         in pre-POSIX-200112 mode.
87920         * lib/strtoimax.c: Use #elif rather than #else #if.
87921         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87922         Remove function, now that we can rely on a working tzset function.
87923         [!_LIBC]: Ensure that the required autoconf test has been run.
87924         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87925         Use underlying_strftime for %r.
87926         * lib/sha.c: Merge in some clean-up and optimization changes from
87927         glibc.
87928         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87929         Ensure that it is a multiple of 64.
87930         Rearrange loop exit tests so as to avoid performing an
87931         additional fread after encountering an error or EOF.
87932         * lib/realloc.c: Update copyright date.
87933
87934 2003-08-15  Jim Meyering  <jim@meyering.net>
87935         and Paul Eggert  <eggert@twinsun.com>
87936
87937         Merge from coreutils.
87938         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87939         member but strut utmpx does not.  Needed for AIX 4.3.3.
87940         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87941
87942 2003-08-15  Jim Meyering  <jim@meyering.net>
87943         and Paul Eggert  <eggert@cs.ucla.edu>
87944
87945         Merges from coreutils, etc.
87946         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87947         Require gl_FUNC_TZSET_CLOBBER.
87948         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87949         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87950         members.
87951
87952 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87953
87954         Help the merge from coreutils.
87955         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87956         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87957         * m4/tzset.m4: Use it too.
87958
87959 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87960
87961         * modules/tzset: New file.
87962
87963 2003-08-14  Jim Meyering  <jim@meyering.net>
87964
87965         Merges from coreutils.
87966         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87967         variable names, rather than @FNMATCH_H@.
87968         * modules/alloca: Likewise for $(ALLOCA_H).
87969
87970         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87971         the three copies of the literal target, `fnmatch.h'.
87972         * modules/alloca (alloca.h): Likewise.
87973
87974 2003-08-14  Jim Meyering  <jim@meyering.net>
87975
87976         Merge from coreutils.
87977         * m4/tzset.m4: New file.
87978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87979         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87980         otherwise, AIX 5.1 systems would end up using the latter.
87981         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87982         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87983         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87984         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87985
87986 2003-08-14  Jim Meyering  <jim@meyering.net>
87987
87988         Merge from coreutils.
87989         * lib/obstack.h: Whitespace changes.
87990         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87991         and xcalloc return values.
87992         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87993         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87994         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87995         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87996         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87997         error from mntctl.
87998         Use mntctl's return value to drive the entry-processing loop, since
87999         we can't rely on the value of the vmt_length member in the last
88000         entry.  On some systems doing so could result in exhausting
88001         virtual memory.  Based in part on a patch from Mike Jetzer.
88002
88003 2003-08-14  Jim Meyering  <jim@meyering.net>
88004         and Paul Eggert  <eggert@twinsun.com>
88005
88006         Merges from coreutils, plus other fixes.
88007         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88008         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88009         for credits and details.  Thanks to Kaveh Ghazi for helping
88010         to keep these files in sync.
88011         (ARRAY_SIZE): Define it.
88012         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88013         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88014         (memcasecmp): Don't assume size_t fits in unsigned int.
88015         Remove casts and duplicate code.
88016         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88017         (memcpy): Remove definition.
88018         Merge in some clean-up and optimization changes from glibc.
88019         [BLOCKSIZE]: Move definition to top of file.
88020         Ensure that it is a multiple of 64.
88021         Rearrange loop exit tests so as to avoid performing an
88022         additional fread after encountering an error or EOF.
88023         * lib/md5.h (md5_uintptr): Define.
88024         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88025         return to the initial working directory.  Preserve errno
88026         for caller.
88027         * lib/idcache.c: Include "xalloc.h".
88028         (xmalloc, xrealloc): Remove decls.
88029         (getuser): Remove casts no longer required in C89.
88030         * lib/human.c: Include stdio.h, for sprintf.
88031         * lib/group-member.c: Include "xalloc.h".
88032         (xmalloc, xrealloc): Remove decls.
88033         (get_group_info): Remove casts no longer required in C89.
88034         * lib/getusershell.c (readname): Remove casts no longer required in
88035         C89.
88036         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88037         * lib/getline.c: Whitespace fix, from coreutils.
88038
88039 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88040
88041         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88042         Check for isascii.
88043
88044         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88045         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88046         Undo previous (whitespace-only) change.
88047
88048 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88049
88050         * lib/exclude.c: Include <ctype.h>
88051         (IN_CTYPE_DOMAIN): New macro.
88052         (is_space): New fn.
88053         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88054         and empty lines.
88055
88056         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88057         Undo previous (whitespace-only) change.
88058
88059 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88060
88061         * config/srclist-update: Change update back to the old behavior,
88062         leaving whitespace alone.  Use one 'sed' command rather than a
88063         pipeline.
88064         (fixlicense): Now a variable, not a function.
88065         (remove_trailing_blanks): Remove.
88066         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88067         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88068         Undo previous (whitespace-only) change.
88069
88070 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88071
88072         Merge from coreutils.
88073         * modules/euidaccess: Add lib_SOURCES, include for new
88074         file euidaccess.h
88075
88076 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88077
88078         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88079         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88080         Normalize leading white space and remove trailing white space.
88081
88082         Merge from coreutils
88083         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88084
88085         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88086         0.12.1.  These files are now being upgraded automatically by
88087         ../config/srclist-update.
88088
88089 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88090
88091         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88092         Normalize leading white space and remove trailing white space.
88093         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88094         notice, as per ../config/srclist-update.
88095
88096         Merge from coreutils.
88097         * lib/euidaccess.h: New file.
88098         * lib/euidaccess.c: Include it.
88099         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88100         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88101         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88102
88103 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88104
88105         * config/srclist-update: Add copyright notice.
88106         (remove_id_lines, remove_trailing_blanks): New constants.
88107         (fixfile): Use them to normalize spacing a bit in copied files.
88108         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88109         Normalize leading white space and remove trailing white space.
88110
88111         * config/texinfo.tex: Sync with texinfo.
88112
88113         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88114         strtoul.c from libc, to merge coreutils whitespace changes.
88115
88116         * config/srclist.txt: Get the following m4 files from gettext:
88117         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88118         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88119         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88120         wint_t.m4.
88121
88122 2003-08-12  Karl Berry  <karl@gnu.org>
88123
88124         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88125         been made.
88126
88127 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88128
88129         * modules/gnu-source, m4/gnu-source.m4:
88130         Remove; we're assuming Autoconf 2.54 or later now.
88131         Suggested by Bruno Haible.
88132         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88133
88134 2003-08-11  Bruno Haible  <bruno@clisp.org>
88135
88136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88137
88138 2003-08-11  Bruno Haible  <bruno@clisp.org>
88139
88140         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88141         (vasnprintf): Use it instead of wcslen.
88142
88143 2003-08-11  Bruno Haible  <bruno@clisp.org>
88144
88145         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88146         value to ensure that _Bool promotes to int. Use #define for _Bool when
88147         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88148
88149 2003-08-10  Karl Berry  <karl@gnu.org>
88150
88151         * lib/regex.h: update from libc (whitespace fix).
88152
88153 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88154
88155         Merge some files from coreutils.  These changes were
88156         originally made by Jim Meyering.
88157         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88158         many older Unixes require this.
88159         * lib/alloca.c (alloca): Remove cast to argument of free;
88160         no longer needed in C89.
88161         * lib/alloca_.h, regex.h: Fix white space to match
88162         what GNU indent does.
88163
88164 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88165
88166         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88167         apparently Emacs's Unicode mode got confused before my 2003-08-05
88168         checkin.
88169
88170 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88171
88172         * m4/extensions.m4: New file.
88173         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88174         Require gl_USE_SYSTEM_EXTENSIONS.
88175         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88176         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88177
88178 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88179
88180         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88181         * modules/extensions, modules/gnu-source: New files.
88182         * modules/timespec, modules/unlocked-io: Depend on extensions.
88183
88184 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88185
88186         * modules/restrict: New file.
88187         * MODULES.html.sh (func_all_modules): Add restrict.
88188         * modules/regex: Depend on restrict.
88189
88190 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88191
88192         * m4/restrict.m4: New file.
88193         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88194
88195 2003-08-07  Bruno Haible  <bruno@clisp.org>
88196
88197         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88198         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88199
88200 2003-08-07  Bruno Haible  <bruno@clisp.org>
88201
88202         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88203         makes the module 'getndelim2' compatible with the module 'getline'.
88204
88205 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88206
88207         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88208         byte with "\201" to avoid glitches when editing that source file
88209         with multi-gnome-terminal.
88210
88211 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88212
88213         * lib/bumpalloc.h: Remove.
88214
88215 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88216
88217         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88218         * modules/bumpalloc: Remove.
88219
88220 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88221
88222         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88223         GNU coding style.
88224
88225         Merge from coreutils.
88226         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88227         1. From glibc.
88228         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88229         from Karl Berry, implemented by Jim Meyering.
88230         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88231         from Dmitry V. Levin.
88232         Remove anachronistic cast of xrealloc.
88233         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88234         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88235         type. Otherwise, it wouldn't compile with at least /bin/cc on
88236         ymp-cray-unicos9.0.2.X.
88237         Combine two mostly-identical uses of alloca into one.
88238         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88239
88240 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88241
88242         [From Emacs.]
88243
88244         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88245         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88246         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88247         obsolete NLIST_NAME_UNION.
88248         [__GNU__]: Undef BSD and FSCALE.
88249         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88250
88251 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88252
88253         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88254         an enum type, so that it's guaranteed to promote to int.  See:
88255         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88256
88257 2003-08-03  Karl Berry  <karl@gnu.org>
88258
88259         * config/depcomp: update from automake.
88260
88261 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88262
88263         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88264         (strerror): Don't assume that a printable int fits in 14 bytes.
88265
88266 2003-07-31  Bruno Haible  <bruno@clisp.org>
88267
88268         * modules/getpass-gnu: New file.
88269         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88270
88271 2003-07-31  Bruno Haible  <bruno@clisp.org>
88272
88273         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88274
88275 2003-07-24  Karl Berry  <karl@gnu.org>
88276
88277         * config/missing: update from automake.
88278
88279 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88280             Bruno Haible  <bruno@clisp.org>
88281
88282         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88283         * lib/getline.c (getline, getdelim): Likewise.
88284         Remove _GNU_SOURCE define; now it's defined in config.h through
88285         m4/getline.m4.
88286
88287 2003-07-23  Karl Berry  <karl@gnu.org>
88288
88289         * config/config.sub: update from prep.
88290
88291 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88292
88293         * modules/xalloc (Depends-on): Add exitfail.
88294         * modules/xmemcoll: Likewise.
88295
88296 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88297
88298         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88299         over-parenthesization in macros.
88300
88301         Sync with coreutils.
88302
88303         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88304         required by C99.
88305
88306         Use `exit_failure' for xalloc and xmemcoll instead of their own
88307         private exit-failure variables.
88308         * lib/xalloc.h (xalloc_exit_failure): Remove.
88309         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88310         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88311         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88312         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88313         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88314
88315 2003-07-20  Jim Meyering  <jim@meyering.net>
88316
88317         * modules/closeout (Depends-on): Add exitfail.
88318         Suggestion from Bruno Haible.
88319
88320 2003-07-19  Karl Berry  <karl@gnu.org>
88321
88322         * config/config.sub: update from prep.
88323
88324 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88325
88326         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88327         Remove.
88328         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88329         to test that it can stand by itself.  Include "exitfail.h".
88330         Clients should set exit_failure instead.
88331         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88332
88333 2003-07-18  Bruno Haible  <bruno@clisp.org>
88334
88335         * modules/getndelim2: New file.
88336         * modules/getline: Share files with module getndelim2.
88337         * modules/getnline: Depend on getndelim2 instead of sharing files with
88338         it. Add getnline.c to lib_SOURCES.
88339         * MODULES.html.sh (func_all_modules): Add getndelim2.
88340
88341 2003-07-18  Bruno Haible  <bruno@clisp.org>
88342
88343         * m4/getndelim2.m4: New file.
88344         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88345         invoke gl_PREREQ_GETNDELIM2.
88346         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88347         gl_PREREQ_GETNDELIM2.
88348         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88349         gl_GETNDELIM2.
88350
88351 2003-07-18  Bruno Haible  <bruno@clisp.org>
88352
88353         * lib/getndelim2.h: New file.
88354         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88355         getndelim2.h.
88356         (getndelim2): Make non-static. Change return type to ssize_t.
88357         * lib/getline.h: Change argument names.
88358         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88359         * lib/getnline.c: Include getndelim2.h.
88360
88361 2003-07-18  Andreas Schwab  <schwab@suse.de>
88362
88363         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88364
88365 2003-07-17  Karl Berry  <karl@gnu.org>
88366
88367         * config/config.sub: update from prep.
88368
88369 2003-07-17  Bruno Haible  <bruno@clisp.org>
88370
88371         * modules/getnline: New file.
88372         * modules/getline: Add lib/getndelim2.c to source file list.
88373         * MODULES.html.sh (func_all_modules): Add getnline.
88374
88375 2003-07-17  Bruno Haible  <bruno@clisp.org>
88376
88377         * m4/getnline.m4: New file.
88378
88379 2003-07-17  Bruno Haible  <bruno@clisp.org>
88380
88381         * m4/Makefile.am.in: Remove file.
88382         * m4/Makefile.am: Remove file.
88383         * m4/Makefile.in: Remove file.
88384
88385 2003-07-17  Bruno Haible  <bruno@clisp.org>
88386
88387         * lib/getnline.h: New file.
88388         * lib/getnline.c: New file.
88389         * lib/getndelim2.c: New file, extracted from getline.c.
88390         (getndelim2): Renamed from getdelim2, with added nmax argument.
88391         * lib/getline.c: Include getndelim2.c.
88392         (getdelim2): Moved out to getndelim2.c.
88393         (getline, getdelim): Update.
88394
88395 2003-07-17  Bruno Haible  <bruno@clisp.org>
88396
88397         * lib/Makefile.am: Remove file.
88398         * lib/Makefile.in: Remove file.
88399
88400 2003-07-17  Bruno Haible  <bruno@clisp.org>
88401
88402         * configure.in: Remove file.
88403         * Makefile.in: Remove file.
88404
88405 2003-07-17  Bruno Haible  <bruno@clisp.org>
88406
88407         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88408
88409 2003-07-16  Karl Berry  <karl@gnu.org>
88410
88411         * config/srclist-update: was running fixlicense twice, which caused
88412                 texinfo.tex to be nullified for some reason.  Simplify,
88413                 $gplsrc is no longer needed as far as I can see?
88414
88415 2003-07-16  Jim Meyering  <jim@meyering.net>
88416
88417         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88418
88419 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88420
88421         * config/srclist.txt: Get the following files from gettext-runtime/intl
88422         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88423         ref-del.sin.  From Bruno Haible.
88424         * config/srclist-update (fixfile): Change grep pattern again, since the
88425         previous fix didn't work (there was another trailing $).  Use
88426         '[$]' to escape the $s.
88427
88428 2003-07-15  Karl Berry  <karl@gnu.org>
88429
88430         * lib/vasnprintf.c: update from gettext.
88431
88432 2003-07-15  Karl Berry  <karl@gnu.org>
88433
88434         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88435         gets expanded when surrounded by '$'.
88436
88437 2003-07-15  Jim Meyering  <jim@meyering.net>
88438
88439         * modules/save-cwd: Don't depend on error.  From Derek Price.
88440
88441 2003-07-15  Jim Meyering  <jim@meyering.net>
88442
88443         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88444
88445 2003-07-14  Simon Josefsson  <jas@extundo.com>
88446
88447         * modules/mempcpy: New file.
88448         * MODULES.html.sh (func_all_modules): Add mempcpy.
88449
88450 2003-07-14  Simon Josefsson  <jas@extundo.com>
88451
88452         * m4/mempcpy.m4: New file.
88453
88454 2003-07-14  Simon Josefsson  <jas@extundo.com>
88455
88456         * lib/mempcpy.h: New file.
88457         * lib/mempcpy.c: New file.
88458
88459 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88460
88461         * modules/getdate, modules/posixtm: Depend on mktime.
88462
88463 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88464
88465         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88466         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88467         unicodeio.c, unicodeio.h, unlocked-io.h:
88468         Switch from LGPL to GPL.
88469
88470 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88471
88472         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88473         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88474         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88475         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88476         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88477         updated automatically by ../config/srclist-update.  This changes
88478         their license from LPGL to GPL.
88479
88480 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88481
88482         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88483         assumed to refer to the root of the most recent stable gettext version.
88484         * config/srclistvars.sh: Add defaults for eggert.
88485         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88486         Match "This program" as well as "The program".  This is needed
88487         for gettext.
88488
88489 2003-07-14  Jim Meyering  <jim@meyering.net>
88490
88491         Don't emit diagnostics.  Let callers do that.
88492         * lib/save-cwd.c: Don't include "error.h".
88493         (save_cwd): Don't call error.  Ensure that errno is valid
88494         when returning nonzero.
88495
88496         * lib/save-cwd.h (restore_cwd): Update prototype.
88497         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88498         Simplify.  Don't call error upon failure.  Let callers do that.
88499         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88500         when auditing is enabled.  But don't bother updating the #if.
88501
88502 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88503
88504         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88505         it breaks C++ compilation.
88506         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88507
88508 2003-07-10  Simon Josefsson  <jas@extundo.com>
88509
88510         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88511
88512 2003-07-10  Jim Meyering  <jim@meyering.net>
88513
88514         * m4/clock_time.m4: Remove trailing blank.
88515         * m4/intmax_t.m4: Likewise.
88516
88517 2003-07-10  Jim Meyering  <jim@meyering.net>
88518
88519         * lib/vasnprintf.c: Remove trailing blanks.
88520         Make cpp indentation consistent.
88521
88522 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88523
88524         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88525         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88526         Switch from LGPL to GPL.
88527
88528 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88529
88530         * config/srclist.txt: Sort sublists.  Add
88531         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88532         that differ from gnulib for one reason or another; we'd like this list
88533         to be smaller but for now let's document what we have.
88534
88535 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88536
88537         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88538         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88539         and sweeter "eval x=$x".
88540         * config/srclist.txt: Get lib/argp* from glibc.
88541
88542 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88543
88544         * lib/mktime.c: Fix some boundary cases and remove need for floating
88545         point.
88546
88547         Issue a compile-time diagnostic if time_t is floating point, or if
88548         two's complement arithmetic is not in effect, or if arithmetic
88549         right shift does not propagate the sign.  These assumptions were
88550         all in the original code but they weren't checked.
88551
88552         (TIME_T_MIDPOINT, verify): New macros.
88553         (__isleap): Remove; it has integer overflow problems.
88554         (leapyear): New function, without those problems.
88555         (ydhms_tm_diff): Remove; splitting into two parts.
88556         (ydhms_diff): New function, containing the arithmetic part of
88557         the old ydhms_tm_diff function.  Issue a compile-time
88558         diagnostic if we are not using C99 integer division.
88559         Avoid casts when possible.
88560         (guess_time_tm): New function, containing the checking part of
88561         the old ydhms_tm_diff function.  Return the new value, rather than
88562         the difference between it and the old.  Accept a new argument T
88563         so that *T specifies the old value.  Check for overflow in the result.
88564
88565         (__mktime_internal): Use a time_t offset, not a long int offset.
88566         This undoes the 2003-06-04 change, which is no longer needed now
88567         that we have better overflow checking.
88568         (localtime_offset): Likewise.
88569
88570         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88571         and long are 64-bit but int is only 32-bit.
88572         (ydhms_diff): Use long int to store year1 and yday1.
88573         Issue a compile-time diagnostic if long int is not wide enough.
88574
88575         (__mktime_internal): Use long int to store adjusted year and yday.
88576         Use plain C rather than preprocessor commands, if that doesn't
88577         affect efficiency.
88578         Check for overflow (and try to repair) after each probe
88579         rather than checking only at the very end.  This avoids some bugs
88580         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88581         does not equal GMT offset at maximum time).
88582         Use integer to check for overflow rather than floating point; this
88583         is more portable to non-IEEE hosts, and is a tad faster.
88584         When we detect that we are oscillating between two values,
88585         don't check whether tm_isdst has the requested value, since
88586         we already know the answer.  When tm_isdst has the wrong value,
88587         use a different heuristic to find the right one, based on the
88588         extreme values actually observed in practice in tz2003a,
88589         rather than the (overly optimistic) "previous 3 calendar quarters".
88590
88591         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88592         "T const" to accommodate glibc style.
88593         (check_result): Use less-confusing report format.  "long" -> "long int.
88594         (main): Likewise.
88595         Don't loop if the iteration overflows time_t.
88596         Allow a negative step in the iteration.
88597
88598 2003-07-06  Karl Berry  <karl@gnu.org>
88599
88600         * config/depcomp: update from automake.
88601         * config/config.sub: update from prep.
88602
88603 2003-07-03  Karl Berry  <karl@gnu.org>
88604
88605         * config/config.guess: update from prep.
88606
88607 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88608
88609         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88610         xreadlink.c now includes it unconditionally.
88611
88612 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88613
88614         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88615         having it depend on HAVE_SYS_TYPES_H.
88616
88617 2003-07-01  Bruno Haible  <bruno@clisp.org>
88618
88619         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88620         <sys/types.h> should be sufficient.
88621         Reported by Paul Eggert.
88622
88623 2003-06-26  Karl Berry  <karl@gnu.org>
88624
88625         * config/depcomp: update from automake.
88626
88627 2003-06-26  Bruno Haible  <bruno@clisp.org>
88628
88629         * modules/human: Depend on module stdbool.
88630
88631 2003-06-25  Bruno Haible  <bruno@clisp.org>
88632
88633         * modules/readlink: New file.
88634         * modules/xreadlink: Depend on it.
88635         * MODULES.html.sh (func_all_modules): Add readlink.
88636
88637 2003-06-25  Bruno Haible  <bruno@clisp.org>
88638
88639         * m4/readlink.m4: New file.
88640
88641 2003-06-25  Bruno Haible  <bruno@clisp.org>
88642
88643         * lib/readlink.c: New file.
88644
88645 2003-06-22  Karl Berry  <karl@gnu.org>
88646
88647         * config/srclist.txt: update mkinstalldirs from automake.
88648         * config/mkinstalldirs: update.
88649
88650 2003-06-22  Bruno Haible  <bruno@clisp.org>
88651
88652         Portability to mingw32.
88653         * m4/ssize_t.m4: New file, from GNU gettext.
88654         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88655         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88656
88657 2003-06-22  Bruno Haible  <bruno@clisp.org>
88658
88659         * modules/safe-read: Add m4/ssize_t.m4.
88660         * modules/xreadlink: Add m4/ssize_t.m4.
88661
88662 2003-06-20  Bruno Haible  <bruno@clisp.org>
88663
88664         Assume C89, so PARAMS isn't needed.
88665         * lib/unicodeio.h (PARAMS): Remove.
88666         * lib/unicodeio.c: Don't use PARAMS.
88667
88668 2003-06-18  Karl Berry  <karl@gnu.org>
88669
88670         * config/config.{guess,sub}: update from prep.
88671
88672 2003-06-18  Jim Meyering  <jim@meyering.net>
88673
88674         Merge changes from coreutils.
88675         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88676         Remove explicit declarations of xmalloc and realloc.
88677         Include xalloc.h.
88678         (read_utmp): Remove anachronistic cast of xmalloc.
88679
88680 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88681
88682         Assume C89, so PARAMS isn't needed.
88683         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88684         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88685         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88686         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88687         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88688         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88689         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88690         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88691         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88692         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88693         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88694         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88695         no longer needed. Anyway, config.h should always be included before any
88696         other file.
88697
88698 2003-06-11  Simon Josefsson  <jas@extundo.com>
88699
88700         * modules/sysexits: New file.
88701         * MODULES.html.sh (func_all_modules): Add sysexits.
88702
88703 2003-06-11  Simon Josefsson  <jas@extundo.com>
88704
88705         * lib/sysexit_.h: New file.
88706
88707 2003-06-11  Derek Price  <derek@ximbiot.com>
88708
88709         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88710         necessary.
88711
88712 2003-06-11  Bruno Haible  <bruno@clisp.org>
88713
88714         * m4/sysexits.m4: New file.
88715
88716 2003-06-10  Simon Josefsson  <jas@extundo.com>
88717
88718         * lib/argp.h: New file, from glibc.
88719         * lib/argp-ba.c: New file, from glibc.
88720         * lib/argp-eexst.c: New file, from glibc.
88721         * lib/argp-fmtstream.c: New file, from glibc.
88722         * lib/argp-fmtstream.h: New file, from glibc.
88723         * lib/argp-fs-xinl.c: New file, from glibc.
88724         * lib/argp-help.c: New file, from glibc.
88725         * lib/argp-namefrob.h: New file, from glibc.
88726         * lib/argp-parse.c: New file, from glibc.
88727         * lib/argp-pv.c: New file, from glibc.
88728         * lib/argp-pvh.c: New file, from glibc.
88729         * lib/argp-xinl.c: New file, from glibc.
88730
88731 2003-06-10  Simon Josefsson  <jas@extundo.com>
88732
88733         * modules/strchrnul: New file.
88734
88735 2003-06-10  Simon Josefsson  <jas@extundo.com>
88736
88737         * modules/argp: New file.
88738
88739 2003-06-10  Simon Josefsson  <jas@extundo.com>
88740
88741         * m4/strchrnul.m4: New file.
88742
88743 2003-06-10  Simon Josefsson  <jas@extundo.com>
88744
88745         * lib/strchrnul.h: New file.
88746         * lib/strchrnul.c: New file.
88747
88748 2003-06-10  Bruno Haible  <bruno@clisp.org>
88749
88750         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88751
88752 2003-06-07  Karl Berry  <karl@gnu.org>
88753
88754         * config/config.{guess,sub}: update from prep.
88755
88756 2003-06-07  Jim Meyering  <jim@meyering.net>
88757
88758         * modules/strtod: Use $(...) notation, not @...@ for
88759         AC_REPLACE'd variables.
88760         * modules/localcharset: Likewise.
88761
88762 2003-06-07  Jim Meyering  <jim@meyering.net>
88763
88764         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88765         in place of my name in the copyright comment.
88766         Remove definition and uses of __P.
88767
88768         From coreutils.
88769         * lib/stat.c: Don't declare xmalloc explicitly.
88770         Instead, include "xalloc.h".
88771         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88772         xrealloc, and xcalloc return values.
88773         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88774         Improve comment.
88775         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88776
88777 2003-06-07  Bruno Haible  <bruno@clisp.org>
88778
88779         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88780         avoid AC_CONFIG_LINKS.
88781         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88782         fnmatch.h, to avoid AC_CONFIG_LINKS.
88783         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88784
88785 2003-06-07  Bruno Haible  <bruno@clisp.org>
88786
88787         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88788         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88789         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88790         directory.
88791         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88792         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88793         directory.
88794
88795 2003-06-06  Jim Meyering  <jim@meyering.net>
88796
88797         Merge from coreutils.
88798         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88799         Consolidate declarations and initializations of *_base* locals.
88800
88801         Merge from coreutils.
88802         This avoids a core dump on systems without GNU putenv,
88803         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88804         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88805         (unsetenv): New static function, from GNU libc.
88806         (rpl_putenv): Use it.
88807
88808         * lib/modechange.c: Remove trailing blanks.
88809
88810         Merge from coreutils.
88811         * lib/fsusage.c: Remove declaration of statfs.
88812         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88813
88814         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88815
88816 2003-06-06  Jim Meyering  <jim@meyering.net>
88817
88818         * lib/stdbool_.h: Renamed from stdbool.h.in.
88819
88820 2003-06-06  Jim Meyering  <jim@meyering.net>
88821             Bruno Haible  <bruno@clisp.org>
88822
88823         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88824         Adjust Makefile.am snippet not to redirect directly to target.
88825         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88826
88827 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88828
88829         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88830         mismatch, look in future quarters as well as past.  This fixes a
88831         bug when processing fall-backwards gaps immediately after a long
88832         period of daylight-saving time.
88833
88834         * lib/mktime.c: Assume freestanding C89 or better.
88835         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88836         (__P): Remove; not used.
88837         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88838         (mktime, not_equal_tm, print_tm, check_result,
88839         main): Use prototypes.  Use const * where appropriate.
88840         (main): Fix typo in testing code that uncovered by above changes.
88841         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88842
88843 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88844
88845         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88846         locale.h, localeconv.  This merges changes from coreutils.
88847
88848         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88849         It can be removed after the next Autoconf is released.
88850         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88851         needed.
88852
88853 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88854
88855         * lib/mktime.c: Fix Debian bug 177940
88856         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88857         (localtime_offset): Now long int, not time_t, because we want it
88858         to be guaranteed to be signed.  All uses changed.
88859         (__mktime_internal): If overflow would occur when adding offset,
88860         don't add it.
88861
88862         Merge 'human' changes from coreutils.  Rewrite to support
88863         locale-specific notations like thousands separators.
88864         * lib/human.c: Simplify authorship notice.
88865         Include human.h immediately after config.h.
88866         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88867         <limits.h>: Do not include, since human.h does.
88868         (SIZE_MAX, UINTMAX_MAX): New macros.
88869         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88870         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88871         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88872         (power_letter): Renamed from suffixes.
88873         (generate_suffix_backwards): Remove.
88874         (adjust_value): Now takes int style (because of human.h changes)
88875         and long double value (for greater precision on some platforms).
88876         (group_number): New function.
88877         (human_readable): Use it.  Use integer options, not enum.
88878         Put the options before the sizes in the arg list.
88879         Support all the new options.
88880         The old human_readable function has been removed;
88881         use inttostr.h instead.
88882         (human_readable, default_block_size, humblock):
88883         Use uintmax_t, not int, for block sizes.
88884         (human_readable_inexact, block_size_types): Remove.
88885         (block_size_opts): New constant.
88886         (human_options): Renamed from human_block_size, with new signature
88887         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88888         * lib/human.h: Add copyright and authorship notice.
88889         Include <limits.h> and <stdbool.h> unconditionally.
88890         (PARAMS): Remove.  All uses removed.
88891         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88892         (enum human_inexact_style): Remove tag; now a nameless enum.
88893         (human_floor, human_ceiling, human_round_to_even): Now have
88894         values 2, 0, 1 rather than -1, 1, 0.
88895         (human_group_digits, human_suppress_point_zero, human_autoscale,
88896         human_base_1024, human_SI, human_B): New constants.
88897         (human_readable_inexact, human_block_size): Remove.
88898         (human_readable): Size args are now uintmax_t, not int.
88899         (human_options): New decl.
88900
88901         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88902         unnecessary now that we assume C89 or better.  This change
88903         imported from coreutils.
88904
88905         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88906         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88907         in the 2003-05-30 sync from glibc.
88908
88909         .h files should stand alone, but we shouldn't include <sys/types.h>
88910         if we can get away with just <stddef.h>.
88911
88912         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88913         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88914         rather than <sys/types.h>, as we merely need size_t.
88915         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88916         to get size_t.
88917         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88918         Include <stdio.h>, to get FILE.
88919         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88920         memcasecmp.h has included <stddef.h> and all we need is size_t.
88921         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88922         our interface, instead of including <sys/types.h>
88923
88924 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88925
88926         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88927         now, as glibc mktime is buggy on non-glibc systems.
88928
88929 2003-06-03  Karl Berry  <karl@gnu.org>
88930
88931         * config/config.sub: update from prep.
88932
88933 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88934
88935         [from coreutils]
88936         Fix some minor time-related bugs with POSIX time arguments.
88937         Some valid time stamps were being rejected (notably -1, and
88938         time stamps before 1900 on 64-bit hosts).  And some invalid
88939         time stamps were being accepted, e.g. September 31.
88940
88941         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88942         that we can return (time_t) -1 successfully.
88943         * lib/posixtm.c: Likewise.
88944         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88945         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88946         (t): Remove static var.
88947         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88948         of static var.  All uses changed.
88949         (year): Do not reject years before 1900; they can occur with
88950         64-bit time_t.
88951         (posix_time_parse): Do not check for out-of-range components;
88952         that is now the caller's responsibility, since our checks were
88953         only approximations.
88954         (posixtime): Use mktime to check for out-of-range components,
88955         since it knows them exactly.
88956         If mktime returns (time_t) -1, check whether an error actually occurred
88957         by invoking localtime on -1.
88958         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88959         posixtime failures better.
88960         Improve the test data (in comments only).
88961
88962 2003-06-02  Karl Berry  <karl@gnu.org>
88963
88964         * config/mkinstalldirs (version): new variable.
88965         (--version): new option.
88966         (usage): improve message.
88967
88968 2003-05-30  Karl Berry  <karl@gnu.org>
88969
88970         * lib/mktime.c: update from libc.
88971
88972 2003-05-30  Bruno Haible  <bruno@clisp.org>
88973
88974         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88975         * config/config.rpath: Upgrade to gettext-0.12.1.
88976
88977 2003-05-30  Bruno Haible  <bruno@clisp.org>
88978
88979         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88980         * m4/nls.m4: New file, from gettext-0.12.1.
88981         * m4/po.m4: New file, from gettext-0.12.1.
88982         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88983
88984 2003-05-30  Bruno Haible  <bruno@clisp.org>
88985
88986         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88987         * lib/localcharset.h: Likewise.
88988         * lib/localcharset.c: Likewise.
88989
88990 2003-05-29  Karl Berry  <karl@gnu.org>
88991
88992         * config/config.rpath: update from gettext.
88993
88994 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88995
88996         Assume the headers required for C89 freestanding compilers.
88997         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88998         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88999         * m4/human.m4 (gl_HUMAN): Likewise.
89000         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89001         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89002         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89003         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89005         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89006
89007 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89008
89009         Assume the headers required for C89 freestanding compilers.
89010         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89011         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89012         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89013         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89014         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89015         define, since <limits.h> is guaranteed to do that.
89016         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89017         * lib/exclude.c: Include <stdbool.h> unconditionally.
89018         * lib/tempname.c: Include <stddef.h> unconditionally.
89019         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89020         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89021         <stddef.h> does that.
89022         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89023         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89024         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89025         needed.
89026         * lib/xstrtol.c: Likewise.
89027         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89028         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89029
89030         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89031         warnings on some platforms.
89032
89033         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89034         arbitrarily.
89035
89036 2003-05-26  Jim Meyering  <jim@meyering.net>
89037
89038         Merge in a change from coreutils:
89039         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89040         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89041         that condition, rather than `-1' which is slightly misleading.
89042         Change the name of the cache variable to have the gl_ prefix.
89043         Prompted by a patch from Richard Dawe for DJGPP.
89044
89045 2003-05-24  Karl Berry  <karl@gnu.org>
89046
89047         * config/config.guess: update from prep.
89048
89049 2003-05-22  Karl Berry  <karl@gnu.org>
89050
89051         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89052
89053 2003-05-20  Karl Berry  <karl@gnu.org>
89054
89055         * config/config.guess: update from prep.
89056
89057 2003-05-18  Karl Berry  <karl@gnu.org>
89058
89059         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89060         might actually be set by the user.
89061
89062         * config/depcomp, install-sh, mdate-sh: update from automake.
89063
89064 2003-05-17  Bruno Haible  <bruno@clisp.org>
89065
89066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89067         invalid expansion for AC_EGREP_CPP.
89068         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89069         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89070         Suggested by Akim Demaille <akim@epita.fr> in
89071         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89072
89073 2003-05-12  Jim Meyering  <jim@meyering.net>
89074
89075         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89076         the space-padded-by-default conversion specifiers, %e, %k, %l.
89077
89078 2003-05-12  Bruno Haible  <bruno@clisp.org>
89079
89080         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89081         the string is longer than 4 KB.
89082
89083 2003-05-11  Karl Berry  <karl@gnu.org>
89084
89085         * config/config.{guess,sub}: update from prep.
89086
89087 2003-05-09  Bruno Haible  <bruno@clisp.org>
89088
89089         * modules/error: Add m4/strerror_r.m4 to file list.
89090
89091 2003-05-03  Bruno Haible  <bruno@clisp.org>
89092
89093         Upgrade to Unicode-4.0.
89094         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89095         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89096         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89097         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89098         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89099         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89100         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89101         Change width of U+E0100..U+E01EF from 1 to 0.
89102
89103 2003-04-25  Jim Meyering  <jim@meyering.net>
89104
89105         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89106         of type size_t, not int.
89107
89108 2003-04-25  Bruno Haible  <bruno@clisp.org>
89109
89110         * lib/copy-file.c: Include <stddef.h>, for size_t.
89111
89112 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89113
89114         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89115         code which expansion is under static control.  Patch imported from
89116         Akim Demaille's patch to Bison; see
89117         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89118
89119 2003-04-14  Bruno Haible  <bruno@clisp.org>
89120
89121         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89122
89123 2003-04-11  Jim Meyering  <jim@meyering.net>
89124
89125         Merge changes from Coreutils.
89126
89127         2003-03-22  Jim Meyering  <jim@meyering.net>
89128
89129         * lib/strftime.c (widen): Cast alloca return value to proper type.
89130
89131         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89132
89133         From GNU libc.
89134         * lib/strftime.c (my_strftime): Handle very large width
89135         specifications for numeric values correctly.  Improve checks for
89136         overflow.
89137
89138         2003-01-19  Jim Meyering  <jim@meyering.net>
89139
89140         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89141         definitions.
89142         (nl_get_alt_digit) [! defined my_strftime]: Define.
89143         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89144         _nl_get_alt_digit and _nl_get_walt_digit.
89145
89146         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89147         libc. These changes have no effect outside of _LIBC.
89148
89149 2003-04-10  Bruno Haible  <bruno@clisp.org>
89150
89151         * modules/findprog: New file.
89152         * MODULES.html.sh (func_all_modules): Add it.
89153
89154 2003-04-10  Bruno Haible  <bruno@clisp.org>
89155
89156         * m4/findprog.m4: New file.
89157         * m4/eaccess.m4: New file.
89158
89159 2003-04-10  Bruno Haible  <bruno@clisp.org>
89160
89161         * lib/findprog.h: New file, from GNU gettext.
89162         * lib/findprog.c: New file, from GNU gettext.
89163
89164 2003-04-05  Jim Meyering  <jim@meyering.net>
89165
89166         Merge changes from Coreutils.
89167
89168         * lib/exclude.h (PARAMS): Remove definition and uses.
89169         * lib/exclude.c: Remove uses of `PARAMS'.
89170
89171         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89172         Add test-cases for DOS filenames. Declare program_name.
89173         (main): Set up program_name.  Patch by Rich Dawe.
89174
89175         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89176         error from mntctl.
89177         Use mntctl's return value to drive the entry-processing loop, since
89178         we can't rely on the value of the vmt_length member in the last
89179         entry.  On some systems doing so could result in exhausting
89180         virtual memory.  Based in part on a patch from Mike Jetzer.
89181
89182 2003-04-04  Bruno Haible  <bruno@clisp.org>
89183
89184         * modules/linebreak: New file.
89185         * MODULES.html.sh (func_all_modules): Add it.
89186
89187 2003-04-04  Bruno Haible  <bruno@clisp.org>
89188
89189         * m4/linebreak.m4: New file.
89190
89191 2003-04-04  Bruno Haible  <bruno@clisp.org>
89192
89193         * lib/linebreak.h: New file, from GNU gettext.
89194         * lib/linebreak.c: New file, from GNU gettext with slight
89195         modifications.
89196         * lib/lbrkprop.h: New file, from GNU gettext.
89197
89198 2003-04-03  Bruno Haible  <bruno@clisp.org>
89199
89200         * modules/utf8-ucs4: New file.
89201         * modules/utf16-ucs4: New file.
89202         * modules/ucs4-utf8: New file.
89203         * modules/ucs4-utf16: New file.
89204         * MODULES.html.sh (func_all_modules): Add them.
89205
89206 2003-04-03  Bruno Haible  <bruno@clisp.org>
89207
89208         * m4/utf-ucs4.m4: New file.
89209         * m4/ucs4-utf.m4: New file.
89210
89211 2003-04-03  Bruno Haible  <bruno@clisp.org>
89212
89213         * lib/utf8-ucs4.h: New file, from GNU gettext.
89214         * lib/utf16-ucs4.h: New file, from GNU gettext.
89215         * lib/ucs4-utf8.h: New file, from GNU gettext.
89216         * lib/ucs4-utf16.h: New file, from GNU gettext.
89217
89218 2003-04-02  Bruno Haible  <bruno@clisp.org>
89219
89220         * modules/binary-io: New file.
89221         * MODULES.html.sh (func_all_modules): Add it.
89222
89223 2003-04-02  Bruno Haible  <bruno@clisp.org>
89224
89225         * lib/binary-io.h: New file, from GNU gettext.
89226
89227 2003-04-01  Bruno Haible  <bruno@clisp.org>
89228
89229         * modules/pathname: New file.
89230         * MODULES.html.sh (func_all_modules): Add it.
89231
89232 2003-04-01  Bruno Haible  <bruno@clisp.org>
89233
89234         * lib/pathname.h: New file, from GNU gettext.
89235         * lib/concatpath.c: New file, from GNU gettext.
89236
89237 2003-03-30  Bruno Haible  <bruno@clisp.org>
89238
89239         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89240
89241 2003-03-30  Bruno Haible  <bruno@clisp.org>
89242
89243         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89244         function chown() doesn't exist.
89245
89246 2003-03-28  Bruno Haible  <bruno@clisp.org>
89247
89248         * modules/copy-file: New file.
89249         * MODULES.html.sh (func_all_modules): Add it.
89250
89251 2003-03-28  Bruno Haible  <bruno@clisp.org>
89252
89253         * m4/copy-file.m4: New file.
89254
89255 2003-03-28  Bruno Haible  <bruno@clisp.org>
89256
89257         * lib/copy-file.h: New file, from GNU gettext.
89258         * lib/copy-file.c: New file, from GNU gettext.
89259
89260 2003-03-18  Jim Meyering  <jim@meyering.net>
89261
89262         * lib/quote.c (quote_n): Fix typo in comment.
89263
89264 2003-03-18  Bruno Haible  <bruno@clisp.org>
89265
89266         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89267         checking.
89268         * m4/onceonly_2_57.m4: Likewise.
89269
89270 2003-03-17  Bruno Haible  <bruno@clisp.org>
89271
89272         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89273         (m4_quote): Remove macro.
89274         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89275
89276 2003-03-14  Jim Meyering  <jim@meyering.net>
89277
89278         Merge changes from Coreutils.
89279         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89280         to be const, in order to avoid warnings.
89281         (obstack_room): Likewise.
89282         (obstack_empty_p): Likewise.
89283
89284 2003-03-14  Bruno Haible  <bruno@clisp.org>
89285
89286         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89287         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89288
89289 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89290
89291         Merge changes from Bison.
89292         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89293         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89294         when compiling Bison 1.875's `bitset bset = obstack_alloc
89295         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89296         * lib/hash.c: Include <stdbool.h> unconditionally.
89297
89298 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89299
89300         * m4/onceonly.m4 (m4_quote): New macro.
89301         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89302         Quote AC_FOREACH variable-expansions properly.
89303
89304 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89305
89306         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89307
89308 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89309
89310         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89311         Reported by Bruce Becker; see:
89312         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89313
89314 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89315             Bruno Haible  <bruno@clisp.org>
89316
89317         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89318         Reported by John Hughes, see
89319         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89320
89321 2003-02-20  Bruno Haible  <bruno@clisp.org>
89322
89323         * MODULES.html.sh (func_all_modules): Add poll.
89324
89325 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89326
89327         * modules/poll: New file.
89328
89329 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89330
89331         * lib/poll_.h: New file.
89332         * lib/poll.c: New file.
89333
89334 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89335
89336         * m4/poll.m4: New file.
89337
89338 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89339
89340         * modules/mathl: New file.
89341
89342 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89343
89344         * lib/mathl.h: New file.
89345         * lib/acosl.c: New file.
89346         * lib/asinl.c: New file.
89347         * lib/atanl.c: New file.
89348         * lib/ceill.c: New file.
89349         * lib/cosl.c: New file.
89350         * lib/expl.c: New file.
89351         * lib/floorl.c: New file.
89352         * lib/frexpl.c: New file.
89353         * lib/ldexpl.c: New file.
89354         * lib/logl.c: New file.
89355         * lib/sincosl.c: New file.
89356         * lib/sinl.c: New file.
89357         * lib/sqrtl.c: New file.
89358         * lib/tanl.c: New file.
89359         * lib/trigl.c: New file.
89360         * lib/trigl.h: New file.
89361
89362 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89363
89364         * m4/mathl.m4: New file.
89365
89366 2003-02-18  Bruno Haible  <bruno@clisp.org>
89367
89368         * MODULES.html.sh (func_all_modules): Add mathl.
89369
89370 2003-02-17  Bruno Haible  <bruno@clisp.org>
89371
89372         * modules/mkdtemp: New module.
89373         * MODULES.html.sh (func_all_modules): Add it.
89374
89375 2003-02-17  Bruno Haible  <bruno@clisp.org>
89376
89377         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89378
89379 2003-02-17  Bruno Haible  <bruno@clisp.org>
89380
89381         * lib/mkdtemp.h: New file, from GNU gettext.
89382         * lib/mkdtemp.c: New file, from GNU gettext.
89383
89384 2003-02-02  Jim Meyering  <jim@meyering.net>
89385
89386         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89387         e.g. glibc-2.2.93.
89388
89389 2003-01-31  Bruno Haible  <bruno@clisp.org>
89390
89391         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89392         'rpl_rename'.
89393         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89394         'rpl_strnlen'.
89395         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89396         'rpl_strtod'.
89397         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89398         'rpl_utime'.
89399
89400 2003-01-31  Bruno Haible  <bruno@clisp.org>
89401
89402         * lib/rename.c: #undef rename before defining rpl_rename.
89403         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89404
89405 2003-01-30  Bruno Haible  <bruno@clisp.org>
89406
89407         * modules/vasnprintf, modules/vasprintf: New modules.
89408         * MODULES.html.sh (func_all_modules): Add them.
89409
89410 2003-01-30  Bruno Haible  <bruno@clisp.org>
89411
89412         * m4/signed.m4: New file, from GNU gettext.
89413         * m4/longdouble.m4: New file, from GNU gettext.
89414         * m4/wchar_t.m4: New file, from GNU gettext.
89415         * m4/wint_t.m4: New file, from GNU gettext.
89416         * m4/vasnprintf.m4: New file.
89417         * m4/vasprintf.m4: New file.
89418
89419 2003-01-30  Bruno Haible  <bruno@clisp.org>
89420
89421         * lib/printf-args.h: New file, from GNU gettext.
89422         * lib/printf-args.c: New file, from GNU gettext.
89423         * lib/printf-parse.h: New file, from GNU gettext.
89424         * lib/printf-parse.c: New file, from GNU gettext.
89425         * lib/vasnprintf.h: New file, from GNU gettext.
89426         * lib/vasnprintf.c: New file, from GNU gettext.
89427         * lib/asnprintf.c: New file, from GNU gettext.
89428         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89429         * lib/vasprintf.c: New file, from GNU gettext.
89430         * lib/asprintf.c: New file, from GNU gettext.
89431
89432 2003-01-29  Bruno Haible  <bruno@clisp.org>
89433
89434         * modules/stpncpy: New module.
89435         * MODULES.html.sh (func_all_modules): Add it.
89436
89437 2003-01-29  Bruno Haible  <bruno@clisp.org>
89438
89439         * m4/stpncpy.m4: New file.
89440
89441 2003-01-29  Bruno Haible  <bruno@clisp.org>
89442
89443         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89444         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89445
89446 2003-01-28  Bruno Haible  <bruno@clisp.org>
89447
89448         * modules/c-ctype: New module.
89449         * MODULES.html.sh (func_all_modules): Add it.
89450
89451 2003-01-28  Bruno Haible  <bruno@clisp.org>
89452
89453         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89454         Paul Eggert.
89455         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89456         Paul Eggert.
89457
89458 2003-01-27  Bruno Haible  <bruno@clisp.org>
89459
89460         * modules/xsetenv: New module.
89461         * MODULES.html.sh (func_all_modules): Add it.
89462
89463 2003-01-27  Bruno Haible  <bruno@clisp.org>
89464
89465         * lib/xsetenv.h: New file, from GNU gettext.
89466         * lib/xsetenv.c: New file, from GNU gettext.
89467
89468 2003-01-23  Jim Meyering  <jim@meyering.net>
89469
89470         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89471         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89472
89473 2003-01-23  Bruno Haible  <bruno@clisp.org>
89474
89475         * modules/minmax: New module.
89476         * MODULES.html.sh (func_all_modules): Add it.
89477
89478 2003-01-23  Bruno Haible  <bruno@clisp.org>
89479
89480         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89481         Eggert.
89482
89483 2003-01-22  Bruno Haible  <bruno@clisp.org>
89484
89485         * modules/exit: New module.
89486         * MODULES.html.sh (func_all_modules): Add it.
89487
89488 2003-01-22  Bruno Haible  <bruno@clisp.org>
89489
89490         * lib/exit.h: New file, from GNU gettext.
89491
89492 2003-01-19  Bruno Haible  <bruno@clisp.org>
89493
89494         * gnulib-tool: Recognize option --extract-maintainer.
89495         (func_get_maintainer): New function.
89496         * modules/*: Add Maintainer entry.
89497
89498 2003-01-16  Jim Meyering  <jim@meyering.net>
89499
89500         * m4/regex.m4: The `regex' struct is both input and output.
89501         Initialize it before each use.  Patch by Tim Waugh.
89502
89503 2003-01-16  Bruno Haible  <bruno@clisp.org>
89504
89505         * MODULES.html.sh: Add a table of contents. Add the module name as
89506         leftmost column. Add hyperlinks.
89507
89508 2003-01-15  Bruno Haible  <bruno@clisp.org>
89509
89510         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89511
89512 2003-01-15  Bruno Haible  <bruno@clisp.org>
89513
89514         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89516         suffix.
89517
89518 2003-01-15  Bruno Haible  <bruno@clisp.org>
89519
89520         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89521
89522 2003-01-15  Bruno Haible  <bruno@clisp.org>
89523
89524         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89525         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89526
89527 2003-01-14  Jim Meyering  <jim@meyering.net>
89528
89529         * lib/same.c (same_name): Tweak a comment.
89530
89531 2003-01-14  Bruno Haible  <bruno@clisp.org>
89532
89533         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89534         when a string comparison is sufficient.
89535
89536 2003-01-14  Bruno Haible  <bruno@clisp.org>
89537
89538         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89539         'unsigned int'.
89540
89541 2003-01-14  Bruno Haible  <bruno@clisp.org>
89542
89543         * lib/hash-pjw.c: Add comment about low quality of this function.
89544
89545 2003-01-13  Bruno Haible  <bruno@clisp.org>
89546
89547         * modules/stpcpy: Distribute lib/stpcpy.h.
89548         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89549
89550 2003-01-13  Bruno Haible  <bruno@clisp.org>
89551
89552         * modules/*: Add a description.
89553         * modules/strpbrk: Fix Makefile.am snippet.
89554         * modules/strtoimax: Fix dependencies.
89555         * modules/strtoumax: Likewise.
89556
89557 2003-01-13  Bruno Haible  <bruno@clisp.org>
89558
89559         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89560         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89561         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89562
89563 2003-01-13  Bruno Haible  <bruno@clisp.org>
89564
89565         * gnulib-tool (func_create_testdir): Store config/* files in the main
89566         directory.
89567         * config.rpath: Move to ...
89568         * config/config.rpath: ... here.
89569         * modules/gettext: Contains config/config.rpath, not config.rpath.
89570         * modules/iconv: Likewise.
89571
89572 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89573
89574         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89575         to avoid collisions with libcurses and libreadline.
89576
89577         * m4/getstr.m4: Remove.
89578         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89579
89580 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89581
89582         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89583         to avoid collisions with libcurses and libreadline.
89584
89585         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89586         * lib/getstr.h, getstr.c: Remove.
89587         * lib/getline.c: Include "getline.h", to check interface.
89588         Move body of old getstr.c here: this defines MIN_CHUNK and
89589         declares getdelim2, which is renamed from getstr.
89590         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89591
89592         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89593         All uses changed.
89594         * lib/linebuffer.h: Likewise.
89595         (readline): Remove backward-compatibility macro.
89596
89597 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89598
89599         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89600         to avoid collisions with libcurses and libreadline.
89601         * getstr: Remove.
89602         * MODULES.html.sh: Remove getstr.
89603         * modules/getline: Depend on unlocked-io, not getstr.
89604
89605 2003-01-12  Jim Meyering  <jim@meyering.net>
89606
89607         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89608
89609 2003-01-10  Bruno Haible  <bruno@clisp.org>
89610
89611         * modules/alloca: Change Makefile.am requirements. Simplify Include
89612         requirements. Add lib/alloca_.h to file list.
89613
89614 2003-01-10  Bruno Haible  <bruno@clisp.org>
89615
89616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89617
89618 2003-01-10  Bruno Haible  <bruno@clisp.org>
89619
89620         * lib/alloca_.h: New file.
89621         * lib/getdate.y: Unconditionally include alloca.h.
89622         * lib/makepath.c: Likewise.
89623         * lib/setenv.c: Likewise.
89624         * lib/userspec.c: Likewise.
89625
89626 2003-01-09  Karl Berry  <karl@gnu.org>
89627
89628         * MODULES.html.sh: include `dirname $0` in PATH, to find
89629         gnulib-tool.
89630
89631 2003-01-09  Bruno Haible  <bruno@clisp.org>
89632
89633         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89634         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89635
89636 2003-01-09  Bruno Haible  <bruno@clisp.org>
89637
89638         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89639
89640 2003-01-09  Bruno Haible  <bruno@clisp.org>
89641
89642         * lib/stdbool.h.in: New file.
89643
89644 2003-01-09  Bruno Haible  <bruno@clisp.org>
89645
89646         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89647         * MODULES.html.sh: Likewise.
89648
89649 2003-01-08  Jim Meyering  <jim@meyering.net>
89650
89651         * lib/full-write.c: Undefine and define-away `const' after inclusion
89652         of errno.h, not before.  Suggestion from Bruno Haible.
89653
89654 2003-01-08  Bruno Haible  <bruno@clisp.org>
89655
89656         * modules/full-read: Depend on full-write.
89657
89658 2003-01-08  Bruno Haible  <bruno@clisp.org>
89659
89660         * lib/safe-read.c: Include specification header first, to ensure its
89661         selfcontainedness.
89662         * lib/full-write.c: Likewise.
89663
89664 2003-01-07  Jim Meyering  <jim@meyering.net>
89665
89666         * lib/full-write.c: Rework so that it may serve to define full_read,
89667         too.
89668         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89669
89670 2003-01-07  Bruno Haible  <bruno@clisp.org>
89671
89672         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89673         <inttypes.h>.
89674         * lib/xstrtol.h: Likewise.
89675         * lib/xstrtoimax.c: Likewise.
89676         * lib/xstrtoumax.c: Likewise.
89677         * lib/human.h: Likewise.
89678
89679         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89680         on systems that have <inttypes.h> but not <stdint.h>.
89681
89682 2003-01-07  Bruno Haible  <bruno@clisp.org>
89683
89684         * MODULES.html.sh: Add copyright notice.
89685         (missed_files): Omit CVS directory entries.
89686         (func_module): Make it work with sed-3.02.
89687         * MODULES.txt: Remove file.
89688
89689 2003-01-06  Jim Meyering  <jim@meyering.net>
89690
89691         * lib/version-etc.c: Update year in translatable copyright string.
89692
89693 2003-01-03  Karl Berry  <karl@gnu.org>
89694
89695         * config/config.{guess,sub}: update from prep.
89696
89697 2003-01-02  Karl Berry  <karl@gnu.org>
89698
89699         * doc/COPYING.DOC: belatedly updated to 1.2.
89700
89701 2003-01-01  Karl Berry  <karl@gnu.org>
89702
89703         * gnulib-tool (func_verify_module): report module name $module in
89704         error message, not $1.
89705         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89706         be created, only if it doesn't exist.
89707         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89708
89709 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89710
89711         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89712
89713 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89714
89715         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89716         memcmp if strcoll doesn't work.
89717
89718 2002-12-31  Bruno Haible  <bruno@clisp.org>
89719
89720         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89721         nonempty.
89722
89723 2002-12-31  Bruno Haible  <bruno@clisp.org>
89724
89725         * lib/memcoll.c (STRCOLL): New macro.
89726         (memcoll): Use it.
89727
89728 2002-12-31  Bruno Haible  <bruno@clisp.org>
89729
89730         * lib/localcharset.h: New file.
89731         * lib/localcharset.c: Include it.
89732         * lib/unicodeio.c: Likewise.
89733
89734 2002-12-31  Bruno Haible  <bruno@clisp.org>
89735
89736         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89737         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89738
89739 2002-12-31  Bruno Haible  <bruno@clisp.org>
89740
89741         * lib/getline.h: Include <stddef.h>, for size_t.
89742
89743         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89744         * lib/unicodeio.c: Don't include <stddef.h>.
89745
89746 2002-12-31  Bruno Haible  <bruno@clisp.org>
89747
89748         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89749         HAVE_TM_ZONE.
89750
89751 2002-12-24  Karl Berry  <karl@gnu.org>
89752
89753         * config/config.guess: update from prep.
89754
89755 2002-12-24  Bruno Haible  <bruno@clisp.org>
89756
89757         General infrasructure.
89758         * m4/README: Rewritten.
89759         * m4/onceonly.m4: New file.
89760         * m4/onceonly_2_57.m4: New file.
89761
89762         Module atexit.
89763         * m4/atexit.m4: New file.
89764
89765         Module strtod.
89766         * m4/strtod.m4: New file.
89767
89768         Module strtol.
89769         * m4/strtol.m4: New file.
89770
89771         Module strtoul.
89772         * m4/strtoul.m4: New file.
89773
89774         Module memchr.
89775         * m4/memchr.m4: New file.
89776
89777         Module memcmp.
89778         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89779         (jm_FUNC_MEMCMP): Invoke it.
89780
89781         Module memcpy.
89782         * m4/memcpy.m4: New file.
89783
89784         Module memmove.
89785         * m4/memmove.m4: New file.
89786
89787         Module memset.
89788         * m4/memset.m4: New file.
89789
89790         Module strcspn.
89791         * m4/strcspn.m4: New file.
89792
89793         Module strpbrk.
89794         * m4/strpbrk.m4: New file.
89795
89796         Module strstr.
89797         * m4/strstr.m4: New file.
89798
89799         Module strerror.
89800         * m4/strerror.m4: New file.
89801
89802         Module mktime.
89803         * m4/mktime.m4: Renamed from jm-mktime.m4.
89804         (gl_PREREQ_MKTIME): New macro.
89805         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89806
89807         Module malloc.
89808         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89809         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89810         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89811
89812         Module realloc.
89813         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89814         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89815         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89816
89817         Module strftime.
89818         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89819         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89820         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89821         gl_TM_GMTOFF.
89822         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89823
89824         Module xalloc.
89825         * m4/xalloc.m4: New file.
89826
89827         Module alloca.
89828         * m4/alloca.m4: New file.
89829
89830         Module putenv.
89831         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89832         (jm_FUNC_PUTENV): Invoke it.
89833
89834         Module setenv.
89835         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89836         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89837         when invoked twice.
89838         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89839         gt_FUNC_SETENV.
89840
89841         Module memrchr.
89842         * m4/memrchr.m4: New file.
89843
89844         Module stpcpy.
89845         * m4/stpcpy.m4: New file.
89846
89847         Module strcase.
89848         * m4/strcase.m4: New file.
89849
89850         Module strdup.
89851         * m4/strdup.m4: New file.
89852
89853         Module strnlen.
89854         * m4/strnlen.m4: New file.
89855
89856         Module strndup.
89857         * m4/strndup.m4: New file.
89858
89859         Module xstrtod.
89860         * m4/xstrtod.m4: New file.
89861
89862         Module xstrtol.
89863         * m4/xstrtol.m4: New file.
89864
89865         Module getdate.
89866         * m4/getdate.m4: New file.
89867
89868         Module unlocked-io.
89869         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89870         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89871         * m4/jm-glibc-io.m4n: Remove file.
89872
89873         Module long-options.
89874         * m4/long-options.m4: New file.
89875
89876         Module md5.
89877         * m4/md5.m4: New file.
89878
89879         Module sha.
89880         * m4/sha.m4: New file.
89881
89882         Module getstr.
89883         * m4/getstr.m4: New file.
89884
89885         Module getline.
89886         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89887         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89888         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89889         simply getline. Infoke gl_PREREQ_GETLINE.
89890
89891         Module obstack.
89892         * m4/obstack.m4: New file.
89893
89894         Module hash.
89895         * m4/hash.m4: New file.
89896
89897         Module readtokens.
89898         * m4/readtokens.m4: New file.
89899
89900         Module strverscmp.
89901         * m4/strverscmp.m4: New file.
89902
89903         Module stdbool.
89904         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89905         OSF/1.
89906
89907         Module strtoll.
89908         * m4/strtoll.m4: New file.
89909
89910         Module strtoull.
89911         * m4/strtoull.m4: New file.
89912
89913         Module strtoimax.
89914         * m4/strtoimax.m4: New file.
89915
89916         Module strtoumax.
89917         * m4/strtoumax.m4: New file.
89918
89919         Module xstrtoimax.
89920         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89921         jm_AC_PREREQ_XSTRTOIMAX.
89922         Moved the strtol prerequisites to strtol.m4.
89923         Moved the strtoll prerequisites to strtoll.m4.
89924         Moved the strtoimax prerequisites to strtoimax.m4.
89925
89926         Module xstrtoumax.
89927         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89928         jm_AC_PREREQ_XSTRTOUMAX.
89929         Moved the strtoul prerequisites to strtoul.m4.
89930         Moved the strtoull prerequisites to strtoull.m4.
89931         Moved the strtoumax prerequisites to strtoumax.m4.
89932
89933         Module chown.
89934         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89935         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89936
89937         Module dup2.
89938         * m4/dup2.m4: New file.
89939
89940         Module ftruncate.
89941         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89942         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89943
89944         Module getgroups.
89945         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89946         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89947
89948         Module gettimeofday.
89949         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89950         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89951         gl_PREREQ_GETTIMEOFDAY.
89952
89953         Module mkdir.
89954         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89955         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89956
89957         Module mkstemp.
89958         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89959         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89960         jm_AC_TYPE_UINTMAX_T.
89961         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89962
89963         Module stat.
89964         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89965         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89966
89967         Module lstat.
89968         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89969         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89970
89971         Module timespec.
89972         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89973         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89974         * m4/st_mtim.m4: Indentation.
89975
89976         Module nanosleep.
89977         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89978         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89979         gl_PREREQ_NANOSLEEP.
89980
89981         Module regex.
89982         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89983         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89984         (gl_REGEX): New macro.
89985
89986         Module rename.
89987         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89988         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89989
89990         Module rmdir.
89991         * m4/rmdir.m4: New file.
89992
89993         Module utime.
89994         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89995         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89996         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89997
89998         Module dirname.
89999         * m4/dirname.m4: New file.
90000
90001         Module getopt.
90002         * m4/getopt.m4: New file.
90003
90004         Module unistd-safer.
90005         * m4/unistd-safer.m4: New file.
90006
90007         Module fnmatch.
90008         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90009         declaration.
90010         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90011         (gl_FUNC_FNMATCH_POSIX): New macro.
90012         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90013         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90014         simply fnmatch.
90015
90016         Module exclude.
90017         * m4/exclude.m4: New file.
90018
90019         Module human.
90020         * m4/human.m4: New file.
90021
90022         Module acl.
90023         * m4/acl.m4: Nop.
90024
90025         Module backupfile.
90026         * m4/backupfile.m4: New file.
90027         * m4/d-ino.m4: Indentation.
90028
90029         Module fsusage.
90030         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90031         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90032         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90033
90034         Module dirfd.
90035         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90036         requirements.
90037
90038         Module euidaccess.
90039         * m4/euidaccess.m4: New file.
90040
90041         Module file-type.
90042         * m4/file-type.m4: New file.
90043
90044         Module fileblocks.
90045         * m4/fileblocks.m4: New file.
90046
90047         Module filemode.
90048         * m4/filemode.m4: New file.
90049
90050         Module isdir.
90051         * m4/isdir.m4: New file.
90052
90053         Module lchown.
90054         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90055         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90056
90057         Module makepath.
90058         * m4/makepath.m4: New file.
90059
90060         Module modechange.
90061         * m4/modechange.m4: New file.
90062
90063         Module mountlist.
90064         * m4/mountlist.m4: New file.
90065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90066         Indentation.
90067
90068         Module path-concat.
90069         * m4/path-concat.m4: New file.
90070
90071         Module pathmax.
90072         * m4/pathmax.m4: New file.
90073
90074         Module same.
90075         * m4/same.m4: New file.
90076
90077         Module save-cwd.
90078         * m4/save-cwd.m4: New file.
90079
90080         Module savedir.
90081         * m4/savedir.m4: New file.
90082
90083         Module xgetcwd.
90084         * m4/xgetcwd.m4: New file.
90085         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90086
90087         Module xreadlink.
90088         * m4/xreadlink.m4: New file.
90089
90090         Module safe-read.
90091         * m4/safe-read.m4: New file.
90092
90093         Module safe-write.
90094         * m4/safe-write.m4: New file.
90095
90096         Module closeout.
90097         * m4/closeout.m4: New file.
90098
90099         Module stdio-safer.
90100         * m4/stdio-safer.m4: New file.
90101
90102         Module getpass.
90103         * m4/getpass.m4: New file.
90104
90105         Module getugroups.
90106         * m4/getugroups.m4: New file.
90107
90108         Module group-member.
90109         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90110         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90111
90112         Module idcache.
90113         * m4/idcache.m4: New file.
90114
90115         Module userspec.
90116         * m4/userspec.m4: New file.
90117
90118         Module gettime.
90119         * m4/clock_time.m4: New file.
90120         * m4/gettime.m4: New file.
90121
90122         Module settime.
90123         * m4/settime.m4: New file.
90124
90125         Module posixtm.
90126         * m4/posixtm.m4: New file.
90127
90128         Module gethostname.
90129         * m4/gethostname.m4: New file.
90130
90131         Module canon-host.
90132         * m4/canon-host.m4: New file.
90133
90134         Module gettext.
90135         * m4/codeset.m4: New file, from gettext-0.11.5.
90136         * m4/gettext.m4: New file, from gettext-0.11.5.
90137         * m4/glibc21.m4: New file, from gettext-0.11.5.
90138         * m4/iconv.m4: New file, from gettext-0.11.5.
90139         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90140         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90141         * m4/inttypes.m4: New file, from gettext-0.11.5.
90142         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90143         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90144         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90145         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90146         * m4/lib-link.m4: New file, from gettext-0.11.5.
90147         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90148         * m4/progtest.m4: New file, from gettext-0.11.5.
90149         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90150         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90151         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90152
90153         Module localcharset.
90154         * m4/localcharset.m4: New file.
90155
90156         Module hard-locale.
90157         * m4/hard-locale.m4: New file.
90158
90159         Module mbswidth.
90160         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90161         onceonly macros.
90162         * m4/mbrtowc.m4: Add comment.
90163
90164         Module memcasecmp.
90165         * m4/memcasecmp.m4: New file.
90166
90167         Module memcoll.
90168         * m4/memcoll.m4: New file.
90169
90170         Module unicodeio.
90171         * m4/unicodeio.m4: New file.
90172
90173         Module rpmatch.
90174         * m4/rpmatch.m4: New file.
90175
90176         Module yesno.
90177         * m4/yesno.m4: New file.
90178
90179         Module exitfail.
90180         * m4/exitfail.m4: New file.
90181
90182         Module c-stack.
90183         * m4/c-stack.m4 (gl_C_STACK): New macro.
90184         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90185
90186         Module error.
90187         * m4/error.m4 (gl_ERROR): New macro.
90188         (jm_PREREQ_ERROR): Use onceonly macros.
90189
90190         Module fatal.
90191         * m4/fatal.m4: New file.
90192
90193         Module getloadavg.
90194         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90195         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90196
90197         Module getpagesize.
90198         * m4/getpagesize.m4: New file.
90199
90200         Module getusershell.
90201         * m4/getusershell.m4: New file.
90202
90203         Module physmem.
90204         * m4/physmem.m4: New file.
90205
90206         Module posixver.
90207         * m4/posixver.m4: New file.
90208
90209         Module quotearg.
90210         * m4/quotearg.m4: New file.
90211
90212         Module quote.
90213         * m4/quote.m4: New file.
90214
90215         Module readutmp.
90216         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90217
90218         Module sig2str.
90219         * m4/sig2str.m4: New file.
90220
90221         Other.
90222         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90223         ulonglong.m4.
90224         * m4/intmax_t.m4: New file.
90225         * m4/d-type.m4: Indentation.
90226         * m4/jm-macros.m4: Update.
90227         * m4/prereq.m4 (jm_PREREQ): Update.
90228         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90229         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90230         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90231         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90232         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90233         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90234         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90235         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90236         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90237         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90238         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90239         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90240         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90241         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90242         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90243         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90244         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90245         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90246         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90247
90248 2002-12-24  Bruno Haible  <bruno@clisp.org>
90249
90250         * MODULES.txt: Update according to m4/ changes.
90251
90252         Module gettext.
90253         * config.rpath: New file, from gettext-0.11.5.
90254
90255         * modules/*: New module descriptions.
90256         * gnulib-tool: New file.
90257         * MODULES.html.sh: New file.
90258
90259 2002-12-21  Karl Berry  <karl@gnu.org>
90260
90261         * doc/fdl.texi: update to version 1.2.
90262
90263 2002-12-19  Karl Berry  <karl@gnu.org>
90264
90265         * config/config.guess: update from prep.
90266
90267 2002-12-18  Bruno Haible  <bruno@clisp.org>
90268
90269         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90270         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90271
90272 2002-12-17  Bruno Haible  <bruno@clisp.org>
90273
90274         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90275         stdlib.h, string.h.
90276
90277 2002-12-17  Bruno Haible  <bruno@clisp.org>
90278
90279         * lib/canon-host.c (strdup): Remove unused declaration.
90280
90281         * lib/fsusage.c: Include full_read.h.
90282         (get_fs_usage): Use full_read instead of safe_read.
90283
90284         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90285
90286 2002-12-12  Karl Berry  <karl@gnu.org>
90287
90288         * config/config.guess: update from prep.
90289
90290 2002-12-11  Bruno Haible  <bruno@clisp.org>
90291
90292         * m4/setenv.m4: New file, from gettext-0.11.5.
90293
90294 2002-12-11  Bruno Haible  <bruno@clisp.org>
90295
90296         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90297         not unsetenv().
90298         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90299         modifications:
90300
90301         2002-12-11  Bruno Haible  <bruno@clisp.org>
90302
90303                 * setenv.c (alloca): Fall back to malloc.
90304                 (freea): New macro.
90305                 (setenv): Use freea() to free memory allocated with alloca().
90306
90307         2002-11-13  Bruno Haible  <bruno@clisp.org>
90308
90309                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90310                 function declarations.
90311                 * unsetenv.c (unsetenv): Likewise.
90312
90313         2002-03-04  Bruno Haible  <bruno@clisp.org>
90314
90315                 Portability to AIX 4.3.3.
90316                 * unsetenv.c: New file, extracted from setenv.c.
90317                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90318
90319         2001-12-20  Bruno Haible  <bruno@clisp.org>
90320
90321                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90322                 use malloc instead. For SunOS 4.
90323
90324         2001-12-11  Bruno Haible  <bruno@clisp.org>
90325
90326                 * setenv.c: Declare alloca.
90327                 (compar_fn_t): New typedef.
90328                 (KNOWN_VALUE, STORE_VALUE): Use it.
90329
90330         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90331         setenv.h.
90332
90333 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90334
90335         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90336         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90337         Choose values that are less likely to collide with system fnmatch
90338         options.
90339         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90340         defined (e.g., a pure POSIX system).
90341         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90342         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90343
90344 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90345
90346         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90347         a pain in practice to deal with generated m4 files.  This change
90348         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90349
90350         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90351         and jm-glibc-io.m4, as they are no longer a special case.
90352         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90353         kludge and the auto-generation stuff.  Check only whether the
90354         functions are declared, not whether they exist, since older hosts
90355         that don't declare the functions can't use the optimization anyway.
90356
90357 2002-12-06  Jim Meyering  <jim@meyering.net>
90358
90359         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90360
90361         Merge in changes from libc's misc/error.c, in preparation
90362         for the merge of gnulib's changes back into libc.
90363
90364         * lib/error.c (_): Define only if not already defined.
90365         Move definition to follow all #include directives.
90366         Include unlocked-io.h only if !_LIBC.
90367         [_LIBC]: Include <libio/libioP.h>.
90368         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90369         (fflush): Tweak definition to use INTUSE.
90370         (putc): Define.
90371
90372 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90373
90374         * lib/alloca.c [defined emacs]: Include "lisp.h".
90375         (xalloc_die) [defined emacs]: New macro.
90376         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90377         [! defined emacs]: Include <xalloc.h>.
90378         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90379         (pointer): Typedef to POINTER_TYPE *.
90380         (malloc): Remove decl; we now always use xmalloc.
90381         (alloca): Use old-style definition, since Emacs needs this.
90382         Check for arithmetic overflow when computing combined size.
90383
90384 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90385
90386         Do not generate unlocked-io.h automatically, since it's easier to
90387         maintain it by hand.
90388
90389         * lib/unlocked-io.h: New file, from GNU diffutils,
90390         but with proper copyright notice and attribution.
90391         * lib/gen-uio: Remove.
90392         * lib/Makefile.am: Add copyright notice.
90393         (libfetish_a_SOURCES): Add unlocked-io.h.
90394         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90395         (DISTCLEANFILES, io_functions): Remove macros.
90396         (EXTRA_DIST): Remove gen_uio.
90397         (unlocked-io.h): Remove rule.
90398
90399 2002-12-04  Jim Meyering  <jim@meyering.net>
90400
90401         Reflect the fact that stat.c and lstat.c are no longer generated.
90402         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90403         (DISTCLEANFILES): Likewise.
90404         (EXTRA_DIST): Likewise.
90405         (all_local): Don't depend on stat.c or lstat.c.
90406         (stat.c, lstat.c): Remove rules.
90407         (EXTRA_DIST): Remove xstat.in.
90408
90409         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90410         * lib/stat.c: New file.  Contents mostly from xstat.in.
90411         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90412         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90413
90414         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90415         too.
90416         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90417
90418 2002-12-03  Jim Meyering  <jim@meyering.net>
90419
90420         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90421         but not semantics, to minimize the differences between these two files.
90422         (safe_read): Change comment to mention SAFE_READ_ERROR.
90423
90424         * lib/safe-read.c (IS_EINTR): Define.
90425         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90426
90427 2002-12-02  Jim Meyering  <jim@meyering.net>
90428
90429         * lib/safe-read.c (EINTR): Define.
90430         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90431         (INT_MAX): Provide fallback.
90432         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90433
90434         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90435
90436 2002-12-02  Bruno Haible  <bruno@clisp.org>
90437
90438         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90439         Define, taken from safe-read.c.
90440         (INT_MAX): Provide fallback.
90441         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90442         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90443
90444         * lib/safe-read.c (EINTR): Remove definition.
90445         (safe_read): Don't use EINTR if it is absent.
90446
90447 2002-12-01  Jim Meyering  <jim@meyering.net>
90448
90449         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90450         zero.
90451         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90452
90453 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90454
90455         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90456         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90457         with `if (! (value < limit)) abort ();', for readability.
90458
90459 2002-11-26  Karl Berry  <karl@gnu.org>
90460
90461         * lib/strdup.c: copy from libc again, with jim's ok.
90462         * lib/.cppi-disable: re-add strdup.c
90463
90464 2002-11-25  Karl Berry  <karl@gnu.org>
90465
90466         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90467         instead of "strtol.c".
90468
90469 2002-11-25  Karl Berry  <karl@gnu.org>
90470
90471         * config/install-sh: update from automake for variable quoting, $0 in
90472         error msgs, etc.
90473
90474         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90475         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90476         entry.
90477
90478 2002-11-25  Jim Meyering  <jim@meyering.net>
90479
90480         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90481
90482 2002-11-24  Karl Berry  <karl@gnu.org>
90483
90484         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90485         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90486
90487 2002-11-24  Jim Meyering  <jim@meyering.net>
90488
90489         Update from coreutils:
90490
90491         * lib/mktime.c: Merge in changes from libc.
90492
90493         Avoid a link-time failure on some Linux systems.
90494         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90495         (otherwise).
90496         (__mon_yday): Declare with the STATIC attribute.
90497         (__mktime_internal): Likewise.
90498         Based on a report from Greg Schafer.
90499
90500 2002-11-23  Jim Meyering  <jim@meyering.net>
90501
90502         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90503         Use `unsigned', not `int', as type of index.
90504
90505         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90506
90507         * lib/fsusage.c: Remove unneeded parentheses around operands of
90508         `defined'.
90509
90510 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90511
90512         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90513         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90514         so that we can be included first.
90515         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90516         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90517         No need to include stddef.h or sys/types.h any more.
90518         Surround local include files with "", not "<>".
90519         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90520         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90521         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90522         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90523         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90524         (ISPRINT): Remove; no longer needed now that we assume C89.
90525
90526         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90527         Preserve errno.
90528
90529         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90530         quotearg_char): Use SIZE_MAX rather than
90531         (size_t) -1 when we are talking about "infinity".
90532
90533         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90534
90535 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90536
90537         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90538         hint that one should use `if (! x) abort ();' rather than `assert
90539         (x);', and anyway it's one less thing to worry about configuring.
90540         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90541         hash_rehash, hash_insert): Use abort rather than assert.
90542
90543 2002-11-22  Bruno Haible  <bruno@clisp.org>
90544
90545         * lib/safe-read.h: Assume C89. Add comments.
90546         (safe_read): Change return type to size_t.
90547         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90548         byte counts > SSIZE_MAX correctly.
90549         * lib/safe-write.h: New file.
90550         * lib/safe-write.c: New file.
90551         * lib/full-read.h: New file.
90552         * lib/full-read.c: New file.
90553         * lib/full-write.h: Assume C89. Add comments.
90554         * lib/full-write.c: Include safe-write.h.
90555         (full_write): Rewritten to use safe_write.
90556         Suggested by Jim Meyering and Paul Eggert.
90557
90558 2002-11-21  Jim Meyering  <jim@meyering.net>
90559
90560         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90561
90562         Merge in changes from the coreutils.
90563
90564         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90565         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90566         <stdint.h>.
90567         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90568         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90569         int.  Work more efficiently if X is the same width as uintmax_t.
90570         Do not compare X to -1, to avoid bogus compiler warning.
90571         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90572         Don't assume that f_frsize and f_bsize are the same type.
90573
90574         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90575         warning on FreeBSD.
90576
90577         * lib/makepath.c (make_path): Restore umask *before* creating the final
90578         component.
90579         (make_path): Minor reformatting.
90580
90581         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90582         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90583         HAVE_MALLOC/HAVE_REALLOC.
90584
90585         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90586         dummy ones.  At least on GNU/Linux systems, `auto' means something
90587         else.
90588         From Michael Stone.
90589
90590 2002-11-21  Bruno Haible  <bruno@clisp.org>
90591
90592         Remove case insensitive option matching.
90593         * lib/argmatch.h (argcasematch): Remove declaration.
90594         (ARGCASEMATCH): Remove macro.
90595         (__xargmatch_internal): Remove case_sensitive argument.
90596         (XARGMATCH): Update.
90597         (XARGCASEMATCH): Remove macro.
90598         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90599         case_sensitive argument.
90600         (argcasematch): Remove function.
90601         (__xargmatch_internal): Remove case_sensitive argument.
90602         (main): Use XARGMATCH instead of XARGCASEMATCH.
90603
90604         * lib/xmalloc.c: Change compile-time error message. Add comment about
90605         required autoconf version.
90606
90607 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90608
90609         Merge argmatch cleanups from Bison.  Assume C89.
90610
90611         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90612         Include stdlib.h, for EXIT_FAILURE.
90613         Always include <string.h>, since we assume C89.
90614         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90615         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90616         Include <stddef.h> instead, since it's all we need for size_t.
90617         (PARAMS): Remove.  All uses removed.
90618         (ARRAY_CARDINALITY): Do not bother to #undef.
90619         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90620         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90621         Remove unnecessary parentheses.
90622         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90623         Insert necessary parentheses.
90624         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90625         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90626
90627 2002-11-19  Bruno Haible  <bruno@clisp.org>
90628
90629         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90630         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90631
90632         * lib/mbswidth.h (PARAMS): Remove macro.
90633         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90634         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90635
90636         * lib/gcd.h (PARAMS): Remove macro.
90637         (gcd): Use ANSI C function declarations.
90638         * lib/gcd.c (gcd): Likewise.
90639
90640 2002-11-15  Bruno Haible  <bruno@clisp.org>
90641
90642         * lib/strcspn.c: Include <stddef.h>.
90643         (strcspn): Use ANSI C function declaration. Change return type to
90644         size_t. Use NULL.
90645         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90646         (strpbrk): Use NULL.
90647         * lib/strpbrk.h (PARAMS): Remove macro.
90648         (strpbrk): Use ANSI C function declaration.
90649         * lib/strstr.c: Don't include <sys/types.h>.
90650         * lib/strstr.h (PARAMS): Remove macro.
90651         (strstr): Use ANSI C function declarations.
90652
90653 2002-11-14  Karl Berry  <karl@gnu.org>
90654
90655         * config/mkinstalldirs: `do' on separate line, instead of
90656         `for var; do'.
90657
90658 2002-11-06  Bruno Haible  <bruno@clisp.org>
90659
90660         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90661         * lib/gcd.c (gcd): Likewise.
90662
90663 2002-11-05  Bruno Haible  <bruno@clisp.org>
90664
90665         * lib/gcd.h: New file, from gettext-0.11.5.
90666         * lib/gcd.c: New file, from gettext-0.11.5.
90667
90668 2002-11-05  Bruno Haible  <bruno@clisp.org>
90669
90670         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90671         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90672         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90673         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90674
90675         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90676         <libintl.h>.
90677         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90678         <libintl.h>.
90679
90680         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90681         * lib/human.c: Include gettext.h instead of <libintl.h>.
90682         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90683         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90684         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90685         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90686         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90687         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90688         (textdomain): Remove definition.
90689         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90690
90691         * lib/long-options.c: Remove include of <libintl.h> and definition of
90692         _.
90693         * lib/same.c: Remove include of <libintl.h> and definition of _.
90694
90695 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90696
90697         * lib/config.charset: A few additions for Solaris.
90698
90699 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90700
90701         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90702         * lib/localcharset.c (locale_charset): Declare as extern "C".
90703
90704 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90705
90706         * lib/config.charset: msdos in uk_UA uses CP1125.
90707
90708 2002-11-04  Bruno Haible  <bruno@clisp.org>
90709
90710         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90711         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90712         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90713         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90714         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90715
90716 2002-11-04  Bruno Haible  <bruno@clisp.org>
90717
90718         * lib/localcharset.c (locale_charset): Don't return an empty string.
90719
90720 2002-11-04  Bruno Haible  <bruno@clisp.org>
90721
90722         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90723         aliases.
90724
90725 2002-11-04  Bruno Haible  <bruno@clisp.org>
90726
90727         * lib/config.charset: Update for newest glibc. Add canonical names
90728         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90729
90730 2002-11-04  Bruno Haible  <bruno@clisp.org>
90731
90732         * lib/config.charset: Add support for NetBSD.
90733
90734 2002-11-04  Bruno Haible  <bruno@clisp.org>
90735
90736         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90737
90738 2002-11-01  Bruno Haible  <bruno@clisp.org>
90739
90740         * configure.in: Add AC_CONFIG_AUX_DIR call.
90741         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90742         test/Makefile.
90743         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90744
90745 2002-09-28  Karl Berry  <karl@gnu.org>
90746
90747         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90748         installed automake until the next release, since changes have been
90749         made.
90750
90751 2002-09-25  Karl Berry  <karl@gnu.org>
90752
90753         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90754         * lib/getopt*: copy from libc/posix.
90755         * lib/gettext.h: copy from gettext.
90756         * lib/.cppi-disable: add strdup.c, gettext.h.
90757
90758 2002-09-25  Karl Berry  <karl@gnu.org>
90759
90760         * config/srclist.txt: enable gettext.h check.
90761         * config/config.{guess,sub}: update from prep.
90762         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90763                 from automake 1.6.3.
90764         See srclist*.
90765
90766 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90767
90768         * regex.c (PATFETCH): Remove the translating fetch.
90769         (PATFETCH_RAW): Rename to PATFETCH.
90770         (set_image_of_range): New fun.
90771         (SET_RANGE_TABLE_WORK_AREA): Use it.
90772         (regex_compile): Don't translate the pattern chars so eagerly.
90773         Only do it when inserting an `exactn' bytecode or when handling
90774         a char-range.
90775         (mutually_exclusive_p): Avoid empty statement.
90776
90777 2002-07-06  Jim Meyering  <meyering@lucent.com>
90778
90779         * m4/README: Don't mention Makefile.am.in.
90780         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90781
90782 2002-07-01  Jim Meyering  <meyering@lucent.com>
90783
90784         * lib/c-stack.c: Include sys/time.h.
90785         From Volker Borchert.
90786
90787 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90788
90789         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90790
90791 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90792
90793         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90794         New macro.  Use it uniformly instead of
90795         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90796         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90797         reported by Vin Shelton.
90798
90799 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90800
90801         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90802         Do not assume SA_SIGINFO behavior.
90803         Bug reported by Jim Meyering on NetBSD 1.5.2.
90804
90805 2002-06-22  Jim Meyering  <meyering@lucent.com>
90806
90807         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90808         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90809
90810         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90811         now that configure.ac uses AC_GNU_SOURCE.
90812         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90813         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90814
90815         Update to latest tools.  Suggestions from Paul Eggert.
90816         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90817         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90818         * m4/fnmatch.m4: Likewise.
90819         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90820         to AC_HEADER_STDBOOL
90821
90822 2002-06-22  Jim Meyering  <meyering@lucent.com>
90823
90824         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90825         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90826
90827 2002-06-22  Jim Meyering  <meyering@lucent.com>
90828
90829         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90830
90831         * lib/exitfail.c, exitfail.h: Likewise.
90832         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90833
90834         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90835         of fnmatch.h.
90836         (EXTRA_DIST): Add fnmatch_loop.c.
90837         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90838
90839         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90840         * lib/fnmatch.c: Update from diffutils-2.8.2.
90841         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90842         * lib/fnmatch.h: Remove file.
90843
90844 2002-06-21  Jim Meyering  <meyering@lucent.com>
90845
90846         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90847         * m4/mbrtowc.m4: Likewise.
90848
90849         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90850         * m4/mbswidth.m4: Reflect name change:
90851         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90852         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90853
90854         * m4/lib-link.m4: Update from gettext-0.11.2.
90855         * m4/gettext.m4: Likewise.
90856
90857         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90858         From Alfred M. Szmidt.
90859
90860 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90861
90862         * lib/file-type.h: Report an error if neither S_ISREG nor
90863         S_IFREG is defined, instead of using a test specific to glibc
90864         2.2.  This should be safe, since POSIX requires S_ISREG and
90865         Unix Version 7 had S_IFREG.  We don't need to check for
90866         <sys/types.h> since we don't use any symbols that it defines.
90867
90868 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90869
90870         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90871         $@-t, so that each temporary file name is unique and valid in the first
90872         8 characters, for operation under DOS.
90873
90874 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90875
90876         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90877
90878 2002-06-15  Jim Meyering  <meyering@lucent.com>
90879
90880         Work even with DJGPP 2.03, which lacks support for symlinks.
90881         From Richard Dawe.
90882         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90883         is defined.
90884         * lib/lchown.c (S_ISLNK): Likewise.
90885
90886 2002-06-15  Jim Meyering  <meyering@lucent.com>
90887
90888         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90889         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90890         have been included before this file.
90891
90892 2002-06-14  Jim Meyering  <meyering@lucent.com>
90893
90894         * lib/file-type.h: Use the version from diffutils-2.8.2.
90895         * lib/file-type.c: Likewise.
90896
90897 2002-06-07  Jim Meyering  <meyering@lucent.com>
90898
90899         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90900         They're needed at least for NetBSD 1.5.2.
90901         ($statxfs_includes): Include those same headers.
90902         ($statxfs_includes): Include sys/vfs.h if available.
90903         ($statxfs_includes): Likewise for sys/statvfs.h.
90904         Check for the following members in both structs statfs and statvfs:
90905         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90906
90907 2002-06-01  Jim Meyering  <meyering@lucent.com>
90908
90909         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90910         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90911
90912 2002-05-28  Jim Meyering  <meyering@lucent.com>
90913
90914         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90915         Reported by Volker Borchert.
90916
90917 2002-05-27  Jim Meyering  <meyering@lucent.com>
90918
90919         Fix a problem seen only on nonconforming systems whereby ls.c's
90920         use of localtime, and then of gettimeofday would cause trouble:
90921         the localtime call used to initialize rpl_gettimeofday's save
90922         mechanism would clobber ls's current local time information so
90923         that in any long listing the first file would always be listed
90924         with date 1970-01-01.  Analysis by Volker Borchert.
90925
90926         * lib/gettimeofday.c (localtime): Undefine.
90927         (rpl_localtime): New function.
90928
90929 2002-05-27  Jim Meyering  <meyering@lucent.com>
90930
90931         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90932         localtime.
90933
90934         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90935         use the replacement function; it wouldn't resolve at link time.
90936         Reported by Volker Borchert.
90937
90938 2002-05-22  Jim Meyering  <meyering@lucent.com>
90939
90940         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90941         file-type.h.
90942         * lib/file-type.h: New file.
90943         * lib/file-type.c (file_type): New file/function.  Extracted from
90944         diffutils.
90945
90946 2002-04-30  Jim Meyering  <meyering@lucent.com>
90947
90948         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90949
90950 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90951
90952         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90953
90954 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90955
90956         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90957         Do not check for alloca.h (no longer used) or stdbool.h (was never
90958         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90959
90960 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90961
90962         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90963
90964 2002-04-29  Jim Meyering  <meyering@lucent.com>
90965
90966         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90967         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90968         Use AC_FUNC_STRNLEN here instead.
90969
90970         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90971         With autoconf-2.53a, it's part of AC_PROG_CC.
90972
90973 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90974
90975         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90976         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90977
90978 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90979
90980         * lib/sig2str.h, lib/sig2str.c: New files.
90981         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90982
90983 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90984
90985         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90986         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90987         of 127, since 64 is the largest conceivable number for ancient
90988         nonstandard hosts.
90989         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90990
90991 2002-04-28  Jim Meyering  <meyering@lucent.com>
90992
90993         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90994
90995 2002-04-24  Jim Meyering  <meyering@lucent.com>
90996
90997         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90998         (jm_PREREQ): Use it.
90999
91000         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91001         mach/mach.h fcntl.h.
91002         Check for this function: setlocale.
91003
91004 2002-04-24  Jim Meyering  <meyering@lucent.com>
91005
91006         * lib/gettext.h: New file, from Gettext.
91007         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91008         (libfetish_a_SOURCES): Add gettext.h.
91009
91010 2002-04-16  Jim Meyering  <meyering@lucent.com>
91011
91012         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91013         ut_pid, ut_id, ut_exit.
91014
91015 2002-04-16  Jim Meyering  <meyering@lucent.com>
91016
91017         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91018         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91019         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91020
91021 2002-04-12  Jim Meyering  <meyering@lucent.com>
91022
91023         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91024         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91025         existence of the getmntinfo function.  Needed for Darwin 5.3.
91026
91027         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91028         This is necessary at least on Darwin 5.3.
91029
91030         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91031         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91032         strnlen.o in the library, and that makes some versions of ranlib
91033         object.
91034
91035 2002-04-12  Jim Meyering  <meyering@lucent.com>
91036
91037         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91038
91039 2002-04-09  Jim Meyering  <meyering@lucent.com>
91040
91041         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91042         to be more precise.  Rather than saying we're checking whether the
91043         function `works', say what we're testing.
91044         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91045         Reported by Bruno Haible.
91046
91047 2002-03-10  Jim Meyering  <meyering@lucent.com>
91048
91049         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91050         Suggestion from Santiago Vila.
91051
91052 2002-03-08  Jim Meyering  <meyering@lucent.com>
91053
91054         * lib/rename.c: Mention that this wrapper is needed also on
91055         mips-dec-ultrix4.4 systems.
91056
91057 2002-03-02  Jim Meyering  <meyering@lucent.com>
91058
91059         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91060         not HAVE_CLOCK_SETTIME.
91061
91062 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91063
91064         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91065         Check for clock_settime.
91066
91067 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91068
91069         * lib/nanosleep.h: Rename to....
91070         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91071
91072         * lib/gettime.c: New file.
91073         * lib/settime.c: New file.
91074         * lib/stime.c: Remove.
91075
91076         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91077         timespec.h.  Remove nanosleep.h.
91078
91079 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91080
91081         * m4/acl.m4: New file.
91082         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91083         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91084
91085 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91086
91087         * lib/acl.c, lib/acl.h: New files.
91088         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91089
91090 2002-02-24  Jim Meyering  <meyering@lucent.com>
91091
91092         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91093         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91094         cause trouble.  Reported by Nelson Beebe.
91095
91096 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91097
91098         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91099         compilers that don't know that xalloc_die never returns.
91100
91101 2002-02-20  Jim Meyering  <meyering@lucent.com>
91102
91103         * lib/getdate.c: Regenerate using bison-1.33.
91104
91105 2002-02-17  Jim Meyering  <meyering@lucent.com>
91106
91107         * config/config.guess (main): Don't use `head -1'; it's no longer
91108         portable. Use `sed 1q' instead.
91109
91110 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91111
91112         * m4/codeset.m4: Upgrade to gettext-0.11.
91113         * m4/gettext.m4: Upgrade to gettext-0.11.
91114         * m4/glibc21.m4: Upgrade to gettext-0.11.
91115         * m4/iconv.m4: Upgrade to gettext-0.11.
91116         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91117         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91118         * m4/lib-ld.m4: New file, from gettext-0.11.
91119         * m4/lib-link.m4: New file, from gettext-0.11.
91120         * m4/lib-prefix.m4: New file, from gettext-0.11.
91121         * m4/progtest.m4: Upgrade to gettext-0.11.
91122
91123 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91124
91125         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91126         (jm_PREREQ): Use it.
91127
91128 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91129
91130         * lib/posixver.c, lib/posixver.h: New files.
91131         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91132
91133 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91134             Bruno Haible  <bruno@clisp.org>
91135
91136         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91137         (fwrite_success_callback): New declaration.
91138         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91139         print_unicode_char. Call failure callback instead of error.
91140         (fwrite_success_callback): New function.
91141         (exit_failure_callback): New function.
91142         (fallback_failure_callback): New function.
91143         (print_unicode_char): Call unicode_to_mb.
91144
91145 2002-01-26  Jim Meyering  <meyering@lucent.com>
91146
91147         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91148         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91149
91150 2002-01-26  Jim Meyering  <meyering@lucent.com>
91151
91152         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91153
91154 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91155
91156         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91157
91158 2002-01-22  Jim Meyering  <meyering@lucent.com>
91159
91160         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91161         Otherwise, some versions of automake would omit the rule that makes
91162         Makefile from Makefile.in.
91163
91164 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91165
91166         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91167         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91168         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91169         (memcoll): Set errno to zero if there is no error.
91170
91171         * lib/quotearg.c (quotearg_buffer_restyled):
91172         Fix bug with quoting buffers containing NUL when backslashing escapes.
91173         This bug was exposed by the other changes in this patch.
91174         (quotearg_n_options): New arg ARGSIZE.
91175         All callers changed.
91176         (quoting_options_from_style): New function.
91177         (quotearg_n_style): Use it.
91178         (quotearg_n_style_mem): New function.
91179
91180         * lib/quotearg.h (quotearg_n_style_mem): New function.
91181
91182 2002-01-19  Jim Meyering  <meyering@lucent.com>
91183
91184         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91185         Remove useless quotes: DF_PROG="df".
91186         * m4/strnlen.m4: New file.
91187
91188 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91189
91190         * lib/backupfile.c (ISDIGIT): Comment fix.
91191         * lib/getdate.y (ISDIGIT): Likewise.
91192         * lib/posixtm.c (ISDIGIT, year): Likewise.
91193         * lib/strverscmp.c (ISDIGIT): Likewise.
91194         * lib/userspec.c (ISDIGIT): Likewise.
91195
91196 2002-01-16  Jim Meyering  <meyering@lucent.com>
91197
91198         * lib/getdate.y: Add three semicolons, each just before a closing
91199         brace. Bison (as of version 1.31) no longer papers over that mistake.
91200
91201 2002-01-05  Jim Meyering  <meyering@lucent.com>
91202
91203         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91204
91205 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91206
91207         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91208         not silently exit merely because the output buffer happens to
91209         have nothing pending.
91210
91211 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91212
91213         See the big note in ../ChangeLog.
91214         * lib/human.c (suffixes): Prefer K to k for 1024.
91215         (generate_suffix_backwards): New function.
91216         (human_readable_inexact): Use it.
91217         * lib/xstrtol.c (__xstrtol): If there is no number but there
91218         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91219         Accept 'K' as well as 'k'.
91220
91221 2001-12-15  Jim Meyering  <meyering@lucent.com>
91222
91223         * lib/regex.h (__restrict_arr): Update from libc.
91224
91225         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91226         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91227         (STREQ): Define.
91228
91229 2001-12-14  Jim Meyering  <meyering@lucent.com>
91230
91231         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91232         Suggestion from Bruno Haible.
91233
91234 2001-12-10  Jim Meyering  <meyering@lucent.com>
91235
91236         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91237         xrealloc, Instead, include "xalloc.h".
91238         (initbuffer): Don't cast xmalloc return value to char*.
91239         (readline): Reword comment.
91240         Don't cast xrealloc return value to char*
91241         Return NULL, not 0.
91242
91243 2001-12-09  Jim Meyering  <meyering@lucent.com>
91244
91245         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91246         about `signed and unsigned type in conditional expression'.
91247         * lib/posixtm.c (posix_time_parse): Likewise.
91248
91249         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91250
91251         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91252         to avoid a pedantic warning.
91253
91254         * lib/getstr.c: Don't include assert.h.
91255         (getstr): Remove warning-evoking assertions.
91256         Return -1 if offset parameter is out of bounds.
91257         Change the type of a local from int to size_t.
91258
91259         * lib/strftime.c (my_strftime_localtime_r): Include this function
91260         definition in the `#if ! HAVE_TM_GMTOFF' block.
91261
91262         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91263         Include xalloc.h instead.
91264
91265 2001-12-02  Jim Meyering  <meyering@lucent.com>
91266
91267         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91268         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91269         included.
91270
91271         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91272         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91273
91274 2001-11-30  Akim Demaille  <akim@epita.fr>
91275
91276         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91277         before being defined.
91278
91279 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91280
91281         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91282         First arg is int, not unsigned.
91283         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91284         (SIZE_MAX, UINT_MAX): New macros.
91285         (quotearg_n_options): Abort if N is negative.
91286         Avoid overflow check on hosts where size_t is 64 bits and int
91287         is 32 bits, as overflow is impossible there.
91288         Fix off-by-one typo that caused unnecessary reallocation.
91289
91290 2001-11-27  Jim Meyering  <meyering@lucent.com>
91291
91292         * lib/tempname.c: Merge with version from libc.
91293         * lib/regex.c: Likewise.
91294
91295         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91296         systems for which STDC_HEADERS is 0, it was not included, resulting in
91297         a warning about an integer-to-pointer conversion problem with getenv.
91298         Reported by Volker Borchert.
91299
91300 2001-11-26  Jim Meyering  <meyering@lucent.com>
91301
91302         * lib/gtod.h: Remove file.
91303         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91304         * lib/gettimeofday.c: Don't include gtod.h.
91305         (GTOD_init): Remove function.
91306         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91307         Suggestion from Volker Borchert.
91308
91309 2001-11-23  Jim Meyering  <meyering@lucent.com>
91310
91311         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91312         it.
91313         * lib/hash.c (struct hash_table): Define it here instead.
91314
91315 2001-11-22  Jim Meyering  <meyering@lucent.com>
91316
91317         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91318
91319 2001-11-20  Jim Meyering  <meyering@lucent.com>
91320
91321         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91322         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91323
91324 2001-11-19  Jim Meyering  <meyering@lucent.com>
91325
91326         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91327         directory.  Use "conftestXXXXXX" as the template.
91328         Suggestion from Paul Eggert.
91329
91330         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91331         immediately, so the test doesn't mistakenly hit the max-open-files
91332         limit.
91333
91334 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91335
91336         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91337         (TEMPORARIES): New macro.
91338         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91339         removes an artificial limitation (e.g. HP-UX 10.20, where
91340         TMP_MAX is 17576).
91341
91342 2001-11-18  Jim Meyering  <meyering@lucent.com>
91343
91344         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91345
91346 2001-11-18  Jim Meyering  <meyering@lucent.com>
91347
91348         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91349         on SunOS 4.
91350
91351         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91352         files will be created before anything else.
91353
91354 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91355
91356         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91357         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91358
91359 2001-11-17  Jim Meyering  <meyering@lucent.com>
91360
91361         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91362         Prompted by a report from Bob Proulx.
91363
91364         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91365         Instead, require UTILS_FUNC_MKSTEMP.
91366
91367 2001-11-17  Jim Meyering  <meyering@lucent.com>
91368
91369         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91370         Now, that's done as part of AC_FUNC_STRTOD.
91371
91372 2001-11-17  Jim Meyering  <meyering@lucent.com>
91373
91374         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91375         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91376         rather than group writable.  Patch by Juan F. Codagnone.
91377
91378         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91379         xrealloc, Instead, include "xalloc.h".
91380
91381         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91382         Remove explicit declarations of xmalloc, xrealloc,
91383         and xstrdup.  Instead, include "xalloc.h".
91384
91385         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91386         unlocked-io.h.
91387         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91388         Likewise.
91389         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91390
91391         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91392         Reported by Padraig Brady.
91393
91394         * lib/mkstemp.c: #undef mkstemp.
91395         Include config.h.
91396         (rpl_mkstemp): Rename from mkstemp.
91397         Protoize.
91398
91399 2001-11-16  Jim Meyering  <meyering@lucent.com>
91400
91401         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91402         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91403         determine the amount of total physical memory, use pstat_getstatic.
91404         HPUX-11 doesn't define _SC_PHYS_PAGES.
91405         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91406         If sysconf couldn't be used to determine the amount of available
91407         physical memory, use both pstat_getstatic and pstat_getdynamic.
91408         Based on a patch from Bob Proulx.
91409
91410 2001-11-10  Jim Meyering  <meyering@lucent.com>
91411
91412         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91413         (jm_PREREQ): Use it.
91414
91415 2001-11-09  Jim Meyering  <meyering@lucent.com>
91416
91417         * m4/jm-macros.m4: Require autoconf-2.52f.
91418         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91419         Use these AC_-prefixed names, not the AM_-prefixed ones.
91420
91421         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91422
91423 2001-11-05  Jim Meyering  <meyering@lucent.com>
91424
91425         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91426
91427 2001-11-04  Jim Meyering  <meyering@lucent.com>
91428
91429         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91430         $DEFS.
91431
91432 2001-11-03  Jim Meyering  <meyering@lucent.com>
91433
91434         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91435         of AC_DEFUN.
91436
91437         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91438         know the name of the variable in the macro definition.
91439
91440 2001-11-03  Jim Meyering  <meyering@lucent.com>
91441
91442         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91443         in argmatch_to_argument call.
91444
91445         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91446         argument.
91447
91448         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91449         e.g., a fault due to an attempt to free a NULL pointer.
91450
91451 2001-11-01  Jim Meyering  <meyering@lucent.com>
91452
91453         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91454         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91455
91456 2001-11-01  Jim Meyering  <meyering@lucent.com>
91457
91458         * lib/dirfd.c, lib/dirfd.h: New files.
91459         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91460
91461         * lib/hash.c (hash_print) [TESTING]: Clean up.
91462
91463 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91464
91465         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91466         to avoid a warning if -Wall.
91467
91468 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91469
91470         * README: New file
91471         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91472         (per RMS's instructions, this is now the canonical source)
91473         * lgpl/, gpl/: New directories.
91474
91475 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91476
91477         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91478
91479 2001-10-21  Jim Meyering  <meyering@lucent.com>
91480
91481         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91482         this code would end up calling gettext even in packages built
91483         with --disable-nls.
91484         * lib/getopt.c (_): Likewise.
91485         * lib/regex.c (_): Likewise.
91486
91487 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91488
91489         * m4/error.m4 (jm_PREREQ_ERROR):
91490         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91491         AC_FUNC_STRERROR_R does that.
91492         Check for strerror declaration.
91493
91494         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91495         are supposed to have them these days.
91496         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91497         Merge changes from latest Autoconf CVS.
91498         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91499         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91500         POSIX decided to standardize on the int flavor of strerror_r.
91501
91502 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91503
91504         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91505         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91506         Use strerror_r that is only a macro, even if it is not a function.
91507         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91508         (private_strerror): Use prototypes, not old-style function definition.
91509         (print_errno_message): New function.
91510         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91511         char*-flavored one.
91512         (error_tail, error, error_at_line): Use it.
91513
91514 2001-10-11  Jim Meyering  <meyering@lucent.com>
91515
91516         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91517         and quote_n (1, ... to avoid clobbering a buffer.
91518
91519 2001-10-05  Jim Meyering  <meyering@lucent.com>
91520
91521         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91522         hash-pjw.h.
91523         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91524         * lib/hash-pjw.h: New file.
91525
91526 2001-09-30  Jim Meyering  <meyering@lucent.com>
91527
91528         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91529         `struct fsstat' has the `f_fstypename' member.
91530         Use that to define FS_TYPE, which is now used to make
91531         the getfsstat link test tighter.
91532
91533 2001-09-30  Jim Meyering  <meyering@lucent.com>
91534
91535         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91536         Include <sys/ucred.h>, for Apple Darwin.
91537         Include sys/mount.h and sys/fs_types.h only if available.
91538         (FS_TYPE): Define.
91539         (read_filesystem_list): Use FS_TYPE.
91540
91541 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91542
91543         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91544         a boolean context.
91545
91546 2001-09-29  Jim Meyering  <meyering@lucent.com>
91547
91548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91549         [one-argument getmntent function]): Include stdio.h before mntent.h.
91550         SunOS 4.1.x needs it for the declaration of `FILE'.
91551         Patch by Volker Borchert.
91552
91553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91554         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91555         sys/fs_types.h, and make the link-test for getfsstat guard #include
91556         directives with appropriate #if HAVE_*_H tests so that we can
91557         detect getfsstat on Apple Darwin1.3.7 systems.
91558         Reported by Nelson Beebe.
91559         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91560
91561 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91562
91563         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91564         #defines strtoimax.  Also treat the other strto* functions
91565         like strtoimax.
91566
91567         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91568         Check for strtoul and strtoumax,
91569         as those declarations are made even in the signed case.
91570         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91571         Likewise, for strtol and strtoimax.
91572
91573 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91574
91575         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91576         #defines strtoimax.  Also treat the other strto* functions
91577         like strtoimax.
91578
91579         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91580         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91581         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91582
91583 2001-09-26  Jim Meyering  <meyering@lucent.com>
91584
91585         Most macros in unlocked-io.h had the wrong number of arguments.
91586         * lib/gen-uio: New script.
91587         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91588         * lib/unlocked-io.hin: Remove file.
91589         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91590         rather than trying to embed it here.
91591         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91592         Reported by Padraig Brady.
91593
91594 2001-09-25  Volker Borchert  <bt@teknon.de>
91595
91596         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91597         `result'.
91598
91599 2001-09-24  Jim Meyering  <meyering@lucent.com>
91600
91601         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91602
91603 2001-09-23  Jim Meyering  <meyering@lucent.com>
91604
91605         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91606         instead of the mere test for existence of mntent.h.  The latter
91607         would get a false-positive on AIX 3.4 systems.
91608         In the outer getmntent if-block, don't die if neither of the getmntent
91609         tests succeeds.  Instead, just fall through and continue with the
91610         remaining tests.
91611
91612 2001-09-23  Jim Meyering  <meyering@lucent.com>
91613
91614         * lib/mountlist.c: Remove useless parentheses in #if directives.
91615         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91616         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91617
91618 2001-09-22  Jim Meyering  <meyering@lucent.com>
91619
91620         * m4/gettext.m4: New file.  From gettext.
91621         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91622         * m4/progtest.m4: Likewise
91623         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91624         * m4/glibc21.m4: Likewise.
91625
91626         * m4/libintl.m4: Remove.  No longer used.
91627
91628 2001-09-22  Jim Meyering  <meyering@lucent.com>
91629
91630         * lib/localcharset.c: Update from latest gettext.
91631         * lib/config.charset: Likewise.
91632
91633 2001-09-20  Jim Meyering  <meyering@lucent.com>
91634
91635         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91636         strtoimax.
91637         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91638         strtoumax.
91639
91640 2001-09-20  Jim Meyering  <meyering@lucent.com>
91641
91642         * lib/xstrtol.c (strtoimax): Guard declaration with
91643         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91644         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91645         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91646         (strtoumax): Likewise, for completeness (it wasn't necessary).
91647
91648 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91649
91650         * lib/strtoimax.c (HAVE_LONG_LONG):
91651         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91652         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91653         to work around bug in IBM C compiler.
91654
91655 2001-09-17  Jim Meyering  <meyering@lucent.com>
91656
91657         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91658         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91659         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91660         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91661         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91662         whenever the right hand side need not be expanded by the shell.
91663
91664 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91665
91666         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91667         library.  It's not correct, as some older glibcs are buggy.
91668         fnmatch wasn't fixed until glibc 2.2.
91669
91670         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91671         special shell magic here.
91672
91673 2001-09-16  Jim Meyering  <meyering@lucent.com>
91674
91675         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91676         * m4/jm-macros.m4: Require it.
91677
91678 2001-09-16  Jim Meyering  <meyering@lucent.com>
91679
91680         * lib/mkdir.c: New file.
91681
91682 2001-09-15  Jim Meyering  <meyering@lucent.com>
91683
91684         * m4/jm-macros.m4: Check for help2man.
91685
91686 2001-09-11  Jim Meyering  <meyering@lucent.com>
91687
91688         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91689         The body, by Paul Eggert, was moved here from configure.in.
91690         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91691
91692 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91693
91694         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91695         (jm_PREREQ): Use it.
91696
91697 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91698
91699         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91700         Use ssize_t, not int, to store result of readlink.
91701         Check for ssize_t overflow as well as size_t overflow,
91702         as POSIX says the result of readlink is implementation-defined
91703         when ssize_t overflows.
91704         Remove unnecessary cast to char*.
91705         Use free+malloc instead of realloc, as the storage doesn't need
91706         to be preserved and it's clearer and can be more efficient that way.
91707         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91708         * lib/xreadlink.h (xreadlink): Update prototype.
91709
91710 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91711
91712         * lib/xgetcwd.c: Revert some of the previous change; intead,
91713         fix the HAVE_GETCWD_NULL code to behave more like the
91714         !HAVE_GETCWD_NULL code used to.
91715
91716         Include "xalloc.h".
91717         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91718         invoke xalloc_die.
91719
91720 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91721
91722         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91723         sys/param.h, as pathmax.h includes them.
91724
91725 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91726
91727         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91728         (jm_PREREQ_XGETCWD): New macro.
91729
91730         * m4/getcwd.m4: New file.
91731
91732 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91733
91734         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91735         like the HAVE_GETCWD_NULL code.
91736         Include pathmax.h if not HAVE_GETCWD.
91737         Do not include xalloc.h.
91738         (INITIAL_BUFFER_SIZE): New symbol.
91739         Do not use xmalloc / xrealloc, since the caller is responsible for
91740         handling errors.  Preserve errno around `free' during failure.
91741         Do not overrun buffer when using getwd.
91742
91743 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91744
91745         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91746         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91747         getcwd (NULL, 0).
91748
91749 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91750
91751         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91752         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91753         spotted by Jim Meyering.
91754
91755 2001-09-03  Jim Meyering  <meyering@lucent.com>
91756
91757         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91758         failure.
91759
91760 2001-09-02  Jim Meyering  <meyering@lucent.com>
91761
91762         * lib/error.c: Update from GNU libc.
91763
91764 2001-09-01  Jim Meyering  <meyering@lucent.com>
91765
91766         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91767         Used by df.
91768
91769 2001-09-01  Jim Meyering  <meyering@lucent.com>
91770
91771         * lib/xreadlink.c: New file.
91772         * lib/xreadlink.h: New file.
91773         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91774         xreadlink.h.
91775
91776         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91777         doesn't conflict with sparc Solaris 7's definition in
91778         /usr/include/sys/int_types.h.
91779
91780         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91781         files.
91782         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91783         and strncasecmp as r-values.  Unixware didn't have declarations.
91784
91785 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91786
91787         * lib/xstrtol.h: Add copyright notice.
91788         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91789         LONGINT_INVALID_SUFFIX_CHAR.
91790
91791 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91792
91793         * lib/xstrtol.c (strtoimax): New decl.
91794
91795 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91796
91797         * lib/xgetcwd.c: Don't include pathmax.h.
91798         Include stdlib.h and unistd.h if available.
91799         Include xalloc.h.
91800         (xmalloc, xstrdup, free): Remove decls.
91801         (xgetcwd): Don't assume sizes fit in unsigned.
91802         Check for overflow when computing sizes.
91803         Simplify reallocation code.
91804
91805 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91806
91807         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91808         a directory's st_size can have an arbitrary value, so the old
91809         usage could waste an arbitrary amount of memory.  All uses
91810         changed.
91811         * lib/savedir.h: Update prototype.
91812
91813 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91814
91815         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91816
91817         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91818         old strtoimax.c.
91819
91820         Also, make the following further changes to make this file's
91821         configuration more similar to that of strtol.c:
91822         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91823         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91824         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91825         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91826         changed to signed values.
91827
91828         And make the following changes as well:
91829         Fix copyright notice, as 1999 was missing.
91830         (verify): New macro.
91831         (strtoimax): Check sizes at compile-time, not run-time.
91832         Prefer strtol to strtoll if both work.
91833         (main): Remove; it was not that useful and was a pain to maintain.
91834
91835         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91836
91837 2001-08-31  Jim Meyering  <meyering@lucent.com>
91838
91839         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91840         Use an initial, malloc'd, buffer of length 128 rather than
91841         a statically allocated one of length 1024.
91842
91843 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91844
91845         Simplify code, partly by assuming autoconf 2.52 semantics.
91846
91847         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91848
91849         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91850         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91851         All uses removed.
91852         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91853         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91854         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91855         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91856         jm_AC_HEADER_INTTYPES_H.
91857         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91858
91859         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91860
91861         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91862         Quote first arg of AC_DEFUN.
91863         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91864         since they are needed to parse the include file even if we need
91865         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91866         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91867         but with opposite signedness.
91868
91869 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91870
91871         Merge 'exclude' changes from tar 1.13.22.
91872         This fixes one or two unlikely storage allocation overflow bugs,
91873         but doesn't change user-visible behavior otherwise.
91874
91875 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91876
91877         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91878         (jm_PREREQ_EXCLUDE): New macro.
91879
91880 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91881
91882         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91883         tm to be declared.
91884
91885 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91886
91887         * lib/hash.c: Remove '2001' from copyright notice.
91888
91889 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91890
91891         * lib/full-write.h: New file.
91892         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91893         * lib/full-write.c: Correct credits, as cccp.c no longer
91894         exists and anyway it was so heavily changed from the old cccp
91895         code as to be unrecognizable.  Include full-write.h.
91896         (full_write): Return size_t, with short writes meaning failure.
91897         All callers changed.  This fixes a bug with large buffers
91898         on 64-bit hosts.
91899         * lib/utime.c: Include full-write.h.
91900
91901 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91902
91903         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91904         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91905         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91906         Include if available.
91907         (<xalloc.h>): Include
91908         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91909         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91910         collide with FNM macros.
91911         (struct patopts): New struct.
91912         (struct exclude): Use it, as exclude patterns now come with options.
91913         (new_exclude): Support above changes.
91914         (new_exclude, add_exclude_file):
91915         Initial size must now be a power of two to simplify overflow checking.
91916         (free_exclude, fnmatch_no_wildcards): New function.
91917         (excluded_filename): No longer requires options arg, as the options
91918         are determined by add_exclude.  Now returns bool, not int.
91919         (excluded_filename, add_exclude):
91920         Add support for the fancy new exclusion options.
91921         (add_exclude, add_exclude_file): Now takes int options arg.
91922         Check for arithmetic overflow when computing sizes.
91923         (add_exclude_file): xrealloc might modify errno, so don't
91924         realloc until after errno might be used.
91925
91926         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91927         New macros.
91928         (free_exclude): New decl.
91929         (add_exclude, add_exclude_file): Now takes int options arg.
91930         (excluded_filename): No longer requires options arg, as the options
91931         are determined by add_exclude.  Now returns bool, not int.
91932
91933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91934
91935         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91936
91937 2001-08-27  Jim Meyering  <meyering@lucent.com>
91938
91939         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91940
91941         * lib/version-etc.c (N_): Remove definition.
91942         Revert most of last change.
91943         Instead, simply don't mark the `Copyright...' string for translation.
91944         Based on advice from Paul Eggert.
91945
91946         * lib/strtoxmax.c: Tweak comment.
91947
91948 2001-08-26  Jim Meyering  <meyering@lucent.com>
91949
91950         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91951
91952         * m4/xstrtoimax.m4: New file.
91953         * m4/xstrtoumax.m4: Add comments explaining why we
91954         AC_REPLACE_FUNCS(strtol).
91955
91956 2001-08-26  Jim Meyering  <meyering@lucent.com>
91957
91958         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91959         of copyright with `%s' so translators don't get an untranslated
91960         message in 2002.
91961         (COPYRIGHT_YEAR): Define.
91962         (version_etc): Use fprintf rather than fputs.
91963         Suggestion from Ulrich Drepper.
91964
91965         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91966
91967         * lib/strtoll.c: New file, from GNU libc.
91968         * lib/xstrtoimax.c: New file.
91969
91970         * lib/xstrtol.h: Add xstrtoimax.
91971         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91972         * lib/strtoimax.c: New file.  Likewise, but first define
91973         STRTOUXMAX_SIGNED.
91974
91975         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91976         ...
91977         * lib/strtoxmax.c: ... then renamed to this.
91978
91979 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91980
91981         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91982         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91983         (jm_AC_TYPE_INTMAX_T): New macro.
91984         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91985
91986         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91987
91988         * m4/longlong.m4: Renamed from ulonglong.m4.
91989         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91990         * m4/uintmax_t.m4: Removed.
91991
91992 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91993
91994         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91995         Port to Solaris 8, where 'sed' requires a space after the 'r'
91996         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91997         Redirect output to $tmp just once.
91998
91999 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92000
92001         * lib/addext.c (<errno.h>): Include.
92002         (errno): Declare if not defined.
92003         (addext): Work correctly when pathconf returns -1 and leaves
92004         errno alone because there is no limit.  Also, work even if
92005         pathconf returns a value greater than SIZE_MAX.
92006
92007 2001-08-12  Jim Meyering  <meyering@lucent.com>
92008
92009         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92010         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92011         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92012         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92013         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92014         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92015         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92016         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92017         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92018         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92019         utime.m4, utimes.m4, xstrtoumax.m4:
92020         Quote the first argument in each use of AC_DEFUN.
92021
92022 2001-08-12  Jim Meyering  <meyering@lucent.com>
92023
92024         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92025         Simply `return getcwd (NULL, 0);'.
92026         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92027         Use 1300 as initial value for length, not PATH_MAX.
92028
92029         * lib/pathmax.h: Clean up cpp syntax.
92030
92031 2001-08-12  Jim Meyering  <meyering@lucent.com>
92032
92033         * lib/gettimeofday.c: New file.
92034         * lib/gtod.h: New file.
92035         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92036
92037 2001-08-05  Jim Meyering  <meyering@lucent.com>
92038
92039         * m4/jm-macros.m4: Require autoconf-2.52.
92040
92041 2001-08-04  Jim Meyering  <meyering@lucent.com>
92042
92043         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92044         stmt, to get in sync with glibc.
92045
92046 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92047
92048         The following changes are from gettext 0.10.39 as maintained by
92049         Bruno Haible.
92050
92051         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92052         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92053         with inverted sense.  All uses changed.
92054
92055         * lib/mbswidth.c: Don't include <limits.h>.
92056         Include <stdlib.h> and <string.h> unconditionally.
92057         (iswcntrl, mbsinit, ISCNTRL): New macros.
92058         (mbsnwidth): Use K&R style function declarations.
92059         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92060         can optimize it when MB_CUR_MAX == 1.
92061         The width of control characters is zero, not 1.
92062
92063 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92064
92065         The following changes are from gettext 0.10.39 as maintained by
92066         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92067
92068         * m4/codeset.m4: Upgrade to serial AM1.
92069         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92070         all uses changed.  Quote first arg of AC_DEFUN.
92071         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92072
92073         * m4/iconv.m4: Upgrade to serial AM2.
92074         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92075         Add --with-libconv-prefix.
92076         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92077         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92078         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92079         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92080         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92081
92082         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92083         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92084         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92085         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92086         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92087         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92088         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92089         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92090         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92091
92092         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92093         string.h any more.
92094
92095         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92096         not the default value.
92097
92098         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92099         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92100         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92101         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92102         Also check for iswcntrl, used for wcwidth fallback.
92103         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92104         to Autoconf 2.13.
92105
92106 2001-08-03  Jim Meyering  <meyering@lucent.com>
92107
92108         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92109         as it was in the original.  Reported by Paul Eggert.
92110
92111 2001-07-16  Jim Meyering  <meyering@lucent.com>
92112
92113         * m4/gettimeofday.m4: New file.
92114         Prompted by a report from Bernhard Baehr.
92115
92116 2001-07-15  Jim Meyering  <meyering@lucent.com>
92117
92118         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92119         stuff. Now it's in ../Makefile.cfg.
92120
92121 2001-07-15  Jim Meyering  <meyering@lucent.com>
92122
92123         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92124         (BUILT_SOURCES): Add unlocked-io.h.
92125         (io_functions): Define.
92126         (unlocked-io.h): New rule.
92127         (DISTCLEANFILES): Add unlocked-io.h.
92128         (all-local): Depend on unlocked-io.h, to ensure it is created.
92129
92130         * lib/unlocked-io.hin: New file
92131
92132         * lib/regex.c: Update from glibc.
92133
92134 2001-07-05  Jim Meyering  <meyering@lucent.com>
92135
92136         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92137         recommendation.
92138         (libfetish_a_SOURCES): Put all .h files here instead.
92139         Remove a thus-exposed (better checks in automake) duplicate and
92140         two unnecessary .h files.
92141
92142 2001-07-04  Jim Meyering  <meyering@lucent.com>
92143
92144         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92145         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92146         distcheck failure.
92147
92148 2001-07-02  Jim Meyering  <meyering@lucent.com>
92149
92150         The following changes were prompted by suggestions from Bruno Haible.
92151
92152         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92153         is now generated.
92154         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92155         definition of EXTRA_DIST.
92156         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92157         ensure that the generated file is created/updated whenever the list
92158         of $(unlocked_functions) is changed.
92159         (jm-glibc-io.m4): New rule.
92160         (unlocked-io.h): New rule -- currently unused.
92161
92162 2001-06-24  Jim Meyering  <meyering@lucent.com>
92163
92164         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92165         unmatched right bracket, rather than kludging it with an extra,
92166         falsely-matching quote in a comment.  Patch by Akim Demaille.
92167
92168 2001-06-11  Jim Meyering  <meyering@lucent.com>
92169
92170         * lib/regex.c: Update from GNU libc.
92171
92172 2001-05-27  Jim Meyering  <meyering@lucent.com>
92173
92174         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92175         Check for ut_type in struct utmp.
92176
92177 2001-05-27  Jim Meyering  <meyering@lucent.com>
92178
92179         * lib/readutmp.h (UT_TYPE): Define.
92180
92181 2001-05-24  Jim Meyering  <meyering@lucent.com>
92182
92183         * lib/argmatch.c: Include "quote.h".
92184         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92185         quote function.  Reported by Göran Uddeborg.
92186
92187 2001-05-22  Jim Meyering  <meyering@lucent.com>
92188
92189         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92190         now that we use the package-supplied version unconditionally.
92191         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92192
92193 2001-05-21  Jim Meyering  <meyering@lucent.com>
92194
92195         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92196         shell syntax errors.
92197
92198 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92199
92200         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92201
92202 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92203
92204         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92205         Don't bother to check library strftime, since
92206         we'll be using our own my_strftime function anyway.
92207         Define my_strftime instead of strftime.
92208
92209 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92210
92211         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92212         which is not yet declared.
92213
92214 2001-05-15  Jim Meyering  <meyering@lucent.com>
92215
92216         * m4/regex.m4: Use proper quoting so brackets appear in the test
92217         program.
92218         Reported by, and with help from, Bruno Haible.
92219
92220 2001-05-13  Jim Meyering  <meyering@lucent.com>
92221
92222         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92223         undefined.
92224
92225 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92226
92227         dirname code cleanup.  base_name now behaves more compatibly
92228         with POSIX basename when given file names that have trailing
92229         slashes, and similarly for dir_name.  Add new primitives
92230         base_len and dir_len.  Put the directory-name-related decls
92231         into dirname.h.
92232
92233         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92234         * lib/backupfile.c (base_name): Likewise.
92235         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92236         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92237         * lib/makepath.c (strip_trailing_slashes): Likewise.
92238         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92239         ISSLASH): Likewise.
92240         * lib/rename.c (strip_trailing_slashes): Likewise.
92241         * lib/same.c (base_name): Likewise.
92242         * lib/stripslash.c (ISSLASH): Likewise.
92243
92244         * lib/addext.c: Include <dirname.h> after size_t is defined.
92245         * lib/backupfile.c: Likewise.
92246
92247         * lib/addext.c (addext): Use base_len to trim redundant
92248         trailing slashes instead of doing it ourselves.
92249         But do not trim the last slash if it is not redundant.
92250
92251         * lib/backupfile.c (find_backup_file_name,
92252         max_backup_version): Use base_len instead of rolling it ourselves.
92253         Handle the case of "" and (on DOS) "C:" correctly.
92254
92255         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92256         needed. Include <string.h>, <dirname.h>.
92257         (base_name): Allow file names ending in slashes, other than names
92258         that are all slashes.  In this case, return the basename followed
92259         by the slashes.  This is more general, and can be used in places
92260         where the original base_name purposely had an assertion failure.
92261         (base_len): New function.
92262
92263         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92264         Do not include <assert.h>; no longer needed.
92265         Include xalloc.h.
92266         (memrchr): Remove decl.
92267         (dir_name_r): Remove.
92268         (dir_len): Renamed from dirlen.  All callers changed.
92269         Rewrite in terms of base_name, for simplicity and consistency.
92270         (dir_name): Never return NULL.  All callers changed.
92271         Do not include <stdlib.h> in test program; no longer needed.
92272         return 0; is fine for test program.
92273
92274         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92275         New macros.
92276         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92277
92278         * lib/path-concat.c (path_concat): Use base_len to compute
92279         base length, not strlen; this means we cannot rely on memcpy
92280         to null-terminate.
92281
92282         * lib/same.c (STREQ): Remove.
92283         (same_name): Handle the case where the basename ends in trailing '/'.
92284
92285         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92286         a slash was stripped.  Do not strip the last slash after a
92287         file system prefix.
92288
92289 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92290
92291         * lib/Makefile.am (libfetish_a_SOURCES):
92292         Add strftime.c, since we now compile it on all hosts.
92293
92294         * lib/strftime.c (my_strftime):
92295         Define to nstrftime if emacs, but only if my_strftime is not defined.
92296         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92297         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92298         Add one more extra argument: a nanoseconds value.
92299         All uses changed.
92300         (ns): New macro.
92301         (my_strftime function): Add %N format.
92302         (emacs_strftimeu): Renamed from emacs_strftime,
92303         with extra ut argument.
92304
92305 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92306
92307         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92308
92309 2001-04-21  Jim Meyering  <meyering@lucent.com>
92310
92311         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92312         doesn't interfere.
92313
92314 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92315
92316         * m4/ftruncate.m4: Check for chsize.
92317         Link with ftruncate.o unconditionally if ftruncate is missing.
92318         This was required when cross-compiling to i586-mingw32msvc.
92319
92320 2001-04-08  Jim Meyering  <meyering@lucent.com>
92321
92322         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92323         recomputed; that's necessary when the offset spans a DST transition.
92324         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92325
92326 2001-04-02  Jim Meyering  <meyering@lucent.com>
92327
92328         * lib/regex.h, regex.c: Update from GNU libc.
92329
92330 2001-03-24  Jim Meyering  <meyering@lucent.com>
92331
92332         * m4/jm-macros.m4: Require autoconf-2.49d.
92333
92334 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92335
92336         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92337
92338 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92339
92340         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92341
92342 2001-03-17  Jim Meyering  <meyering@lucent.com>
92343
92344         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92345         now that the version in autoconf is equivalent.
92346         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92347
92348         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92349         Suggestion from Akim Demaille.
92350
92351         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92352         (jm_PREREQ_TEMPNAME): New function.
92353
92354 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92355
92356         * lib/tempname.c (uint64_t): Define to uintmax_t if
92357         not defined, and if UINT64_MAX is not defined.
92358         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92359         Reported by John David Anglin.
92360
92361 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92362
92363         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92364         resolve alias if codeset is empty.
92365         * lib/config.charset (BeOS): Use wildcard syntax.
92366
92367 2001-03-13  Jim Meyering  <meyering@lucent.com>
92368
92369         * lib/path-concat.c (path_concat)
92370         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92371         concatenating e.g., `C:' and `foo'.
92372         From Bruno Haible.
92373
92374 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92375
92376         * lib/localcharset.c (locale_charset): Don't use
92377         setlocale(LC_CTYPE,NULL). Don't return NULL.
92378         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92379
92380 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92381
92382         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92383         support for DOS/DJGPP.
92384
92385 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92386
92387         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92388         lacks mkstemp.  Compile our own tempname.c if we compile our own
92389         mkstemp.c, as mkstemp relies on tempname.
92390
92391 2001-03-01  Jim Meyering  <meyering@lucent.com>
92392
92393         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92394         AH_VERBATIM really does output its argument verbatim.
92395
92396 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92397
92398         * lib/Makefile.am (libfetish_a_SOURCES):
92399         Add dup-safer.c, fopen-safer.c.
92400         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92401
92402         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92403         * lib/unistd-safer.h: New files.
92404
92405 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92406
92407         The mkstemp replacement is taken from glibc 2.2.2, with some
92408         portability fixes for use outside glibc, as follows:
92409
92410         * lib/tempname.c (struct_stat64): New macro.
92411         (direxists, __gen_tempname): Use it.
92412         This avoids a portability problem with Solaris 8.
92413
92414         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92415         (<stddef.h>, <stdint.h>, <string.h>):
92416         Include only if STDC_HEADERS || _LIBC.
92417         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92418         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92419         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92420         (__set_errno): Define this macro if <errno.h> doesn't.
92421         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92422         Define these macros if <stdio.h> doesn't.
92423         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92424         Define these macros if <sys/stat.h>
92425         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92426         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92427         __xstat64): Define if not _LIBC.
92428         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92429         (__gen_tempname): Invoke gettimeofday only if
92430         HAVE_GETTIMEOFDAY || _LIBC;
92431         otherwise, fall back on plain "time".
92432         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92433
92434         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92435
92436         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92437
92438 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92439
92440         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92441
92442 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92443
92444         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92445         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92446         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92447         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92448
92449 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92450
92451         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92452         Remove workaround macros for hosts that have mbrtowc but not
92453         mbstate_t, as we now insist on proper declarations for both
92454         before using mbrtowc.
92455
92456 2001-02-17  Jim Meyering  <meyering@lucent.com>
92457
92458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92459         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92460         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92461         UnixWare 7.1.1.
92462
92463         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92464         rather than AC_CACHE_VAL.
92465
92466 2001-02-17  Jim Meyering  <meyering@lucent.com>
92467
92468         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92469         around included file name.
92470
92471         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92472
92473         * lib/strftime.c: Update from GNU libc (the only changes were to
92474         comments).
92475
92476 2001-02-17  Jim Meyering  <meyering@lucent.com>
92477
92478         * lib/regex.c: Update from libc.
92479
92480 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92481
92482         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92483         clash.
92484
92485 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92486
92487         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92488         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92489         Reported by Mark Hounschell via Paul Eggert.
92490
92491 2001-02-07  Jim Meyering  <meyering@lucent.com>
92492
92493         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92494
92495 2001-02-05  Jim Meyering  <meyering@lucent.com>
92496
92497         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92498         it includes the patch required for `large file' support with at least
92499         HP-UX's 10.20 /bin/cc.
92500
92501 2001-02-03  Jim Meyering  <meyering@lucent.com>
92502
92503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92504         AS_IF, now that it works once again (mysteriously).
92505         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92506
92507 2001-01-30  Jim Meyering  <meyering@lucent.com>
92508
92509         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92510         * m4/chown.m4: Rename conftestchown to conftest.chown.
92511         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92512         s/conftestdir2/conftest.d2/.
92513         * m4/utimes.m4: s/conftestdata/conftest.data/
92514         Inspired by Pavel Roskin's change in autoconf.
92515
92516 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92517
92518         * lib/config.charset: Update for FreeBSD 4.2.
92519
92520 2001-01-27  Jim Meyering  <meyering@lucent.com>
92521
92522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92523         a use of AS_IF.
92524         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92525
92526 2001-01-26  Jim Meyering  <meyering@lucent.com>
92527
92528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92529         quotearg.c includes it.
92530
92531 2001-01-26  Jim Meyering  <meyering@lucent.com>
92532
92533         * lib/quotearg.c: Include stddef.h.
92534         * lib/quote.c: Include stddef.h.
92535         Reported by Axel Kittenberger.
92536
92537         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92538         line in double quotes so that it evokes a better diagnostic.
92539         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92540         Reported by Axel Kittenberger.
92541
92542 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92543
92544         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92545         as if it was a `charset'.
92546
92547 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92548
92549         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92550         has const.
92551
92552 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92553
92554         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92555         to avoid a warning.  Add back 'const' to inptr.
92556
92557 2001-01-20  Jim Meyering  <meyering@lucent.com>
92558
92559         Be sure that headers are checked before used in code compiled
92560         for the type checks.
92561         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92562         In place of that, invoke jm_CHECK_ALL_TYPES.
92563         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92564         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92565         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92566         The check for ssize_t was mistakenly run before the test for unistd.h.
92567
92568         The configure-time check for stdbool.h was missing.
92569         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92570         (jm_PREREQ_HASH): New function.
92571
92572 2001-01-17  Jim Meyering  <meyering@lucent.com>
92573
92574         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92575         for autoconf-2.49c.
92576         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92577
92578 2001-01-16  Jim Meyering  <meyering@lucent.com>
92579
92580         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92581         From Bruno Haible.
92582
92583 2001-01-14  Jim Meyering  <meyering@lucent.com>
92584
92585         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92586         foo and bar.  Create conftestdir/ in the script, not in the C code.
92587         Remove directories in the script, not in the C code.
92588         Remove conftestdir{,2} before trying to create the directory.
92589         Make the entire configure script fail if the mkdir fails.
92590
92591 2001-01-14  Jim Meyering  <meyering@lucent.com>
92592
92593         * lib/rename.c: New file.  From Volker Borchert.
92594         Include stdlib.h, string.h or strings.h, and xalloc.h.
92595         Use strip_trailing_slashes rather than open-coding it.
92596
92597 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92598
92599         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92600
92601 2001-01-03  Jim Meyering  <meyering@lucent.com>
92602
92603         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92604         of local `inptr' to avoid warning with some system declarations of
92605         iconv.
92606
92607 2001-01-02  Volker Borchert  <bt@teknon.de>
92608
92609         * m4/rename.m4: New file.
92610         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92611
92612 2001-01-01  Jim Meyering  <meyering@lucent.com>
92613
92614         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92615         even on systems with utmpx.h.  It's necessary for the declaration of
92616         utmp's ut_user member.  Reported by Andreas Jaeger.
92617
92618         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92619         available. They are required for the declarations of getgrgid and
92620         getpwuid resp.
92621         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92622         Reported by Andreas Jaeger.
92623
92624 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92625
92626         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92627         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92628         so `make install' also works in VPATH builds.
92629
92630 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92631
92632         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92633         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92634         can be used in subdirectories.
92635
92636 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92637
92638         * lib/modechange.c: Do not assume that mode_t uses the
92639         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92640         the other-execute bit of FOO even if S_IXOTH != 1.
92641
92642         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92643         WOTH, XOTH, ALLM): New macros.
92644         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92645          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92646         Use them.
92647         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92648         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92649         (mode_compile):
92650         No need to use uintmax_t; unsigned long is long enough.
92651         Don't bother to get suffix since we don't use it.
92652
92653 2000-12-26  Jim Meyering  <meyering@lucent.com>
92654
92655         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92656         better with autoheader.
92657
92658 2000-12-24  Jim Meyering  <meyering@lucent.com>
92659
92660         * lib/hash.c (is_prime): Return explicit boolean values.
92661         (hash_get_first): Return NULL to appease Irix5.6's 89.
92662         Reported by Nelson Beebe.
92663
92664 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92665
92666         * lib/localcharset.c (locale_charset): Add support for Win32.
92667
92668 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92669
92670         * lib/physmem.h, lib/physmem.c: New files.
92671
92672         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92673         (noinst_HEADERS): Add physmem.h.
92674
92675         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92676         't' for compatibility with Solaris 8 sort.
92677
92678 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92679
92680         * lib/config.charset: Add support for BeOS.
92681
92682 2000-12-17  Jim Meyering  <meyering@lucent.com>
92683
92684         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92685         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92686
92687 2000-12-16  Jim Meyering  <meyering@lucent.com>
92688
92689         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92690         N and M) would have treated it like `chown N:N FILE'.
92691
92692         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92693
92694 2000-12-16  Jim Meyering  <meyering@lucent.com>
92695
92696         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92697         SHELLS_FILE to a file name that's useful on djgpp systems.
92698         Include stdlib.h.
92699         (ADDITIONAL_DEFAULT_SHELLS): Define.
92700         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92701         Based mostly on a patch from Prashant TR.
92702
92703 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92704
92705         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92706         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92707         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92708
92709 2000-12-08  Andreas Schwab  <schwab@suse.de>
92710
92711         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92712         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92713
92714 2000-12-07  Jim Meyering  <meyering@lucent.com>
92715
92716         * lib/stripslash.c (ISSLASH): Define.
92717         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92718         `/'.
92719         From Prashant TR.
92720
92721         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92722         (dir_name_r): Declare this function as static.
92723         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92724         manifest itself on a name containing a mix of slashes and
92725         backslashes.
92726         Make this function work with names starting with a DOS-style
92727         drive letter and colon prefix.
92728         (dir_name): Append `.' if necessary.
92729         Based mostly on patches from Prashant TR and Eli Zaretskii.
92730
92731         * lib/dirname.h (dir_name_r): Remove prototype.
92732
92733 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92734
92735         * m4/off_t-format.m4: Remove this file.
92736         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92737
92738 2000-12-06  Jim Meyering  <meyering@lucent.com>
92739
92740         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92741         replacement strtoull, we may well need the replacement strtoul, too.
92742         Check for declarations of strtoul and strtoull.
92743         Check for strtol.  Mainly as a cue to cause automake to include
92744         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92745         Check for limits.h -- strtol.c needs it.
92746
92747 2000-12-05  Jim Meyering  <meyering@lucent.com>
92748
92749         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92750
92751 2000-12-04  Jim Meyering  <meyering@lucent.com>
92752
92753         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92754         Also include memory.h, stdlib.h, unistd.h if appropriate.
92755         Reported by Andreas Jaeger (conflicting declaration of malloc).
92756
92757 2000-12-02  Jim Meyering  <meyering@lucent.com>
92758
92759         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92760         * m4/jm-macros.m4 (jm_MACROS): require it.
92761
92762 2000-12-02  Jim Meyering  <meyering@lucent.com>
92763
92764         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92765
92766 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92767
92768         * lib/memrchr.c: Include <config.h> before any system include file.
92769
92770 2000-11-30  Jim Meyering  <meyering@lucent.com>
92771
92772         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92773
92774 2000-11-30  Jim Meyering  <meyering@lucent.com>
92775
92776         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92777
92778 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92779
92780         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92781
92782 2000-11-26  Jim Meyering  <meyering@lucent.com>
92783
92784         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92785
92786 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92787
92788         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92789         size of (size_t) -1; it's not portable.
92790
92791 2000-11-17  Jim Meyering  <meyering@lucent.com>
92792
92793         * lib/strstr.c: Update from GNU libc.
92794
92795 2000-11-17  Akim Demaille  <akim@epita.fr>
92796
92797         * lib/obstack.h: Formatting changes.
92798         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92799         prevent type checking.
92800         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92801         cast the value to (void *): assigning a `foo *' to a `void *'
92802         variable is valid.
92803         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92804
92805 2000-11-16  Jim Meyering  <meyering@lucent.com>
92806
92807         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92808
92809 2000-11-11  Jim Meyering  <meyering@lucent.com>
92810
92811         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92812
92813 2000-11-10  Jim Meyering  <meyering@lucent.com>
92814
92815         * lib/obstack.h: Update from GNU libc.
92816         * lib/obstack.c: Likewise.
92817
92818 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92819
92820         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92821
92822 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92823
92824         * lib/getusershell.c (setusershell): Use rewind rather than
92825         fseek/fseeko, to avoid configuration hassles with fseeko.
92826         Don't bother opening SHELLS_FILE if shellstream is NULL;
92827         it's not necessary.
92828
92829 2000-11-05  Jim Meyering  <meyering@lucent.com>
92830
92831         * lib/makepath.h (make_dir): Declare.
92832         * lib/makepath.c (make_dir): Remove `static' attribute.
92833         Tweak a comment.
92834
92835 2000-11-04  Jim Meyering  <meyering@lucent.com>
92836
92837         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92838
92839 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92840
92841         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92842         last one in a bucket, advance to the next bucket.
92843
92844 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92845
92846         * lib/fnmatch.c: Do not comment out all the code if we are using
92847         the GNU C library, because in some cases we are replacing buggy
92848         code in the GNU C library itself.
92849
92850 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92851
92852         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92853         (regex_compile): Catch bogus \(\1\).
92854
92855 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92856
92857         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92858         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92859         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92860
92861 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92862
92863         * lib/error.h, getline.h, modechange.h:
92864         Remove "2000" from Copyright line, as the file hasn't been
92865         changed this year other than in the copyright notice.
92866
92867         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92868         was changed this year.
92869
92870 2000-10-29  Jim Meyering  <meyering@lucent.com>
92871
92872         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92873         renaming.
92874         * m4/ls-mntd-fs.m4: Likewise
92875
92876 2000-10-29  Jim Meyering  <meyering@lucent.com>
92877
92878         * lib/xstat.in: Fix grammar in comment.
92879
92880 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92881
92882         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92883         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92884         doesn't define __restrict_arr.
92885
92886 2000-10-28  Jim Meyering  <meyering@lucent.com>
92887
92888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92889         (jm_PREREQ_MEMCHR): New function.
92890
92891 2000-10-28  Jim Meyering  <meyering@lucent.com>
92892
92893         * lib/memchr.c: Update from libc.
92894         Adjust for portability:
92895         [HAVE_STDLIB_H]: Include stdlib.h.
92896         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92897         Undef __memchr, too.
92898         [!weak_alias]: Define __memchr to memchr.
92899
92900         * lib/regex.c: Update from libc.
92901         * lib/regex.h: Likewise.
92902         * lib/getopt1.c: Likewise.
92903         * lib/memcmp.c: Likewise.
92904
92905         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92906         Avoid using fseek, when possible -- it's broken by design.
92907         Patch by Ulrich Drepper.
92908
92909 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92910
92911         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92912         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92913         Giving in to popular pressure to shut up the compiler with casts.
92914
92915 2000-10-26  Jim Meyering  <meyering@lucent.com>
92916
92917         * lib/strftime.c: Update from libc.
92918
92919 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92920
92921         * regex.c: More `unsigned char' -> `re_char' changes.
92922         Also change several `int' into `re_wchar_t'.
92923         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92924         (PUSH_FAILURE_POINTER): Don't cast any more.
92925         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92926         We want GCC to complain, since this piece of code makes
92927         re_match non-reentrant, which *should* be fixed.
92928         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92929         (EXTEND_BUFFER): Use RETALLOC.
92930         (SET_LIST_BIT): Don't cast.
92931         (re_wchar_t): New type.
92932         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92933         that those two functions will always properly return.
92934         (IMMEDIATE_QUIT_CHECK): Cast to void.
92935         (analyse_first): Use recursion rather than an explicit stack.
92936         (re_compile_fastmap): Can't fail anymore.
92937         (re_search_2): Don't check re_compile_fastmap for failure.
92938         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92939         Now also sets the new value (passed in a new argument).
92940         (re_match_2_internal): Use it.
92941         Also, use a new var `reg' of type size_t when looping through regs
92942         rather than reuse the inappropriate `mcnt'.
92943
92944 2000-10-25  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/obstack.c: Update from libc.
92947
92948 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92949
92950         * regex.c (regex_compile): Change the way of handling a range from
92951         a char less than 256 to a char not less than 256.
92952
92953 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92954
92955         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92956         NT-Emacs only.
92957         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92958         so that re_search functions only quit when callers expect them to.
92959
92960 2000-10-23  Jim Meyering  <meyering@lucent.com>
92961
92962         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92963         wrong.  That set_locale call must not have any side effects.
92964         From Paul Eggert.
92965
92966 2000-10-22  Jim Meyering  <meyering@lucent.com>
92967
92968         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92969         [CYCLIC]: Remove now-unused definition.
92970
92971         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92972         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92973         Suggestion from Ulrich Drepper.
92974
92975 2000-10-21  Jim Meyering  <meyering@lucent.com>
92976
92977         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92978         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92979         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92980
92981 2000-10-21  Jim Meyering  <meyering@lucent.com>
92982
92983         * lib/dirname.c (memrchr): Declare if necessary.
92984         (dir_name): Remove the restriction that there be no
92985         trailing slashes.  Now, this code skips past them, effectively
92986         ignoring them.
92987         [TEST_DIRNAME] (main): New unit tests.
92988
92989         * lib/memrchr.c: New file from GNU libc.
92990         Undef __memrchr, too.
92991         [!weak_alias]: Define __memrchr to memrchr.
92992         Guard weak_alias use with `#ifdef weak_alias'.
92993
92994 2000-10-21  Jim Meyering  <meyering@lucent.com>
92995
92996         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92997         (dir_name): Use dir_name_r.
92998         * lib/dirname.h (dir_name_r): Declare it.
92999
93000 2000-10-17  Jim Meyering  <meyering@lucent.com>
93001
93002         * lib/quote.h (PARAMS): Define and use.
93003         Reported by Akim Demaille.
93004
93005         * lib/getopt.c: Update from libc.
93006
93007 2000-10-16  Jim Meyering  <meyering@lucent.com>
93008
93009         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93010         setlocale.
93011         From Jan Fedak.
93012
93013 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93014
93015         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93016
93017 2000-09-25  Jim Meyering  <meyering@lucent.com>
93018
93019         * lib/md5.h (rol): Define (from GnuPG).
93020
93021         * lib/sha.c: Give credit (GnuPG) where due.
93022         (M): Use rol rather than open-coding it.
93023         Add a FIXME comment.
93024
93025 2000-09-21  Jim Meyering  <meyering@lucent.com>
93026
93027         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93028         Reported by Michael Stone.
93029
93030 2000-09-20  Jim Meyering  <meyering@lucent.com>
93031
93032         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93033         (noinst_HEADERS): Add sha.h.
93034         Based on code from Scott G. Miller and from GnuPG.
93035
93036 2000-09-18  Jim Meyering  <meyering@lucent.com>
93037
93038         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93039         LIBS. Otherwise, everyone ends up linking with -lelf for some
93040         configurations.
93041         Reported by Mike Stone.
93042
93043 2000-09-15  Jim Meyering  <meyering@lucent.com>
93044
93045         * lib/regex.c: Update from libc.
93046
93047 2000-09-10  Jim Meyering  <meyering@lucent.com>
93048
93049         * lib/getopt.c (_getopt_internal): Update from glibc.
93050
93051 2000-09-09  Jim Meyering  <meyering@lucent.com>
93052
93053         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93054         think it should be used as a general replacement for isascii.
93055         * lib/fnmatch.c: Likewise.
93056         * lib/mbswidth.c: Likewise
93057         * lib/regex.c: Likewise.
93058
93059         Don't use atoi.
93060         * lib/userspec.c: Include sys/param.h and limits.h.
93061         Include xstrtol.h.
93062         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93063         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93064         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93065         UID, GID.  Check range.
93066
93067 2000-09-06  Jim Meyering  <meyering@lucent.com>
93068
93069         * lib/getopt.c (_getopt_internal): Update from glibc.
93070
93071 2000-08-30  Jim Meyering  <meyering@lucent.com>
93072
93073         * lib/strftime.c: Merge in changes from GNU libc.
93074
93075 2000-08-26  Jim Meyering  <meyering@lucent.com>
93076
93077         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93078         * m4/fpending.m4: New file.
93079
93080 2000-08-26  Jim Meyering  <meyering@lucent.com>
93081
93082         * lib/closeout.c: Include "__fpending.h".
93083         (close_stdout_status): Return right away if there's nothing to flush.
93084
93085         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93086         * lib/__fpending.c: New file.
93087         * lib/__fpending.h: New file.
93088
93089 2000-08-20  Jim Meyering  <meyering@lucent.com>
93090
93091         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93092         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93093         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93094
93095 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93096
93097         Improve fileutils installation on systems where running
93098         programs (like install) can't be unlinked.
93099         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93100         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93101
93102 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93103
93104         Standardize on "memory exhausted" instead of "Memory exhausted"
93105         or "virtual memory exhausted".
93106         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93107         "virtual memory exhausted".
93108         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93109         our own message.
93110         * lib/userspec.c (parse_user_spec): Likewise.
93111         * lib/bumpalloc.h: comment fix
93112         * lib/same.c, userspec.c: Include xalloc.h.
93113
93114         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93115         not char *const and pointing to a constant array.
93116         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93117         (xrealloc): Comment fix.
93118
93119         * lib/userspec.c (parse_user_spec):
93120         Don't translate a message until just before returning,
93121         to avoid unnecessary translation.
93122
93123 2000-08-07  Jim Meyering  <meyering@lucent.com>
93124
93125         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93126         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93127         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93128         getgroups.c, gethostname.c, getopt.h, group-member.c,
93129         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93130         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93131         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93132         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93133         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93134         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93135         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93136         yesno.c: Back out Copyright date changes for each file with no change
93137         this year.  This eases coordination with other programs using the same
93138         source code modules.  From Paul Eggert.
93139
93140 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93141
93142         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93143         not char, for compatibility with glibc 2.1.3 strftime.c.
93144
93145 2000-08-03  Greg McGary  <greg@mcgary.org>
93146
93147         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93148         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93149         (EXTEND_BUFFER): Use them.
93150
93151 2000-08-01  Jim Meyering  <meyering@lucent.com>
93152
93153         * lib/dirname.c (ISSLASH): Define.
93154         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93155         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93156         both `\' and `/' may be use as path separators.
93157         Based on a patch from Prashant TR.
93158
93159 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93160
93161         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93162         slot vector a constant, since it might get modified.
93163
93164 2000-07-31  Jim Meyering  <meyering@lucent.com>
93165
93166         * lib/xmalloc.c: Use `virtual memory exhausted', not
93167         `Memory exhausted'.
93168         * lib/obstack.c (print_and_abort): Likewise.
93169
93170 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93171
93172         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93173         buffer, so that the caller can always quote one small
93174         component of a "memory exhausted" message in slot 0.
93175         From a suggestion by Jim Meyering.
93176
93177 2000-07-30  Jim Meyering  <meyering@lucent.com>
93178
93179         * lib/makepath.c (make_path): Quote the other instance, too.
93180
93181         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93182         (STATIC_BUF_SIZE): Define.
93183         (quotearg_n_options): Use only statically allocated storage when
93184         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93185         than STATIC_BUF_SIZE.
93186
93187 2000-07-29  Jim Meyering  <meyering@lucent.com>
93188
93189         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93190         * lib/dirname.c (dir_name): Likewise.
93191
93192         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93193         `/'.
93194
93195         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93196         (dir_name): Assert that there are no trailing slashes.
93197
93198 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93199
93200         * lib/mbswidth.h (mbswidth): Add a flags argument.
93201         (mbswidth): New declaration.
93202         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93203         * lib/mbswidth.c (mbswidth): Add a flags argument.
93204         (mbsnwidth): New function.
93205
93206 2000-07-24  Jim Meyering  <meyering@lucent.com>
93207
93208         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93209
93210 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93211
93212         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93213
93214 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93215
93216         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93217         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93218         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93219         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93220         invoke multibyte primitives.
93221
93222 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93223
93224         * lib/quotearg.c:
93225         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93226         so that mbstate_t is always defined.
93227
93228         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93229         be 1 in at least one GCC installation, and this configuration
93230         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93231         performance on hosts that have mbrtowc but have only unibyte
93232         locales, but I assume these hosts are rare.
93233
93234 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93235
93236         * lib/mbswidth.c (_XOPEN_SOURCE):
93237         Don't define; this causes problems on Solaris 7.
93238         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93239
93240 2000-07-23  Jim Meyering  <meyering@lucent.com>
93241
93242         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93243         too: getgrgid, getpwuid, getuid.
93244
93245 2000-07-23  Jim Meyering  <meyering@lucent.com>
93246
93247         * lib/basename.c (base_name): Add an assertion.
93248
93249 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93250
93251         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93252         shadow its mbsinit function.
93253
93254 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93255
93256         * lib/mbswidth.h: New file.
93257         * lib/mbswidth.c: New file.
93258         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93259         (noinst_HEADERS): Add mbswidth.h.
93260
93261 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93262
93263         * lib/config.charset: Add support for FreeBSD. Improve support for
93264         HP-UX and IRIX 6.
93265
93266 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93267
93268         * m4/mbswidth.m4: New file.
93269         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93270
93271 2000-07-15  Jim Meyering  <meyering@lucent.com>
93272
93273         * lib/makepath.c: Include quote.h.
93274         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93275         corresponding argument in a `quote (...)' call.
93276         Give better diagnostics.
93277
93278         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93279         (noinst_HEADERS): Add quote.h.
93280
93281         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93282         from tar's src/misc.c.
93283         * lib/quote.h: New file.  Prototypes for same.
93284
93285 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93286
93287         From a suggestion by Bruno Haible.
93288         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93289         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93290         to decide whether to define the BeOS workaround macro;
93291         this adjusts to the change to AC_MBSTATE_T.
93292
93293 2000-07-14  Jim Meyering  <meyering@lucent.com>
93294
93295         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93296         jm_AC_TYPE_UINTMAX_T.
93297
93298 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93299
93300         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93301
93302         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93303         quotearg_buffer_restyled): Add support for
93304         clocale_quoting_style.  Undo previous change to
93305         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93306         and "{RIGHT QUOTATION MARK}" msgids.
93307
93308 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93309
93310         From a suggestion by Bruno Haible.
93311         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93312         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93313         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93314         and mbstate_t, to a single-part test that simply defines mbstate_t.
93315         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93316         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93317
93318 2000-07-10  Jim Meyering  <meyering@lucent.com>
93319
93320         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93321
93322         * m4/gnu-source.m4: Output to confdefs.h directly.
93323         Suggestion from Akim Demaille.
93324
93325 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93326
93327         The old behavior of quoting `like this' doesn't look good with
93328         newer, ISO-style fonts.  See:
93329         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93330
93331         Instead, quote "like this" by default.  Let the translator
93332         tailor the locale-specific quoting behavior by providing
93333         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93334
93335         * lib/quotearg.c (N_): New macro.
93336         (gettext_default): New function.
93337         (quotearg_buffer_restyled): Use
93338         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93339         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93340
93341 2000-07-09  Jim Meyering  <meyering@lucent.com>
93342
93343         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93344         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93345
93346         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93347         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93348
93349 2000-07-09  Jim Meyering  <meyering@lucent.com>
93350
93351         * lib/Most files: Update copyright dates to include 2000.
93352
93353 2000-07-08  Jim Meyering  <meyering@lucent.com>
93354
93355         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93356         if not defined.
93357         (xgethostname): Remove now-unnecessary #ifdef.
93358         Move declaration of `err' into loop where it's used.
93359
93360 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93361         and Bruno Haible  <haible@clisp.cons.org>
93362
93363         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93364         only if the test for an object-type mbstate_t fails.  This
93365         prevents us from mistakenly reporting that mbstate_t is a
93366         system object type after we "#define mbstate_t int" to work
93367         around its lack.
93368
93369 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93370         and Bruno Haible  <haible@clisp.cons.org>
93371
93372         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93373
93374 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93375
93376         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93377         to strerror_r.
93378         Include <ctype.h> for use of isalpha.
93379
93380 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93381
93382         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93383         by allocating a larger buffer. Test the gethostname return value for
93384         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93385         returns an error and ENAMETOOLONG isn't defined.
93386
93387 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93388
93389         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93390         dimension.
93391
93392 2000-07-04  Jim Meyering  <meyering@lucent.com>
93393
93394         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93395         of the deprecated AC_CHECKING.
93396
93397 2000-07-04  Jim Meyering  <meyering@lucent.com>
93398
93399         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93400         Reported by Bruno Haible.
93401
93402 2000-07-04  Jim Meyering  <meyering@lucent.com>
93403
93404         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93405         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93406         lacks mbrtowc.
93407
93408 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93409
93410         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93411         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93412
93413 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93414         and Bruno Haible  <haible@clisp.cons.org>
93415
93416         * lib/quotearg.c (mbrtowc):
93417         Assign to *pwc, and return 1 only if result is nonzero.
93418         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93419
93420 2000-07-03  Jim Meyering  <meyering@lucent.com>
93421
93422         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93423
93424 2000-07-03  Jim Meyering  <meyering@lucent.com>
93425
93426         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93427         This is necessary to get a definition of e.g., UTMP_FILE on
93428         HP-UX 10.20.
93429         From Bob Proulx.
93430
93431 2000-07-02  Jim Meyering  <meyering@lucent.com>
93432
93433         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93434
93435         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93436         AC_LIBOBJ(function_name).
93437         * m4/chown.m4: Likewise.
93438         * m4/fnmatch.m4: Likewise.
93439         * m4/ftruncate.m4: Likewise.
93440         * m4/getgroups.m4: Likewise.
93441         * m4/getline.m4: Likewise.
93442         * m4/group-member.m4: Likewise.
93443         * m4/jm-macros.m4: Likewise.
93444         * m4/lstat.m4: Likewise.
93445         * m4/malloc.m4: Likewise.
93446         * m4/memcmp.m4: Likewise.
93447         * m4/nanosleep.m4: Likewise.
93448         * m4/putenv.m4: Likewise.
93449         * m4/realloc.m4: Likewise.
93450         * m4/regex.m4: Likewise.
93451         * m4/stat.m4: Likewise.
93452         * m4/strftime.m4: Likewise.
93453
93454 2000-07-02  Jim Meyering  <meyering@lucent.com>
93455
93456         * lib/quotearg.c (mbstate_t): Don't define here.
93457
93458 2000-07-02  Jim Meyering  <meyering@lucent.com>
93459
93460         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93461
93462 2000-07-01  Jim Meyering  <meyering@lucent.com>
93463
93464         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93465
93466 2000-07-01  Jim Meyering  <meyering@lucent.com>
93467
93468         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93469         problem.
93470
93471 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93472
93473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93474         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93475
93476 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93477
93478         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93479         per change in ../m4/ls-mntd-fs.m4.
93480         (read_filesystem_list): Ignore symbolic links.
93481
93482 2000-06-29  Jim Meyering  <meyering@lucent.com>
93483
93484         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93485         for declaration of strcmp.
93486
93487         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93488
93489         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93490         Avoid warning by casting result to `char *' to remove `const'.
93491
93492 2000-06-28  Jim Meyering  <meyering@lucent.com>
93493
93494         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93495         included by quotearg.c, for which we perform this test.  From
93496         Bruno Haible.
93497
93498 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93499
93500         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93501         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93502         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93503
93504 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93505
93506         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93507
93508 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93509
93510         savedir now sets errno on failure and invokes xmalloc to get memory.
93511         Fix a couple of other minor bugs while we're at it.
93512
93513         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93514         (NAMLEN): Remove macro.
93515         (malloc, realloc): Remove decls.
93516         (stpcpy): Likewise.
93517         ("xalloc.h"): Include.
93518         (NAME_SIZE_DEFAULT): New macro.
93519         (savedir): Use xmalloc / xrealloc to allocate memory.
93520         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93521         Skip "" directory entries.
93522         Use strlen to calculate directory entry length, since the old method
93523         is rarely used these days and isn't worth supporting.
93524         Don't use a pointer after freeing it.
93525         Check for integer overflow when calculating allocation size.
93526         Use memcpy to copy entries, instead of stpcpy.
93527         Set errno properly when returning NULL.
93528         Check for readdir error.
93529
93530 2000-06-26  Jim Meyering  <meyering@lucent.com>
93531
93532         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93533
93534 2000-06-25  Jim Meyering  <meyering@lucent.com>
93535
93536         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93537         Linux header bug when _XOPEN_SOURCE is defined to 500.
93538
93539 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93540
93541         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93542         deficiency.
93543
93544 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93545
93546         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93547         Include xalloc.h.
93548         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93549
93550 2000-06-24  Jim Meyering  <meyering@lucent.com>
93551
93552         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93553         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93554         for which strerror does return char*, but which lacks a conveniently
93555         accessible declaration of the function.  If the compile-test says
93556         strerror_r doesn't work, then resort to a `run'-test that works on
93557         BeOS and segfaults on DEC Unix.
93558
93559 2000-06-24  Jim Meyering  <meyering@lucent.com>
93560
93561         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93562
93563 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93564
93565         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93566         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93567
93568 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93569
93570         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93571         (mbrtowc, mbstate_t): Define substitutes if
93572         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93573         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93574         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93575
93576 2000-06-23  Jim Meyering  <meyering@lucent.com>
93577
93578         * m4/afs.m4: Add missing AC_MSG_RESULT.
93579         Reported by Bruno Haible.
93580
93581         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93582         Suggestion from Bruno Haible.
93583
93584 2000-06-23  Jim Meyering  <meyering@lucent.com>
93585
93586         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93587
93588 2000-06-21  Jim Meyering  <meyering@lucent.com>
93589
93590         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93591
93592 2000-06-21  Jim Meyering  <meyering@lucent.com>
93593
93594         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93595         (noinst_HEADERS): Add getstr.h.
93596
93597         * lib/getline.c (getstr): Move into a separate file.
93598         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93599         the following changes: new parameter, delim2; both delim[12]
93600         parameters have type `int', not `char'.  The latter would lose
93601         with 8-bit delimiters.
93602         * lib/getstr.h: New file.
93603
93604 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93605
93606         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93607         than 1024, return a memory chunk of least possible size, instead
93608         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93609         Use free/xmalloc instead of xrealloc to avoid copying for very long
93610         paths.
93611
93612 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93613
93614         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93615         the empty string.
93616
93617 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93618
93619         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93620         address, not strdup.  Include <stdlib.h> and don't declare free().
93621
93622 2000-06-19  Jim Meyering  <meyering@lucent.com>
93623
93624         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93625
93626 2000-06-18  Jim Meyering  <meyering@lucent.com>
93627
93628         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93629
93630         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93631         `checking whether...' message to be consistent with that of the
93632         lstat test.
93633
93634 2000-06-18  Jim Meyering  <meyering@lucent.com>
93635
93636         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93637         Besides, these days every porting target provides a mkdir function.
93638
93639         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93640         needed. (this snippet comes from src/system.h).
93641
93642 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93643
93644         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93645
93646 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93647
93648         * lib/human.c (adjust_value): New function.
93649         (human_readable_inexact): Apply rounding style even when
93650         printing approximate values.
93651
93652 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93653
93654         * lib/human.c (human_readable_inexact): Allow an input block
93655         size that is not a multiple of the output block size, and vice versa.
93656         Reported by Piergiorgio Sartor.
93657
93658 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93659
93660         * lib/getdate.y (get_date): Apply relative times after time
93661         zone indicator, not before.  Reported by Todd A. Jacobs.
93662
93663 2000-06-13  Jim Meyering  <meyering@lucent.com>
93664
93665         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93666
93667         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93668
93669 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93670
93671         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93672
93673 2000-06-12  Jim Meyering  <meyering@lucent.com>
93674
93675         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93676         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93677         optional argument.
93678         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93679         the optional argument, `lib'.
93680
93681 2000-06-08  Jim Meyering  <meyering@lucent.com>
93682
93683         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93684
93685 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93686
93687         Rewrite largefile configuration so that we don't need to run
93688         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93689         AC_CANONICAL_HOST in configure.in -- jmm]
93690
93691         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93692         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93693         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93694         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93695         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93696         All uses changed.
93697         Instead of inspecting the output of getconf, try to compile the
93698         test program without and with the macro definition.
93699         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93700         for getconf.  Instead, check for the needed flags by compiling
93701         test programs.
93702
93703 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93704
93705         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93706
93707 2000-06-04  Jim Meyering  <meyering@lucent.com>
93708
93709         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93710         SunOS 4.1.4 for which gid_t is an unsigned type.
93711
93712 2000-06-03  Jim Meyering  <meyering@lucent.com>
93713
93714         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93715         now that autoconf requires that.
93716
93717         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93718         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93719         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93720
93721 2000-06-03  Jim Meyering  <meyering@lucent.com>
93722
93723         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93724
93725 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93726
93727         * m4/glibc21.m4: New file.
93728         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93729
93730 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93731
93732         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93733         newer, don't install charset.alias.
93734         * lib/config.charset: Change the Linux/glibc rules so they become empty
93735         on glibc-2.1 or newer.
93736
93737 2000-06-02  Jim Meyering  <meyering@lucent.com>
93738
93739         * lib/mountlist.c: Back out last change.  Instead, do this...
93740         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93741         me_dummy member using the same `ignore'-testing code.
93742         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93743         fs_type strings.
93744         From Mark D. Roth.
93745
93746 2000-05-29  Jim Meyering  <meyering@lucent.com>
93747
93748         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93749         mounts with the `ignore' attribute.  Based on a patch from
93750         Mark D. Roth.
93751
93752 2000-05-28  Jim Meyering  <meyering@lucent.com>
93753
93754         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93755         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93756         * m4/stat.m4: Likewise.
93757         * m4/lstat.m4: Likewise.
93758         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93759
93760         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93761         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93762
93763 2000-05-26  Jim Meyering  <meyering@lucent.com>
93764
93765         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93766
93767 2000-05-24  Jim Meyering  <meyering@lucent.com>
93768
93769         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93770         autoconf requires that.
93771         * m4/lib-check.m4: Likewise.
93772         * m4/jm-macros.m4: Likewise.
93773         * m4/strftime.m4: Likewise.
93774
93775         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93776         AC_CHECK_DECLS, now that autoconf requires that.
93777
93778 2000-05-22  Jim Meyering  <meyering@lucent.com>
93779
93780         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93781         * m4/lstat.m4: Likewise.
93782
93783 2000-05-22  Jim Meyering  <meyering@lucent.com>
93784
93785         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93786
93787 2000-05-20  Jim Meyering  <meyering@lucent.com>
93788
93789         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93790         (jm_PREREQ): Use it.
93791
93792 2000-05-18  Jim Meyering  <meyering@lucent.com>
93793
93794         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93795         back, too, since it may have been modified by allocate_entry.
93796         (hash_delete): Rewrite to use neither the assignment operator
93797         nor the comma operator in an if-expression.
93798
93799 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93800
93801         * lib/closeout.c:
93802         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93803         Remove; no longer needed.
93804         "quotearg.h": Add include.
93805         (file_name): Do not bother to explicitly initialize to NULL; it's less
93806         efficient on some hosts.
93807         (close_stdout_status): Remove test as to whether stdout was already
93808         closed; it breaks for the case "echo x | sort >&-".
93809         Quote file name colons.
93810         Do not assume that _("write error") lacks format strings.
93811
93812 2000-05-15  Jim Meyering  <meyering@lucent.com>
93813
93814         * lib/version-etc.c (version_etc_copyright): Update the copyright
93815         string used in all --version output.
93816
93817 2000-05-14  Jim Meyering  <meyering@lucent.com>
93818
93819         * lib/closeout.c (close_stdout_set_file_name): New function.
93820         (close_stdout_status): Use new file-scoped global.
93821         Return right away if fstat says the stdout file descriptor is invalid.
93822         * lib/closeout.h (close_stdout_set_file_name): Declare.
93823
93824 2000-05-10  Jim Meyering  <meyering@lucent.com>
93825
93826         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93827         (close_stdout_set_status): New function.
93828         * lib/closeout.h (close_stdout_set_status): Declare.
93829
93830 2000-05-09  Jim Meyering  <meyering@lucent.com>
93831
93832         * m4/gettext.m4: Rename this...
93833         * m4/libintl.m4: ...to this.
93834
93835 2000-05-08  Jim Meyering  <meyering@lucent.com>
93836
93837         * lib/long-options.c: Don't include closeout.h.
93838         (parse_long_options): Don't call close_stdout for --version.
93839
93840 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93841
93842         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93843         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93844         2.1.3 bug.  This avoids a clash when files like regex.c define
93845         _GNU_SOURCE.
93846
93847 2000-05-06  Jim Meyering  <meyering@lucent.com>
93848
93849         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93850         (AC_REPLACE_FUNCS): Add strnlen.
93851
93852         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93853         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93854
93855         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93856         AC_SEARCH_LIBS call for nanosleep.
93857         (LIB_NANOSLEEP): Set and AC_SUBST.
93858
93859 2000-05-06  Jim Meyering  <meyering@lucent.com>
93860
93861         * lib/strnlen.c: Undefine __strnlen and strnlen.
93862         [!weak_alias]: Define __strnlen to strnlen.
93863
93864         * lib/atexit.c: New file, from libiberty.
93865
93866 2000-05-06  Jim Meyering  <meyering@lucent.com>
93867
93868         * lib/closeout.c (close_stdout_status): Also check for errors on the
93869         stderr stream.
93870
93871 2000-05-05  Jim Meyering  <meyering@lucent.com>
93872
93873         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93874         AC_SEARCH_LIBS call for clock_gettime.
93875         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93876
93877         * m4/search-libs.m4: Update from autoconf.
93878
93879         su doesn't work on Solaris 2.6.
93880         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93881         <shadow.h>.  Reported by Dragos Harabor.
93882
93883 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93884
93885         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93886         memcpy instead of xmalloc, xrealloc, path_concat.
93887         (locale_charset): Treat empty environment variables as absent.
93888         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93889
93890 2000-05-04  Jim Meyering  <meyering@lucent.com>
93891
93892         * lib/getopt.c: Update from glibc.
93893         * lib/obstack.c: Likewise.
93894         * lib/obstack.h: Likewise.
93895         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93896         file
93897
93898         * lib/regex.h: Likewise.
93899         * lib/strndup.c: Likewise.
93900         * lib/strnlen.c: New file, from glibc.
93901
93902 2000-05-03  Jim Meyering  <meyering@lucent.com>
93903
93904         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93905
93906 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93907
93908         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93909         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93910         compile-time test, rather than inspecting host and OS, to
93911         decide whether to define _LARGEFILE_SOURCE.
93912
93913 2000-05-01  Jim Meyering  <meyering@lucent.com>
93914
93915         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93916
93917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93918         Based on a patch from Bruno Haible.
93919
93920 2000-05-01  Jim Meyering  <meyering@lucent.com>
93921
93922         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93923
93924 2000-04-29  Jim Meyering  <meyering@lucent.com>
93925
93926         * lib/path-concat.c: Declare strdup only if it's not defined.
93927         * lib/canon-host.c: Likewise.
93928
93929 2000-04-28  Jim Meyering  <meyering@lucent.com>
93930
93931         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93932         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93933         is included first, then limits.h is included by locale.h by libintl.h.
93934         From John David Anglin.
93935
93936 2000-04-25  Jim Meyering  <meyering@lucent.com>
93937
93938         * lib/makepath.c (S_IRWXUGO): Define.
93939         (make_path): Always perform explicit chmod if MODE specifies any
93940         of the `special' permission bits.  Prompted by a bug report against
93941         install from Mate Wierdl and Joost van Baal.
93942
93943 2000-04-18  Jim Meyering  <meyering@lucent.com>
93944
93945         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93946         (jm_PREREQ): Use it.
93947
93948 2000-04-18  Jim Meyering  <meyering@lucent.com>
93949
93950         * lib/README: New file.
93951
93952         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93953         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93954
93955 2000-04-17  Jim Meyering  <meyering@lucent.com>
93956
93957         Get it right :-)
93958         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93959         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93960         Suggestion from Akim Demaille.
93961
93962 2000-04-17  Jim Meyering  <meyering@lucent.com>
93963
93964         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93965         the definition of it to rpl_strftime also defined-away the system's
93966         declaration.
93967
93968 2000-04-15  Jim Meyering  <meyering@lucent.com>
93969
93970         Use `C' to denote so-called `contiguous' files, the same way
93971         that tar does.
93972         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93973         (ftypelet): Use S_ISCTG.
93974         From Michael Deutschmann.
93975
93976 2000-04-14  Jim Meyering  <meyering@lucent.com>
93977
93978         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93979         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93980         clobbered.
93981
93982 2000-04-14  Jim Meyering  <meyering@lucent.com>
93983
93984         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93985
93986 2000-04-13  Jim Meyering  <meyering@lucent.com>
93987
93988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93989         AH_VERBATIM to insert required #ifndef into config.h.in.
93990         Suggestion from Akim Demaille.
93991
93992 2000-04-12  Jim Meyering  <meyering@lucent.com>
93993
93994         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93995         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93996         Christian Krackowizer.
93997
93998         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93999         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94000         (AC_SYS_LARGEFILE): Require.
94001         (AM_C_PROTOTYPES): Require.
94002
94003 2000-04-08  Jim Meyering  <meyering@lucent.com>
94004
94005         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94006         names don't conflict.  Reported by Eli Zaretskii.
94007
94008 2000-04-07  Jim Meyering  <meyering@lucent.com>
94009
94010         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94011         sys/types.h, to work around system header problems on AIX 3.2.5.
94012         From Bruno Haible.
94013
94014 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94015
94016         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94017         bug.  Deal with the different error behavior of Irix iconv.
94018
94019 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94020
94021         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94022         IRIX if the installer said otherwise.
94023
94024 2000-04-05  Jim Meyering  <meyering@lucent.com>
94025
94026         Portability tweaks required for ultrix4.3.
94027         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94028         (jm_CHECK_DECLS): Add getutent to the list of functions.
94029         (_jm_DECL_HEADERS): Add utmpx.h.
94030         From John David Anglin.
94031
94032         * m4/strftime.m4: Back out the 2000-04-02 change.
94033         Instead of that change, simply undefine putenv in the test program.
94034
94035 2000-04-05  Jim Meyering  <meyering@lucent.com>
94036
94037         Portability tweaks required for ultrix4.3.
94038         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94039         getutent.
94040         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94041         * lib/canon-host.c: Declare strdup.
94042         * lib/path-concat.c: Likewise.
94043         From John David Anglin.
94044
94045 2000-04-04  Jim Meyering  <meyering@lucent.com>
94046
94047         Be more DOS 8.3-friendly.
94048         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94049         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94050         * lib/Makefile.am: Reflect renaming.
94051         Reported by Eli Zaretskii.
94052
94053         Use a temporary file name that won't clash with `charset.alias'
94054         in the DOS 8.3 name space.
94055         * lib/Makefile.am (charset_tmp): Define.
94056         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94057         (uninstall-local): Likewise.
94058         Reported by Eli Zaretskii.
94059
94060 2000-04-03  Jim Meyering  <meyering@lucent.com>
94061
94062         * m4/gettext.m4: Fix typo in comment.
94063
94064         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94065         textutils/configure.in).  Suggestion from Paul Eggert.
94066         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94067
94068 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94069
94070         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94071         variable in the shell rather than using putenv, which isn't
94072         portable.  This avoids the configure-time inter-test dependency
94073         on the potentially-renamed putenv function.
94074
94075 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94076
94077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94078         before checking struct stat.st_blksize, so that
94079         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94080
94081 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94082
94083         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94084         since strftime.c uses HAVE_STRFTIME to decide whether to use
94085         the underlying strftime.
94086
94087 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94088
94089         * lib/time/strftime.c (my_strftime): Make sure we call the system
94090         strftime, not ourselves, when invoking the underlying strftime.
94091
94092 2000-03-24  Jim Meyering  <meyering@lucent.com>
94093
94094         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94095         (charset_alias): Define.
94096         (install-exec-local): Factor out common code.
94097         (uninstall-local): Split lines longer than 80.
94098         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94099         (SUFFIXES): Define.
94100         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94101         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94102
94103 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94104
94105         * lib/config.charset: Output a line containing "Packages using this
94106         file".
94107         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94108         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94109         ref-del.sed): New rules.
94110
94111 2000-03-17  Jim Meyering  <meyering@lucent.com>
94112
94113         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94114         Otherwise, include <strings.h>
94115
94116 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94117
94118         * lib/unicodeio.c (utf8_wctomb): New function.
94119         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94120         format instead of in UCS-4 with platform dependent endianness.
94121
94122 2000-03-10  Jim Meyering  <meyering@lucent.com>
94123
94124         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94125         From Marco Franzen.
94126
94127 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94128
94129         * lib/savedir.c (savedir): Work even if directory size is
94130         negative; this can happen with some screwy NFS configurations.
94131
94132 2000-03-06  Jim Meyering  <meyering@lucent.com>
94133
94134         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94135         if it's NULL (because we ran out of memory).  From Bruno Haible.
94136
94137 2000-03-05  Jim Meyering  <meyering@lucent.com>
94138
94139         * lib/localcharset.c ("path-concat.h"): Include.
94140         (get_charset_aliases): Use path_concat instead of ANSI string
94141         concatenation.
94142
94143         * lib/unicodeio.h (PARAMS): Define.
94144         Use it to guard prototype.
94145
94146 2000-03-04  Jim Meyering  <meyering@lucent.com>
94147
94148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94149         for lib/localcharset.c.
94150
94151 2000-03-04  Jim Meyering  <meyering@lucent.com>
94152
94153         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94154         installing into it.
94155         (uninstall-local): Uncomment this rule so `make distcheck' works
94156         once again.
94157
94158         * lib/unicodeio.c (<errno.h>): Include it.
94159         (errno): Declare if not defined.
94160
94161         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94162
94163         * lib/config.charset: New version, incorporating remarks from a linux
94164         i18n mailing list.  From Bruno Haible.
94165
94166 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94167
94168         * m4/codeset.m4: New file.
94169         * m4/iconv.m4: New file.
94170         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94171
94172 2000-03-03  Jim Meyering  <meyering@lucent.com>
94173
94174         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94175
94176 2000-03-02  Jim Meyering  <meyering@lucent.com>
94177
94178         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94179         the messages come out on separate lines.
94180
94181         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94182         rather than jm_CHECK_DECLARATIONS.
94183         * m4/decl.m4: Remove now-unused file.
94184
94185         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94186         geteuid.
94187
94188 2000-03-02  Jim Meyering  <meyering@lucent.com>
94189
94190         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94191
94192 2000-03-01  Jim Meyering  <meyering@lucent.com>
94193
94194         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94195         * lib/unicodeio.c: Likewise.
94196
94197 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94198
94199         * lib/config.charset: New file.
94200         * lib/localcharset.c: New file.
94201         * lib/unicodeio.h, lib/unicodeio.c: New files.
94202         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94203         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94204         (noinst_HEADERS): Add unicodeio.h.
94205         (all-local, install-exec-local, charset.alias): New targets.
94206
94207 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94208
94209         * lib/quotearg.c (ALERT_CHAR): New macro.
94210         (quotearg_buffer_restyled): Use it.
94211
94212 2000-02-27  Jim Meyering  <meyering@lucent.com>
94213
94214         * m4/check-decl.m4: Add getenv to the list.
94215
94216 2000-02-27  Jim Meyering  <meyering@lucent.com>
94217
94218         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94219         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94220
94221         * lib/backupfile.c: Guard inclusion of stdlib.h with
94222         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94223         Declare malloc if needed.
94224
94225         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94226         `#ifndef HAVE_DECL..'
94227         now that autoconf always defines the HAVE_DECL_ symbols.
94228         * lib/human.c: Likewise.
94229         * lib/same.c: Likewise.
94230         * lib/strtoumax.c: Likewise.
94231
94232         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94233         declaration check was not run.
94234         * lib/hash.c: Likewise.
94235         * lib/human.c: Likewise.
94236         * lib/same.c: Likewise.
94237         * lib/strtoumax.c: Likewise.
94238
94239         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94240         `.', then first look up the entire `.'-containing string as a login
94241         name.
94242
94243 2000-02-23  Jim Meyering  <meyering@lucent.com>
94244
94245         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94246         in place of my hack.
94247
94248 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94249
94250         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94251         (textint): New typedef.
94252         (parser_control): Member year changed from int to textint.
94253         All uses changed.
94254         (YYSTYPE): Removed; replaced by %union with int and textint members.
94255         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94256         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94257         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94258         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94259         (date, number, to_year): Use width of number in digits, not its value,
94260         to determine whether it's a 2-digit year, or a 2-digit time.
94261         (yylex): Store number of digits of numeric tokens.
94262         Reported by John Kendall.
94263
94264         (parser_control): Changed from struct parser_control to typedef (for
94265         consistency).  All uses changed.
94266
94267         (tID): Removed; not used.
94268         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94269
94270 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94271
94272         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94273         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94274
94275 2000-02-12  Jim Meyering  <meyering@lucent.com>
94276
94277         * lib/userspec.c (ISDIGIT): Define it.
94278         (isdigit): Remove definition.
94279         (is_number): Use ISDIGIT, not isdigit.
94280         <libintl.h>: Include.
94281         (_ and N_): Define.
94282         (parse_user_spec): Mark translatable strings.
94283
94284 2000-02-10  Jim Meyering  <meyering@lucent.com>
94285
94286         With these changes, nanosleep.[ch] are finally enough like the other
94287         lib/* replacement files to compile on a few more losing systems.
94288
94289         * lib/nanosleep.h: Don't include config.h.
94290         Remove prototype from declaration of nanosleep.
94291         (PARAMS): Remove now-unneeded definition.
94292         * lib/nanosleep.c: #undef nanosleep.
94293         (rpl_nanosleep): Rename from nanosleep.
94294
94295 2000-02-10  Jim Meyering  <meyering@lucent.com>
94296
94297         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94298         gnu_nanosleep to rpl_nanosleep.
94299
94300 2000-02-09  Jim Meyering  <meyering@lucent.com>
94301
94302         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94303         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94304
94305 2000-02-08  Akim Demaille  <akim@epita.fr>
94306
94307         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94308         `[' and `]' and remove uses of `changequote'.
94309         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94310         (AC_SYS_LARGEFILE): Likewise.
94311         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94312         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94313         of changequote.
94314         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94315         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94316         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94317         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94318
94319 2000-02-05  Jim Meyering  <meyering@lucent.com>
94320
94321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94322         Remove explicit use of AC_HEADER_TIME.  It is required by
94323         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94324         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94325         in autoconf whereby the expansion of the latter ended up preceding
94326         the expansion of its prerequisite, AC_HEADER_TIME.
94327         Reported by Volker Borchert.
94328
94329 2000-02-03  Jim Meyering  <meyering@lucent.com>
94330
94331         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94332
94333 2000-02-03  Jim Meyering  <meyering@lucent.com>
94334
94335         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94336         rather than with `#if HAVE_UTMPNAME'.
94337
94338 2000-02-02  Jim Meyering  <meyering@lucent.com>
94339
94340         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94341         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94342         Reported by Eli Zaretskii.
94343
94344 2000-02-01  Jim Meyering  <meyering@lucent.com>
94345
94346         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94347
94348 2000-01-31  Jim Meyering  <meyering@lucent.com>
94349
94350         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94351         functions.  Add the time.h and sys/time.h headers along with the
94352         AC_REQUIRE'ment of AC_HEADER_TIME.
94353
94354 2000-01-31  Jim Meyering  <meyering@lucent.com>
94355
94356         * lib/nanosleep.h (nanosleep): Guard declaration with
94357         `#if ! HAVE_DECL_NANOSLEEP'.
94358         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94359         the declaration in that vendor's sys/timers.h.
94360         Reported by Christian Krackowizer.
94361
94362         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94363         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94364         (ISPRINT): Likewise.
94365         Reported by Tom Tromey.
94366
94367 2000-01-30  Jim Meyering  <meyering@lucent.com>
94368
94369         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94370
94371         * m4/prereq.m4 (utmp_includes): Define.
94372         Check for ut_user and ut_name members in both struct utmpx
94373         and struct utmp.
94374
94375 2000-01-30  Jim Meyering  <meyering@lucent.com>
94376
94377         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94378         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94379         header files where only utmpx.ut_user is declared.
94380
94381         * lib/readutmp.h (UT_USER): Define.
94382
94383 2000-01-29  Jim Meyering  <meyering@lucent.com>
94384
94385         * m4/lib-check.m4: New file containing library-related checks from
94386         fileutils and sh-utils (textutils had none).
94387
94388 2000-01-28  Jim Meyering  <meyering@lucent.com>
94389
94390         * m4/perl.m4: Change format of warning message to look more like that
94391         from the missing script.  Suggestion from François Pinard.
94392
94393 2000-01-25  Jim Meyering  <meyering@lucent.com>
94394
94395         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94396         well as time.h in the compile check.
94397         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94398         Fix typo in cross-compiling case: s/yes/no/.
94399
94400 2000-01-23  Jim Meyering  <meyering@lucent.com>
94401
94402         * m4/jm-macros.m4: Move df-related tests here from
94403         fileutils/configure.in
94404
94405         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94406         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94407
94408         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94409         s/space/ac_fsusage_space/.
94410         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94411
94412         * m4/ftruncate.m4: New file (derived from part of
94413         fileutils/configure.in).
94414         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94415         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94416
94417         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94418         AC_SUBST these here, rather than just in sh-util/configure.in, so
94419         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94420         all the same.
94421         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94422         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94423         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94424         (AC_SUBST(POW_LIBM)): Likewise.
94425         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94426
94427 2000-01-23  Jim Meyering  <meyering@lucent.com>
94428
94429         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94430         obstack.c.
94431
94432 2000-01-22  Jim Meyering  <meyering@lucent.com>
94433
94434         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94435
94436         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94437
94438         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94439         configure.in
94440         (AC_CHECK_HEADERS): Likewise for sh-utils.
94441         (AC_CHECK_HEADERS): Likewise for textutils.
94442         Merge the three lists of headers.
94443
94444         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94445         from fileutils' configure.in.
94446
94447         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94448         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94449         check-decl.m4.
94450
94451         * m4/check-decl.m4: Use #if rather than #ifdef.
94452         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94453         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94454         (_jm_DECL_HEADERS): Define new function.
94455         (jm_CHECK_DECLARATIONS): Require it.
94456
94457 2000-01-22  Jim Meyering  <meyering@lucent.com>
94458
94459         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94460         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94461         Required for some AIX systems.  Reported by Christian Krackowizer.
94462         [TESTING] (main): New function.
94463
94464         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94465         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94466         letters.
94467
94468         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94469         iswprint.
94470
94471         * lib/strverscmp.c (ISDIGIT): Define.
94472         (strverscmp): Use ISDIGIT, not isdigit.
94473
94474 2000-01-19  Jim Meyering  <meyering@lucent.com>
94475
94476         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94477         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94478         defines `struct timespec' in <sys/time.h>
94479
94480         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94481         Thanks to Akim for explaining.
94482
94483 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94484
94485         * lib/nanosleep.c (nanosleep):
94486         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94487         POSIX.1 doesn't require SA_INTERRUPT and some systems
94488         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94489         it's been part of POSIX.1 since day 1 (in 1988).
94490
94491 2000-01-17  Jim Meyering  <meyering@lucent.com>
94492
94493         * lib/interlock: Remove unused file.  Reported by François Pinard.
94494
94495 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94496
94497         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94498         alert, backslash, formfeed, and vertical tab unnecessarily in
94499         shell quoting style.
94500
94501 2000-01-16  Jim Meyering  <meyering@lucent.com>
94502
94503         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94504         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94505         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94506         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94507
94508 2000-01-16  Jim Meyering  <meyering@lucent.com>
94509
94510         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94511         because the latter didn't work.
94512
94513 2000-01-15  Jim Meyering  <meyering@lucent.com>
94514
94515         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94516         (AC_REPLACE_FUNCS): Add memcpy and memset.
94517         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94518         Add strpbrk.
94519         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94520
94521 2000-01-12  Jim Meyering  <meyering@lucent.com>
94522
94523         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94524         (jm_PREREQ): Use it.
94525         (jm_PREREQ_READUTMP): New macro.
94526         (jm_PREREQ): Use it.
94527
94528 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94529
94530         Quote multibyte characters correctly.
94531         * m4/c-bs-a.m4: New file.
94532         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94533         (jm_PREREQ): Use it.
94534
94535 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94536
94537         * m4/uintmax_t.m4: Port to autoconf 2.13.
94538
94539 2000-01-08  Jim Meyering  <meyering@ascend.com>
94540
94541         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94542         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94543
94544 2000-01-04  Jim Meyering  <meyering@ascend.com>
94545
94546         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94547         jm_STRUCT_DIRENT_D_TYPE.
94548         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94549         jm_STRUCT_DIRENT_D_INO.
94550         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94551         jm_STRUCT_UTIMBUF.
94552         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94553         renamings.
94554         * m4/utime.m4: Likewise.
94555
94556         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94557         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94558
94559 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94560
94561         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94562         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94563
94564 2000-01-02  Jim Meyering  <meyering@ascend.com>
94565
94566         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94567         remember if this is necessary.
94568
94569 1999-12-26  Jim Meyering  <meyering@ascend.com>
94570
94571         * m4/jm-macros.m4: Use it here.
94572         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94573
94574 1999-12-23  Jim Meyering  <meyering@ascend.com>
94575
94576         * m4/jm-macros.m4: Check for clock_gettime (moved from
94577         fileutils/configure.in)
94578         Check for gettimeofday.
94579
94580 1999-12-20  Jim Meyering  <meyering@ascend.com>
94581
94582         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94583         autoconf-2.14a-1999-12-20.
94584
94585 1999-12-19  Jim Meyering  <meyering@ascend.com>
94586
94587         * m4/lstat-slash.m4: New file.
94588         * m4/jm-macros.m4: Use the new macro:
94589         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94590
94591 1999-12-07  Jim Meyering  <meyering@ascend.com>
94592
94593         * m4/perl.m4: Require that File::Compare be available, too.
94594         Too many systems seem to lack it.
94595
94596         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94597         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94598
94599 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94600
94601         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94602         problem with the QNX 4.25 shell, which doesn't propagate exit
94603         status of failed commands inside shell assignments.
94604
94605 1999-11-17  Jim Meyering  <meyering@ascend.com>
94606
94607         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94608
94609 1999-11-07  Jim Meyering  <meyering@ascend.com>
94610
94611         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94612
94613 1999-11-06  Jim Meyering  <meyering@ascend.com>
94614
94615         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94616         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94617
94618 1999-11-05  Jim Meyering  <meyering@ascend.com>
94619
94620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94621         configure.in of textutils, fileutils, and sh-utils into this one
94622         (shared between those packages) file.
94623         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94624         AC_STRUCT_ST_BLKSIZE.
94625
94626 1999-11-03  Jim Meyering  <meyering@ascend.com>
94627
94628         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94629         of AC_CHECK_TYPE checks includes unistd.h.
94630         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94631         Suggestion from Akim Demaille.
94632
94633 1999-10-30  Jim Meyering  <meyering@ascend.com>
94634
94635         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94636         m4-quoted string.
94637         * m4/ls-mntd-fs.m4: Likewise.
94638         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94639         * m4/jm-winsz1.m4: Likewise.
94640
94641         * m4/const.m4: Remove file, since the fix made it into the experimental
94642         version of autoconf.
94643         * m4/mktime.m4: Likewise.
94644
94645         * m4/check-type.m4: Remove file, now that the latest version of
94646         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94647
94648         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94649         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94650         AC_CHECK_TYPE.
94651
94652 1999-10-04  Jim Meyering  <meyering@ascend.com>
94653
94654         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94655
94656 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94657
94658         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94659         2.95.1 bug with HP-UX 10.20.
94660
94661 1999-09-17  Jim Meyering  <meyering@ascend.com>
94662
94663         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94664         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94665         due to missing strdup (against sh-utils-2.0).
94666
94667 1999-08-29  Jim Meyering  <meyering@ascend.com>
94668
94669         * m4/jm-macros.m4: Require jm_BISON.
94670         * m4/bison.m4: New file.
94671
94672 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94673
94674         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94675         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94676
94677 1999-08-05  Jim Meyering  <meyering@ascend.com>
94678
94679         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94680         to avoid conflicts with `conftest' on 8+3 filesystems.
94681         Suggestion from Eli Zaretskii.
94682
94683 1999-08-04  Jim Meyering  <meyering@ascend.com>
94684
94685         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94686         fileutils and sh-utils (textutils's getline test was inadequate).
94687         (AM_FUNC_GETLINE): Run this test.
94688         (AC_CHECK_FUNCS): Check for getdelim.
94689         Reported by Bob Proulx.
94690
94691 1999-08-02  Jim Meyering  <meyering@ascend.com>
94692
94693         * m4/jm-macros.m4: Add a comment.
94694
94695 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94696
94697         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94698         <inttypes.h> defines strtoumax as a macro (and not as a
94699         function).
94700
94701 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94702
94703         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94704         that we can shift, multiply and divide unsigned long long
94705         values; Ultrix cc can't do it.
94706
94707 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94708
94709         * m4/mktime.m4: New file, which is a preview of what should appear
94710         in the next public autoconf release.
94711
94712 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94713
94714         * m4/lfs.m4: Remove this file.
94715         * m4/largefile.m4: New file.  It contains the old contents of
94716         lfs.m4, except that all names with prefix AC_LFS have been
94717         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94718         compatible with future autoconf versions.  Also, some minor m4
94719         quoting problems have been fixed.
94720
94721 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94722
94723         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94724         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94725         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94726         and simplify the shell code.
94727
94728 1999-08-01  Jim Meyering  <meyering@ascend.com>
94729
94730         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94731         m4.
94732
94733 1999-07-20  Jim Meyering  <meyering@ascend.com>
94734
94735         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94736
94737 1999-07-15  Jim Meyering  <meyering@ascend.com>
94738
94739         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94740
94741 1999-05-22  Jim Meyering  <meyering@ascend.com>
94742
94743         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94744
94745 1999-05-20  Jim Meyering  <meyering@ascend.com>
94746
94747         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94748         Add a colon after each `then' in case $4 is empty.
94749
94750 1999-05-16  Jim Meyering  <meyering@ascend.com>
94751
94752         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94753
94754 1999-05-10  Jim Meyering  <meyering@ascend.com>
94755
94756         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94757
94758         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94759         AC_FUNC_MKTIME.
94760
94761 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94762
94763         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94764
94765 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94766
94767         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94768         not CPPFLAGS, so that linking works correctly in IRIX.
94769
94770 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94771
94772         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94773
94774 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94775
94776         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94777         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94779         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94780         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94781
94782         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94783
94784 1999-04-20  Jim Meyering  <meyering@ascend.com>
94785
94786         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94787         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94788         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94789
94790 1999-04-18  Jim Meyering  <meyering@ascend.com>
94791
94792         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94793         * m4/jm-macros.m4: Use it.
94794
94795 1999-04-06  Jim Meyering  <meyering@ascend.com>
94796
94797         * m4/strftime.m4: Remove test for %f.
94798
94799 1999-03-29  Jim Meyering  <meyering@ascend.com>
94800
94801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94802         superset of the AC_TYPE_* checks in the textutils, fileutils,
94803         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94804         AC_TYPE_PID_T.
94805
94806 1999-03-28  Jim Meyering  <meyering@ascend.com>
94807
94808         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94809         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94810         replaced e.g., in the *.sh files of the sh-utils.
94811
94812 1999-03-20  Jim Meyering  <meyering@ascend.com>
94813
94814         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94815         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94816         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94817
94818 1999-03-19  Jim Meyering  <meyering@ascend.com>
94819
94820         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94821
94822 1999-03-12  Jim Meyering  <meyering@ascend.com>
94823
94824         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94825
94826 1999-03-07  Jim Meyering  <meyering@ascend.com>
94827
94828         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94829         declared.
94830
94831 1999-02-17  Jim Meyering  <meyering@ascend.com>
94832
94833         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94834         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94835
94836 1999-02-07  Jim Meyering  <meyering@ascend.com>
94837
94838         * m4/group-member.m4: New file -- extracted from sh-utils'
94839         configure.in.
94840
94841         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94842         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94843
94844 1999-02-06  Jim Meyering  <meyering@ascend.com>
94845
94846         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94847         * m4/fnmatch.m4: Likewise.
94848         * m4/getgroups.m4: Likewise.
94849         * m4/lstat.m4: Likewise.
94850         * m4/malloc.m4: Likewise.
94851         * m4/putenv.m4: Likewise.
94852         * m4/realloc.m4: Likewise.
94853         * m4/regex.m4: Likewise.
94854         * m4/stat.m4: Likewise.
94855         * m4/strftime.m4: Likewise.
94856         Suggestion from Alain Magloire.
94857
94858         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94859         * m4/fnmatch.m4: Likewise.
94860         * m4/getgroups.m4: Likewise.
94861         * m4/getline.m4: Likewise.
94862         * m4/lstat.m4: Likewise.
94863         * m4/malloc.m4: Likewise.
94864         * m4/memcmp.m4: Likewise.
94865         * m4/putenv.m4: Likewise.
94866         * m4/realloc.m4: Likewise.
94867         * m4/regex.m4: Likewise.
94868         * m4/stat.m4: Likewise.
94869         * m4/strftime.m4: Likewise.
94870         Suggestion from Alain Magloire.
94871
94872         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94873         an argument.
94874
94875         * m4/regex.m4: Add a run-time Test for proper operation of
94876         re_compile_pattern.
94877
94878 1999-01-31  Jim Meyering  <meyering@ascend.com>
94879
94880         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94881
94882 1999-01-30  Jim Meyering  <meyering@ascend.com>
94883
94884         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94885
94886         * m4/jm-mktime.m4: Make this a wrapper around the official
94887         AM_FUNC_MKTIME rather than my private copy, now that the official one
94888         is up to date.
94889         * m4/mktime.m4: Remove file.
94890
94891         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94892         * m4/uptime.m4: Likewise.
94893         * m4/uintmax_t.m4: Likewise.
94894
94895 1999-01-28  Jim Meyering  <meyering@ascend.com>
94896
94897         * m4/jm-macros.m4: Use jm_AFS.
94898         * m4/afs.m4: New file (from fileutils' configure.in).
94899
94900         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94901         * m4/chown.m4: Likewise.
94902         * m4/d-ino.m4: Likewise.
94903         * m4/d-type.m4: Likewise.
94904         * m4/fnmatch.m4: Likewise.
94905         * m4/getgroups.m4: Likewise.
94906         * m4/gettext.m4: Likewise.
94907         * m4/jm-mktime.m4: Likewise.
94908         * m4/jm-winsz2.m4: Likewise.
94909         * m4/lcmessage.m4: Likewise.
94910         * m4/ls-mntd-fs.m4: Likewise.
94911         * m4/malloc.m4: Likewise.
94912         * m4/memcmp.m4: Likewise.
94913         * m4/putenv.m4: Likewise.
94914         * m4/realloc.m4: Likewise.
94915         * m4/st_mtim.m4: Likewise.
94916         * m4/strftime.m4: Likewise.
94917
94918 1999-01-16  Jim Meyering  <meyering@ascend.com>
94919
94920         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94921         (ARGMATCH_DIE_DECL): Define.
94922
94923 1999-01-12  Jim Meyering  <meyering@ascend.com>
94924
94925         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94926         Reported by Lars Hecking.
94927
94928 1999-01-10  Jim Meyering  <meyering@ascend.com>
94929
94930         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94931         gross kludge.
94932         * m4/inttypes_h.m4: Likewise.
94933         * m4/lstat.m4: Likewise.
94934         * m4/malloc.m4: Likewise.
94935         * m4/readdir.m4: Likewise.
94936         * m4/realloc.m4: Likewise.
94937         * m4/st_dm_mode.m4: Likewise.
94938         * m4/stat.m4: Likewise.
94939         * m4/utimbuf.m4: Likewise.
94940         * m4/utimes.m4: Likewise.
94941
94942         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94943         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94944         comments in config.h.in are meaningful.
94945
94946         * m4/jm-macros.m4: Require autoconf-2.13 here.
94947
94948         * m4/regex.m4: By default, don't use the included regex.c on systems
94949         with glibc 2.  Suggestion from Uli Drepper.
94950
94951 1999-01-02  Jim Meyering  <meyering@ascend.com>
94952
94953         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94954
94955 1998-12-18  Jim Meyering  <meyering@ascend.com>
94956
94957         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94958         Based on a suggestion from Lars Hecking.
94959
94960 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94961
94962         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94963
94964 1998-11-16  Jim Meyering  <meyering@ascend.com>
94965
94966         * m4/lfs.m4: Double-quote the `uname...` expression.
94967
94968 1998-11-14  Jim Meyering  <meyering@ascend.com>
94969
94970         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94971         * m4/stat.m4: Likewise.
94972
94973 1998-11-03  Jim Meyering  <meyering@ascend.com>
94974
94975         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94976         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94977
94978 1998-10-18  Jim Meyering  <meyering@ascend.com>
94979
94980         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94981
94982 1998-10-17  Jim Meyering  <meyering@ascend.com>
94983
94984         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94985         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94986         calls for those previously hard-coded headers.  Instead, take a new
94987         parameter.
94988         (jm_CHECK_DECLARATIONS): Reflect interface change.
94989         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94990         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94991
94992         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94993
94994 1998-10-14  Jim Meyering  <meyering@ascend.com>
94995
94996         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94997         instead of "TZ=America/Vancouver".  From Paul Eggert.
94998
94999 1998-10-11  Jim Meyering  <meyering@ascend.com>
95000
95001         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95002         This adds a test for a recently added compatibility fix for mktime.c.
95003         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95004
95005 1998-09-27  Jim Meyering  <meyering@ascend.com>
95006
95007         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95008
95009         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95010         ../configure.in, including a change from Gordon Matzigkeit to allow
95011         cross-compiling for the Hurd.
95012
95013         * m4/glibc.m4: New file/macro to test for the GNU C Library
95014         versions 1 and 2.  From Gordon Matzigkeit.
95015         Indent.
95016
95017 1998-09-21  Jim Meyering  <meyering@ascend.com>
95018
95019         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95020
95021 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95022
95023         Port nanosecond-resolution times to UnixWare 2.1.2 and
95024         pedantic Solaris 2.6.
95025
95026         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95027         AC_STRUCT_ST_MTIM.
95028         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95029         Generate name of ns member, instead of just 1 or undef.
95030         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95031
95032 1998-08-15  Jim Meyering  <meyering@ascend.com>
95033
95034         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95035         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95036         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95037         instead of jm_TYPE_SSIZE_T.
95038
95039 1998-08-12  Jim Meyering  <meyering@ascend.com>
95040
95041         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95042
95043 1998-08-02  Jim Meyering  <meyering@ascend.com>
95044
95045         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95046         in acconfig.h manually.
95047
95048 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95049
95050         * m4/st_mtim.m4: New file.
95051
95052 1998-07-28  Jim Meyering  <meyering@ascend.com>
95053
95054         * m4/utimes.m4: Undef stat.
95055
95056 1998-07-25  Jim Meyering  <meyering@ascend.com>
95057
95058         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95059         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95060
95061 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95062
95063         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95064         uid and gid actually remain unchanged.
95065
95066 1998-07-07  Jim Meyering  <meyering@ascend.com>
95067
95068         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95069
95070 1998-07-04  Jim Meyering  <meyering@ascend.com>
95071
95072         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95073         to prove that this macro can be used in packages without regex.c.
95074
95075 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95076
95077         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95078         is to be used.
95079
95080 1998-07-03  Jim Meyering  <meyering@ascend.com>
95081
95082         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95083
95084         * m4/gettext.m4: New file -- from gettext-0.10.35.
95085         * m4/lcmessage.m4: Likewise.
95086         * m4/progtest.m4: Likewise.
95087
95088         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95089         * m4/jm-macros.m4: Require the new macro.
95090
95091 1998-06-29  Jim Meyering  <meyering@ascend.com>
95092
95093         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95094         for the definition of NGROUPS (used in a system header included
95095         by sys/mount.h).
95096
95097 1998-06-28  Jim Meyering  <meyering@ascend.com>
95098
95099         * m4/ls-mntd-fs.m4: New file.
95100         * m4/fstypename.m4: New file.
95101
95102         * m4/jm-macros.m4: Require the new macro.
95103         * m4/jm-glibc-io.m4: New file.
95104
95105 1998-05-19  Jim Meyering  <meyering@ascend.com>
95106
95107         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95108         * m4/lchown.m4: New file.
95109
95110         * m4/Makefile.am.in: New file.
95111         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95112
95113 1998-05-14  Jim Meyering  <meyering@ascend.com>
95114
95115         * m4/Makefile.am (EXTRA_DIST): Add them.
95116         * m4/jm-macros.m4: New file.
95117         * m4/utimbuf.m4: New file.
95118
95119 1998-05-12  Jim Meyering  <meyering@ascend.com>
95120
95121         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95122
95123 1998-05-11  Jim Meyering  <meyering@ascend.com>
95124
95125         * m4/isc-posix.m4: New file.
95126
95127 1998-05-10  Jim Meyering  <meyering@ascend.com>
95128
95129         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95130
95131 1998-05-09  Jim Meyering  <meyering@ascend.com>
95132
95133         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95134         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95135         with automake.
95136
95137         * m4/ssize_t.m4: New file.
95138         * m4/mktime.m4: Remove file -- the new automake has this now.
95139
95140 1998-04-26  Jim Meyering  <meyering@ascend.com>
95141
95142         * m4/assert.m4: New file.
95143         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95144
95145 1998-04-05  Jim Meyering  <meyering@ascend.com>
95146
95147         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95148         (jm_PREREQ): Use it here.
95149
95150 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95151
95152         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95153         in acconfig.h.
95154
95155 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95156
95157         * m4/prereq.m4: New file.
95158         * m4/error.m4: New file.
95159         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95160
95161 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95162
95163         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95164         cache-check for the same variable -- that defeated the purpose of
95165         the test; the test program was never run.  This was a problem only
95166         on systems with losing getline functions -- HP-UX 10.20 is one.
95167         Reported by Bjorn Helgaas.
95168
95169 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95170
95171         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95172
95173 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95174
95175         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95176
95177         * m4/const.m4: New file.  Use an initializer in this declaration
95178         typedef int charset[2]; const charset x;
95179         Reported by Bob Glickstein.
95180
95181 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95182
95183         * m4/chown.m4: Fix reversed types on -1 args to chown.
95184         From Kaveh Ghazi.
95185
95186 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95187
95188         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95189         Add lseek and memchr.
95190
95191         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95192         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95193         have a 20-character limit on names.
95194
95195 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95196
95197         * m4/inttypes_h.m4: New file.
95198         * m4/uintmax_t.m4: New file.
95199         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95200
95201
95202         -----
95203
95204         Local Variables:
95205         coding: utf-8
95206         End:
95207
95208         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95209
95210         Copying and distribution of this file, with or without
95211         modification, are permitted provided the copyright notice
95212         and this notice are preserved.